09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

Syntax<br />

PROC glue (\switch on, num glueflow, robtarget topoint, speeddata speed,<br />

zonedata zone, PERS tooldata tool, \PERS wobjdata wobj)<br />

IF Present (on) PulseDO glue_on;<br />

SetAO gluesignal, glueflow;<br />

IF Present (wobj) THEN<br />

MoveL topoint, speed, zone, tool \WObj=wobj;<br />

ELSE<br />

MoveL topoint, speed, zone, tool;<br />

ENDIF<br />

ENDPROC<br />

A glue routine is made. If the argument \on is specified when calling the routine,<br />

a pulse is generated on the signal glue_on. The robot then sets an analog output<br />

gluesignal, which controls the glue gun, and moves to the end position. As the<br />

wobj parameter is optional, different MoveL instructions are used depending on<br />

whether this argument is used or not.<br />

Present ’(’<br />

[OptPar’:=’] ’)’<br />

A REF parameter requires, in this case, the optional parameter name.<br />

A function with a return value of the data type bool.<br />

Related information<br />

Described in:<br />

Routine parameters <strong>Basic</strong> <strong>Characteristics</strong> - Routines<br />

9-Present-2 <strong>RAPID</strong> Reference Manual

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

Saved successfully!

Ooh no, something went wrong!