Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 25
6 MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
(1) The data register is shown as "#D" or "#" in the Motion program.
Describe it as "#@" to indicate a motion register.
(2) The mark of the I/O modules is X and Y in the Motion program regardless of
installation/non-installation. Do not use PX and PY.
(3) Variable conversion
When variables of different types are used for operation, the types are matched
by internal operation.
Type conversion is made by internal operation as follows.
Conversion format Description
16 bit to 32 bit
The 16-bit integer type is extended to 32-bit integer type.
31 0
15 0
Higher rank bit is handled as a sign bit.
15
If the sign bit is "1", bits 15 to 31 are "1".
16 bit to 64 bit
The 16-bit integer type is converted to 64-bit double precision real number.
63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
15 0
Higher rank bit is handled as a sign bit.
32 bit to 16 bit
The 32-bit integer type is converted to 16-bit integer type.
Note that any value other than -32768 to 32767 results in an error. (Error : 531)
31 0
15 0
Higher rank bit is handled as a sign bit.
15
Bits 0 to 15 are stored.
Bits 16 to 31 are discarded.
32 bit to 64 bit
The 32-bit integer type is converted to 64-bit double precision real number.
63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
31 0
Higher rank bit is handled as a sign bit.
64 bit to 16 bit
The 64-bit double precision real number is converted to 16-bit integer type.
Note that any value other than -32768 to 32767 results in an error. (Error : 531)
63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
Fractional portion is dropped.
Any value other than -32768 to 32767
results in an error. (Error 531)
15 0
Higher rank bit is handled as a sign bit.