-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Users are able to enter manual mode without adequate permission…
…s, potentially leading to unauthorized actions (#143) * Create draft PR for #120 * +not possible start any modes if user dont have a proper rights to do that (also valid forcontext menu) +ReworkInstructor -added as sinbgle project , allow us find best suitable rework defined in table . * +sln file --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: peterbarancek <[email protected]>
- Loading branch information
1 parent
12d3c47
commit 192a5d8
Showing
31 changed files
with
1,909 additions
and
13 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
...te/t/src/x_template_x-xae/x_template_xPlc/Abstractions/Components/Rework/ReworkData.TcDUT
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TcPlcObject Version="1.1.0.1"> | ||
<DUT Name="ReworkData" Id="{5d026743-fc1e-4aff-9945-5025b1a556e3}"> | ||
<Declaration><![CDATA[TYPE ReworkData : | ||
STRUCT | ||
{attribute addProperty Name "<#Entity Id#>"} | ||
EntityId: STRING; | ||
{attribute addProperty Name "<#ReworkId#>"} | ||
ReworkId: STRING; | ||
{attribute addProperty Name "<#Rework Instrukcia#>"} | ||
ReworkInstruction:STRING; | ||
{attribute addProperty Name "<#Rework Instrukcia najdena#>"} | ||
ReworkInstructionFound:BOOL; | ||
END_STRUCT | ||
END_TYPE | ||
]]></Declaration> | ||
</DUT> | ||
</TcPlcObject> |
35 changes: 35 additions & 0 deletions
35
...template_x-xae/x_template_xPlc/Abstractions/Components/Rework/ReworkInstructionTask.TcPOU
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,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TcPlcObject Version="1.1.0.1"> | ||
<POU Name="ReworkInstructionTask" Id="{3ef14e60-716c-4442-a5d9-2c2bffc56045}" SpecialFunc="None"> | ||
<Declaration><![CDATA[FUNCTION_BLOCK ReworkInstructionTask EXTENDS TcoCore.TcoRemoteTask | ||
VAR | ||
_data:ReworkData; | ||
END_VAR]]></Declaration> | ||
<Implementation> | ||
<ST><![CDATA[SUPER^();]]></ST> | ||
</Implementation> | ||
<Property Name="Data" Id="{32b6d340-2bfe-4579-a993-a9b7903ce5f3}"> | ||
<Declaration><![CDATA[PROPERTY Data : REFERENCE TO ReworkData | ||
]]></Declaration> | ||
<Get Name="Get" Id="{6b950daa-f7da-454b-8ac3-6244534c7457}"> | ||
<Declaration><![CDATA[VAR | ||
END_VAR | ||
]]></Declaration> | ||
<Implementation> | ||
<ST><![CDATA[Data ref= _data;]]></ST> | ||
</Implementation> | ||
</Get> | ||
</Property> | ||
<Method Name="Run" Id="{dea1cab6-aaae-41ee-91e0-076daafab7df}"> | ||
<Declaration><![CDATA[METHOD Run : REFERENCE TO ReworkInstructionTask | ||
VAR_INPUT | ||
inEntityId:STRING; | ||
END_VAR]]></Declaration> | ||
<Implementation> | ||
<ST><![CDATA[_data.EntityId:=inEntityId; | ||
Run REF= THIS^; | ||
]]></ST> | ||
</Implementation> | ||
</Method> | ||
</POU> | ||
</TcPlcObject> |
19 changes: 19 additions & 0 deletions
19
.../src/x_template_x-xae/x_template_xPlc/Abstractions/Components/Rework/eReworkResults.TcDUT
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"> | ||
<DUT Name="eReworkResults" Id="{d19c3b1f-0111-4597-b007-1c1a1e19722e}"> | ||
<Declaration><![CDATA[{attribute 'qualified_only'} | ||
{attribute 'strict'} | ||
TYPE eReworkResults : | ||
( | ||
None:=0, | ||
Pass := 1, | ||
FailedEntityInProgress:=4, | ||
FailedEntityOk:=3, | ||
FailedEntityHasLessProgress:=2 | ||
); | ||
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
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
Oops, something went wrong.