8 MODBUS RTU Master-Slave Communication ....................................8-1
8.1 Configuration.......................................................................................8-2
8.1.1 Setting Communication Conditions.................................................. 8-2
8.2 List of MODBUS RTU Supported Commands ....................................8-3
8.2.1 List of MODBUS Function Codes .................................................... 8-3
8.3 MODBUS RTU Master Communication (RECV) ................................8-4
8.3.1 Read Data from an External Device ................................................ 8-4
8.3.2 RECV (MEWTOCOL Master / MODBUS Master)............................ 8-6
8.3.3 RECV (MODBUS Master: Function Code Specification) ................. 8-14
8.4 MODBUS RTU Master Communication (SEND) ................................8-21
8.4.1 Write Data into an External Device .................................................. 8-21
8.4.2 SEND (MEWTOCOL Master / MODBUS Master)............................ 8-23
8.4.3 SEND (MODBUS Master: Function Code Specification) ................. 8-31
9 General-Purpose Communication.......................................................9-1
9.1 Operation of General-Purpose Communication..................................9-2
9.1.1 Read Data from an External Device ................................................ 9-2
9.1.2 Write Data into an External Device .................................................. 9-2
9.2 Configuration.......................................................................................9-3
9.2.1 Setting Communication Conditions.................................................. 9-3
9.3 Sending Operation..............................................................................9-4
9.3.1 Overview of Sending Operation ....................................................... 9-4
9.3.2 Contents of Sent Data...................................................................... 9-6
9.3.3 GPTRNS / pGPSEND /GPSEND (General-Purpose
Communication Send Instruction)..................................................... 9-6
9.3.4 Precautions on Sending Data .......................................................... 9-16
9.4 Receiving Operation ...........................................................................9-18
9.4.1 Overview of Receiving Operation .................................................... 9-18
9.4.2 Contents of Received Data .............................................................. 9-20
9.4.3 Precautions on Receiving Data........................................................ 9-20
9.4.4 Operations of the "Reception Done Copy" Flag and Multiplex
Reception.......................................................................................... 9-21
9.4.5 GPRECV (General-Purpose Communication Receive Instruction) . 9-21
9.5 Sending/Receiving Flag Operation .....................................................9-28
9.5.1 No Header (Start Code), Terminator (End Code) "CR":................... 9-28
9.5.2 Start Code "STX", End Code "ETX":................................................ 9-29
10 Troubleshooting..................................................................................10-1
10.1 Self-diagnostic Function....................................................................10-2
10.1.1 CPU Unit’s Operation Monitor LED................................................ 10-2
10.1.2 Operation at the Time of Error ....................................................... 10-2
10.1.3 Serial Communication Unit's Operation Monitor LED .................... 10-3
10.2 What to Do If an Error Occurs (For Each Communication Mode).....10-4
10.2.1 When Using PLC Link Function ..................................................... 10-4
10.2.2 When Using MEWTOCOL/ MEWTOCOL7/ MODBUS RTU
Function ............................................................................................ 10-4
10.2.3 When Using General-purpose Communication Function............... 10-5
10.3 Checking Status with PMGET Instruction.........................................10-7
10.3.1 Specifications of PMGET Instruction ............................................. 10-7
WUME-FP7COM-07
ix