Sign in to follow this  
Followers 0
Gamble

Fx Timer Question

4 posts in this topic

I would like to get the K value of a timer and store it in a data register. Is there anyway to do this? For example if i have T0 set with K200 I would like to take that 200 and store it in register D0.

Share this post


Link to post
Share on other sites
No this is not possible, because K100 is hardcoded in your application. It is no device value. So there is no need for this possibility. If you want to get the value of the actual couting of the timer then it is possible see previous question from mckeand13.

Share this post


Link to post
Share on other sites
Gamble, what you are asking is the reverse of what is typically done. Put the value of your timer (K200) into a data register, then use the data register in the timer coil: --|M8000|----[MOV K200 D0]-- --|X1|------------------(T0 D0)-- Now you'll have access to the timer value for other purposes. You could even push a value into D0 from an HMI or math instruction, for dynamic changes, instead of hard-coding the MOV instruction.

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
Sign in to follow this  
Followers 0