Merged in MBP-277-update-axis-template (pull request #95)
Add missing variables for initial configuration to axis template Approved-by: Kristina Jurisic
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user