Chapter 6 Applied Instructions Example 3 1. Function code 05 (16#05): the PLC writes the state into a bit device. The device is set to ON in this example. 2. The AS Series CPU module is connected to the DVP-ES2 series PLC. D10.0 is ON and Y0 in the DVP-ES2 Series 6_ PLC is also ON. When SM96 and X0.0 are ON, the PLC can set the state of Y0. The following table lists the operands for the MODRW instruction. ASCII mode The numbers below are only for reference. Instead of showing the values in the ASCII codes, here the expressions are shown in 16# values. AS sends the communication command: “ : 01 05 05 00 FF 00 F6 CR LF” AS receives the communication command:
“ : 01 05 05 00 FF 00 F6 CR LF” 6-555 Operand Description Device S1 Unit address 1 S2 Function code 16#0005 S3 Device address 16#0500 S Register for reading and writing the data D10.0 n Data length (not used with this function code) 1