Skip to content

Globals/Parameters

Parameters

Parameters_PackML_Base

Parameter Type Default Description
COMPONENT_NAME_DELIMETER STRING(10) ' ' (space) String applied to component names to indicate hierarchy
CONCAT_SUBMODULE_NAME_WITH_PARENT BOOL FALSE If TRUE, submodule names will have their parent's name prepended
CONCAT_COMPONENT_NAME_WITH_PARENT BOOL TRUE If TRUE, component names will have their parent's name prepended
INHIBIT_SIMULATION_WARNING BOOL FALSE If TRUE, components in simulation mode will not raise a warning indicating as such
MAX_NO_OF_SUBMODULES UDINT 20 Maximum number of submodules that can be registered
MAX_NO_OF_COMPONENTS UDINT 32 Maximum number of components per submodule
MAX_NO_OF_EXTERNAL_CONTROLLERS UDINT 10 Maximum number of I_PackML_ExternalController that can be registered with a submodule
RESET_COMPONENTS_WITHOUT_ERROR BOOL FALSE If TRUE, components will always have Reset() called regardless of their error state
SUBMODULE_NAME_DELIMETER STRING(10) ' ' (space) String applied to submodule names to indicate hierarchy
STATELOGGER_DISABLED BOOL FALSE If TRUE, no state change events will be raised, no matter their severity (entering Held/Aborted states will not be raised)
UNIT_MODE_DEFAULT E_PMLUnitMode ePMLUnitMode_Production Default mode set to all submodules upon initialization
UNIT_STATE_DEFAULT E_PMLCommand ePMLCommand_Abort Default command which is set to all submodules upon initialization

Parameters_Tracing

Parameter Type Default Description
TRACING_ENABLED BOOL TRUE Set FALSE to disable all tracing functions (ex. machine in production)
MAX_LOG_ENTRIES_PER_SCAN UDINT 100 Specify maximum number of messages allowed to be sent per PLC scan
ALLOW_DUPLICATE_SEQUENTIAL_MESSAGES BOOL FALSE If TRUE, allows multiple identical trace messages to be sent sequentially

GVLs

Tracing

1
2
3
4
{attribute 'qualified_only'}
VAR_GLOBAL
    GlobalTraceLog : FB_TraceLog;
END_VAR