Kaiyi — 6.19.2 Explanation of Communication Instructions

Chapter 6 Applied Instruction Additional remark: 1. If the value in S 1 exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If the value in S 2 exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the device specified by S is not sufficient to contain the n pieces of data, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4. If n exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 5.

If the function code specified by S 2 is related to the bit device, the device specified by S has to be the bit device. Otherwise, the operation error occurs, the instruction is not executed, and the error code in SR0 is 16#2003. 6. If the function code specified by S 2 is related to the word device, the device specified by S has to be the word device. Otherwise, the operation error occurs, the instruction is not executed, and the error code in SR0 is 16#2003. 7. If the communication command is 0x05 or 0x06, n does not work. The state or the data is written into one bit device or one word device. 8. If SM96 and SM97 are not ON, the instruction MODRW is not executed. 9.

If the communication timeout occurs, SM104 and SM105 are ON, and SM98 and SM99 are OFF. 10. If the error occurs during the reception of the data, SM102 and SM103 are ON, and SM98 and SM99 are OFF. 11. If the function code specified by S 2 is related to the word device, the device in the external equipment with which the AH500 series PLC communicates has to be the word device. If the function code specified by S 2 is related to the bit device, the device in the external equipment with which the AH500 series PLC communicates has to be the bit device. 12. The flags related to the instruction MODRW:

6-420 Flag Function COM1 COM2 SM209 SM211 The communication protocol of COM1/COM2 changes SM96 SM97 The data is sent through COM1/COM2. SM98 SM99 Waiting to receive the reply through COM1/COM2 SM100 SM101 Reception through COM1/COM2 is complete.