Delta Electronics AH — 3.23 String Processing Instructions

AH Motion Controller – Standard Instructions Manual If the data in S is ABCDEF12345 and n is 5, five characters in the string in S are retrieved from the right. The conversion result is as follows. b15 b0 b7 b8 b15 b0 b7 b8 S D ABCDE F12345 +1 S +2 S +2 D +1 D +3 S +4 S +5 S The fifth character from the last Example: _3 D0 b15 b0 b7 b8 b15 b0 b7 b8 D10 D1 D11 D12 D2 D3 The fourth character from the last D4 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. If n is less than 0, or if n is larger than the length of the string in S, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3.

If D is not sufficient to contain n characters, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3-532 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#00 16#35(5) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#00 16#35(5) 16#42(B) 16#41(A) The four 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#48(H) 16#47(G) 16#00 16#46(F) 16#45(E) 16#48(H) 16#47(G) 16#00