File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ NAMESPACE Simatic.Ax.Process
47
47
/// edge of the machine clock.
48
48
METHOD PROTECTED ProcessFinished : BOOL
49
49
50
- IF (machineClock.QRis () AND _processStarted) THEN
50
+ IF (machineClock.QFal () AND _processStarted) THEN
51
51
ProcessFinished := TRUE ;
52
52
_processStarted := FALSE ;
53
53
RETURN ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ NAMESPACE Simatic.Ax.Process
10
10
p : ProcessHandler ;
11
11
pStateLess : ProcessHandler ;
12
12
risingSignalMock : BinSignalRisingEdgeMock ;
13
- fallingSignalMock : BinSignalRisingEdgeMock ;
13
+ fallingSignalMock : BinSignalFallingEdgeMock ;
14
14
END_VAR
15
15
16
16
{TestSetup }
@@ -19,9 +19,9 @@ NAMESPACE Simatic.Ax.Process
19
19
p.TimeProvider := timeProvider;
20
20
END_METHOD
21
21
22
- {Test }
23
- METHOD PUBLIC Process_Finished_OnRisingEdgeOfMachineClock
24
- p.machineClock := risingSignalMock ;
22
+ {Test } // This test checks the finished process on falling edge of the next clock signal
23
+ METHOD PUBLIC Process_Finished_OnfallingEdgeOfMachineClock // change to falling edge
24
+ p.machineClock := fallingSignalMock ;
25
25
p.Start ();
26
26
AxUnit .Assert .Equal (actual := p.GetState (), expected := ProcessState #Fill );
27
27
p.Execute ();
You can’t perform that action at this time.
0 commit comments