diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL index b8e952e..f6150d2 100644 --- a/solution/tc_project_app/GVLs/GVL_APP.TcGVL +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -8,6 +8,7 @@ END_VAR VAR_GLOBAL CONSTANT nAXIS_NUM: UINT := 0; (*~ (OPC: 1 : available for OPC-clients)(OPC_PROP[0005]: 1 : OPC_PROP_RIGHTS, here read only)*) nPNEUMATIC_AXIS_NUM: UINT := 0; -END_VAR]]> +END_VAR +]]> \ No newline at end of file diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Application_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Application_Template.TcPOU index d653e82..dd7adb2 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Application_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Application_Template.TcPOU @@ -8,7 +8,8 @@ END_VAR ]]> +//Eg. Collision avoidance, interlocks, sequencing, etc. +]]> \ No newline at end of file diff --git a/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU index 5e9edcc..0944ca1 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU @@ -8,7 +8,8 @@ VAR //Hardware interlocks //bInterlockFwdOK AT %I*: BOOL; -END_VAR]]> +END_VAR +]]> +Eg. GVL.astAxes[x].stControl.bInterlockFwd := NOT bInterlockFwdOK;*) +]]> \ No newline at end of file diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 76d2080..462b081 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -27,11 +27,13 @@ END_VAR VAR PERSISTENT bRestoreOnStartup: BOOL; -END_VAR]]> +END_VAR +]]> +AXES(); +]]> @@ -56,7 +58,8 @@ END_FOR //Execute Pneumatic Axis logic FOR GVL.iPneumaticAxis := 1 TO GVL_APP.nPNEUMATIC_AXIS_NUM DO afbPneumaticAxes[GVL.iPneumaticAxis](stPneumaticAxisStruct := GVL.astPneumaticAxes[GVL.iPneumaticAxis]); -END_FOR]]> +END_FOR +]]> @@ -83,7 +86,8 @@ ELSIF eGlobalSUpsState <> eSUPS_PowerOK THEN //next cycles of powerfailure //skip regular code execution for the remaining cycles of the powerfailure/writing of persistent data/quick shutdown... RETURN; -END_IF]]> +END_IF +]]> @@ -92,7 +96,8 @@ END_IF]]> IF (fbGetDeviceIdentification.stDevIdent.strHardwareSerialNo <> '') THEN CHECK_UPS(); RESTORE_POSITIONS(); -END_IF]]> +END_IF +]]> @@ -108,7 +113,8 @@ GVL.fbGetCurTaskIndex(); //Pneumatics_Template(); //Application program calls -//Application_Template();]]> +//Application_Template(); +]]> @@ -260,7 +266,8 @@ IF bRestoreExecute AND NOT bPositionRestoreDone THEN bRestoreExecute := FALSE; END_FOR END_CASE -END_IF]]> +END_IF +]]> @@ -278,7 +285,8 @@ END_IF]]> ELSE astAxesPersistent[iAxes].bMovingAtShutdown := TRUE; END_IF -END_FOR]]> +END_FOR +]]>