Delta Electronics — 6.19.2 Explanation of Communication Instructions

Chapter 6 Applied Instructions Example 1 1. Function code 01 (16#01): the PLC reads the data from several bit devices that are not discrete input devices (16 pieces of data is read in this example). For function code 02, the operation is the same as for function code 01. AS Series CPU module is connected to the DVP-ES2 Series PLC. When SM96 and X0.0 are on, the AS Series CPU sends and receives the Y0–Y17 commands from the DVP-ES2. When the address of Y0 is 16#0500, the states of Y0–Y17 in DVP-ES2 are listed in the following table. 6_ The following table lists the operands for the MODRW instruction.

6-551 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 Operand Description Device S1 Unit address 16#0001 S2 Function code 16#0001 S3 Device address 16#0500 S Register for reading and writing the data D10.0 n Data length 16