Design a PLC program and prepare a typical I/O connection diagram and ladder logic program that will execute the following control circuit correctly:
• Turns on a nonretentive timer when a switch is closed (preset value of timer is 10 s).
• Resets timer automatically through a programmed transitional contact when it times out.
• Counts the number of times the timer goes to 10 s.
• Resets counter automatically through a second programmed transitional contact at a count of 5.
• Latches on a light at the count of 5.
• Resets light to off and counter to 0 when a selector switch is closed.