- 86 -
No.JXC
※
-OMT0007-D
21. Handling of sent/received data
There are three types of data, 1byte data, 2byte data and 4byte data.
Specifically, handling of 2byte data, 4byte data and negative data is explained below.
(1) 2 bytes data
Please note following examples for 2 bytes data including speed, acceleration, and deceleration.
E.g.) Output data "speed": When inputting 100mm/s data to Byte 6 and Byte 7.
(Set the output data length of IO data length at 12 byte or more.)
100mm/s is 0064h in hexadecimal.
00 64 h
data input is shown below.
(2) 4 bytes data
Please note following example for 4 bytes data including target position.
E.g.)
Output data "target position": When inputting 700.00 mm data to Byte 8 to Byte 11.
(Set the output data length of IO data length at 12 byte or more.)
“Target position” is based on the unit by 0.01 mm.
The value to express 700.00 mm is 70000 in decimal number, and 00011170h in hexadecimal.
Sending of
00 01 11 70 h
data is as shown below.
(3) Negative value data
“Please note following example for negative value data.
In the example, 4-byte negative value data is explained.
E.g.)
Output data "target position": When inputting -700.00 mm (negative value) data to Byte 8 to
Byte 11.
(Set the output data length of IO data length at 12 byte or more.)
“Target position” is based on the unit by 0.01 mm.
Negative values are expressed using two's complement notation.
The value to express -700.00mm is -70000 in decimal number, and 00011170h in hexadecimal.
Sending of
FF FE EE 90 h
data is as shown below.
Byte6
Byte7
Bit7
Bit0
Speed
64h
00h
Byte8
Byte9
Bit7
Bit0
Target position
00h
Byte10
Byte11
11h
Byte8
Byte9
Bit7
Bit0
Target position
FFh
Byte10
Byte11
EEh
70h
01h
FEh
90h