Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual Kuhnke Electronics Instruction Manual

17.02.2013 Views

Function Libraries 4.4.9 Installing a Reference Value IRQ Module The count of Ventura Remote PLC's counter reaching the reference value generates an interrupt request (IRQ) which can interrupt the processing of the current program and run an IRQ module instead. This requires that running an interrupt module (IRQmod) following reference value interrupt is admitted by the project parameter settings made using the PLC Configuration Editor. To install a program module as a reference value IRQ module you must run the following code to identify the module: Index := INDEXOF (module name); Afterwards, run the following function in order to set up the error module: REGIT_T3IRQ ( Index ); After successful completion, the function returns TRUE. FUNCTION REGIT_T3IRQ: BOOL VAR_INPUT POU_ID: WORD; END_VAR VAR END_VAR 88 E 700 GB

4.4.10 Setting up the Watchdog Function Libraries Every task can have a watchdog (timer-controlled monitor) to it. Function "SET_WATCHDOG" can be used for both setting the watchdog timeout and enabling/disabling watchdog execution. SET_WATCHDOG ( Mode, WDT_Time ); Parameter Type Value Explanation mode WORD WDT_Time WORD 0 disable 1 enable 0..49 50... 65535 FUNCTION SET_WATCHDOG: WORD VAR_INPUT Mode : WORD; WDT_Time: WORD; END_VAR VAR END_VAR minimum monitoring time 50 ms monitoring time in ms 50ms.. 65535ms (t#1m5s535ms) 89

4.4.10 Setting up the Watchdog<br />

Function Libraries<br />

Every task can have a watchdog (timer-controlled<br />

monitor) to it.<br />

Function "SET_WATCHDOG" can be used for both<br />

setting the watchdog timeout and enabling/disabling<br />

watchdog execution.<br />

SET_WATCHDOG ( Mode, WDT_Time );<br />

Parameter Type Value Explanation<br />

mode WORD<br />

WDT_Time WORD<br />

0 disable<br />

1 enable<br />

0..49<br />

50...<br />

65535<br />

FUNCTION SET_WATCHDOG: WORD<br />

VAR_INPUT<br />

Mode : WORD;<br />

WDT_Time: WORD;<br />

END_VAR<br />

VAR<br />

END_VAR<br />

minimum monitoring time<br />

50 ms<br />

monitoring time in ms<br />

50ms.. 65535ms<br />

(t#1m5s535ms)<br />

89

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

Saved successfully!

Ooh no, something went wrong!