Delta AH500 — 6.22.2 Explanation of Ethernet Instructions

AH500 Programming Manual Example 2: Additional remark: 1. If the string in S does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E. 2. In the string in S , except for the code representing the decimal point, the other binary codes have to be within the range between 16#30 and 16#39. If the other binary codes are not within the range between 16#30 and 16#39, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the fourth character, the eighth character, and the twelfth character in the string in S are not 16#2E, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4.

If the number of decimals in the string in S is not equal to 3, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 5. If the value converted from the characters in any section of the IP address of the string type in S is larger than 255, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6. If the number of characters in any section of the IP address of the string type in S is larger than 3, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 7. If users declare the operand S in ISPSoft, the data type will be ARRAY [8] of WORD/INT. 6-526