Delta AH500 — 6.22.2 Explanation of Ethernet Instructions

AH500 Programming Manual Additional remark: 1. If the value in S 1 , S 2 , or S exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If n exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 3. If the device specified by S 1 +3 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4. 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. 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 a flag related to the sending of the data is ON, and the corresponding flag related to the connection’s having been closed is not ON, the system will search for the flags which both are ON to execute the instruction. If there are no flags which both are ON, the instruction is not executed. 9. During the connection, if the value in the high word of the remote IP address is 0, 127, or the value larger than 225, the error occurs, and the corresponding error flag is ON, and the error code is 16#6403. 10. During the connection, if the remote machine is disconnected, the error code is 16#6401. If there is a connection timeout, the error code is 16#6402. 11.

If the remote machine is disconnected when the command is sent, the error code is 16#6401. If there is an ACK timeout, the error code is 16#6402. 12. If the function code is incorrect when the command is received, the error code is 16#6404. If the length of the data is incorrect, the error code is 16#6405. If there is a response timeout, the error code is 16#6402. 13. If the remote machine is disconnected when the connection is closed, the error code is 16#6401. If there is a connection timeout, the error code is 16#6402. 14. If users declare the operand S 1 in ISPSoft, the data type will be ARRAY [4] of WORD/INT. 15.

When executing this instruction, if the network cable is not connected, SM1100 will be ON and the error code is 16#600D. 6-522