-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed feature branch * Fix broken links * Add Track object and integrate with existing motion commands * Add mover lists for Track objects * Track Activate doesn't complete * Activate Track completes * Split track to two parts * Change to track 1 * Working on track 1 without positionTrigger * Make trackId check more visible for debugging * Rename Station.TrackPosition > Station.Position * Rename PositionTrigger.TrackPosition > .Position * Make currentTrackId compare more visible in PositionTrigger * Position triggers need work * Add activate track method and property to moverList * Allow .ActivateTrack to be called cyclically * Update MoverList.GetMoverByLocation for non-modulo position * Add Track object documentation * Fix non-registered mover else in PositionTrigger * Fix PositionTrigger modulo calculation with track management * Code cleanup * Change to Track[0] * documentation formatting cleanup * Resolve position trigger first run only issue --------- Co-authored-by: Matt Walsh <[email protected]>
- Loading branch information
Showing
34 changed files
with
7,780 additions
and
4,769 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12"> | ||
<DUT Name="TrackInfo" Id="{e1df8d7d-bb5e-01fd-14ad-401c12b84a9f}"> | ||
<Declaration><![CDATA[TYPE TrackInfo : | ||
STRUCT | ||
TrackId : OTCID; // hardware id of mover's track read back from MC_ReadTrackPositions | ||
PartId : OTCID; // hardware id of mover's part read back from MC_ReadTrackPositions | ||
TrackPosition : LREAL; // track position read back from MC_ReadTrackPositions | ||
PartPosition : LREAL; // part position read back from MC_ReadTrackPositions | ||
END_STRUCT | ||
END_TYPE | ||
]]></Declaration> | ||
</DUT> | ||
</TcPlcObject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12"> | ||
<DUT Name="TrackState" Id="{b8cf507c-0268-0834-24f4-900859769bcf}"> | ||
<Declaration><![CDATA[{attribute 'qualified_only'} | ||
{attribute 'strict'} | ||
TYPE TrackState : | ||
( | ||
WAIT_FOR_COMMAND := 0, | ||
SETUP_FUNCTION := 100, | ||
MONITOR_RESPONSE := 110, | ||
REQUIRED_DELAY := 200, | ||
CLEAN_UP := 300, | ||
WAIT_END := 1000, | ||
ERROR := 9000 | ||
); | ||
END_TYPE | ||
]]></Declaration> | ||
</DUT> | ||
</TcPlcObject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12"> | ||
<Itf Name="iTrack" Id="{41e6f11d-1951-01da-13f4-8ac69ce6b873}"> | ||
<Declaration><![CDATA[INTERFACE iTrack | ||
]]></Declaration> | ||
<Folder Name="Methods" Id="{cc616af7-fa5e-0721-3c8e-d062b484e0c8}" /> | ||
<Folder Name="Properties" Id="{332f2434-e8e7-012d-221e-b1241870310e}" /> | ||
<Property Name="CurrentMoverCount" Id="{7706471b-0127-0e08-2769-e211435d9cd2}" FolderPath="Properties\"> | ||
<Declaration><![CDATA[PROPERTY CurrentMoverCount : DINT]]></Declaration> | ||
<Get Name="Get" Id="{f904841d-fff0-0874-075a-461b289a34a3}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Get> | ||
</Property> | ||
<Property Name="CurrentMoverList" Id="{53b54c82-4385-0644-3c7a-fe140dee0acc}" FolderPath="Properties\"> | ||
<Declaration><![CDATA[PROPERTY CurrentMoverList : iMoverList]]></Declaration> | ||
<Get Name="Get" Id="{f55b5545-5b8d-060b-31cd-65f766a1eda0}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Get> | ||
</Property> | ||
<Property Name="Id" Id="{e69e0034-eced-090a-3e7c-cb98c2c8ba20}" FolderPath="Properties\"> | ||
<Declaration><![CDATA[PROPERTY Id : INT]]></Declaration> | ||
<Get Name="Get" Id="{fda8bdc8-fe34-01b4-33d1-6cb2adf3c8b1}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Get> | ||
<Set Name="Set" Id="{eedf83fb-7109-04ab-2166-7221f61f50a7}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Set> | ||
</Property> | ||
<Property Name="OTCID" Id="{f6ce1703-ab1e-0aac-1a01-d494ff9596d6}" FolderPath="Properties\"> | ||
<Declaration><![CDATA[PROPERTY OTCID : OTCID]]></Declaration> | ||
<Get Name="Get" Id="{cabf5557-da38-0c45-31d8-9a1af06122f6}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Get> | ||
<Set Name="Set" Id="{d259f521-eb96-028c-3abd-b12cfa876b7e}"> | ||
<Declaration><![CDATA[]]></Declaration> | ||
</Set> | ||
</Property> | ||
<Method Name="RegisterMover" Id="{aa379151-5a94-0a15-244b-4ddcbf268ca8}" FolderPath="Methods\"> | ||
<Declaration><![CDATA[METHOD RegisterMover : BOOL | ||
VAR_INPUT | ||
NewMover : REFERENCE TO Mover; | ||
END_VAR | ||
VAR | ||
END_VAR | ||
]]></Declaration> | ||
</Method> | ||
<Method Name="UnregisterAll" Id="{f2ab22b3-a027-08df-22f2-7e3232cd47f0}" FolderPath="Methods\"> | ||
<Declaration><![CDATA[METHOD UnregisterAll : BOOL | ||
VAR_INPUT | ||
END_VAR | ||
]]></Declaration> | ||
</Method> | ||
<Method Name="UnregisterMover" Id="{c8d25a54-3401-08fd-3ce2-76cee9dd2344}" FolderPath="Methods\"> | ||
<Declaration><![CDATA[METHOD UnregisterMover : BOOL | ||
VAR_INPUT | ||
RemovingMover : REFERENCE TO Mover; | ||
END_VAR | ||
VAR | ||
END_VAR | ||
]]></Declaration> | ||
</Method> | ||
</Itf> | ||
</TcPlcObject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.