Download Print this page

Converting 32-Bit Binary Data To Decimal Ascii - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Converting 32-bit binary data to decimal ASCII

DBINDA(P)(_U)
These instructions convert 32-bit binary data specified by (s) into decimal ASCII codes, and store the converted data in the
device specified by (d) and later.
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
Setting data
■Descriptions, ranges, and data types
Operand
(s)
DBINDA(P)
DBINDA(P)_U
(d)
EN
ENO
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
*1 T, ST, C cannot be used.
Processing details
• These instructions convert 32-bit binary data specified by (s) into decimal ASCII codes, and store the converted data in the
device specified by (d) and later.
(s)+1
high-order 16 bits
BIN32
8 APPLICATION INSTRUCTION
442
8.8 Character String Operation Instruction
(d)
Description
Binary data to be converted into ASCII codes
Head device number storing conversion result
Execution condition
Execution result
Word
T, ST, C, D, W,
SD, SW, R
*1
(s)
Low-order 16 bits
Structured text
ENO:=DBINDA(EN,s,d);
ENO:=DBINDAP(EN,s,d);
Range
-2147483648 to +2147483647
0 to 4294967295
Double word Indirect
U\G
Z
LC
b15
(d)
ASCII code for billions place
(d)+1
ASCII code for ten-millions place
(d)+2
ASCII code for hundred-thousands place
(d)+3
ASCII code for thousands place
(d)+4
ASCII code for tens place
(d)+5
0 or 20H
ENO:=DBINDA_U(EN,s,d);
ENO:=DBINDAP_U(EN,s,d);
Data type
32-bit signed binary
32-bit unsigned binary
Character string
Bit
Bit
Constant
specification
LZ
K, H
b8
b7
ASCII code for hundred-millions place
ASCII code for millions place
ASCII code for ten-thousands place
ASCII code for hundreds place
ASCII code for ones place
When SM701 is off: 0, when SM701 is on: 20H
Data type (label)
ANY32_S
ANY32_U
ANYSTRING_SINGLE
BOOL
BOOL
Others
E
$
b0
ASCII code for sign

Hide quick links:

Advertisement

loading