Posted 8 Nov 2016 Hi I put value #80 in word 60 I run timer 2 with word 60 I replace word 60 withe the value #10 I run timer 2 again with word 60 but you see the timer counting down from 80 instead of 10 So the timer runs first the previous value of word 60 before he runs with the new value although you see the new value of word 60 appearing in the timer. How can I let the timer run immedeatly with the new value. Thank you Share this post Link to post Share on other sites
Posted 8 Nov 2016 Retentive - will work the next time around. Share this post Link to post Share on other sites
Posted 8 Nov 2016 Thanks, but i want it to work from the first time Share this post Link to post Share on other sites
Posted 8 Nov 2016 (edited) On the same scan that you write #10 in your word 60, you could turn off the condition of your timer. Or, you could change the PV of your timer. (MOV #10 TIM2) (1 scan only) Edited 8 Nov 2016 by pfort Share this post Link to post Share on other sites
Posted 8 Nov 2016 At the moment of writing into words the timer is'nt started yet. MOV #10 TIM2 doesn't work destination can't be timer counter I have 32 conditions. on the appearance of each condition i need one output pulse of a different lenght I could use 32 timers Share this post Link to post Share on other sites
Posted 8 Nov 2016 If the timer is not started yet, then it should start with your new SV. MOV does not work so I guess you have a CQM1 or otherf old serie PLC... Share this post Link to post Share on other sites
Posted 8 Nov 2016 Just now, pfort said: If the timer is not started yet, then it should start with your new SV. MOV does not work so I guess you have a CQM1 or otherf old serie PLC... actual situation CQM1 : Move value 80 to word use timer with word: timer counts from 80 Change value 10 to word next--use timer with word: timer still counts from 80 one time before it uses value 10 In the timer instruction i see the value is set to 10 but it still counts down from 80 (one time) The timeruses the new value only when it has been set Share this post Link to post Share on other sites
Posted 8 Nov 2016 Use XFER: XFER #1 D60 TIM2 1 person likes this Share this post Link to post Share on other sites
Posted 8 Nov 2016 I've programmed pre-alpha PLCs for a long long time. Never new that! Share this post Link to post Share on other sites