Converting Character String To 32-Bit Binary Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Converting character string to 32-bit binary data

DVAL(P)(_U)
These instructions convert the character string in the device numbers specified by (s) and later to 32-bit binary data, and store
the number of digits in the device specified by (d1) and the binary data in the device specified by (d2).
Ladder diagram
(s)
(d1) (d2)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Character string to be converted to binary data,
or head device for storing the character string.
(d1)
DVAL(P)
Head device for storing the number of digits of
the binary data after conversion
DVAL(P)_U
(d2)
DVAL(P)
Head device for storing the binary data after
conversion
DVAL(P)_U
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s)
(d1)
(d2)
*1 T, ST, C cannot be used.
Structured text
ENO:=DVAL(EN,s,d1,d2);
ENO:=DVALP(EN,s,d1,d2);
Range
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
*1
ENO:=DVAL_U(EN,s,d1,d2);
ENO:=DVALP_U(EN,s,d1,d2);
Data type
Character string
16-bit signed binary
16-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
6.5 Data Conversion Instructions
Data type (label)
ANYSTRING_SINGLE
ANY16_S_ARRAY
ANY16_U_ARRAY
ANY32_S
ANY32_U
Constant
Others
K, H
E
$
6 BASIC INSTRUCTIONS
279
6

Advertisement

Table of Contents
loading

Table of Contents