12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

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.

InstructionIDisableRobotWare-OSIDisable - Disables interruptsIDisable (Interrupt Disable) is used to disable all interrupts temporarily. It may, forexample, be used in a particularly sensitive part of the program where no interruptsmay be permitted to take place in case they disturb normal program execution.ExampleIDisable;FOR i FROM 1 TO 100 DOcharacter[i]:=ReadBin(sensor);ENDFORIEnable;No interrupts are permitted as long as the serial channel is reading.Program executionInterrupts, that occur during the time in which an IDisable instruction is in effect, areplaced in a queue. When interrupts are permitted once more, the interrupt(s) of the programthen immediately starts generating, executed in “first in - first out” order in thequeue.IEnable is active by default. IEnable is automatically set- at a cold start-up- when starting program execution from the beginning of main- after executing one cycle (passing main) or executing ExitCycleSyntaxIDisable‘;’Related informationDescribed in:Summary of interruptsPermitting interrupts<strong>RAPID</strong> Summary - InterruptInstructions - IEnable<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 133

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

Saved successfully!

Ooh no, something went wrong!