09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

intnum Interrupt identity<br />

Description<br />

Examples<br />

Intnum (interrupt numeric) is used to identify an interrupt.<br />

When a variable of type intnum is connected to a trap routine, it is given a specific<br />

value identifying the interrupt. This variable is then used in all dealings with the interrupt,<br />

such as when ordering or disabling an interrupt.<br />

More than one interrupt identity can be connected to the same trap routine. The system<br />

variable INTNO can thus be used in a trap routine to determine the type of interrupt that<br />

occurs.<br />

VAR intnum feeder_error;<br />

.<br />

CONNECT feeder_error WITH correct_feeder;<br />

ISignalDI di1, 1, feeder_error;<br />

An interrupt is generated when the input di1 is set to 1. When this happens, a call<br />

is made to the correct_feeder trap routine.<br />

<strong>RAPID</strong> Reference Manual 7-intnum-1

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

Saved successfully!

Ooh no, something went wrong!