M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
RIGHT, RIGHTP, LEFT, LEFTP: Extracting character string data from the right, extracting character string
data from the left
Setting
Bit devices
data
X
Y
M
L
F
S
D
n
○
○
○
○
○
[Instruction symbol] [Execution condition]
RIGHT, LEFT
RIGHTP, LEFTP
Setting data
Setting data
Character string or the first number of the device where the character string is
S
stored.
The first number of the device where the character string consisting of n characters
D
starting from the right or left of (S) is stored.
n
Number of characters to be extracted
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
○
○
○
Command
Command
Meaning
Word devices
Constant
D
R/ZR W SW SD
Z
K
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
P
345
Digit
Pointer
designa-
tion
H
$
P
○
○
○
indicates the signs "RIGHT/LEFT".
S
D
n
S
D
n
Data type
Character string
BIN 16 bits
IB-1501667-B
Index
○