Internet PLC Forum
General => Technical support => Topic started by: CPEng on July 12, 2012, 12:23:03 PM
-
I have an new FMD88 (r77) firmware trying to count a flow meter and the interrupt seems to be broken.
I read in the manual that inputs #3-#6 can be used interrupt pins, so I hook up the meter to #3 pin.
I create a init function that runs first scan with the code:
intrdef 3,2,1
Then create function #2 "Count" with code
A= A+1
Program and transfer, then online monitoring of A variable and nothing. But I see the light for input #3 flashing.
Just to double check, I comment out the interrupt statement, then use ladder to scan input #3 and run a "diff up" function #2. Variable 'A' increments as it should, so the controller is receiving the signal.
Just to be sure I tried the same thing on input #4.
Is there something I'm missing?
Thanks
-
It should be INTRDEF 1,2,1
Input #3 = Interrupt channel #1.
Input #4 = Interrupt channel #2.
Input #5 = Interrupt channel #3.
Input #6 = Interrupt channel #4.
-
Thats what it was, thank you.
I couldn't find anything in the manual under the interupt section that states this so it might be helpful for others if its updated.
-
Thank you for your feedback. The special digital I/Os are tabled in Chapter 6 but I guess it will help to repeat the info on the interrupt section. We will suggest that for inclusion in future release of the User's Manual.