niimi1126
When SW3 is turned on, the ON time of SW3 is accumulated by TO.
I want to keep the time of TIME2 even if SW3 is turned off.
When SW3 is turned off, TIME2 is reset.
Is there a way to keep it? IMG_1472.jpg 
Martin
Hey niimi,

could you provide more detail for your project like what you want to achieve for a better understanding?

As far as i can tell by the screenshot you sent, you are not using the right things for your goal. TIME2 gets the reset because its just a converted (moved) version of TIME1 which is the ET - OUT of your TON1. Because TON1 is a function it cannot hold any value beyond its cycle, which ends, when TON1 - IN gets no signal. Therefore, TIME2 can't hold any value.

If i had to do it, i would try to put a TP seperate after your input (SW3) and i would count the pulses with a CU.
But thats just a thought.

I hope this helps, but i'm sure you already found a solution
Reply 0 0
thiagoralves
An easy way to do this is to enable the EN conditional pin on your MOVE block (double click the block and enable it on properties). The EN pin controls if the block should be executed or not. Then just connect your SW3 to the EN pin of the MOVE block. When SW3 is false, the move operation won’t happen, and then time2 will keep the last value of time
Reply 0 0
Reply