kolonelvonklink Posted November 8, 2016 Report Posted November 8, 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
BobB Posted November 8, 2016 Report Posted November 8, 2016 Retentive - will work the next time around.
kolonelvonklink Posted November 8, 2016 Author Report Posted November 8, 2016 Thanks, but i want it to work from the first time
pfort Posted November 8, 2016 Report Posted November 8, 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 November 8, 2016 by pfort
kolonelvonklink Posted November 8, 2016 Author Report Posted November 8, 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
pfort Posted November 8, 2016 Report Posted November 8, 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...
kolonelvonklink Posted November 8, 2016 Author Report Posted November 8, 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
IO_Rack Posted November 8, 2016 Report Posted November 8, 2016 I've programmed pre-alpha PLCs for a long long time. Never new that!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now