Справочник Пользователя для Mitsubishi Electronics FX3U-CF-ADP

Скачать
Страница из 124
9 Program Examples
9.4 Program Example 3
98
FX
3U
-CF-ADP User's Manual
9.4.3
Sequence Program
This program example describes the sequence program for channel 1 (ch1).
Rewrite the channel No. with the actual system configuration to be used.
→ For explanation of operations, refer to Subsection 9.4.1.
→ For device assignments, refer to Subsection 9.4.2.
M10
SET
X010
Remains ON while the error
information (error flag) of the CF-
ADP is being read.
Command to read
the error information
of the CF-ADP
M30
RST
Turns ON when the error
information (error flag) of the CF-
ADP is read successfully.
K1
D130
H400
FNC305
FLSTRD
M8405
CF card
is
mounted
M10
M8404
CF-ADP
unit ready
Remains ON
while the error
information (error
flag) of the CF-
ADP is being read
Error information of the CF-ADP
are read.
K1
D132
H500
FNC305
FLSTRD
M8405
CF card
is
mounted
M64
M8404
CF-ADP
unit ready
Turns ON when
the error
information of the
CF-ADP is read
normally.
Up to 5 error codes of the CF-
ADP are read (and stored in
D130 to D141).
END
Y0
M40
Turns ON when the CompactFlash
TM
 card is unmounted.
Y1
M41
Turns ON when the CompactFlash
TM
 card is full.
Y2
M42
Turns ON when an error occurs in the CF-ADP.
Y3
M43
Turns ON when the CF-ADP hardware is defective
Y4
M44
Turns ON when the CompactFlash
TM
 card is defective
Turns ON when the
CompactFlash
TM
 card is
unmounted.
Turns ON when the
CompactFlash
TM
 card is full.
Turns ON when an error occurs
in the CF-ADP.
Turns ON when the CF-ADP
hardware is defective.
Turns ON when the
CompactFlash
TM
 card is
defective.
D126
D8418
D127
D8417
FNC 12
 MOV
The error code is stored.
Turns ON when the error
information of the CF-ADP is
read normally.
The error code details are stored.
FNC 12
 MOV
M64
SET
M10
RST
M10
RST
M8029
M8329
D128
D8418
D129
D8417
FNC 12
 MOV
The error code is stored.
Turns ON when the error
information (error flag) of the CF-
ADP is read successfully.
The error code details are stored.
FNC 12
 MOV
M30
SET
M64
RST
M64
RST
M8029
M8329
K4M40
D130
FNC 12
 MOV
Error Error information of the CF-
ADP.
Remains ON while the error
information (error flag) of the CF-
ADP is being read.
Remains ON while the error
information (error flag) of the CF-
ADP is being read
Turns ON when the error
information of the CF-ADP is
read normally.
Turns ON when the error
information of the CF-ADP is
read normally.
Execution
completion
Abnormal
end
Execution
completion
Abnormal
end