Mitsubishi FX3U Series Programming Manual page 677

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Related devices
Device
Output character
M8091
quantity selector signal
Related instructions
Instruction
ASCI(FNC 82)
HEX(FNC 83)
ESTR(FNC116)
EVAL(FNC117)
DABIN(FNC260)
Errors
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the ASCII code character range
(error code: K6706)
Program example
In the program below, 16-bit binary data stored in D1000 is converted into decimal ASCII codes when X000 is
set to ON, and the ASCII codes converted by PR (FNC 77) instruction are output one by one in the time
division method to Y040 to Y051.
By setting to OFF the output character selector signal M8091 and setting to ON PR mode flag M8027, ASCII
codes up to "00H" are output.
X000
D1000
5126
16-bit binary
data
Name
• In the case of 16-bit operation
- When M8091 is OFF,
- When M8091 is ON,
• In the case of 32-bit operation
- When M8091 is OFF, the high-order byte of
- When M8091 is ON, the high-order byte of
Converts hexadecimal codes into ASCII codes.
Converts ASCII codes into hexadecimal codes.
Converts binary floating point data into a character string (ASCII codes) of specified number of
digits.
Converts a character string (ASCII codes) into binary floating point data.
Converts numeric data expressed in decimal ASCII codes (30H to 39H) into binary data.
D
→ For PR mode flag and PR (FNC 77) instruction, refer to Section 15.8.
RST
M8091
SET
M8027
FNC261
D1000
D0
BINDAP
FNC 77
D0
Y040
PR
END
b15
D0
20H (space)
D1
31H(1)
D2
36H(6)
D3
29 Data Table Operation – FNC250 to FNC269
29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion
Description
+3 is set to "00H (NULL)."
D
D
+3 does not change.
Description
to
+2(5) exceeds the corresponding device range
D
b8 b7
b0
PR (FNC 77)
20H (space)
instruction
35H(5)
32H(2)
"
00H
output.
M8091=OFF
D
+5 is set to "00H (NULL)."
D
+5 is set to "20H (space)."
Y040 to Y051
5126" is
21
22
23
24
25
26
27
28
29
30
675

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents