09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ErrWrite Write an Error Message<br />

Example<br />

Arguments<br />

ErrWrite (Error Write) is used to display an error message on the teach pendant and<br />

write it in the robot message log.<br />

ErrWrite “PLC error” , “Fatal error in PLC”;<br />

Stop;<br />

A message is stored in the robot log. The message is also shown on the teach pendant<br />

display.<br />

ErrWrite \ W, “ Search error”, “No hit for the first search”;<br />

RAISE try_search_again;<br />

A message is stored in the robot log only. Program execution then continues.<br />

ErrWrite [ \W ] Header Reason [ \RL2] [ \RL3] [ \RL4]<br />

[ \W ] (Warning) Data type: switch<br />

Gives a warning that is stored in the robot error message log only (not shown<br />

directly on the teach pendant display).<br />

Header Data type: string<br />

Error message heading (max. 24 characters).<br />

Reason Data type: string<br />

Reason for error (line 1 of max. 40 characters).<br />

[ \RL2] (Reason Line 2) Data type: string<br />

Reason for error (line 2 of max. 40 characters).<br />

[ \RL3] (Reason Line 3) Data type: string<br />

Reason for error (line 3 of max. 40 characters).<br />

[ \RL4] (Reason Line 4) Data type: string<br />

Reason for error (line 4 of max. 40 characters).<br />

<strong>RAPID</strong> Reference Manual 8-ErrWrite-1

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

Saved successfully!

Ooh no, something went wrong!