Function Block Attributes
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 493
If you use an IREF to specify input data for a function block instruction, the data
in that IREF is latched for the scan of the function block routine. The IREF
latches data from program-scoped and controller-scoped tags. The controller
updates all IREF data at the beginning of each scan.
In this example, the value of tagA is stored at the beginning of the routine’s
execution. The stored value is used when Block_01 executes. The same stored
value is also used when Blcock_02 executes. If the value of tagA changes during
execution of the routine, the stored value of tagA in the IREF does not change
until the next execution of the routine.
This example is the same as the one above. The value of tagA is stored only once at
the beginning of the routine’s execution. The routine uses this stored value
throughout the routine.
You can use the same tag in multiple IREFs and an OREF in the same routine.
Because the values of tags in IREFs are latched every scan through the routine, all
IREFs will use the same value, even if an OREF obtains a different tag value during
execution of the routine.
In this example, if tagA has a value of 25.4 when the routine starts executing this
scan, and Block_01 changes the value of tagA to 50.9, the second IREF wired into