hi guy's!!!
working with yaskawa dx200,
is it even possible to "pass" the value of a timer variable TM to another variable like I?
somthing like SET I.... TM, wich unfortunately doesn't exesist, their may be another way?
TM variable value to I variable
-
regaleira -
March 7, 2017 at 12:05 PM -
Thread is marked as Resolved.
-
-
Under SETTM Setup you could have the additional output be a M-Register. In a robot job you could use the GETREG instruction under ARITH to grab the value from this M-register into an I-variable. The GETREG has a low and a high byte. Depending on the value in the M-Register you may need to use 2 I variables and reassemble the number into a D-variable.
M-register content's box 0-65535
I-variable content's box -32768 to 32767
D-variable content's box -2.147 billion to 2.147 billion and change. -
this may be a stupid question, but how would you go about re-assembling the low byte and the high byte back into the registers original value?
-
To convert 2 Bytes (8 bit) to 1 Integer (16 bit) multiply the high Byte by 256.
To convert 2 Integers (16 bit) to 1 Double (32 bit) multiply the high Integer by 65536.