Character String Processing Instructions; Binda, Bindap; Dbinda, Dbindap; Conversion From Bin 16-Bit Data To Decimal Ascii - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

7.11

Character string processing instructions

7.11.1

BINDA, BINDAP

Conversion from BIN 16-bit data to decimal ASCII

DBINDA, DBINDAP

Conversion from BIN 32-bit data to decimal ASCII

7.11.1
BINDA, BINDAP, DBINDA, DBINDAP
BINDA, DBINDA
BINDAP, DBINDAP
: BIN data to be converted to ASCII (BIN 16/32 bits)
S
: Head number of the devices where the conversion result will be stored (character string)
D
Setting
Internal Devices
Data
Bit
S
––
D
Function
BINDA
(1) Converts the individual digit numbers of decimal notation of the BIN 16-bit data designated by
stores the results into the area starting from the device designated by
b15
S
BIN 16-bit data
For example, if -12345 has been designated at
b15
S
1
2
3
4
(2) The BIN data designated at
(3) The operation results stored at
(a) The sign "20
" will be stored if the BIN data is positive, and the sign "2D
H
(b) The sign "20
" will be stored for the leading zeros of effective digits. (Zero suppression is conducted.)
H
0 0 3 2 5
Number of significant digits
20
is set
H
(c) The storage of data at devices specified by
of characters conversion signal).
When SM701 is OFF.....Stores "0"
When SM701 is ON ......Does not change
Command
Command
R, ZR
Word
Bit
b15
ASCII code for ten-thousands place
D
b0
ASCII code for hundreds place
D
+1
+2
D
ASCII code for units place
D
+3
, the following will be stored from
S
b15
31
D
b0
33
D
+1
5
35
D
+2
+3
D
can be in the range from -32768 to 32767.
S
are as follows:
D
+3 differs depending on the ON/OFF status of SM701 (output number
D
BINDA, BINDAP, DBINDA, DBINDAP
High
Basic
performance
indicates an instruction symbol of BINDA/DBINDA.
J
\
U
\G
Word
––
.
D
b8 b7
b0
Sign
ASCII code for thousands place
ASCII code for tens place
0
b8 b7
b0
(1)
2D
( )
H
H
(3)
32
(2)
H
H
(5)
34
(4)
H
H
00
H
" will be stored if it is negative.
H
Process
Redundant Universal
LCPU
S
D
P
S
D
Constants
Zn
Other
K, H
into ASCII codes, and
S
Only when
SM701 is OFF
onward:
D
1
2
3
4
4
––
––
6
7
8
447

Advertisement

Table of Contents
loading

Table of Contents