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

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
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-
and
System User
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
is positive, and "2DH (-)" is set when 16-bit binary data stored in
S
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
is converted into an ASCII code (30H to 39H), and stored
S
b8 b7
Sign data
ASCII code for 1000's digit
ASCII code for 10's digit
0000H or source data
b8 b7
b0
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
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
M8091=OFF:0000H
M8091=ON:Does
not change.
and later as follows:
D
M8091=OFF:0000H
M8091=ON:Does not change.
is negative.
S
21
22
23
24
Pointer
25
P
26
27
28
29
30
717

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents