2. MODBUS/TCP PROTOCOL
2 - 1
2. MODBUS/TCP PROTOCOL
POINT
If connection with a client disconnects during establishment, the connection may
not close and this may cause reconnection failure. In case you cannot
reconnect, cycle the power of the servo amplifier.
2.1 Summary
In Modbus/TCP communication, a command that a client (controller) sends to servers (servo amplifiers) is
called "Query Message", and a command that the servers return to the client is called "Response Message".
When a servo amplifier receives a Query Message, it returns a Response Message to the client after the
servo amplifier response time.
In Modbus/TCP communication, as in the case of TCP/IP, make sure to establish the connection before
sending and receiving commands. Check that the connection has been established, and then send a Query
Message.
Client (controller)
Server (servo amplifier)
Query Message
Response Message
Servo amplifier response time (Note)
Query Message
Response Message
Note. The servo amplifier response time differs depending on the command to send.
2.2 Modbus/TCP Communication Message Frame
Query Messages sent from the client (controller) and Response Messages sent from the servers (servo
amplifiers) are both sent in the following message frame format. Messages are sent by using TCP/IP.
Client
(controller)
Response Message
Query Message
Server
(servo amplifier)
Unit Identifier
Function
Data
Unit Identifier
Function
Data
A message frame is composed of six message fields.
When a server (servo amplifier) received a Query Message sent from the client (controller) without errors,
the function code in the Query Message is copied into the Function in a Response Message. When a server
(servo amplifier) received a Query Message with an error, the server returns a value obtained by adding
"80h" to the function code value in the Query Message to the client. Judge the occurrence of an error by
checking the function code in the Response Message on the controller side.
Содержание MELSERVO-JE MR-JE-C
Страница 9: ...A 8 MEMO ...
Страница 83: ...MEMO ...