Structure of the Interrupt Program

The following blocks contained in the library DC541_AC500_V11.lib are available for the interrupt program:

It is possible to start one interrupt task per Communication Module slot. This task can be started by any channel (C0…C7) configured as interrupt input. Therefore, it is necessary for the interrupt program to differentiate which channel(s) triggered the interrupt in order to enable the processing of the corresponding actions.

The information whether a channel (C0…C7) has triggered an interrupt since the last call of the block is provided by the outputs IN0…IN7 of the block DC541_INT_IN: DC541_INT_IN

The access to the channels configured as inputs or outputs is done using the block DC541_IO. Therefore, it makes sense to call this block at the beginning of the interrupt program in order to read the inputs and at the end of the interrupt program in order to write the outputs.