DVP-ES3 Series Programming Manual Explanation 1. This instruction reads and writes Modbus TCP data. The following table lists the names and explanations of S 1 –S 11 . 6-718 Operand Name Description Data Type Remarks S1 Data Exchange Table No. Modbus TCP data exchange table number, range: 1–32 WORD S2 Remote IP address The first two sections of the IP address occupy the first word and the remaining two sections of the IP address occupy the second word. For example, if the IP address is 192.168.1.5, S2=16#C0A8 and S2+1=16#0105. WORD[2] Occupies two consecutive words S3 Station address of remote slave Range: 0–255.
If the setting exceeds the range, the value in the low byte is used automatically. WORD S4 Read function code Range: 16#01, 02, 03, 04, and 17. If the function code is out of range, incoming parameters, including address and data length, are not modified. WORD S5 Read remote communication address 16#0000–16#FFFF WORD S6 Read data length Function code 16#01-02 for reading Bit device, ranging from 1 to 256 Function code 16#03-04 for reading Word device, ranging from 1 to 100 When the setting value is 0 or less than 0, this function is not enabled. If the setting value is bigger than the maximum value, it will be seen as the maximum value. WORD 6 _