Overview
The following is a detailed explanation of the code functionality for the plastication process
For the plastication process, there is a central function:WJAUT_StepAxisStartPlast
This function is called each time the plastication process needs to be initiated. The setup consists of:
- Injection Units:
There are multiple injection units: PLA, PLB, and PLC. Each injection unit can apply different parameter sets to define the plastication profile. - Parameter Sets:
Each injection unit has at least two parameter sets, which can be used to customize the plastication process (e.g., different profiles for speed, pressure, target position, etc.).
Operating Modes
There are two possible modes for initiating the plastication process:
- Automatic Mode (Smart Sequencer):
In automatic mode, the desired parameter set is selected through a popup menu in the relevant subchain. The function used here is:WJAUX_Select_ParamSet. - Manual Start (Footer):
When the plastication process is manually started from the footer, the parameter set defaults to ParamSet1. This is handled by the functionWJAUX_Select_ParamSet_StartFromFooter.
Parameter Selection
A Selector determines which parameter set should be used in combination with the chosen injection unit.
The selection is managed by:SelectParameter.Axis.PLx.ParamSetx
- PLx indicates the injection unit (PLA, PLB, or PLC).
- ParamSetx specifies the corresponding parameter set.
When WJAUT_StepAxisStartPlast is called, the code checks the Selector’s choice and combines it with the injection unit (StepType). The relevant parameter set is then applied.
Parameter Assignment
The selected parameters (such as target position, profile, stop conditions, pump code, etc.) are transferred to the wjAux_PlastParameter structure using the functionWJAUX_PlastSelectParameter
and are applied to the plastication process.
Summary of Functions
WJAUT_StepAxisStartPlast:
Main function to initiate the plastication process.WJAUX_Select_ParamSet:
Selects the parameter set in automatic mode.WJAUX_Select_ParamSet_StartFromFooter:
Sets the default parameter set when manually started (Footer).WJAUX_PlastSelectParameter:
Transfers the selected parameters to the structure used for the process.
Ideally described – gives an immediate overview.
Something else to consider:
A global parameter structure is now accessed at sub-chain start. It must be guaranteed that the parameter is set in the structure BEFORE the relevant sub-chain is started.
Ideally, this parameter would be passed as a call-by-value or call-by-reference when the sub-chain function is called. This would make it immediately clear when the function is called which parameter is important for plasticizing (or another function of another sub-chain)