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.

FUNCTION INSTALL_ERROR_IRQ : BOOL<br />

VAR_INPUT<br />

POU_ID: WORD;<br />

Channel: WORD;<br />

END_VAR<br />

VAR<br />

END_VAR<br />

Example:<br />

Function Libraries<br />

Write a program module called "ErrorIRQmodule_0"<br />

containing the reaction to the voltage being too low.<br />

To install the module as an error interrupt module,<br />

proceed as follows:<br />

PROGRAM Init_Error_IRQ<br />

VAR<br />

Index0: WORD;<br />

Init_Ready: BOOL;<br />

END_VAR<br />

IF NOT Init_Ready THEN<br />

Index0:=INDEXOF(ErrorIRQmodule_0);<br />

Init_Ready:=INSTALL_ERROR_IRQ (Index0,0);<br />

END_IF<br />

83

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

Saved successfully!

Ooh no, something went wrong!