An IU_ERIO function block updates Ethernet remote I/O drop input and output modules with an optimal response time. The Ethernet remote I/O drop inputs and outputs are updated during the MAST task.
Call this function block in a MAST task. It can be called more than once in a task.
NOTE: To maintain system performance, we recommend that you use no more than 10 executions of the IU_ERIO block during a single MAST task.
The input and output modules are physically located on an Ethernet remote I/O drop and declared in the Ethernet configuration.
EN and ENO can be configured as additional parameters.
NOTE: Refer to the Quantum EIO System Planning Guide for calculating the ART when your application does not use an IU_ERIO function block.
The Ethernet remote I/O drop input values are read in the 140CRP31200 module with an optimal response time.
The input values read in the 140CRP31200 module represent the latest values sent in an asynchronous way by the adapter module in each drop. The maximum time shift between values read in the 140CRP31200 and actual input values depends on the
adapter’s publishing frequency (subscribe field CRA-> RPI).
The following diagram represents the I/O exchanges between a CPU and the Ethernet remote I/O drops:
Representation:
Representation:
CAL IU_ERIO(DROP:=>Drop_Number, DIR:=>Input_Output, STATUS=>Status_Report);
IU_ERIO(DROP:=>Drop_Number, DIR:=>Input_Output, STATUS=>Status_Report);
Input parameters:
Parameter
|
Data type
|
Meaning
|
Drop
|
INT
|
Drop number (1...31)
Drop number:
-
1: Drop 1
-
2: Drop 2
-
...
-
31: Drop 31
|
Dir
|
BOOL
|
Data direction:
|
Output parameter:
Parameter
|
Data type
|
Meaning
|
Status
|
WORD
|
Status report from the 140CRP31200 module:
-
0002 hex: Invalid drop number
-
0003 hex: Ethernet remote I/O drop is not configured
-
0004 hex: Ethernet remote I/O drop is not connected
-
0005 hex: Retry number is exceeded
-
0007 hex: An error is detected on the 140CRP31200 module
-
0008 hex: Operation was not completed before time out
-
0009 hex: 140CRP31200 module is not present on the local drop
-
000B hex: Operation OK
|
NOTE: If no connection is opened with the Ethernet remote I/O drop, a detected communication error (system words %SW172 to %SW173) is returned.