Wiring Diagram

Tterminal Ddefinition
| Terminal identification | Terminal definition | Instructions | Terminal identification | Terminal definition | Instructions |
| A0 | TX | RS232 transmit terminal | B0 | RX | RS232 receive terminal |
| A1 | GND | RS232 signal ground | B1 | GND | RS232 signal ground |
| A2 | A+ | RS485 Transmit+ | B2 | B- | RS485 Transmit- |
| A3 | TX+ | RS422 Transmit+ | B3 | TX- | RS422 Transmit- |
| A4 | RX+ | RS422 Receive+ | B4 | RX- | RS422 Receive - |
| A5 | CF+ | Reserved | B5 | CF- | Reserved |
| A6 | NC | Empty terminal | B6 | NC | Empty terminal |
| A7 | NC | Empty terminal | B7 | NC | Empty terminal |
| A8 | NC | Empty terminal | B8 | NC | Empty terminal |
Configuration Pparameter Ddefinition
| Parameter Name | Description | Value range | Instructions |
| Communication Mode | Communication mode | 0 | NoSelect: No selection |
| 1 | Modbus RTU Master: RTU master station mode | ||
| 2 | Modbus RTU Slave: RTU slave station mode | ||
| 3 | Modbus ASCII Master: ASCII master station mode | ||
| 4 | Modbus ASCII Slave: ASCII slave station mode | ||
| 5 | FP_Request: freeport request mode | ||
| 6 | FP_Input_Output: freeport input/output mode | ||
| 7 | FP_Input: freeport input mode | ||
| 8 | FP_Output: freeport output mode | ||
| 9 | SetPDOLength32Bytes | ||
| 10 | SetPDOLength64Bytes | ||
| 11 | SetPDOLength128Bytes | ||
| 12 | SetPDOLength255Bytes | ||
| Baud Rate | Serial port baud rate | 0 | 1200 bps |
| 1 | 2400 bps | ||
| 2 | 4800 bps | ||
| 3 | 9600 bps | ||
| 4 | 19200 bps | ||
| 5 | 38400 bps | ||
| 6 | 57600 bps | ||
| 7 | 115200 bps | ||
| Stop Bit | Stop bit | 0 | 1 Bit |
| 1 | 2 Bits | ||
| Word Format | Word format | 0 | 8 Bits |
| 1 | 7 Bits | ||
| Parity | Parity bit | 0 | Parity None |
| 1 | Parity Odd | ||
| 2 | Parity Even | ||
| Control Mode | Control and Status Mode | 0 | Disable: control and status disabled |
| 1 | Level: control and status enabled - high level triggered | ||
| 2 | Rising Edge: control and status enabled - rising edge triggered | ||
| Node Output Mode | Node output mode | 0 | Poll: polling |
| 1 | Change Trigger | ||
| Communication Error Behavior | Communication error behavior | 0 | Clear |
| 1 | Hold | ||
| Respond Timeout | Response time | 5~3000 | Unit: ms, default 50 |
| Poll Delay | Polling delay | 5~3000 | Unit: ms, default 10 |
| Slave ID | Modbus slave station number | 1~247 | Valid in slave station mode, default is 1 |
| Slave Respond Delay | Slave station response delay | 0~3000 | Unit: ms, default 50 |
| Frame Interval | Frame interval | 0 | 1.5T |
| 1 | 3.5T | ||
| 2 | 5T | ||
| 3 | 10T | ||
| 4 | 20T | ||
| 5 | 50T | ||
| 6 | 100T | ||
| 7 | 200T | ||
| Node_1_Param_01 | Node 1 Parameter 1 | 0~FFFFFFFF | The default value is 0. For details, see Node Code Parameters |
| Node_1_Param_02 | Node 1 Parameter 2 | 0~FFFFFFFF | The default value is 0. For details, see Node Code Parameters |
| … | … | … | … |
| Node_16_Param_01 | Node 16 Parameter 1 | 0~FFFFFFFF | The default value is 0. For details, see Node Code Parameters |
| Node_16_Param_02 | Node 16 Parameter 2 | 0~FFFFFFFF | The default value is 0. For details, see Node Code Parameters |
Node Code Parameter
Modbus Master Station Function
In Modbus master mode, parameter 1 (Param_01) consists of a 2-byte start address parameter and a 2-byte node code parameter, and parameter 2 (Param_02) consists of a 2-bit byte exchange parameter and a 1-byte slave station number parameter.| Param_01 | |||
| BIT31~BIT16 | BIT15~BIT0 | ||
| Start Address | Node Code See Modbus Master Station Node Code | ||
| Param_02 | |||
| BIT31~BIT16 | BIT15~BIT10 | BIT9~BIT8 | BIT7~BIT0 |
| Reserve | See Byte ExchangeExByte Flag | Slave Station Number | |
Note: The start address parameter range is 0000~FFFFH, and the slave station number parameter range is 1~247.
Modbus Mmaster Sstation Ffunction Nnode Ccode
| SubModule grouping | SubModule | SubModule ID(10#) | SubModule ID(16#) |
| Modbus Master Read Coilsi.e., Modbus master reads coils | Read 8 bits | 257 | 0x0101 |
| Read 16 bits | 258 | 0x0102 | |
| Read 24 bits | 259 | 0x0103 | |
| Read 32 bits | 260 | 0x0104 | |
| Read 40 bits | 261 | 0x0105 | |
| Read 48 bits | 262 | 0x0106 | |
| Read 56 bits | 263 | 0x0107 | |
| Read 64 bits | 264 | 0x0108 | |
| Read 72 bits | 265 | 0x0109 | |
| Read 80 bits | 266 | 0x010A | |
| Read 88 bits | 267 | 0x010B | |
| Read 96 bits | 268 | 0x010C | |
| Read 104 bits | 269 | 0x010D | |
| Read 112 bits | 270 | 0x010E | |
| Read 120 bits | 271 | 0x010F | |
| Read 128 bits | 272 | 0x0110 | |
| Modbus Master Read Discretei.e., Modbus master reads discrete inputs | Read 8 bits | 513 | 0x0201 |
| Read 16 bits | 514 | 0x0202 | |
| Read 24 bits | 515 | 0x0203 | |
| Read 32 bits | 516 | 0x0204 | |
| Read 40 bits | 517 | 0x0205 | |
| Read 48 bits | 518 | 0x0206 | |
| Read 56 bits | 519 | 0x0207 | |
| Read 64 bits | 520 | 0x0208 | |
| Read 72 bits | 521 | 0x0209 | |
| Read 80 bits | 522 | 0x020A | |
| Read 88 bits | 523 | 0x020B | |
| Read 96 bits | 524 | 0x020C | |
| Read 104 bits | 525 | 0x020D | |
| Read 112 bits | 526 | 0x020E | |
| Read 120 bits | 527 | 0x020F | |
| Read 128 bits | 528 | 0x0210 | |
| Modbus Master Read Holdi.e., Modbus master reads holding registers | Read 1 Reg | 769 | 0x0301 |
| Read 2 Regs | 770 | 0x0302 | |
| Read 3 Regs | 771 | 0x0303 | |
| Read 4 Regs | 772 | 0x0304 | |
| Read 5 Regs | 773 | 0x0305 | |
| Read 6 Regs | 774 | 0x0306 | |
| Read 7 Regs | 775 | 0x0307 | |
| Read 8 Regs | 776 | 0x0308 | |
| Read 9 Regs | 777 | 0x0309 | |
| Read 10 Regs | 778 | 0x030A | |
| Read 11 Regs | 779 | 0x030B | |
| Read 12 Regs | 780 | 0x030C | |
| Read 13 Regs | 781 | 0x030D | |
| Read 14 Regs | 782 | 0x030E | |
| Read 15 Regs | 783 | 0x030F | |
| Read 16 Regs | 784 | 0x0310 | |
| Modbus Master Read Inputi.e., Modbus master reads input registers | Read 1 Reg | 1025 | 0x0401 |
| Read 2 Regs | 1026 | 0x0402 | |
| Read 3 Regs | 1027 | 0x0403 | |
| Read 4 Regs | 1028 | 0x0404 | |
| Read 5 Regs | 1029 | 0x0405 | |
| Read 6 Regs | 1030 | 0x0406 | |
| Read 7 Regs | 1031 | 0x0407 | |
| Read 8 Regs | 1032 | 0x0408 | |
| Read 9 Regs | 1033 | 0x0409 | |
| Read 10 Regs | 1034 | 0x040A | |
| Read 11 Regs | 1035 | 0x040B | |
| Read 12 Regs | 1036 | 0x040C | |
| Read 13 Regs | 1037 | 0x040D | |
| Read 14 Regs | 1038 | 0x040E | |
| Read 15 Regs | 1039 | 0x040F | |
| Read 16 Regs | 1040 | 0x0410 | |
| Modbus Master Write Coilsi.e., Modbus master writes coils | Write 8 bits | 1281 | 0x0501 |
| Write 16 bits | 1282 | 0x0502 | |
| Write 24 bits | 1283 | 0x0503 | |
| Write 32 bits | 1284 | 0x0504 | |
| Write 40 bits | 1285 | 0x0505 | |
| Write 48 bits | 1286 | 0x0506 | |
| Write 56 bits | 1287 | 0x0507 | |
| Write 64 bits | 1288 | 0x0508 | |
| Write 72 bits | 1289 | 0x0509 | |
| Write 80 bits | 1290 | 0x050A | |
| Write 88 bits | 1291 | 0x050B | |
| Write 96 bits | 1292 | 0x050C | |
| Write 104 bits | 1293 | 0x050D | |
| Write 112 bits | 1294 | 0x050E | |
| Write 120 bits | 1295 | 0x050F | |
| Write 128 bits | 1296 | 0x0510 | |
| Write Single bit | 1535 | 0x05FF | |
| Modbus Master Write Holdi.e., Modbus master writes holding registers | Write 1 Reg | 1537 | 0x0601 |
| Write 2 Regs | 1538 | 0x0602 | |
| Write 3 Regs | 1539 | 0x0603 | |
| Write 4 Regs | 1540 | 0x0604 | |
| Write 5 Regs | 1541 | 0x0605 | |
| Write 6 Regs | 1542 | 0x0606 | |
| Write 7 Regs | 1543 | 0x0607 | |
| Write 8 Regs | 1544 | 0x0608 | |
| Write 9 Regs | 1545 | 0x0609 | |
| Write 10 Regs | 1546 | 0x060A | |
| Write 11 Regs | 1547 | 0x060B | |
| Write 12 Regs | 1548 | 0x060C | |
| Write 13 Regs | 1549 | 0x060D | |
| Write 14 Regs | 1550 | 0x060E | |
| Write 15 Regs | 1551 | 0x060F | |
| Write 16 Regs | 1552 | 0x0610 | |
| Write Single Reg | 1791 | 0x06FF |
Modbus Slave Station Function
In Modbus slave station mode, parameter 1 (Param_01) consists of a 2-byte start address parameter and a 2-byte node code parameter, and parameter 2 (Param_02) consists of a 2-bit byte exchange parameter.
| Param_01 | ||
| BIT31~BIT16 | BIT15~BIT0 | |
| Start Address | Node Code See Modbus Slave Station Node Code | |
| Param_02 | ||
| BIT31~BIT16 | BIT15~BIT2 | BIT1~BIT0 |
| Reserve | See Byte ExchangeExByte Flag | |
Note: The start address parameter range is 0000~FFFFH
Modbus Sslave Sstation Ffunction Nnode Ccode
| SubModule grouping | SubModule | SubModule ID(10#) | SubModule ID(16#) |
| Modbus Slave Read Coilsi.e., Modbus slave reads coils | Read 8 bits | 1793 | 0x0701 |
| Read 16 bits | 1794 | 0x0702 | |
| Read 24 bits | 1795 | 0x0703 | |
| Read 32 bits | 1796 | 0x0704 | |
| Read 40 bits | 1797 | 0x0705 | |
| Read 48 bits | 1798 | 0x0706 | |
| Read 56 bits | 1799 | 0x0707 | |
| Read 64 bits | 1800 | 0x0708 | |
| Read 72 bits | 1801 | 0x0709 | |
| Read 80 bits | 1802 | 0x070A | |
| Read 88 bits | 1803 | 0x070B | |
| Read 96 bits | 1804 | 0x070C | |
| Read 104 bits | 1805 | 0x070D | |
| Read 112 bits | 1806 | 0x070E | |
| Read 120 bits | 1807 | 0x070F | |
| Read 128 bits | 1808 | 0x0710 | |
| Modbus Slave Read Holdi.e., Modbus slave reads holding registers | Read 1 Reg | 2049 | 0x0801 |
| Read 2 Regs | 2050 | 0x0802 | |
| Read 3 Regs | 2051 | 0x0803 | |
| Read 4 Regs | 2052 | 0x0804 | |
| Read 5 Regs | 2053 | 0x0805 | |
| Read 6 Regs | 2054 | 0x0806 | |
| Read 7 Regs | 2055 | 0x0807 | |
| Read 8 Regs | 2056 | 0x0808 | |
| Read 9 Regs | 2057 | 0x0809 | |
| Read 10 Regs | 2058 | 0x080A | |
| Read 11 Regs | 2059 | 0x080B | |
| Read 12 Regs | 2060 | 0x080C | |
| Read 13 Regs | 2061 | 0x080D | |
| Read 14 Regs | 2062 | 0x080E | |
| Read 15 Regs | 2063 | 0x080F | |
| Read 16 Regs | 2064 | 0x0810 | |
| Modbus Slave Write Coilsi.e., Modbus slave writes coils | Write 8 bits | 2305 | 0x0901 |
| Write 16 bits | 2306 | 0x0902 | |
| Write 24 bits | 2307 | 0x0903 | |
| Write 32 bits | 2308 | 0x0904 | |
| Write 40 bits | 2309 | 0x0905 | |
| Write 48 bits | 2310 | 0x0906 | |
| Write 56 bits | 2311 | 0x0907 | |
| Write 64 bits | 2312 | 0x0908 | |
| Write 72 bits | 2313 | 0x0909 | |
| Write 80 bits | 2314 | 0x090A | |
| Write 88 bits | 2315 | 0x090B | |
| Write 96 bits | 2316 | 0x090C | |
| Write 104 bits | 2317 | 0x090D | |
| Write 112 bits | 2318 | 0x090E | |
| Write 120 bits | 2319 | 0x090F | |
| Write 128 bits | 2320 | 0x0910 | |
| Modbus Slave Write Discretei.e., Modbus slave writes discrete input | Write 8 bits | 2561 | 0x0A01 |
| Write 16 bits | 2562 | 0x0A02 | |
| Write 24 bits | 2563 | 0x0A03 | |
| Write 32 bits | 2564 | 0x0A04 | |
| Write 40 bits | 2565 | 0x0A05 | |
| Write 48 bits | 2566 | 0x0A06 | |
| Write 56 bits | 2567 | 0x0A07 | |
| Write 64 bits | 2568 | 0x0A08 | |
| Write 72 bits | 2569 | 0x0A09 | |
| Write 80 bits | 2570 | 0x0A0A | |
| Write 88 bits | 2571 | 0x0A0B | |
| Write 96 bits | 2572 | 0x0A0C | |
| Write 104 bits | 2573 | 0x0A0D | |
| Write 112 bits | 2574 | 0x0A0E | |
| Write 120 bits | 2575 | 0x0A0F | |
| Write 128 bits | 2576 | 0x0A10 | |
| Modbus Slave Write Holdi.e., Modbus slave writes holding register | Write 1 Reg | 2817 | 0x0B01 |
| Write 2 Regs | 2818 | 0x0B02 | |
| Write 3 Regs | 2819 | 0x0B03 | |
| Write 4 Regs | 2820 | 0x0B04 | |
| Write 5 Regs | 2821 | 0x0B05 | |
| Write 6 Regs | 2822 | 0x0B06 | |
| Write 7 Regs | 2823 | 0x0B07 | |
| Write 8 Regs | 2824 | 0x0B08 | |
| Write 9 Regs | 2825 | 0x0B09 | |
| Write 10 Regs | 2826 | 0x0B0A | |
| Write 11 Regs | 2827 | 0x0B0B | |
| Write 12 Regs | 2828 | 0x0B0C | |
| Write 13 Regs | 2829 | 0x0B0D | |
| Write 14 Regs | 2830 | 0x0B0E | |
| Write 15 Regs | 2831 | 0x0B0F | |
| Write 16 Regs | 2832 | 0x0B10 | |
| Modbus Slave Write Inputi.e., Modbus slave writes input register | Write 1 Reg | 3073 | 0x0C01 |
| Write 2 Regs | 3074 | 0x0C02 | |
| Write 3 Regs | 3075 | 0x0C03 | |
| Write 4 Regs | 3076 | 0x0C04 | |
| Write 5 Regs | 3077 | 0x0C05 | |
| Write 6 Regs | 3078 | 0x0C06 | |
| Write 7 Regs | 3079 | 0x0C07 | |
| Write 8 Regs | 3080 | 0x0C08 | |
| Write 9 Regs | 3081 | 0x0C09 | |
| Write 10 Regs | 3082 | 0x0C0A | |
| Write 11 Regs | 3083 | 0x0C0B | |
| Write 12 Regs | 3084 | 0x0C0C | |
| Write 13 Regs | 3085 | 0x0C0D | |
| Write 14 Regs | 3086 | 0x0C0E | |
| Write 15 Regs | 3087 | 0x0C0F | |
| Write 16 Regs | 3088 | 0x0C10 |
Byte Eexchange
| Byte number | Function | Length |
| 0 | Do not exchange | 2 Bits |
| 1 | 2Bytes Exchange | 2 Bits |
| 2 | 4Bytes Register Exchange | 2 Bits |
| 3 | 4Bytes Big-Little-Endian Exchange | 2 Bits |
Freeport Function
In Freeport mode, parameter 1 (Param_01) is a 2-byte node code parameter.
| Param_01 | |
| BIT31~BIT16 | BIT15~BIT0 |
| Reserve | Node Code See Freeport Node Code |
| Param_02 | |
| BIT31~BIT0 | |
| Reserve | |
Freeport Ffunction Nnode Ccode
| SubModule grouping | SubModule | SubModule ID(10#) | SubModule ID(16#) |
| Freeport Input | Input 1 byte | 3329 | 0x0D01 |
| Input 2 bytes | 3330 | 0x0D02 | |
| Input 4 bytes | 3331 | 0x0D03 | |
| Input 8 bytes | 3332 | 0x0D04 | |
| Input 16 bytes | 3333 | 0x0D05 | |
| Input 32 bytes | 3334 | 0x0D06 | |
| Input 64 bytes | 3335 | 0x0D07 | |
| Input 128 bytes | 3336 | 0x0D08 | |
| Input 160 bytes | 3337 | 0x0D09 | |
| Input 192 bytes | 3338 | 0x0D0A | |
| Input 224 bytes | 3339 | 0x0D0B | |
| Input 255 bytes | 3340 | 0x0D0C | |
| Freeport Output | Output 1 byte | 3585 | 0x0E01 |
| Output 2 bytes | 3586 | 0x0E02 | |
| Output 4 bytes | 3587 | 0x0E03 | |
| Output 8 bytes | 3588 | 0x0E04 | |
| Output 16 bytes | 3589 | 0x0E05 | |
| Output 32 bytes | 3590 | 0x0E06 | |
| Output 64 bytes | 3591 | 0x0E07 | |
| Output 128 bytes | 3592 | 0x0E08 | |
| Output 160 bytes | 3593 | 0x0E09 | |
| Output 192 bytes | 3594 | 0x0E0A | |
| Output 224 bytes | 3595 | 0x0E0B | |
| Output 255 bytes | 3596 | 0x0E0C | |
| Freeport Parity | CRC8 | 3841 | 0x0F01 |
| CRC16 | 3842 | 0x0F02 | |
| XOR | 3843 | 0x0F03 | |
| SUM8 | 3844 | 0x0F04 | |
| LRC | 3845 | 0x0F05 |
Control and Status Node Code
When the configuration parameter Control Mode is set to disable, the control and status node code does not need to be configured; When the configuration parameter Control Mode is set to Level or Rising Edge, the node code must be configured in node 1 parameter 1 (Node\_1\_Param\_01).
The node code is shown in the following table:
| SubModule grouping | SubModule | SubModule ID(10#) | SubModule ID(16#) | Remarks |
| Control&Status | 1 Node | 1 | 0x0001 | Configure in Master Mode |
| 2 Node | 2 | 0x0002 | ||
| 3 Node | 3 | 0x0003 | ||
| 4 Node | 4 | 0x0004 | ||
| 5 Node | 5 | 0x0005 | ||
| 6 Node | 6 | 0x0006 | ||
| 7 Node | 7 | 0x0007 | ||
| 8 Node | 8 | 0x0008 | ||
| 9 Node | 9 | 0x0009 | ||
| 10 Node | 10 | 0x000A | ||
| 11 Node | 11 | 0x000B | ||
| 12 Node | 12 | 0x000C | ||
| 13 Node | 13 | 0x000D | ||
| 14 Node | 14 | 0x000E | ||
| 15 Node | 15 | 0x000F | ||
| Freeport Req | 32 | 0x0020 | Configure in Freeport Mode | |
| Freeport Input_Output | 33 | 0x0021 | ||
| Freeport Input | 34 | 0x0022 | ||
| Freeport Output | 35 | 0x0023 | ||
| Modbus Slave | 48 | 0x0030 | Configure in Slave Mode |
Process Ddata
The module factory default is SRR6001-32Bytes, and the uplink and downlink data lengths are 32Bytes each. When the PDO data volume generated by the module's communication node parameter configuration reaches a certain range (either the uplink data size or the downlink data size reaches the range limit), the coupler module will alarm 0x5002. Manually switch the corresponding PDO data length, re-power on and scan the module. For detailed steps, see Example of Switching PDO Data Length. (Users are advised to estimate PDO data length in advance and switch accordingly)
Module PDO length range and model matching table:
| Module PDO length range and model matching table | ||
| Module model | Uplink data length (Bytes) | Downlink data length (Bytes) |
| SRR6001-32Bytes | 0~32 | 0~32 |
| SRR6001-64Bytes | 33~64 | 33~64 |
| SRR6001-128Bytes | 65~128 | 65~128 |
| SRR6001-255Bytes | 129~255 | 129~255 |
The following uses model SRR6001-32Bytes as an example to explain configuration parameters.
When the configuration parameter Control Mode is set to disable, the uplink and downlink process data are shown in the table below.
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Input data | Serial communication module input data | 32 bytes |
| 2 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Output data | Serial communication module output data | 32 bytes |
| 2 | Output data | ||
| … | … | ||
| 32 | Output data | ||
When the configuration parameter Control Mode is set to Level or Rising Edge, the uplink and downlink process data are shown in the following table.
Modbus master station process data
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Status word | Bit0: Idle status | 1 byte |
| Bit1: busy status, indicating data transmission in progress | |||
| Bit2: completion status, indicating data transmission finished | |||
| 2 | Alarm code | See Alarm Code | 1 byte |
| 3 | Input data | Serial communication module input data | The last 30 bytes |
| 4 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | When the configuration parameter Control Mode is set to Level, set 1 to transmit data | 1 byte |
| When the configuration parameter Control Mode is set to Rising Edge, transmit data on 0->1 | |||
| 2 | Output data | Serial communication module output data | The last 31 bytes |
| 3 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Note: The process data in the above table is configured for 1 node in Level or Rising Edge mode. If two nodes are configured, byte numbers 1 and 2 of the uplink data represent the status bits and alarm codes of node 1, and byte numbers 3 and 4 represent those of node 2, with the remaining bytes being data bits. For downlink data, byte number 1 is the control bit for node 1, byte number 2 is the control bit for node 2, and the remaining bytes are data bits. A maximum of 15 nodes can be configured.
Modbus Slave Station Process Data
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Alarm code | See Alarm Code | 1 byte |
| 2 | Input data | Serial communication module input data | The last 31 bytes |
| 3 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | Bit0: Alarm code clear | 1 byte |
| 2 | Output data | Serial communication module output data | The last 31 bytes |
| 3 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Freeport_Request Process Data
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Status word | Bit0: Idle status | 1 byte |
| Bit1: busy status, indicating data transmission in progress | |||
| Bit2: completion status, indicating data transmission finished | |||
| 2 | Alarm code | Bit0: Received data length error | 1 byte |
| Bit1: Check error | |||
| Bit2: Timeout error | |||
| 3 | Receive data length | 0~255 | 1 byte |
| 4~5 | Receive abnormal count | 0~65535 | 2 bytes |
| 6~7 | Receive data count | 0~65535 | 2 bytes |
| 8 | Input data | Serial communication module input data | The last 25 bytes |
| 9 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | Bit0: Enable | 1 byte |
| Bit1: Status word clear | |||
| Bit2: Clear received data | |||
| 2 | Transmit data length | 0~255 | 1 byte |
| 3 | Count clear | Bit0: Clear abnormal counting received | 1 byte |
| Bit1: Clear data counting received | |||
| Bit2: Clear data length received | |||
| 4 | Clear error code | Bit0: Clear abnormal length | 1 byte |
| Bit1: Clear check error | |||
| Bit2: Clear timeout error | |||
| 5 | Output data | Serial communication module output data | The last 28 bytes |
| 6 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Freeport_Input Process Data
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Alarm code | Bit0: Received data length error | 1 byte |
| Bit1: Check error | |||
| 2 | Receive data length | 0~255 | 1 byte |
| 3~4 | Receive abnormal count | 0~65535 | 2 bytes |
| 5~6 | Receive data count | 0~65535 | 2 bytes |
| 7 | Input data | Serial communication module input data | The last 26 bytes |
| 8 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | Bit0: Enable | 1 byte |
| Bit1: Status word clear | |||
| Bit2: Clear received data | |||
| 2 | Count clear | Bit0: Clear abnormal counting received | 1 byte |
| Bit1: Clear data counting received | |||
| Bit2: Clear data length received | |||
| 3 | Clear error code | Bit0: Clear length error received | 1 byte |
| Bit1: Clear check error | |||
| 4 | Output data | Serial communication module output data | The last 29 bytes |
| 5 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Freeport_Output Process Data
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | Bit0: Enable | 1 byte |
| 2 | Transmit data length | 0~255 | 1 byte |
| 3 | Output data | Serial communication module output data | The last 30 bytes |
| 4 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Freeport_Input_Output Process Data
| Uplink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Alarm code | Bit0: Received data length error | 1 byte |
| Bit1: Check error | |||
| 2 | Receive data length | 0~255 | 1 byte |
| 3~4 | Receive abnormal count | 0~65535 | 2 bytes |
| 5~6 | Receive data count | 0~65535 | 2 bytes |
| 7 | Input data | Serial communication module input data | The last 26 bytes |
| 8 | Input data | ||
| … | … | ||
| 32 | Input data | ||
| Downlink data (32 bytes) | |||
| Byte number | Function | Meaning | Address range |
| 1 | Control word | Bit0: Enable | 1 byte |
| Bit1: Status word clear | |||
| Bit2: Clear received data | |||
| 2 | Transmit data length | 0~255 | 1 byte |
| 3 | Count clear | Bit0: Clear abnormal counting received | 1 byte |
| Bit1: Clear data counting received | |||
| Bit2: Clear data length received | |||
| 4 | Clear error code | Bit0: Clear length error received | 1 byte |
| Bit1: Clear check error | |||
| 5 | Output data | Serial communication module output data | The last 28 bytes |
| 6 | Output data | ||
| … | … | ||
| 32 | Output data | ||
Modbus alarm code
| Fault code | Notes |
| 0x00 | No error |
| 0x01 | Slave device address error |
| 0x02 | Function code error |
| 0x03 | CRC check error |
| 0x04 | Response byte count error |
| 0x05 | Coil register data error |
| 0x06 | Holding register data error |
| 0x07 | Illegal data address |
| 0x08 | Slave device failure |
| 0x09 | LRC check error |
| 0x0C | Data length error |
| 0x0D | Data conversion error |
| 0x0E | ASCII frame error |
| 0x0F | Response timeout |