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.

InstructionErrLogAdvanced <strong>RAPID</strong>ErrLog - Write an error messageErrLog is used to display an error message on the FlexPendant and write it in the robotmessage log. Error number and five error arguments must be stated.ExampleAn ErrorId must be declared in a .xml file. The number must be between 5000 - 9999.The error message is written in the .xml file and the arguments to the message is sentin by the ErrLog instruction.The ErrorId in the .xml file is the same stated in the Err-Log instruction.Example of message in .xml file:Parameter errorTask:Symbol is read-onlyContext:Example of instruction:MODULE MyModulePROC main{VAR num errorid := 5210;VAR errstr arg := “P1”;ErrLog errorid, ERRSTR_TASK, arg, ERRSTR_CONTEXT,ERRSTR_UNUSED,ERRSTR_UNUSED;ErrLog errorid \W, ERRSTR_TASK, arg, ERRSTR_CONTEXT,ERRSTR_UNUSED,ERRSTR_UNUSED;}ENDPROCENDMODULEOn the FlexPendant the message will look like this:Event Message: 5210Parameter errorTask: mainSymbol P1 is read-only.Context: MyModule/main/ErrLog<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 101

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

Saved successfully!

Ooh no, something went wrong!