328
R G HT
I
P
n
S
D
1
2
M
3
○
FNC
204
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
n
S : the head ID of the source character string
D : the head ID of the storage block for the read string
n : the length of the characters to be read
RIGHT D0 D10 K5
X0
To read the last of characters from the string and store the extracted result into .
D
n
S
D
S
n
The instruction will add the end of string at the tail of result automatically. If the is equal to 0 or an even
number, the end of string “0000H” will be added; if the is an odd number, the end of string is “00H”.
When the string from which does not have the end of string code “00H” or the is negative or the is
exceeding the string from could provide with, the PLC will regard that as an operational error.
S
n n
S
n
D
n
Operand
Devices
Read Character from the Right of String
D0
D1
D2
D3
00H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
4FH
O
( )
49H
I
( )47H(G)
52H R( )
56H(V)
D4
D5
D6
" I LIKE VIGOR"
X0=ON
S
D
D10
D11
D12
00H
4FH
O
( )
49H
I
( )
47H(G)
52H R( )
56H(V)
" VIGOR"
Upper
8 bits
Lower
8 bits
Upper
8 bits
Lower
8 bits
When X0 = “ON”, the instruction will be executed as follows: