Delta Electronics — 6.19.2 Explanation of Communication Instructions

Chapter 6 Applied Instructions Symbol S 1 : Unit address S 2 : Function code 6_ S 3 : Device address S : Register for reading/writing the data n : Data length Explanation 1. The operand S 1 must be between 0–254; 0 is the broadcasting mode. 2. S 2 is the function code. The following table shows an example.

6-547 API Instruction code Operand Function 1808 MODRW S1, S2, S3, S, n Reading and Writing Modbus data Device X Y M S T C HC D FR SM SR E K 16# “$” F S1     S2     S3     S  n     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1    S2    S3    S     n    Pulse instruction 16-bit instruction 32-bit instruction - AS - Function Data Description Devices that support devices for slaves code length 01 PLC reads the data from several bit devices. 1-1600 X, Y, M, SM, S, T, C, HC 02 PLC reads the data from several bit devices. 1-1600 X, Y, M, SM, S, T, C, HC 03 PLC reads the data from several word devices. 1-100 X, Y, SR, D, T, C, HC, E