kolonelvonklink

cqm1 timer problem

9 posts in this topic

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

Retentive - will work the next time around.

Share this post


Link to post
Share on other sites

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 by pfort

Share this post


Link to post
Share on other sites

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

If the timer is not started yet, then it should start with  your new SV.:shrug:

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
Just now, pfort said:

If the timer is not started yet, then it should start with  your new SV.:shrug:

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

Use XFER:

XFER #1 D60 TIM2

1 person likes this

Share this post


Link to post
Share on other sites

I've programmed pre-alpha PLCs for a long long time. Never new that!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now