Global parameters

Parameters for setting up the packaging machine tag structures. These can be adapted when inserting the library for the current project.

VAR_GOLBAL CONSTANT
    cMaxDefinedUnitMode                         : UDINT := 4;

    (* PMLc/PMLa *)
    cMaxRecipeProcessVariablesParametersReal    : UDINT := 10;
    cMaxRecipeProcessVariablesParametersString  : UDINT := 10;
    cMaxRecipeProcessVariablesParametersLreal   : UDINT := 10;
    cMaxRecipeProcessVariablesParametersDint    : UDINT := 10;

    cMaxRecipeIngredientsParametersReal         : UDINT := 10;
    cMaxRecipeIngredientsParametersString       : UDINT := 10;
    cMaxRecipeIngredientsParametersLreal        : UDINT := 10;
    cMaxRecipeIngredientsParametersDint         : UDINT := 10;
    
    (* PMLc *)
    cMaxCommandParametersReal                   : UDINT := 10;
    cMaxCommandParametersString                 : UDINT := 10;
    cMaxCommandParametersLreal                  : UDINT := 10;
    cMaxCommandParametersDint                   : UDINT := 10;

    cMaxCommandRecipes                          : UDINT := 5;

    (* PMLs *)
    cMaxStatusParametersReal                    : UDINT := 10;
    cMaxStatusParametersString                  : UDINT := 10;
    cMaxStatusParametersLreal                   : UDINT := 10
    cMaxStatusParametersDint                    : UDINT := 10;

    cMaxStatusRecipes                           : UDINT := 5;

    cMaxStatusStacklights                       : UDINT := 1;

    (* PMLa *)
    cMaxAdminParametersReal                     : UDINT := 10;
    cMaxAdminParametersString                   : UDINT := 10;
    cMaxAdminParametersLreal                    : UDINT := 10;
    cMaxAdminParametersDint                     : UDINT := 10;

    cMaxAlarms                                  : DINT := 10;
    cMaxHistoryAlarms                           : DINT := 10;
    cMaxWarnings                                : DINT := 10;

    cMaxAdminCumulativeTimes                    : UDINT := 1;
    cMaxAdminProductData                        : UDINT := 10;

    cMaxConsumedCounts                          : UDINT := 10;
    cMaxProductCounts                           : UDINT := 10;
END_VAR

Requirements

Development Environment

Target platform

PLC library to include

From TwinCAT

  • 3.1 Build 4024.63

PC (i386)

From Tc3_PackML_ V3 1.0.3