Dcook87
Member
I'm new to PLC programming. I'm trying to write a program that turns on a LED and flashes it.
I'm trying to find some way to set an internal flag/register that can execute a timer enable function. What instruction do I use to do this?
In the attached image, I want to latch a "flag" on when I turn on "TOG1" and press the "GRN_PB" switch. That flag will turn on the timer and start flashing.
I want to disable (unlatch) this flag when I press "REDPB"
I don't need to use one of the discrete outputs on the PLC since this is internal, so what should I use here?
I'm trying to find some way to set an internal flag/register that can execute a timer enable function. What instruction do I use to do this?
In the attached image, I want to latch a "flag" on when I turn on "TOG1" and press the "GRN_PB" switch. That flag will turn on the timer and start flashing.
I want to disable (unlatch) this flag when I press "REDPB"
I don't need to use one of the discrete outputs on the PLC since this is internal, so what should I use here?