Extracting String Data From The Left - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Extracting string data from the left

LEFT(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions extract (n) characters of data from the left of the string data, and store the extracted data in the device
number specified by (d) and later.
Ladder
(s)
(d)
(n)
*1
FBD/LD
EN
ENO
s
d
n
*1 The LEFT instruction does not support the ST and FBD/LD. Use the standard function, LEFT.
Page 1946 LEFT(_E), RIGHT(_E)
■Execution condition
Instruction
LEFT
LEFTP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Character string or the start device containing the character
string
(d)
Start device for storing (n) characters of character string
extracted from the left of the data in the device specified by (s)
(n)
Number of characters to be extracted
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
(n)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=LEFTP(EN,s,n,d);
Range
Data type
String
String
1 to 16383
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
7
Data type (label)
ANYSTRING_SINGLE
ANYSTRING_SINGLE
ANY16
BOOL
BOOL
Constant
Others
K, H E
$
691

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents