Immediate Output (IOT)
The IOT instruction immediately updates the specified output data (output tag of an I/O
device or produced tag). The connection to the device must be open to enable the IOT
instruction to execute.
Available Languages
Structured Text
IOT (output_tag)
Operands
Structured Text
Operand | TYPE | FORMAT | DESCRIPTION |
|---|---|---|---|
Update Tag | Tag | Tag that contains data you want to copy to the attribute tag that you
want to update; either: Output tag of an I/O device or Produced tag |
See Structured Text syntax for more information on the syntax of
expressions within structured text.
Description
The IOT instruction overrides the requested packet interval (RPI) of an output connection
and sends fresh data over the connection.
An output connection is a connection that is associated with the output tag of an I/O
device or with a produced tag. If the connection is for a produced tag, the IOT
instruction also sends the event trigger to the consuming controller. This allows the
IOT instruction to trigger an event task in the consuming controller.
To use an IOT instruction and a produced tag to trigger an event task in a consumer
controller, check the Programmatically (IOT Instruction) Send Event Trigger to Consumer
checkbox on the Connection tab of the
Tag Properties
dialog box.
TIP:
When using this instruction with a
ControlLogix
Redundancy system,
outputs controlled by this instruction may not be bumpless during a redundancy
switchover.The type of network between the controllers determines when the consuming controller
receives the new data and event trigger via the IOT instruction.
Over this network | The consuming device receives the data and
event trigger |
|---|---|
Backplane | Immediately |
EtherNet/IP | Immediately |
ControlNet | Within the actual packet interval (API) of the consumed tag
(connection) |
The following diagrams compare the receipt of data via an IOT instruction over
EtherNet/IP
and ControlNet
networks.
Affects Math Status Flags
No
Fault Conditions
None specific to this instruction. See Common Attributes for operand-related faults.
Execution
Structured Text
Condition/State | Action Taken |
|---|---|
Prescan | N/A |
Normal execution | The instruction updates the connection of the specified tag resets
the RPI timer of the connection. |
Postscan | N/A |
Example
When the IOT instruction executes, it immediately sends the values of the
r00_s05_1756_OB16.O tag to the output device.
Structured Text
IOT(r00_s05_1756_OB16.O);
Provide Feedback