{"id":44883,"date":"2021-05-20T15:31:19","date_gmt":"2021-05-20T07:31:19","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=44883"},"modified":"2025-09-18T09:26:05","modified_gmt":"2025-09-18T01:26:05","slug":"modbus-communication-setup","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/ko\/docs\/modbus-communication-setup\/","title":{"rendered":"[Modbus] Communication Setup"},"content":{"rendered":"
Examples are valid for:
\nTMflow Software version: 2.20 or above.
\nTM Robot Hardware version: All
\nOther specific requirements: None
\nNote that older or newer software versions may have different results.<\/p>\n
You can use Modbus Master Command to read\/write the parameter such as position, pose, etc. in a register and use the parameter to edit the project or monitor the robot.
\nTM robot provides TCP\/RTU communications protocol. The user can adjust according to the actual status. (Refer to chapter 2)
\nTM robot can have both TCP and RTU status. The user can obtain an external device of Modbus or robot register data. Third parties can also use an external device such as IPC, PLC, etc. to be the
\nmaster to send the command to obtain relevant information.<\/p>\n
Note: In this Instruction page, Client is called Master; Server is called Slave.
\nRemark: Modbus table can be downloaded in the bottom of the page.<\/p>\n
On the HMI (human-machine interface) setting page, click on Communication to enter the “Modbus Slave” page<\/p>\n
Modbus TCP communicates via RJ-45. There is only one RJ-45 connector that can be utilized to communicate in the control box. The setting page can check the IP filter and Modbus status.<\/p>\n in Modbus slave page, make sure the parameters of setting and external device are synchronized. if the setting is correct, the user can enable modbus RTU to communicate with the Modbus Slave or Modbus Master.<\/p>\n Modbus RTU communicates via serial port. The setting interface can check the status, baud rate, port number, slave id, etc.<\/p>\n Click the “Project Function”\u00a0 button and select”Modbus Device”<\/p>\n Click Edit (pencil icon) next to the TCP localhost selection , select “Add Setting”<\/p>\n Set the parameters of the TCP device such as:<\/p>\n Press the OK<\/strong> button to save the parameters. The following example will show how to access the X<\/em> Coordinate of the TM robot when editing flow. Users must create a variable for storing the X<\/em> coordinate value of the register. First, user must create a variable for storing the X-coordinate value of the register. In this example, create a float variable type<\/p>\n <\/p>\n In order to make the variable “var_Position_X” automatically obtain the coordinate value of TM Robot in the X direction, configure the Modbus read function as follows :<\/p>\n Add Display Node<\/p>\n Users can see the value through display node and verify whether the value from Modbus colide with the X coordinate of the TM Robot<\/p>\n Play the project and see the result<\/p>\n
<\/a><\/p>\nModbus TCP Architecture<\/h2>\n
Modbus RTU Architecture<\/strong><\/h2>\n
\n<\/a>
<\/a><\/p>\nAdd a TCP Device<\/h3>\n
TCP Device Setting<\/h3>\n
<\/a><\/p>\n\n
<\/a><\/p>\n
<\/p>\nSimple Read Values Example by Modbus Register<\/h1>\n
\nCreate a ‘Set’ node and click on the pencil icon<\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n