Detailed Explanations Of Commands; Data Processing - Mitsubishi Electric MELSERVO-J5 Series User Manual

Ac servo system
Hide thumbs Also See for MELSERVO-J5 Series:
Table of Contents

Advertisement

8.5

Detailed explanations of commands

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 response or data in accordance with the purpose.
Numerical values in transmitted and received data are represented in decimal, hexadecimal, etc.
Therefore, data must be processed in accordance with the application.
Since whether data must be processed or not and how to process data depend on the monitoring, servo parameters, etc.,
follow the detailed explanation of the corresponding command.
The following shows how to process received data and write processed data.
Processing read data
When the display type is 0, convert the eight-character data from hexadecimal to decimal, and place a decimal point
according to the decimal point information.
When the display type is 1, use the eight-character data unchanged.
The following example indicates how to process the received data for status display "003000000929".
The received data is as follows.
0 0 3 0 0 0 0 0 0 9 2 9
32-bit wide data (in hexadecimal)
(Data conversion according to the display type required)
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: Fourth least significant digit
5: Fifth least significant digit
6: Sixth least significant digit
Since the display type is "0" in this case, convert the hexadecimal data into decimal.
00000929h → 2345
As the decimal point position is "3", place a decimal point in the third least significant digit.
"23.45" is displayed.
8 COMMUNICATION FUNCTION (MITSUBISHI ELECTRIC AC SERVO PROTOCOL) [A]
8.5 Detailed explanations of commands
8
415

Advertisement

Table of Contents
loading

Table of Contents