3. Instructions
798
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
Hint
The following table shows how FIORF(225) differs from IORF(097) and DLNK(226).
FIORF(225) and IORF(097) both refresh the words allocated to Special I/O Units, but differ in the
following ways.
• FIORF(225) has a faster instruction execution time.
• With FIORF(225), the relevant words are specified by the unit number rather than word addresses.
Precaution
• FIORF(225) can be used in an interrupt task, which allows high-speed processing of specific I/O data
with an interrupt. If FIORF(225) is used in an interrupt task, always disable cyclic refreshing of the
specified Special I/O Unit by turning ON the corresponding Special I/O Unit Cyclic Refreshing
Disable Bit in the PLC Setup.
• When cyclic refreshing of the specified Special I/O Unit is enabled in the PLC Setup (the
corresponding Special I/O Unit Cyclic Refreshing Disable Bit is OFF), a non-fatal Duplicate Refresh
Error will occur and the Interrupt Task Error Flag (A402.13) will go ON in the following cases.
• Words allocated to the same Special I/O Unit were already refreshed by IORF(097) or
FIORF(225).
• Words allocated to the same Special I/O Unit were read or written by IORD(222) or IOWR(223).
• When cyclic refreshing of a Special I/O Unit is disabled, execute IORF(097) or FIORF(225) to refresh
the Unit's data within 11 seconds after program execution starts. If IORF(097) or FIORF(225) is not
executed within 11 seconds to refresh the Unit's data, a CPU Unit Monitor Error will occur in the
Special I/O Unit and the ERH and RUN Indicators will be lit.
• I/O refreshing by FIORF(225) will be stopped if an I/O Bus Error occurs while during I/O refreshing.
FIORF(225) performs immediate I/O refreshing of
the CIO Area words and DM Area words
allocated to the Special I/O Unit with the unit
number specified by N. Refer to the Special I/O
Unit's Operation Manual for details on the data
area words that are immediately refreshed.
A Special I/O Unit's regular cyclic I/O refreshing
can be disabled in the PLC Setup (by turning ON
the Unit's Special I/O Unit Cyclic Refresh Disable
Bit), and I/O refreshing can be performed with the
Unit only when necessary by executing
FIORF(225). This function allows a particular
Special I/O Unit's data to be refreshed when
necessary, without increasing the cyclic I/O
refreshing time at other times.
Instruction Operation
IORF(097) • I/O refreshing of words used by Basic I/O Units
• I/O refreshing of the CIO words and DM words used by Special I/O Units
FIORF(225) • I/O refreshing of the CIO words and DM words used by a Special I/O Unit
DLNK(226) • I/O refreshing of the CPU Bus Unit Area in the CIO Area (25 words)
• I/O refreshing of the CPU Bus Unit Area in the DM Area (100 words)
• Refreshing of data specific to the CPU Bus Unit, such as data link data or DeviceNet Remote I/O Communications data
Special I/O Unit
with unit number N
Refresh
CPU Unit
Allocated CIO Area words
Allocated DM Area words
Words allocated to Special I/O Unit
with unit number N