Program Example - Mitsubishi Electric MELSEC FX2N-64CL-M User Manual

Cc-link/lt master block
Hide thumbs Also See for MELSEC FX2N-64CL-M:
Table of Contents

Advertisement

FX2N-64CL-M CC-Link/LT Master Block
11.4

Program example

M8000
0
< >
=
N0
M0
Control program
X020
53
X024
M10
M11
M12
M13
M14
M15
M17
M18
M25
X001
X002
X001
X002
• When preparing the control program above, pay attention not to use devices twice.
• When using the control program above for a PLC installed in a machine, confirm that the
machine will operate safely, and not harm the user, others, or itself, before operating the
program.
FROM
FROM
D10
H0
D10
H0
. .
.
TO
P
P
TO
P
P
K0
K4
D10
K0
K29
K4M10
Y000
MC
N0
Y020
Y024
MCR
Y001
Y002
Y003
Y004
Y005
Y006
Y007
Y010
Y011
K0
K27
H20
K0
K27
H0
END
Program Example 11
Reads the error
K1
station information.
Reads the detailed
K1
error information.
Data link error has
occurred.
The remote station
connection status is
M0
normal.
N0
Data link error has
occurred.
Data link error has
occurred in all
stations.
Remote I/O error has
occurred.
Out-of-control-range
station error has
occurred.
Transmission speed
setting error has
occurred.
Communication power
down has occurred.
EEPROM error has
occurred.
The DIP switch setting
is changed.
Hardware error has
occurred.
Gives the data link
K1
stop instruction.
Gives the data link
K1
restart instruction.
To easily
monitor the
nerwork,
output
select error
flags to
external
lamps and
indicators.
To easily
monitor the
nerwork,
output
select error
flags to
external
lamps and
indicators.
This part
may be
omitted if it
is not
necessary
to stop the
data link.
11-6

Advertisement

Table of Contents
loading

Table of Contents