12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionITimerRobotWare-OSITimer - Orders a timed interruptITimer (Interrupt Timer) is used to order and enable a timed interrupt.This instruction can be used, for example, to check the status of peripheral equipmentonce every minute.ExamplesVAR intnum timeint;CONNECT timeint WITH iroutine1;ITimer 60, timeint;Orders an interrupt that is to occur cyclically every 60 seconds. A call is thenmade to the trap routine iroutine1.ITimer \Single, 60, timeint;Orders an interrupt that is to occur once, after 60 seconds.ArgumentsITimer[ \Single ] Time Interrupt[ \Single ] Data type: switchSpecifies whether the interrupt is to occur once or cyclically.If the argument Single is set, the interrupt occurs only once. If the argument isomitted, an interrupt will occur each time at the specified time.TimeData type: numThe amount of time that must lapse before the interrupt occurs.The value is specified in second if Single is set, this time may not be less than0.05 seconds. The corresponding time for cyclical interrupts is 0.25 seconds.InterruptData type: intnumThe variable (interrupt identity) of the interrupt. This should have previouslybeen connected to a trap routine by means of the instruction CONNECT.Program executionThe corresponding trap routine is automatically called at a given time following theinterrupt order. When this has been executed, program execution continues from where<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 213

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

Saved successfully!

Ooh no, something went wrong!