From c8775e5ae5e0ff0f6b21dd9f7e38441de7a5cc73 Mon Sep 17 00:00:00 2001 From: Paul Barron Date: Mon, 9 Dec 2019 13:29:28 +0100 Subject: [PATCH] Create bOutput 2,3,6,7 for switches in MAIN.TcPOU modified: solution/solution.tsproj modified: solution/tc_project_app/POUs/MAIN.TcPOU --- solution/solution.tsproj | 21 ++++++++++++++++++--- solution/tc_project_app/POUs/MAIN.TcPOU | 8 ++++---- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/solution/solution.tsproj b/solution/solution.tsproj index a53dc4d..a2dbbe9 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -2101,11 +2101,25 @@ External Setpoint Generation: GVL.axes[3].Axis.PlcToNc PLCTONC_AXIS_REF + + MAIN.bOutput2 + BOOL + + + MAIN.bOutput3 + BOOL + MAIN.bOutput5 - + + BOOL + + + MAIN.bOutput6 + BOOL + + + MAIN.bOutput7 BOOL @@ -3880,6 +3894,7 @@ bOutput4 AT %Q*: BOOL:= TRUE;]]> + diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index ff1b15c..eac19ba 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -11,12 +11,12 @@ VAR (******Outputs: Power for Limit switches and Home Sensors (every 4th output)********) bOutput1 AT %Q*: BOOL:= TRUE; - //bOutput2 AT %Q*: BOOL:= TRUE; - //bOutput3 AT %Q*: BOOL:= TRUE; + bOutput2 AT %Q*: BOOL:= TRUE; + bOutput3 AT %Q*: BOOL:= TRUE; //bOutput4 AT %Q*: BOOL:= TRUE; bOutput5 AT %Q*: BOOL:= TRUE; - //bOutput6 AT %Q*: BOOL:= TRUE; - //bOutput7 AT %Q*: BOOL:= TRUE; + bOutput6 AT %Q*: BOOL:= TRUE; + bOutput7 AT %Q*: BOOL:= TRUE; //bOutput8 AT %Q*: BOOL:= TRUE; //bOutput9 AT %Q*: BOOL:= TRUE; //bOutput13 AT %Q*: BOOL:= TRUE;