From c1930b89fddad7fc9a7c3fa899261c6bc3223e93 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 27 Mar 2019 11:57:24 +0100 Subject: [PATCH] Some Homing sequences implmentation Limit switch and direct homing are implemneted, the same with homing to a home snesor Missing referencing to encoder index or external signal. --- solution/solution.tsproj | 41 +++++++++-------- solution/tc_project_app/POUs/MAIN.TcPOU | 45 ++----------------- solution/tc_project_app/tc_mca_std_lib | 2 +- .../tc_project_app/tc_project_app.plcproj | 5 ++- 4 files changed, 30 insertions(+), 63 deletions(-) diff --git a/solution/solution.tsproj b/solution/solution.tsproj index 6ff48ec..f9b50c8 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -1330,7 +1330,7 @@ External Setpoint Generation: - ARRAY [0..3] OF BIT + ARRAY [0..3] OF BIT 4 BIT @@ -1339,7 +1339,7 @@ External Setpoint Generation: - ARRAY [0..5] OF BIT + ARRAY [0..5] OF BIT 6 BIT @@ -1357,7 +1357,7 @@ External Setpoint Generation: - ARRAY [0..1] OF BIT + ARRAY [0..1] OF BIT 2 BIT @@ -1366,7 +1366,7 @@ External Setpoint Generation: - ARRAY [0..0] OF BIT + ARRAY [0..0] OF BIT 1 BIT @@ -1375,7 +1375,7 @@ External Setpoint Generation: - ARRAY [0..2] OF BIT + ARRAY [0..2] OF BIT 3 BIT @@ -1384,7 +1384,7 @@ External Setpoint Generation: - ARRAY [0..8] OF BIT + ARRAY [0..8] OF BIT 9 BIT @@ -1393,7 +1393,7 @@ External Setpoint Generation: - ARRAY [0..11] OF BIT + ARRAY [0..11] OF BIT 12 BIT @@ -1402,7 +1402,7 @@ External Setpoint Generation: - ARRAY [0..13] OF BIT + ARRAY [0..13] OF BIT 14 BIT @@ -1411,7 +1411,7 @@ External Setpoint Generation: - ARRAY [0..12] OF BIT + ARRAY [0..12] OF BIT 13 BIT @@ -1464,7 +1464,7 @@ External Setpoint Generation: Axis 1 - + @@ -1472,9 +1472,9 @@ External Setpoint Generation: - - - + + + Inputs @@ -1488,6 +1488,9 @@ External Setpoint Generation: nDataIn2 + + nState1 + nState4 @@ -2052,10 +2055,10 @@ bHomeSensor8 AT %I*: BOOL; #x1a00 #x1a01 #x1a02 - + BIT - + BIT @@ -2082,13 +2085,13 @@ bHomeSensor8 AT %I*: BOOL; BIT - + BIT BIT - + BIT @@ -2232,10 +2235,10 @@ bHomeSensor8 AT %I*: BOOL; #x1603 #x1600 #x1601 - + BIT - + BIT diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 2becb66..fb53fe5 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -71,7 +71,6 @@ VAR (******Error Handling********) fbErrorList: FB_ErrorList; - fbHome: MC_Home; //fbEL3214: EL3214; //fbEL1808: EL1808; //fbEL2819: EL2819; @@ -92,7 +91,7 @@ ERROR();]]> - - - - - - - "" - "Fbd" - - - false - false - false - - "" - "" - "" - false - - - 1L - - - 1 - true - - - - System.Boolean - System.Int32 - System.Int64 - {d9a99d73-b633-47db-b876-a752acb25871} - {25e509de-33d4-4447-93f8-c9e4ea381c8b} - System.String - - - - - @@ -188,7 +148,8 @@ fbEL1808( - + + diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 6c44546..37f4971 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 6c44546e8261df4a969514197259453428e53d35 +Subproject commit 37f49718089ec4ca8296b2bf4d4203e87980f549 diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index 4db64da..cdbc8b6 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -22,7 +22,7 @@ Code - + Code @@ -154,6 +154,9 @@ Code + + Code + Code