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.

InstructionISleepRobotWare-OSISleep - Deactivates an interruptISleep (Interrupt Sleep) is used to deactivate an individual interrupt temporarily.During the deactivation time, any generated interrupts of the specified type are discardedwithout any trap execution.ExampleISleep sig1int;The interrupt sig1int is deactivated.ArgumentsISleepInterruptInterruptData type: intnumThe variable (interrupt identity) of the interrupt.Program executionAny generated interrupts of the specified type are discarded without any trap execution,until the interrupt has been re-activated by means of the instruction IWatch. Interruptswhich are generated while ISleep is in effect are ignored.ExampleVAR intnum timeint;CONNECT timeint WITH check_serialch;ITimer 60, timeint;.ISleep timeint;WriteBin ch1, buffer, 30;IWatch timeint;.TRAP check_serialchWriteBin ch1, buffer, 1;IF ReadBin(ch1\Time:=5) < 0 THENTPWrite “The serial communication is broken”;EXIT;ENDIF<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 209

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

Saved successfully!

Ooh no, something went wrong!