Mitsubishi Electric MELSEC FX3U Programming Manual page 722

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
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
720
→ 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
b8 b7
b0
PR (FNC 77)
20H (space)
instruction
35H(5)
32H(2)
"
0000H
M8091=OFF
Y040 to Y051
5126" is
output.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents