Attribute: call_after_online_change_slot
Important
VAR_INPUT
declarations in functions or methods that use the attribute lead to compile errors. The reason is that in this case the input variables are unknown in this case at the time of the call, which occurs implicitly during the online change.
Important
Since the application cannot run during the online change, each code executed in this situation can lead to a jitter. Therefore, keep the extent of the executive code as small as possible.
The effect of this pragma is that all functions and programs which have set this attribute are called after an online change. You define the order of calling by means of the attribute <slot>
.
If the attribute is set in a method, then all instances of the parent function block are determined. All instances are called in the specified slot. In this case, you have no influence on the order of the instances among themselves.
Syntax:
{attribute 'call_after_online_change_slot' := '<slot>'}
Insert location | First line above the declaration part of functions and programs |
| Integer value that defines the ranking in the order of the calls; the lower the value, the earlier the call takes place. If several function blocks have the same ranking for the attribute, then the order of their calls remains indefinite. |