
- 84 -
No.JXC
※
-OMV0005-A
(2-2) Access of double word data
E.g. 4) shows an example when a double word data such as "target position" in double word data is
accessed.
E.g. 4) When 700.00 mm/s is written to the "target position (Byte6-Byte9)" of the process data output:
Position” is based on the unit by 0.01mm.
The value to express -700.00 mm is 70000 in decimal number, and 0 x 00011170 in
hexadecimal.
When the upper communication byte order is little Endian, the data is written in order of
0x
70 11 01 00
.
(3) Negative value data
Please refer to E.g. 5) below when using negative value data.
In the example, 4byte negative value data is explained.
E.g. 5)
When 700.00 mm/s (negative value) is written to the "target position (Byte6-Byte9)" of the
process data output:
"Position” is based on the unit by 0.01 mm.
Negative values are expressed using two's complement notation.
The value to express -700.00 mm is -70000 in decimal number, and 0 x FFFEEE90 in
hexadecimal number.
The byte order of the written data needs to be changed depending on the Endian type of the
upper communication as shown below.
When the upper communication byte order is big Endian, and data is written in double word
data.
→ 0x
FF FE EE 90
When the upper communication byte order is little Endian, and data is written in double word
data.
→ 0x
90 EE FE FF
MSB
LSB
Target position
0x11(Byte8
:
Taget Posn
LH)
0x70(Byte9:
Taget Posn
LL)
0x00(Byte6
:
Taget Posn
HH)
0x01(Byte7
:
Taget Posn
HL)
Double word