IU_ERIO: Quantum Ethernet I/O Immediate Access to an Ethernet Remote I/O Drop
Original instructions
Function Description
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not use the IU_ERIO function block in Quantum Hot Standby installations.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
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.
IU_ERIO Mechanism
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 in FBD
Representation:
Representation in LD
Representation:
Representation in IL
CAL IU_ERIO(DROP:=>Drop_Number, DIR:=>Input_Output, STATUS=>Status_Report);
Representation in ST
IU_ERIO(DROP:=>Drop_Number, DIR:=>Input_Output, STATUS=>Status_Report);
Parameter Description
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:
  • 0 = Outputs. The output values are sent immediately to the 140CRP31200 module.
  • 1 = Inputs. The input values are read immediately from the 140CRP31200 module.
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.