15 - 17
15. COMMUNICATION FUNCTION
15.5 Detailed explanations of commands
15.5.1 Data processing
When the master station transmits a command data No. or a command data No. data to a slave station,
the servo amplifier returns a reply or data according to the purpose.
When numerical values are represented in th ese send data and receive data, they are represe nted in decimal,
hexadecimal, etc.
Therefore, data must be processed according to th e application.
Since whether data must be processed or not and h ow to process data depend on the monitoring, par ameters,
etc., follow the detailed explanation of the cor responding command.
The following methods are how to process send a nd receive data when reading and writing data.
(1) Processing the read data
When the display type is 0, the eight-charac ter data is converted from hexadecimal to decimal and a
decimal point is placed according to the decimal point pos ition information.
When the display type is 1, the eight-charact er data is used unchanged.
The following example indicates how to process the receive data "0 03000000929" given to show.
The receive data is as follows.
00
Data 32-bit length (hexadecimal representation)
(Data conversion is required as indicated in the display type
)
Display type
0: Data must be converted into decimal.
1: Data is used unchanged in hexadecimal.
Decimal point position
0: No decimal point
1: First least significant digit (normally not used)
2: Second least significant digit
3: Third least significant digit
4: Forth least significant digit
5: Fifth least significant digit
6: Sixth least significant digit
3000000929
Since the display type is "0" in this case, the hexadecimal data is converted into decim al.
00000929H 2345
As the decimal point position is "3", a decimal point is placed in the third least s ignificant digit.
Hence, "23.45" is displayed.