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.

ErrRaiseAdvanced <strong>RAPID</strong>InstructionOn the FlexPendant the message will look like this (warning or/and an error):Event Message: 7055Backup battery statusTask: mainBackup battery is fully chargedContext: MyModule/main/ErrRaiseAn error number must be booked with the instruction BookErrNo. Correspondingstring is stated as the first argument, ErrorName, in the ErrRaise.ErrRaise creates an error and then calls the error handler. If the error is taken careof a warning is generated in the event log, in the process domain, otherwise a fatalerror is generated and the program stops.ErrRaise can also be used in an error handler in a subroutine. In this case the execution continues in the error handler of the calling routine.ArgumentsErrRaiseErrorNameErrorName ErrorID Argument1 Argument2 Argument3 Argument4 Argument5Data type: stringAn error number must be booked using the instruction BookErrNo. Correspondingstring is stated as ErrorName.ErrorIdData type: numThe number of a specific error that is to be monitored. The error number must bein interval 5000 - 9999 and written in a xml file.Argument1Data type: errstrFirst argument in the error message. Any string or predefined data of type errstr can be used.Argument2Data type: errstrSecond argument in the error message. Any string or predefined data of type errstr can be used.Argument3Data type: errstrThird argument in the error message. Any string or predefined data of type errstr can be used106 <strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R

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

Saved successfully!

Ooh no, something went wrong!