Attribute call_after_online_change_slot

Overview

All functions and programs containing this attribute in an own line above their declaration part are called after an online change. The calling sequence is determined by the attribute value.

NOTE: Compile errors will be detected (during code generation) if VAR_INPUT declarations are used in functions or methods that contain this attribute. The reason is that the input variables are unknown when the function is called implicitly during online change.

Syntax

{attribute 'call_after_online_change_slot' := '<slot>'}

Replace <slot> by an integer value defining the priority within the calling sequence: The lower the value, the earlier the call. If several modules have the same priority value for the attribute, then the order in which they are called remains undefined.

If a method is provided with the attribute, then it is called for all instances of the concerned function block. All instances are called within the specified slot; however, you cannot control the order among the instances themselves.

NOTE: As the application cannot run during an online change, each code executed in this situation can effect jitter. For this reason, minimize the code to be executed.