Author Topic: IRQ ; How it works ?  (Read 1433 times)


  • Newbie
  • Posts: 30
  • I'm a llama!
    • View Profile
IRQ ; How it works ?
« on: March 19, 2014, 04:27:03 AM »
Hello Tri PLC
We have some difficulties in understanding how IRQ works on Nanos and FMD. We know how IRQ work on a micro-controler. But it looks rather different on your products. Could you give us some more information on this subject ?


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3118
    • View Profile
    • Internet Programmable PLCs
Re:IRQ ; How it works ?
« Reply #1 on: March 19, 2014, 10:25:35 AM »
You use the INTRDEF function enable the interrupt input channel, the function number of the interrupt service routine tie to this channel, and the interrupt edge (rising, falling or both edges).

The interrupt service has the priority above the ladder logic scan. Also if the CPU is executing a custom function then the ISR will run after the current statement has finished execution. i.e the interrupt service routine does not need to wait for the current function to return before it is called.

By default the ISR is not called when the PLC is performing its I/O scan cycle (update of its physical inputs and outputs status). This can be changed by the SETSYSTEM 256, 1.

The priority of the user-defined interrupt is in numerical order. i.e. Interrupt 1 has higher priority than 2, and 2 has higher priority than 3, etc.
Tel: 1-877-TRI-PLCS