Commit 571fecc6 authored by Jörg Weingrill's avatar Jörg Weingrill
Browse files

DomeCommError

parent 636d0c11
...@@ -17,7 +17,8 @@ VAR ...@@ -17,7 +17,8 @@ VAR
Azimuth_current, Azimuth_current,
Azimuth_old: LREAL; Azimuth_old: LREAL;
move_azimuth, stop_azimuth: BOOL; move_azimuth, stop_azimuth: BOOL;
DomeCommError: TON; DomeCommErrorTimer: TON;
DomeCommError: BOOL;
END_VAR END_VAR
]]></Declaration> ]]></Declaration>
<Implementation> <Implementation>
...@@ -96,9 +97,9 @@ ELSE // WriteCycle ...@@ -96,9 +97,9 @@ ELSE // WriteCycle
END_IF END_IF
DomeCommError(IN := bError, PT := T#30S); DomeCommErrorTimer(IN := NOT DomeState.0, PT := T#30S, Q => DomeCommError);
DomeLog(Trigger := DomeCommError.Q, DomeLog(Trigger := DomeCommError,
Level := ADSLOG_MSGTYPE_ERROR, Level := ADSLOG_MSGTYPE_ERROR,
OnMessage := 'Dome communication error', OnMessage := 'Dome communication error',
OffMessage := 'Dome communiaction re-established', OffMessage := 'Dome communiaction re-established',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment