193
Interrupt Tasks Section 4-3
offending interrupt task number will be stored in A426 (Interrupt Task Error,
Task Number). The CPU Unit however will continue to operate.
Executing IORF(097),
FIORF(225) (CJ1-H-R
Only), IORD(222), or
IOWR(223) for a Special
I/O Unit
If a Special I/O Unit is being used and IORF(097), FIORF(225) (CJ1-H-R
only), IORD(222), or IOWR(223) will be executed from an interrupt task,
always disable cyclic refreshing for that Special I/O Unit in the PLC Setup.
If a Special I/O Unit is being refreshed by cyclic refreshing or an I/O refreshing
instruction, an interrupt task error will occur if you try to refresh the same Spe-
cial I/O Unit with an IORF(097), FIORF(225) (CJ1-H-R only) in an interrupt
task or if an attempt is made to read/write data for the same Special I/O Unit
with an IORD(222) or IOWR(223) instruction. In this case, the IORF(097),
FIORF(225) (CJ1-H-R only), IORD(222), or IOWR(223) instruction will not be
executed, but the Error Flag will not be turned ON. Cyclic refreshing will be
performed normally.
If Interrupt Task Error Detection is enabled in the PLC Setup when an interrupt
task error occurs, A40213 (Interrupt Task Error Flag) will turn ON and the unit
number of the affected Special I/O Unit will be stored in A426 (Interrupt Task
Error, Task Number).
IORF(097)
FIORF(225) (CJ1-H-R CPU Units Only)
C200H Special I/O Unit
or
Master SYSMAC
BUS Remote I/O Unit
SYSMAC BUS
Remote I/O
Interrupt task
10 ms or
longer
Interrupt task
Up to 10 ms
Incorrect Use
Correct Use
IORF
END
D1
D2
Special I/O Unit
I/O refresh
Interrupt task
Incorrect Use Correct Use
Cyclic refreshing is enabled
for a Special I/O Unit in the
PLC Setup (the default
setting), and IORF(097) is
executed in an interrupt task
to refresh that Special I/O
Unit's I/O words.
Cyclic refreshing is disabled
for a Special I/O Unit in the
PLC Setup, and IORF(097)
is executed in an interrupt
task to refresh that Special
I/O Unit's I/O words.
FIORF
END
N
Special I/O Unit
I/O refresh
Interrupt task
Incorrect Use Correct Use
Cyclic refreshing is enabled
for a Special I/O Unit in the
PLC Setup (the default
setting), and FIORF(225)
(CJ1H-H-R only) is
executed in an interrupt
task to refresh that Special
I/O Unit's allocated words.
Cyclic refreshing is disabled
for a Special I/O Unit in the
PLC Setup, and FIORF(225)
(CJ1H-H-R only) is executed
in an interrupt task to refresh
that Special I/O Unit's
allocated words.