12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

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.

InstructionISignalAOAnalog Signal InterruptISignalAO - Interrupts from analog output signalISignalAO (Interrupt Signal Analog Output) is used to order and enable interrupts froman analog output signal.ExampleVAR intnum sig1int;CONNECT sig1int WITH iroutine1;ISignalAO \Single, ao1, AIO_BETWEEN, 1.5, 0.5, 0, sig1int;Orders an interrupt which is to occur the first time the logical value of the analogoutput signal ao1 is between 0.5 and 1.5. A call is then made to the iroutine1 traproutine.ISignalAO ao1, AIO_BETWEEN, 1.5, 0.5, 0.1, sig1int;Orders an interrupt which is to occur each time the logical value of the analogoutput signal ao1 is between 0.5 and 1.5, and the absolute signal difference comparedto the previous stored <strong>reference</strong> value is bigger than 0.1.ISignalAO ao1, AIO_OUTSIDE, 1.5, 0.5, 0.1, sig1int;Orders an interrupt which is to occur each time the logical value of the analogoutput signal ao1 is lower than 0.5 or higher than 1.5, and the absolute signal differencecompared to the previous stored <strong>reference</strong> value is bigger than 0.1.ArgumentsISignalAO [\Single] Signal Condition HighValue LowValueDeltaValue [\DPos] | [\DNeg] Interrupt[\Single]Data type: switchSpecifies whether the interrupt is to occur once or cyclically.If the argument Single is set, the interrupt occurs once at the most. If the argumentis omitted, an interrupt will occur each time its condition is satisfied.SignalData type: signalaoThe name of the signal that is to generate interrupts.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 189

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

Saved successfully!

Ooh no, something went wrong!