Attribute 'call_after_online_change_slot'
The pragma causes all functions and programs that contain this attribute to be called after an online change. Use the attribute value <slot> to determine the call sequence.
Syntax: {attribute 'call_after_online_change_slot' := '<slot>'}
<slot>: Integer value that defines the ranking value in the order of the calls: The lower the value, the earlier the call will be. If several function blocks have the same value for the attribute, the order of their calls remains undefined.
Insertion location: First line above the declaration part of functions and programs
If a method has the attribute, then TwinCAT determines all instances of the relevant function block. TwinCAT calls all instances in the specified slot. In this case, you have no influence on the order of the instances.
Since the PLC program cannot run during the online change, any code executed in this situation can cause jitter. Therefore, keep the amount of code to be executed as small as possible. |
See also:
- TC3 User Interface documentation: Command Online Change