15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

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.

13.1 General Description of the Timer Function<br />

Timer Function<br />

The timer <strong>function</strong> is available only on NUM 1060 series I and NUM 1060 series II multicard systems.<br />

The automatic <strong>control</strong> <strong>function</strong> provides the user with two timers, A and B. They each consist of an 8-bit downcounter<br />

capable of generating a pulse each time the contents are changed. The downcounter is then immediately reloaded<br />

with a programmed value saved in the timer data register.<br />

For further details on the wiring of these inputs, refer to the «Installation and Commissioning Manual».<br />

13.2 Use of Timer A<br />

13.2.1 Timeout Mode<br />

In timeout mode, the frequency of the internal clock (2.4576 MHz) is divided by the programmable predivider which<br />

supplies pulses to the downcounter.<br />

INTERNAL<br />

CLOCK<br />

(2.4576 MHz)<br />

Predivider<br />

Downcounter<br />

Timer A IT<br />

13.3 Associate a %TH Task with a Timer thtimer<br />

Syntax<br />

thtimer(thno, timerno, nbmillisec)<br />

thno: %TH task number.<br />

timerno: Timer number (0 or 1).<br />

nbmillisec: Time in milliseconds.<br />

Associates a %TH task with an interrupt generated by timer A or B.<br />

13 Timer Function<br />

Operation<br />

The call to thtimer() sets the timer whose number is given in timerno with the value specified in nbmillisec. When this<br />

time has expired, the timer generates an IT used by the system to call the %TH task number thno.<br />

The time nbmillisec is between 0 and 2,147,483,647 milliseconds.<br />

Function thtimer() is modal, i.e. after the call to thtimer(), the %TH task is called cyclically every nbmillisec.<br />

To cancel a thtimer() <strong>function</strong>, it is necessary to call thtimer() with parameter nbmillisec equal to ZERO.<br />

The call to thtimer() while the timer is running causes a reset of the timer and a restart from nbmillisec.<br />

en-938846/7 13 - 1<br />

13

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

Saved successfully!

Ooh no, something went wrong!