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

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
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
BINDA
P
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
System User
and
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
Explanation of function and operation
1. 16-bit operation (BINDA and BINDAP)
1) Each digit of 16-bit binary data stored in
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
S
is positive, and "2DH (-)" is set when 16-bit binary data stored in
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
stores "-12345", the conversion result is stored in
S
b15
+0
D
b0
+1
+2
+3
is as follows:
D
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
V Z Modify K H
S
is converted into an ASCII code (30H to 39H), and stored
b8 b7
ASCII code for 1000's digit
ASCII code for 10's digit
00H or source data
b8 b7
b0
31H(1)
2DH(-)
33H(3)
32H(2)
35H(5)
34H(4)
00H or source data
is from -32768 to +32767.
S
), "20H (space)" is set when the 16-bit binary data stored in
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
E
" "
b0
Sign data
M8091=OFF:00H
M8091=ON:Does
not change.
and later as follows:
D
M8091=OFF:00H
M8091=ON:Does not change.
S
is negative.
21
22
23
24
Pointer
25
P
26
27
28
29
30
673

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents