Fnc261 - Binda / Bin To Decimal Ascii Conversion - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
29.6
FNC261 – BINDA / BIN to Decimal ASCII Conversion
Outline
This instruction converts binary data into decimal ASCII codes (30H to 39H).
1. Instruction format
FNC 261
D
P
BINDA
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
D
Explanation of function and operation
1. 16-bit operation (BINDA and BINDAP)
1)
Each digit of 16-bit binary data stored in
and later.
D
Command
input
FNC261
BINDAP
b15
S
16-bit binary data
For example, when
b15
-12345
S
2)
The numeric range of 16-bit binary data stored in
3)
The conversion result stored in
a) As "sign data" (low-order byte of
positive, and "2DH (-)" is set when 16-bit binary data stored in
Series
Mnemonic
16-bit Instruction
BINDA
5 steps
BINDAP
Device number storing binary data to be converted into ASCII codes
Head device number storing conversion result
Digit Specification
S
D
b15
+0
ASCII code for 10000's digit
D
b0
+1
ASCII code for 100's digit
+2
ASCII code for 1's digit
+3
S
stores "-12345", the conversion result is stored in
b15
+0
D
b0
+1
+2
+3
D
is as follows:
D
29 Data Table Operation – FNC250 to FNC269
29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion
Operation Condition
32-bit Instruction
Continuous
9 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D
R U \G
V
S
is converted into an ASCII code (30H to 39H), and stored in
b8 b7
Sign data
ASCII code for 1000's digit
ASCII code for 10's digit
0000H or source data
b8 b7
31H(1)
2DH(-)
33H(3)
32H(2)
35H(5)
34H(4)
0000H or source data
is from -32768 to +32767.
S
), "20H (space)" is set when the 16-bit binary data stored in
S
Mnemonic
Operation Condition
DBINDA
Continuous
Operation
DBINDAP
Pulse (Single)
Operation
Data Type
16- or 32-bit binary
Character string
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z
Modify K
H
E
" "
b0
M8091=OFF:0000H
M8091=ON:Does
not change.
D
and later as follows:
b0
M8091=OFF:0000H
M8091=ON:Does not change.
is negative.
21
22
23
24
Pointer
P
25
26
27
28
29
30
S
is
671

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents