Internet PLC Forum
General => Technical support => Topic started by: Richard Baum on June 13, 2004, 07:52:53 AM
-
I am using a T100MD888+ PLC.
I wrote a simple program to test the interrupts 1-8.
Interrupt 1 toggles output 1 on rising edge of input 1
Interrupt 2 toggles output 2 on rising edge of input 2...
INTRDEF 1,1,1 'where custom function 1 is:
TOGGLEIO OUTPUT_1
If I close contact 1, the input 1 led turns on, on-line monitoring shows that input 1 is on, but nothing happens to the output.
But if I close contact 3, the input 3 led turns on, on-line monitoring shows that input 3 is on, but now output 1 toggles.
Input 4 triggers interrupt 2, Input 5 triggers interrupt 3, and input 6 triggers interrupt 4. Inputs 1, 2, 7, and 8 do nothing.
Is interrupt channel 1 not from input channel 1?
There also seems to be a lot of switch bounce problems. Sometimes the interrupt triggers twice when I close the switch. Sometimes it triggers on release of the switch. Does the PLC have any conditioning for switch bouncing?
-
Please check page 1-2 on the T100MD+ User's manual. Only 4 channels of interrupts are supported and these are multiplexed between straight interrupt, Pulse measurements, and high speed counters.