PLC program 1 button on and off

This is the Ladder diagram program for application one Push button for On and OFF the lamp .Using OMRON PLC type CJ1M.
job description circuit:
1.first time the button is pressed then the lamp ON
2.second time the button is pressed then lights OFF
3.back to a description number 1

Addressing Input and output :

Device

Address

NOTE

Push button 1 (PB1)00.00Chanel 0 bit 0
Push button 1 (PB1)00.00Chanel 0 bit 0
Lamp01.00Chanel 1 bit 0
Internal Relay 110.00First Sequence(lamp ON)
Internal Relay 210.01second sequence(transisi PB ON ke OFF)
Internal Relay 310.02Thrid Sequence (Lamp OFF)
Internal Relay 410.03Reset back to the first sequence


Wiring I/O of PLC:

READ MORE.....