Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 233

Programmable controllers
Table of Contents

Advertisement

Interrupt Tasks
C200H Special I/O Unit
Master SYSMAC
or
BUS Remote I/O Unit
SYSMAC BUS
Remote I/O
Executing IORF(097),
FIORF(225) (CJ1-H-R
Only), IORD(222), or
IOWR(223) for a Special
I/O Unit
Special I/O Unit
I/O refresh
Special I/O Unit
I/O refresh
offending interrupt task number will be stored in A426 (Interrupt Task Error,
Task Number). The CPU Unit however will continue to operate.
Incorrect Use
Interrupt task
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)
Interrupt task
IORF
D1
D2
END
FIORF(225) (CJ1-H-R CPU Units Only)
Interrupt task
FIORF
N
END
Interrupt task
10 ms or
longer
Incorrect 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.
Incorrect 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.
Section 4-3
Correct Use
Up to 10 ms
Correct Use
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.
Correct Use
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.
193

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents