Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
TomKovac committed Jan 29, 2024
1 parent ec98b28 commit e74484f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/io/app/apax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ scripts:
- apax watch
rr:
- START=$(date +%s)
- apax clean
- apax install
- apax download
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in
Expand Down
2 changes: 1 addition & 1 deletion src/io/app/src/Documentation/ComponentWithDiagnostics.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLASS ComponentWithDiagnostics EXTENDS AXOpen.Core.AxoComponent
METHOD PUBLIC Run
VAR_INPUT
parent : IAxoObject;
_hwID : UINT;
_hwID : WORD;
END_VAR

THIS.Initialize(parent);
Expand Down
8 changes: 4 additions & 4 deletions src/io/ctrl/src/AxoIoComponent.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ NAMESPACE AXOpen.Io
METHOD PUBLIC Run
VAR_INPUT
parent : IAxoObject;
hwID : UINT;
hwID : WORD;
END_VAR
IF (parent = NULL) THEN RETURN; END_IF;
THIS.Initialize(parent);
Expand All @@ -46,15 +46,15 @@ NAMESPACE AXOpen.Io
METHOD PUBLIC Run
VAR_INPUT
parent : IAxoContext;
hwID : UINT;
hwID : WORD;
END_VAR
THIS.Initialize(parent);
THIS.Execute(hwID);
END_METHOD

METHOD PRIVATE Execute
VAR_INPUT
hwID : UINT;
hwID : WORD;
END_VAR
VAR
diagInfo : Siemens.Simatic.S71500.Diagnostics.Hardware.DiagnosticDetails;
Expand All @@ -63,7 +63,7 @@ NAMESPACE AXOpen.Io
UpdateHardwareDiagnosticsTask.Initialize(THIS);

IF UpdateHardwareDiagnosticsTask.Execute() THEN
GetDiagnosticsReturnCode := GetDiagnostics(hwID, diagInfo);
GetDiagnosticsReturnCode := GetDiagnostics(TO_UINT(hwID), diagInfo);
UpdateHardwareDiagnosticsTask.DoneWhen(UpdateHardwareDiagnosticsTask.Duration >= T#250ms AND GetDiagnosticsReturnCode=GetDiagnosticsReturnCode#NoError);
UpdateHardwareDiagnosticsTask.ThrowWhen(UpdateHardwareDiagnosticsTask.Duration >= T#250ms AND GetDiagnosticsReturnCode<>GetDiagnosticsReturnCode#NoError);
END_IF;
Expand Down

0 comments on commit e74484f

Please sign in to comment.