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.

InstructionIErrorAdvanced <strong>RAPID</strong>LimitationIt is not possible to order an interrupt on internal errors.In a task of type NORMAL the event will be thrown away at program stop.The same variable for interrupt identity cannot be used more than once, without firstdeleting it. Interrupts should therefore be handled as shown in one of the alternativesbelow.VAR intnum err_interrupt;PROC main ( )CONNECT err_interrupt WITH err_trap;IError COMMON_ERR, TYPE_ERR, err_interupt;WHILE TRUE DO::ENDWHILEENDPROCInterrupts are activated at the beginning of the program. These instructions arethen kept outside the main flow of the program.PROC main ( )VAR intnum err_interrupt;CONNECT err_interrupt WITH err_trap;IError COMMON_ERR, TYPE_ERR, err_interupt;::IDelete err_interrupt;ENDPROCThe interrupt is deleted at the end of the program and is then reactivated. Itshould be noted, in this case, that the interrupt is inactive for a short period.SyntaxIError [ErrorDomain ’:=’] [’\’ErrorId’:=’ ’]’ ’,’[ErrorType ’:=’] ‘,’[Interrupt ’:=’] ’;’<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 139

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

Saved successfully!

Ooh no, something went wrong!