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.

4.4.3 Enabling / Disabling the Outputs<br />

Function Libraries<br />

The local outputs can be entirely switched off and on<br />

electrically.<br />

The function is equivalent to commands O_ON and<br />

O_OFF in KUBES controllers.<br />

ENADIS_OUTPUTS( Mode );<br />

Parameter Type Value Explanation<br />

mode WORD<br />

0 disable<br />

1 enable<br />

FUNCTION ENADIS_OUTPUTS : BOOL<br />

VAR_INPUT<br />

Mode:WORD;<br />

END_VAR<br />

VAR<br />

END_VAR<br />

Example:<br />

If input IN_00 is ON, all local outputs are to be OFF.<br />

IF IN_00 THEN<br />

ENADIS_OUTPUTS(0);<br />

ELSE<br />

ENADIS_OUTPUTS(1);<br />

END_IF<br />

79

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

Saved successfully!

Ooh no, something went wrong!