Mitsubishi Electric FX3G SERIES Programming Manual page 683

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

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Related devices
Device
Output character quantity
M8091
selector signal
Related instructions
Instruction
ASCI(FNC 82)
HEX(FNC 83)
STR(FNC200)
VAL(FNC201)
DABIN(FNC260)
Cautions
1. Occupied device points
The table below shows the occupied device points of
OFF and 32-bit operation (DBINDA/DBINDAP).
16-bit operation
32-bit operation
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 occupied device point of
device rang (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 the PR (FNC 77) instruction are output one by one by the time division method
to Y040 to Y051.
By turning 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
For 16-bit operation
-
When M8091 is OFF,
-
When M8091 is ON,
For 32-bit operation
-
When M8091 is OFF, the high-order byte of
-
When M8091 is ON, the high-order byte of
Converts hexadecimal values into ASCII code.
Converts ASCII code into hexadecimal values.
Converts binary data into a character string (ASCII code).
Converts a character string (ASCII code) into binary data.
Converts numeric data expressed in decimal ASCII code (30H to 39H) into binary data.
Occupied Points of
M8091=ON
M8091=OFF
storing the ASCII code character string exceeds the corresponding
D
→ For PR mode flag and the 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 "0000H (NULL)."
D
D
+3 does not change.
Description
for 16-bit operation(BINDA/BINDAP) when M8091 is ON/
D
D
3
4
6
b8 b7
b0
PR (FNC 77)
20H (space)
instruction
35H(5)
32H(2)
"
0000H
output.
M8091=OFF
D
+5 is set to "00H (NULL)."
+5 is set to "20H (space)."
D
Y040 to Y051
5126" is
21
22
23
24
25
26
27
28
29
30
681

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents