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.

ISignalDO Interrupts from a digital output signal<br />

Examples<br />

Arguments<br />

ISignalDO (Interrupt Signal Digital Out) is used to order and enable interrupts from a<br />

digital output signal.<br />

System signals can also generate interrupts.<br />

VAR intnum sig1int;<br />

CONNECT sig1int WITH iroutine1;<br />

ISignalDO do1,1,sig1int;<br />

Orders an interrupt which is to occur each time the digital output signal do1 is<br />

set to 1. A call is then made to the iroutine1 trap routine.<br />

ISignalDO do1,0,sig1int;<br />

Orders an interrupt which is to occur each time the digital output signal do1 is<br />

set to 0.<br />

ISignalDO\Single, do1,1,sig1int;<br />

Orders an interrupt which is to occur only the first time the digital output signal<br />

do1 is set to 1.<br />

ISignalDO [ \Single ] Signal TriggValue Interrupt<br />

[ \Single ] Data type: switch<br />

Specifies whether the interrupt is to occur once or cyclically.<br />

If the argument Single is set, the interrupt occurs once at the most. If the argument<br />

is omitted, an interrupt will occur each time its condition is satisfied.<br />

Signal Data type: signaldo<br />

The name of the signal that is to generate interrupts.<br />

TriggValue Data type: dionum<br />

The value to which the signal must change for an interrupt to occur.<br />

The value is specified as 0 or 1 or as a symbolic value (e.g. open/close). The signal<br />

is edge-triggered upon changeover to 0 or 1.<br />

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

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

Saved successfully!

Ooh no, something went wrong!