329
L E F T P
n
S
D
1
2
M
3
○
FNC
205
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
LEFT D0 D10 K6
X0
n
S
D
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
D10
D11
D12
D13 0000H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
" I LIKE"
D
Operand
Devices
Read Character from the Left of String
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
To read the beginning of characters from the string and store the extracted result into .
D
S
n
When X0 = “ON”, the instruction will be executed as follows:
Upper
8 bits
Lower
8 bits
Upper
8 bits
Lower
8 bits
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