EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Converting Decimal String Data to 32-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...
460
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
Converting decimal string data to 32-bit binary data
DVAL(P)(_U)
These instructions convert character strings to 32-bit binary data.
Execution condition
Setting data
Description, range, data type
Applicable devices
Ladder ST
ENO:=DVAL(EN,s,d1,d2);
ENO:=DVALP(EN,s,d1,d2);
ENO:=DVAL_U(EN,s,d1,d2);
ENO:=DVALP_U(EN,s,d1,d2);
FBD/LD
Instruction Execution condition
DVAL
DVAL_U
DVALP
DVALP_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) DVAL(P) Start device for storing the number of binary
digits after conversion
16-bit signed binary ANY16_S_ARRAY
(Number of elements: 2)
DVAL(P)_U 16-bit unsigned binary ANY16_U_ARRAY
(Number of elements: 2)
(d2) DVAL(P) Start device for storing the converted binary
data
32-bit signed binary ANY32_S
DVAL(P)_U 32-bit unsigned binary ANY32_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