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

DomeCommError

parent 636d0c11
......@@ -17,7 +17,8 @@ VAR
Azimuth_current,
Azimuth_old: LREAL;
move_azimuth, stop_azimuth: BOOL;
DomeCommError: TON;
DomeCommErrorTimer: TON;
DomeCommError: BOOL;
END_VAR
]]></Declaration>
<Implementation>
......@@ -96,9 +97,9 @@ ELSE // WriteCycle
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,
OnMessage := 'Dome communication error',
OffMessage := 'Dome communiaction re-established',
......
Markdown is supported
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