diff --git a/solution/_Config/NC/NC.xti b/solution/_Config/NC/NC.xti index 759c7a3..32cccdf 100644 --- a/solution/_Config/NC/NC.xti +++ b/solution/_Config/NC/NC.xti @@ -1,5 +1,5 @@ - + NC-Task 1 SAF diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index dbf21f9..9067711 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -4,14 +4,6 @@ tc_project_app Instance {08500001-0000-0000-F000-000000000064} - - PlcTask Outputs - - MAIN.bOutput1 - - BOOL - - 0 diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL index 6e5b0c3..f8c5309 100644 --- a/solution/tc_project_app/GVLs/GVL_APP.TcGVL +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -7,7 +7,8 @@ VAR_GLOBAL END_VAR VAR_GLOBAL CONSTANT - nAXIS_NUM: UINT := 0; + 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 ]]> diff --git a/solution/tc_project_app/GlobalTextList.TcGTLO b/solution/tc_project_app/GlobalTextList.TcGTLO index 6b3220f..e6f7192 100644 --- a/solution/tc_project_app/GlobalTextList.TcGTLO +++ b/solution/tc_project_app/GlobalTextList.TcGTLO @@ -360,6 +360,11 @@ "halt" + + "123" + "HOME" + + "169" "homeDirect" 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 dfff176..b7dc9f6 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 @@ -3,7 +3,11 @@ @@ -16,7 +20,8 @@ END_VAR 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. Stop when temperature reaches certain values, reduce speed if a signal is activated, etc. +Eg. GVL.astAxes[x].stControl.bInterlockFwd := NOT bInterlockFwdOK;*) ]]> @@ -28,6 +33,7 @@ END_IF*) + diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 6bc5385..0b761a6 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -7,15 +7,6 @@ VAR afbAxes: ARRAY [1..GVL_APP.nAXIS_NUM] OF FB_Axis; afbPneumaticAxes: ARRAY [1..GVL_APP.nPNEUMATIC_AXIS_NUM] OF FB_PneumaticAxis; hmiAxisSelection: INT := 1; //Not possible to use local hmi variables for array indexes - hmiPneumaticAxisSelection: INT := 1; //Variable for hmi pneumatic axis selection -//Outputs: Power for Limit switches and Home Sensors (every 4th output) - bOutput1 AT %Q*: BOOL:= TRUE; - //bOutput5 AT %Q*: BOOL:= TRUE; - //bOutput13 AT %Q*: BOOL:= TRUE; - //bOutput17 AT %Q*: BOOL:= TRUE; - //bOutput21 AT %Q*: BOOL:= TRUE; - //bOutput24 AT %Q*: BOOL:= TRUE; - //bOutput28 AT %Q*: BOOL:= TRUE; //Startup, Shutdown and UPS fbUPS: FB_S_UPS_CX51x0; diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index 1f04651..b333f32 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -83,6 +83,9 @@ Code + Code + + Code @@ -121,6 +124,9 @@ Code + + Code + Code