![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831370.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-253
Ver. 1
6.34.12 RIGHT, RIGHTP, LEFT, LEFTP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
RIGHT(P)
LEFT(P)
S
O O O
-
O
-
-
-
O
-
-
-
O O O O
4~6
O
-
-
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
N
O O O
-
O O O
-
O
-
-
O O O O O
Operand
Description
Data Type
S
String
STRING
D
Position to save string extracted in
STRING
N
Number of characters to extract
WORD
[Flag Setting]
Flag
Description
Device Number
Error
If specified string length S exceeds the maximum string size
F110
1) RIGHT
(1) Saves the number of characters (n) starting from the right (end of the string) of the string data saved after
specified device number S, after specified device number D.
(2) If specified number of characters N is “0,” NULL code (h00) will be saved in D.
(3) If specified N value is larger than specified S’s string, all S string will be saved in D, with no error.
2) LEFT
(1) Saves the number of characters (n) starting from the left (start of the string) of the string data saved after
specified device number S, after specified device number D.
(2) If specified number of characters N is “0,” NULL code (h00) will be saved in D.
(3) If specified N value is larger than specified S’s string, all S string will be saved in D, with no error.
RIGHT, LEFT
means RIGHT/LEFT
P S
D
RIGHTP, LEFTP
S
D
N
N
S
S+1
S+2
S+3
S+4
h42 (B)
h44 (D)
h46 (F)
h32 (2)
h41 (H)
h43 (C)
h45 (E)
h31 (1)
b15
b8 b7
b0
"ABCDEF12345"
S+5
h34 (4)
h33 (3)
h00
h35 (5)
5
th
character’s ASCII code
h32 (2)
h34 (4)
h31 (1)
h33 (3)
b15
b8 b7
b0
D
D+1
D+2
h00
h35 (5)
"12345"
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...