17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

=> - STOP: The program is stopped<br />

Error Handling<br />

- RESET: all outputs and non-RETAIN variables<br />

are reset<br />

- All LEDs extinguish<br />

Corrective action<br />

� Preliminary user program action to protect the<br />

buffered operands:<br />

Running the user program should be suspended until<br />

the cause is at its second stage or until a practically<br />

feasible time has elapsed.<br />

Error IRQ module, example:<br />

VAR<br />

Wait: TP; (*max. LOW time*)<br />

LOW_ongoing: BOOL; (*max. LOW time exceeded*)<br />

ON: BOOL;<br />

Active:<br />

END_VAR<br />

BOOL;<br />

PROGRAM low voltage<br />

On:=TRUE;<br />

WHILE On OR Active = TRUE DO<br />

Wait (IN:=On, PT:=T#1000ms, Q=>Active, ET=> );<br />

On := FALSE;<br />

END_WHILE<br />

IF SYSTEMINFO.Error.1 =TRUE THEN<br />

LOW_ongoing :=TRUE;<br />

ELSE<br />

LOW_ongoing :=FALSE;<br />

END_IF<br />

183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!