Character String Processing Instructions; Character String Processing Instructions; Conversion From Bin 16-Bit Data To Decimal Ascii, Conversion From Bin 32-Bit Data To Decimal Ascii - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

7.11

Character String Processing Instructions

Conversion from BIN 16-bit data to decimal ASCII, conversion
from BIN 32-bit data to decimal ASCII
BINDA(P), DBINDA(P)
Basic
High
Process
performance
BINDA, DBINDA
BINDAP, DBINDAP
(S): BIN data to be converted to ASCII (BIN 16/32 bits)
(D): Head number of the devices where the conversion result will be stored (character string)
Setting
Internal device
data
Bit
(S)
(D)
Processing details
■BINDA
• Converts the individual digit numbers of decimal notation of the BIN 16-bit data designated by (S) into ASCII codes, and
stores the results into the area starting from the device designated by (D).
b15
S
BIN 16-bit data
For example, if -12345 has been designated at (S), the following will be stored from (D) onward:
b15
S
1
2
3
• The BIN data designated at (S) can be in the range from -32768 to 32767.
• The operation results stored at (D) are as follows:
• The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored if it is negative.
• The sign "20H" will be stored for the leading zeros of effective digits. (Zero suppression is conducted.)
0 0 3 2 5
Number of significant digits
20
is set
H
• The storage of data at devices specified by (D)+3 differs depending on the ON/OFF status of SM701 (output number of characters conversion signal).
When SM701 is OFF: Stores "0"
When SM701 is ON: Does not change
7 APPLICATION INSTRUCTIONS
528

7.11 Character String Processing Instructions

LCPU
Redundant Universal
R, ZR
Word
b15
ASCII code for ten-thousands place
D
b0
ASCII code for hundreds place
D
+1
+2
ASCII code for units place
D
D
+3
b15
D
b0
D
+1
4
5
D
+2
+3
D
indicates an instruction symbol of BINDA/DBINDA.
Command
Command
J\
Bit
Word
b8 b7
Sign
ASCII code for thousands place
ASCII code for tens place
0
b8 b7
31
(1)
2D
( )
H
H
33
(3)
32
(2)
H
H
35
(5)
34
(4)
H
H
00
H
S
P
S
U\G
Zn
Constant
K, H
b0
Only when
SM701 is OFF
b0
D
D
Others

Advertisement

Table of Contents
loading

Table of Contents