Skip to content

Commit

Permalink
fw: iec: Add heartbeat indicator on %QX15
Browse files Browse the repository at this point in the history
Improve the demo program by adding a heartbeat indicator.
  • Loading branch information
Rahix committed May 18, 2024
1 parent 280d62a commit 79b43f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Firmware-IEC/src/main.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ PROGRAM MAIN
VAR (* Outputs *)
xIndicatorOrange AT %QX08: BOOL := FALSE;
xIndicatorGreen AT %QX09: BOOL := FALSE;
xIndicatorActive AT %QX15: BOOL;

xMotor AT %QX00: BOOL := FALSE;
END_VAR
Expand Down Expand Up @@ -49,6 +50,7 @@ PROGRAM MAIN

xIndicatorGreen := xRunning;
xIndicatorOrange := xWaiting AND fbBlink.Q;
xIndicatorActive := fbBlink.Q;
END_PROGRAM

(*
Expand Down

0 comments on commit 79b43f9

Please sign in to comment.