EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Converting Decimal String Data to 16-Bit Binary Data

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
457
6
Converting decimal string data to 16-bit binary data
VAL(P)(_U)
These instructions convert character strings to 16-bit binary data.
Execution condition
Setting data
Description, range, data type
Applicable devices
Ladder ST
ENO:=VAL(EN,s,d1,d2);
ENO:=VALP(EN,s,d1,d2);
ENO:=VAL_U(EN,s,d1,d2);
ENO:=VALP_U(EN,s,d1,d2);
FBD/LD
Instruction Execution condition
VAL
VAL_U
VALP
VALP_U
Operand Description Range Data type Data type (label)
(s) String data to be converted to binary data or
the start device where the string data is stored
String ANYSTRING_SINGLE
(d1) VAL(P) Start device for storing the number of binary
digits after conversion
16-bit signed binary ANY16_S_ARRAY
(Number of elements: 2)
VAL(P)_U 16-bit unsigned binary ANY16_U_ARRAY
(Number of elements: 2)
(d2) VAL(P) Device for storing the binary data after
conversion
16-bit signed binary ANY16_S
VAL(P)_U 16-bit unsigned binary ANY16_U
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s) 
(d1) 
(d2)  
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s) (d1) (d2)
EN ENO
d1
d2
s

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals