Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 267
Description
The INTG instruction is designed to execute in a task where the scan rate remains
constant.
The INTG instruction executes this control algorithm when Initialize is cleared
and DeltaT > 0.
Whenever the value computed for the output is invalid, NAN, or INF, the
instruction sets Out = the invalid value. The internal parameters are not updated.
In each subsequent scan, the output is computed using the internal parameters
from the last scan when the output was valid.
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See Common Attributes for operand-related
faults.
Execution
Function Block
Condition/State Action Taken
Prescan EnableIn and EnableOut bits are cleared to false.
Tag.EnableIn is false EnableIn and EnableOut bits are cleared to false.
Tag.EnableIn is true EnableIn and EnableOut bits are set to true.
The instruction executes.
Instruction first run N/A
Instruction first scan The internal parameters and Out are set to 0.
Postscan EnableIn and EnableOut bits are cleared to false.
Structured Text
Condition/State Action Taken
Prescan See Prescan in the Function Block table.
Normal Execution See Tag.EnableIn is true in the Function Block table.
Postscan See Postscan in the Function Block table.