Structure of the Interrupt Program

The following block contained in the library OnBoardIO_AC500_V13.lib is available for the interrupt program:

  • ONB_IO_INT_IN: Determination of the interrupt initiating source

It is possible to start one interrupt task. This task can be started by any channel (I0…I3) 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 (I0…I3) has triggered an interrupt since the last call of the block is provided by the outputs IN0…IN3 of the block ONB_IO_INT_IN. This is why this block always has to be called at the beginning of the interrupt program, if more than one channel is configured as interrupt input.

Note

The interrupt program will be called every time if a pulse edge is detected. But if pulse edges are occurring simultaneously on several inputs which are configured as interrupt inputs, the interrupt program can be called once.