Attribute 'call_after_global_init_slot'
The pragma causes all functions and programs that contain this attribute to be called after the global initialization. Use the attribute value to determine the call sequence.
Syntax: {attribute 'call_after_global_init_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, TwinCAT determines all instances of the corresponding function block and calls all instances in the specified slot. In this case, you have no influence on the order of the instances.
See also: