Jhona Daniel

gx developer GX Developer timer command

4 posts in this topic

Hello everyone!
Could someone help me and tell me what the "D212" means?

I know that to define the time of a TIMER you must put a k and number (miliseg).

 

Help.... :(

T1.JPG

Share this post


Link to post
Share on other sites

The value oh D212 acts as the K value. Typically done when you want to allow a timer to be changed without accessing the program (from a numerical input on a HMI for example)

Share this post


Link to post
Share on other sites
8 hours ago, titanspark76 said:

The value oh D212 acts as the K value. Typically done when you want to allow a timer to be changed without accessing the program (from a numerical input on a HMI for example)

Correct. Instead of using a static integer as the timer's preset value the value stored in the data register is the referenced PV.

Share this post


Link to post
Share on other sites

The D212 will most likely represent a 16 bit word which is just a 16 digit binary number 000010... it may be as said above it is used as a numerical entry from a HMI, if a HMI is not present I would suggest looking elsewhere in the code for this device and see if any calculations or K's are moved into it. 

This can also be used to alter the timers length within the code base on certain conditions;

Condition 1

| |-----------------[MOV K10 D212]---|

Condition 2 

| |-----------------[MOV K20 D212]----|

Hope this helps.

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