SPT Library Parameters
Parameters are a special type of Constant Global Variable, but can be changed in the library. Parameters are used to set the various array sizes and properties which need to be fixed, but can vary from one machine or project to another.
SPT Base Types
Parameters_BaseComponent:
| COMPONENT_BASE_ALARM_COUNT : UINT := 2; // Max array size for base alarms
INHIBIT_SIMULATION_WARNING : BOOL := FALSE; // Disables simulation warning messages
|
Parameters_PackML_Base:
| MAX_NO_OF_SUBMODULES : UDINT := 20; //Max array size for submodules
MAX_NO_OF_COMPONENTS : UDINT := 32; //Max array size for components
MAX_NO_OF_EXTERNAL_CONTROLLERS : UDINT := 10; //Max array size for external controllers
UNIT_MODE_DEFAULT : E_PMLUnitMode := E_PMLUnitMode.ePMLUnitMode_Production; //Mode default for power on
UNIT_STATE_DEFAULT : Tc3_PackML_V2.E_PMLCommand := E_PMLCommand.ePMLCommand_Abort; // State default for power on
CONCAT_SUBMODULE_NAME_WITH_PARENT : BOOL := FALSE; // Concatenate submodule name with parent name
CONCAT_COMPONENT_NAME_WITH_PARENT : BOOL := TRUE; // Concatenate component name with parent name
SUBMODULE_NAME_DELIMETER : STRING(10) := ' '; // Delimeter for submodule name
COMPONENT_NAME_DELIMETER : STRING(10) := ' '; // Delimeter for component name
STATELOGGER_DISABLED : BOOL := FALSE; // When FALSE, all PackML State Changes will be logged
RESET_COMPONENTS_WITHOUT_ERROR : BOOL := FALSE; // When TRUE, all components will be reset even if no error is present
|
Parameters_Tracing:
| TRACING_ENABLED : BOOL := True; // Enable Trace Messages
MAX_LOG_ENTRIES_PER_SCAN : UDINT := 100; //Limits the number of trace messages per scan
ALLOW_DUPLICATE_SEQUENTIAL_MESSAGES : BOOL := FALSE; //Prevents duplicate messages from being logged
|
SPT Components
Parameters_Cylinder
| MAX_NO_OF_Solenoids : UDINT := 10; // Max array size for solenoids in FB_SolenoidBankBase
|
SPT Utilities
Parameters_Utilities:
| FILE_SIZE : UDINT := 1300000; // Number of characters in the file to read via Read/Write Symbol
|
SPT Motion Control
Parameters_Motion_Control:
| ALLOW_UNLINKED_NC_AXES : BOOL := FALSE; // When FALSE, will create an error if an axis is not linked to a NC, this will also prevent the Initialize() method from being completed.
CAM_SLAVE_AXIS_TABLES : UDINT := 10; // Max array size for cam slave axis tables
CAM_SLAVE_AXIS_MAX_CAM_POINTS : UDINT := 30; // Max array size for cam slave axis points
ALWAYS_CALL_IPRESETMETHOD_ON_RESET : BOOL := FALSE; // When TRUE, all axes will be reset even if no error is present
|