12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

InstructionISignalAIAnalog Signal InterruptExample 2 of interrupt generationSignal logical valueHighValueSignal ValueLowValue01 2 3 4 5 6 7 8 9 10 11 12Time for order of interrupt subscriptionStorage of <strong>reference</strong> valueSamplesAssuming the interrupt is ordered between sample 0 and 1, the following instructionwill give the following results:ISignalAI ai1, AIO_BETWEEN, 6.1, 2,2, 1.0 \DPos, sig1int;A new <strong>reference</strong> value is stored at sample 1 and 2, because the signal is withinlimits and the absolute signal difference between the current value and the laststored <strong>reference</strong> value is greater than 1.0. No interrupt will be generated because the signal changes are in the negativedirection.sample 6 will generate an interrupt, because the signal value is between High-Value and LowValue and the signal difference in the positive direction comparedto sample 2 is more than DeltaValue.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 185

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

Saved successfully!

Ooh no, something went wrong!