Auto Stop (Last Cycle) on No Parts

This commit is contained in:
2024-03-18 12:16:01 +01:00
parent ba2a9523d7
commit 2b23a39edd
5 changed files with 11 additions and 1 deletions

View File

@@ -23,8 +23,10 @@ PROGRAM _CYCLIC
FUBs.TON_Empty ();
IF FUBs.TON_Empty.Q THEN
States.bEmtpy := TRUE;
gCmd1.Bunker.FromBunkerEmpty := TRUE;
ELSIF (States.uiFillpos > 3) THEN
States.bEmtpy := FALSE;
gCmd1.Bunker.FromBunkerEmpty := FALSE;
END_IF
FUBs.TON_Startfill.IN := (States.uiFillpos <= Parameter.uiPosStartFill);

View File

@@ -32,6 +32,7 @@ END_TYPE
TYPE
gtyp_CmdInterfaceFlexBunker : STRUCT
ToBunker : gtyp_CmdInterfaceFlexToBunker;
FromBunkerEmpty : BOOL;
END_STRUCT;
gtyp_CmdInterfaceFlexToBunker : STRUCT
bEnableBunker : BOOL;

View File

@@ -231,6 +231,12 @@ ACTION DoTimeFubs:
FUBs.TON_CleanTool.IN := Valves.bCleanTool;
FUBs.TON_CleanTool.PT := t#2s;
FUBs.TON_CleanTool ();
//Keine Teile
FUBs.TON_StopNoParts.IN := NOT States.bLastCycle AND gCmd1.Bunker.FromBunkerEmpty AND gCmd1.FlexfeedRobFeed.FlexfeedToRobfeed.bNoPart;
FUBs.TON_StopNoParts.PT := t#39s;
FUBs.TON_StopNoParts ();
END_ACTION
ACTION DoTool:

View File

@@ -211,7 +211,7 @@ PROGRAM _CYCLIC
//Letzten Zyklus starten
IF EDGEPOS (VCButtons.LastCycle.bCommand) THEN
IF EDGEPOS (VCButtons.LastCycle.bCommand) OR FUBs.TON_StopNoParts.Q THEN
States.bLastCycle := TRUE;
END_IF

View File

@@ -9,6 +9,7 @@ TYPE
TON_Axis2NotPowered : TON;
TON_UnlockTool : TON;
TON_CleanTool : TON;
TON_StopNoParts : TON;
TON_CylCtrl_Part : FUB_CylinderCheck;
END_STRUCT;
typ_MpFUB : STRUCT (*MApp Funktionsbausteine*)