Converting Decimal String Data To 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Converting decimal string data to 32-bit binary data

DVAL(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions convert character strings to 32-bit binary data.
Ladder
(s)
FBD/LD
EN
ENO
s
d1
d2
■Execution condition
Instruction
DVAL
DVAL_U
DVALP
DVALP_U
Setting data
■Description, range, data type
Operand
(s)
(d1)
DVAL(P)
DVAL(P)_U
(d2)
DVAL(P)
DVAL(P)_U
EN
ENO
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d1)
(d2)
6 BASIC INSTRUCTIONS
460
6.6 Data Conversion Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d1) (d2)
Execution condition
Description
String data to be converted to binary data or
the start device where the string data is stored
Start device for storing the number of binary
digits after conversion
Start device for storing the converted binary
data
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=DVAL(EN,s,d1,d2);
ENO:=DVALP(EN,s,d1,d2);
Range
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
ENO:=DVAL_U(EN,s,d1,d2);
ENO:=DVALP_U(EN,s,d1,d2);
Data type
Data type (label)
String
ANYSTRING_SINGLE
16-bit signed binary
ANY16_S_ARRAY
(Number of elements: 2)
16-bit unsigned binary
ANY16_U_ARRAY
(Number of elements: 2)
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents