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.

TriggIO Defines a fixed position I/O event<br />

Examples<br />

Arguments<br />

TriggIO is used to define conditions and actions for setting a digital, a group of digital,<br />

or an analog output signal at a fixed position along the robot’s movement path.<br />

To obtain a fixed position I/O event, TriggIO compensates for the lag in the control system<br />

(lag between robot and servo) but not for any lag in the external equipment. For<br />

compensation of both lags use TriggEquip.<br />

The data defined is used for implementation in one or more subsequent TriggL, TriggC<br />

or TriggJ instructions.<br />

VAR triggdata gunon;<br />

TriggIO gunon, 10 \DOp:=gun, 1;<br />

TriggL p1, v500, gunon, z50, gun1;<br />

The digital output signal gun is set to the value 1 when the TCP is 10 mm before<br />

the point p1.<br />

Start point<br />

TriggL p1, v500, gunon, z50,, gun1; End point p1<br />

10 mm<br />

Figure 1 Example of fixed-position IO event.<br />

TriggIO TriggData Distance [ \Start ] | [ \Time ]<br />

[ \DOp ] | [ \GOp ] | [\AOp ] SetValue<br />

[ \DODelay ]<br />

The output signal gun is set<br />

when the TCP is here<br />

TriggData Data type: triggdata<br />

Variable for storing the triggdata returned from this instruction. These triggdata<br />

are then used in the subsequent TriggL, TriggC or TriggJ instructions.<br />

Distance Data type: num<br />

Defines the position on the path where the I/O event shall occur.<br />

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

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

Saved successfully!

Ooh no, something went wrong!