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.

InstructionBookErrNoAdvanced <strong>RAPID</strong>BookErrNo - Book a <strong>RAPID</strong> system error numberBookErrNo is used to book a new <strong>RAPID</strong> system error number.Examples! Introduce a new error number in a glue system! Note: The new error variable must be declared with the initial value -1VAR errnum ERR_GLUEFLOW := -1;! Book the new <strong>RAPID</strong> system error numberBookErrNo ERR_GLUEFLOW;The variable ERR_GLUEFLOW will be assigned to a free system error numberfor use in the <strong>RAPID</strong> code.! Use the new error number IF di1 = 0 THENRAISE ERR_GLUEFLOW;ELSE...ENDIF! Error handlingERRORIF ERRNO = ERR_GLUEFLOW THEN...ELSE...ENDIFIf the digital input di1 is 0 the new booked error number will be raised and thesystem error number ERRNO will be set to the new booked error number. Theerror handling of those user generated errors can then be handled in the error handleras usual.ArgumentsBookErrNoErrorNameErrorNameData type: errnumThe new <strong>RAPID</strong> system error variable name.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 17

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

Saved successfully!

Ooh no, something went wrong!