I am trying to use Mode 40 in order to accurately capture pulses and determine cycles per hour on three machines (the application discussed in my last post).
I just got my AD DL06-DD1 PLC and hooked up a switch to do some manual testing. For now, I just want to take an input on X0, then jump to an interrupt routine, and increment a register by 1. Things work fine when I put the instructions above the (END) marker, but when they are in an interrupt routine, they are not exectuted.
I have gone through the manual extensively, but they don't show how to jump to the subroutine, they only show the subroutine itself and setting up the Mode 40. It is my understanding that if Mode 40 is set up, the X0 input will jump directly to the associated octal interrupt (i.e. O0) without having to put an input rung in the main program. Since it is not jumping to the subroutine, I am thinking that this is wrong.
So far I have...
SP0 (first scan) triggering the following:
-------LD K40
-------OUT V7633
-------LD K4
-------OUT 7634
-------OUT 7635
-------OUT 7636
-------ENI
--------------(END)
[INT O0]
SP1 (always on) triggering the following:
-------LD K1
-------ADD V400
-------OUT V400
--------------(IRT)
What am I missing here?
I just got my AD DL06-DD1 PLC and hooked up a switch to do some manual testing. For now, I just want to take an input on X0, then jump to an interrupt routine, and increment a register by 1. Things work fine when I put the instructions above the (END) marker, but when they are in an interrupt routine, they are not exectuted.
I have gone through the manual extensively, but they don't show how to jump to the subroutine, they only show the subroutine itself and setting up the Mode 40. It is my understanding that if Mode 40 is set up, the X0 input will jump directly to the associated octal interrupt (i.e. O0) without having to put an input rung in the main program. Since it is not jumping to the subroutine, I am thinking that this is wrong.
So far I have...
SP0 (first scan) triggering the following:
-------LD K40
-------OUT V7633
-------LD K4
-------OUT 7634
-------OUT 7635
-------OUT 7636
-------ENI
--------------(END)
[INT O0]
SP1 (always on) triggering the following:
-------LD K1
-------ADD V400
-------OUT V400
--------------(IRT)
What am I missing here?