Example 3) When refreshing data by the periodical interrupt processing when the scan time is long and RPI is short
(When acquiring every received data)
One scan time: 10 ms
RPI: 500 us
- When the processing time of one scan is longer than the setting time of RPI, the refresh cannot be executed
during the processing.
As countermeasures against it, perform the periodical interrupt processing using the same value as that of RPI
and performs the refresh by the interrupt processing.
- If the interrupt cycle is set to the same value as that of RPI, the refresh instruction may be executed while writing
to the receive buffer and the operation may fail.
Perform the processing after confirming the refresh result.
EtherNet/IP configuration setting
Setting item
Node number
Connection
Input Information (T>O)
Device allocation
Every scan execution type program block (Main processing)
(Ladder that takes 10 ms or more for one step)
Fixed cycle execution type (0.1 ms) program block
(0.5-ms cyclic program)
9.1 High-level Instructions Used for EtherNet/IP Control
Settings
1
1
LD0 to LD1
9-23