Delta Electronics — 6.19.2 Explanation of Communication Instructions

Chapter 6 Applied Instructions The following table lists the operands for the MODRW instruction. ASCII mode You do not need to convert the ASCII codes, and they are all expressed in 16# values.  AS sends the communication command: “ : 01 0F 0500 0010 02 D2 04 03 CR LF”  AS receives the communication command: “ : 01 0F A0 00 00 10 40 CR LF” RTU mode  AS sends the communication command: “01 0F 05 00 00 10 02 D2 04 EA 43”  AS receives the communication command: “01 0F A0 00 00 10 76 07” If the format is correct, SM100 is ON. 6_ 3. After receiving the data sent back from the DVP-ES2, the PLC confirms the data format sent back from the DVP-ES2 and determines if it is correct.

If no error occurs in the format, the corresponding special flags SM100 are ON; if not SM102 is ON. 4. Since this function code writes data, the operand n is ignored. 6-559 Operand Description Device S1 Unit address 1 S2 Function code 16#000F S3 Device address of Y0 16#0500 S Registers Y0–Y17 for reading and writing the data D10.0 n Data length 16 Device Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 State ON ON OFF ON OFF OFF ON OFF Value D 2 Device Y17 Y16 Y15 Y14 Y13 Y12 Y11 Y10 State OFF OFF OFF OFF OFF ON OFF OFF Value 0 4