Hi all.
New to this PLC programming so bear with me please.
I am using an OMRON SYSMAC CP1L plc with cx-programmer.
Needing a part of my program to allow one button to be used for 3 different functions.
Pressed once: Turns system on
Pressed twice: Turns half of system off
Pressed and help for 5 secs: Full stop
I can figure the rest out but it is just trying to make the program determine the difference between the first press and second. I can use a TIMER function for the 5 second hold section.
Any advice would be greatly appreciated.
Thank you.
New to this PLC programming so bear with me please.
I am using an OMRON SYSMAC CP1L plc with cx-programmer.
Needing a part of my program to allow one button to be used for 3 different functions.
Pressed once: Turns system on
Pressed twice: Turns half of system off
Pressed and help for 5 secs: Full stop
I can figure the rest out but it is just trying to make the program determine the difference between the first press and second. I can use a TIMER function for the 5 second hold section.
Any advice would be greatly appreciated.
Thank you.
Last edited: