Skip to main content
Submitted by pmanleycooke on Mon, 02/20/2017 - 07:01

I should like to trigger the interrupt routine using Digital Inputs 1-8 and 9-16.
The II command only seems to allow for 8 bits.
How can I do it for, say, DI9?

Comments 2

KushalP on 02/23/2017 - 14:57

Hi pmanleycooke,

The II command and the #ININT routine will only work for the first 8 Digital Inputs. If you want to have events occur based on the state of the other Digital Inputs, this can be done by having a loop that is polling and checking the status of the Digital Inputs 9-16.

What do you currently have connected to Digital Inputs 1-8? Are you using the #ININT for the first 8 Digital Inputs already?

pmanleycooke on 02/27/2017 - 03:32

Yes, OK. that what I thought. The first 8 are all used now (I have rejigged the wiring to make it so). They are safety switches external to the axis limts.
I just wondered if I had missed something.
If any more inputs turn up due to modifications I will have to poll them.
Thanks for the information.

Regards, PMC