Delta AS Series Programming Manual page 1052

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
If the data in S is ABCDEF12345 and n is 5, the instruction retrieves five characters in the string in S from the right.
The conversion result is as follows.
ABCDE F12345
_6
Example
b15
D0
16#42(B)
D1
16#
16#
D2
16#48( H)
D3
D4
6 - 7 7 2
b15
Second A SCII code
S
F our th ASCII code
S
+1
n-1
A SCII c ode from the last
t h
n-3
A SCII c ode from the last
t h
Second ASC II code from the last
n-1
A SCII c ode from the last
t h
D
n-3
t h
A SCII c ode from the last
D
+1
Second ASC II code from the last
b15
b8
S
16#42(B)
S
+1
16#
44(D)
S
+2
16#
46(F )
S
+3
16#
32(2)
S
+4
16#
34(4)
16#
00
S
+5
b8
b7
b0
16#41( A)
44(D)
16#43( C)
46(F )
16#
45(E)
16#47( G)
16#
00
b8
b7
F irst ASCII code
T hi rd AS CII c ode
n
t h
ASCII code fr om the las t
n-2
t h
A SCII c ode from the last
T hi rd AS CII c ode from the l as t
F irst ASC II code from the last
16#00
n
t h
ASCII code fr om the las t
n-2
A SCII c ode from the last
t h
T hi rd AS CII c ode from the l as t
F irst ASC II code from the last
16#00
b7
b0
b15
16#41(A)
16#
43(C)
16#
45(E)
16#
31(1)
T he fifth charac ter from the last
16#
33(3)
16#
35(5)
b15
b8
b7
16#
46(F )
16#
48(H)
16#
T he fourth char ac ter from the last
b0
b8
b7
16#
32(2)
16#31(1)
16#
34(4)
16#
33(3)
16#00
16#
35(5)
b0
D10
16#45( E)
D11
16#
47(G)
00
D12
b0
D
D
+1
D
+2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents