Hey guys,
I am trying to set up something that seems so simple in theory, but is making tons of headaches in reality.
I have a value that I want to watch both positive and negative transitions on. We will call it "saving". If saving goes high, I want to fire "saving_state_change" for one scan. But if it goes low, I want to fire the "saving_state_change" for one scan. These scans are used to reset a reference count.
I have tried most permutations but, from what I see, you can only get one or the other to work (whatever evaluates last). Is the solution only to use two separate "save_state_change" variables?
I am doing this in SIEMENS Total Integrated Automation v11 with an S7-1200 PLC.
Thanks in advance, guys!
I am trying to set up something that seems so simple in theory, but is making tons of headaches in reality.
I have a value that I want to watch both positive and negative transitions on. We will call it "saving". If saving goes high, I want to fire "saving_state_change" for one scan. But if it goes low, I want to fire the "saving_state_change" for one scan. These scans are used to reset a reference count.
I have tried most permutations but, from what I see, you can only get one or the other to work (whatever evaluates last). Is the solution only to use two separate "save_state_change" variables?
I am doing this in SIEMENS Total Integrated Automation v11 with an S7-1200 PLC.
Thanks in advance, guys!