Add missing variables for initial configuration to axis template

Delete the variabels related to PILS
Add the variables and comment related to advacned homing
Add the new variable bEnableStopWithAnyLimitSwitch

modified:   solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU
This commit is contained in:
Federico Rojas
2024-07-17 13:14:27 +02:00
parent 9ae12c8af5
commit 1cd240239a
@@ -14,23 +14,22 @@ END_VAR
<ST><![CDATA[//Initial parameters of an Axis
(* Uncomment the next IF statement to configure and activate the intial parameters of the axis
IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN
//Axis description for EPICS PV
GVL.astAxes[x].stDescription.sAxisName := 'MotorApplication1';
GVL.astAxes[x].stDescription.eUnit := E_AxisEngUnit.eMeter;
GVL.astAxes[x].stDescription.nPrefix := -3;
//Initial default values:
GVL.astAxes[x].stConfig.eHomeSeq := 0;
GVL.astAxes[x].stConfig.fHomePosition := 0.0;
GVL.astAxes[x].stConfig.fHomeFinishDistance := 0.0;
GVL.astAxes[x].stConfig.eRestorePosition := E_RestorePosition.eRestoreWithoutHome;
GVL.astAxes[x].stConfig.bEnableTemperatureDisable := FALSE;
GVL.astAxes[x].stConfig.fMaxTemperature := 0.0;
GVL.astAxes[x].stConfig.bEnableStopWithAnyLimitSwitch := TRUE;
//Add the variables of Advanced homing parameters if you need to chage them
GVL.astAxes[x].stConfig.stHomingConfig.bDisableDriveAccess := TRUE;
END_IF
*)
//Define ACTIONS() or write exclusive code for an specific axis.
(*Eg. Stop when temperature reaches certain values, reduce speed if a signal is activated, etc.
(*Eg. Reduce speed if a signal is activated, interlock to a variable etc.
Eg. GVL.astAxes[x].stControl.bInterlockFwd := NOT bInterlockFwdOK;*)
]]></ST>
</Implementation>