- 84 -
20. Handling of sent/received data
There are three types of data, 1byte data, 2bytes data and 4bytes data.
Specifically, handling of 2bytes data, 4bytes data and negative data is explained below.
(1) 2bytes 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 Byte6 and Byte7.
100mm/s is 0064h in hexadecimal.
00 64 h data is as shown below.
(2) 4bytes data
“Please note following example for 4 bytes data including position.
E.g.) Output data "position": When inputting 700.00mm data to Byte8 to Byte11.
“Position” is based on the unit by 0.01mm.
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, 4bytes negative value data is explained.
E.g.) Output data "position": When inputting -700.00mm (negative value) to Byte8 to Byte11.
“Position” is based on the unit by 0.01mm.
Negative values are expressed using two’s complement notation
The value to express -700.00mm is -70000 in decimal number, and FFFEEE90h in
hexadecimal.
Sending of FF FE EE 90 h data is as shown below.