Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

AH500 Programming Manual Example: Suppose S 1 is the string “ab” and S 2 is the string “c”. After the conditional contact M0 is enabled, the data in D65534 is 16#6261, and the data in D65535 is 16#0063. Additional remark: 1. If S 1 or S 2 is a string, at most 31 characters can be moved. For a string, the number of steps=1+(the number of characters +1)/4 (The value will be rounded up to the nearest whole digit if (the number of characters +1) is not divisible by 4.). Example: For $+“ABCDE” D0 D100, the number of steps= 1 (instruction)+3 (string)+2 (D0)+2 (D100)=8. 2.

If D is not sufficient to contain the string composed of the strings in S 1 and S 2 , the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If S 1 or S 2 overlaps D , the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. 4. If the string in S 1 or S 2 does not end with 16#00, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200E. 6-66 Number of characters 1~3 4~7 8~11 12~15 16~19 20~23 24~27 28~31 Number of steps 2 3 4 5 6 7 8 9