Delta AS Series Programming Manual page 1055

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

S
S
+1
ABCDEF 12345
S
+2
S
+3
S
+4
S
+5
Example
When M0 is ON, the instruction retrieves the six characters starting from the character in D100, and stores them in D10.
6
D100
D0
D101
D102
Six th charac ter
D103
D104
Additional remarks
1.
If the operand S is not a string ($) but a device with a string, the string in S can be up to 256 characters(16#00
ending character included). 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, it is processed as 0. If n is greater than the length of the string in S, it is processed as the length
of the string is S.
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.
b15
b8
b7
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)
b15
b8
b7
16#42(B)
16#41( A)
16#
44(D)
16#
43(C)
16#
46(F )
16#
45(E)
16#
48(H)
16#47( G)
16#
00
Cha p ter 6 App l ied Ins truc tio ns
b0
b15
b8
16#
42(B)
16#
44(D)
16#
46(F )
16#
00
Seventh c haracter
b0
b15
16#
42(B)
16#
44(D)
16#
46(F )
b7
b0
16#41( A)
D
+1
16#
43(C)
D
+2
16#
45(E)
D
+3
16#
31(1)
D
b8
b7
b0
D10
16#41( A)
D11
16#
43(C)
D12
16#
45(E)
16#
00
D13
6 - 7 7 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents