Discrete Input Interrupt Allen Bradley 5/05

feike2

Member
Join Date
Apr 2005
Posts
12
I have another question about a DII with an Allen Bradley 5/05. I was told you can only use one DII in your program. Am I correct, or can I program more DII (Discrete Input Interrupt)? I need to read the acc. count of a 1746-HSCE at the begin en at the end of a product in hi speed (Conveyorspeed about 80 meter/minute, product widht 50 mm). So I have two trigger moments for the interrupt.

An other problem: Is the accumelated count I:e.1 of the hi speed counter 1746-HSCE up to date or must read the count value from another file word????

Can anyone please help me how I can handle this problem? Thanx
 
Yes and No

True there is only one DII available but it is possible to use indirect addressing so that you can use a large number of DII's.

I don't have an example or time to write one out. Take a look at indirecting and post again if you have questions.


Beryl
 
Yes, there is only one DII. However it is extremely versatile in that up to eight input bits can be used to trigger the interrupt and they can be selected to trigger on either the leading or trailing edge.

Another aspect of the versatility of this function is that the trigger condition(s) can be modified on the fly. That is, if you want, you can set up the interrupt to trigger on the leading edge, and then in the interrupt routine, or elsewhere in the program, toggle the edge detection mask bit so the the interrupt triggers on the trailing edge. This seems like it would work to get where you're trying to go.

If you need to do different actions based on which signal gave the interrupt you can decode the return mask (S:51) and JSR to a special handler.

Check out chapter 11 of the SLC instruction set reference,
A-B pub. 1747-RM001D-EN-P - November 2003
 
You can also change the file number (S:46) you want to scan when an interrupt happens and the slot number to monitor (S:47).

STI's can be managed the same way so that you can have multiple program files to use as your DII/STI although only one can be cued up as the "current" file to run upon interrupt.

Craig
 
...But whatever you do (ie. changing file numbers on the fly) document it to death...


Good Luck,

(8{)} ( .)

(Yosi)
 

Similar Topics

Got a new piece of equipment that has a flow switch on it. But the flow switch is 4-20ma output and we don't have any analog inputs left and the...
Replies
19
Views
5,188
by spec i must supply surge protection for each individual PLC input in my panel. These devices are all of the voltage free (dry contact type)...
Replies
11
Views
2,253
I want to read the pulse output from an ABB mag flow meter with a Modicon BMXDDI1602 discrete input module (positive 24VDC sinking). I will only...
Replies
3
Views
2,448
Hi, I have an application where I need to determine the frequency of a pulse train coming from an inductive prox sensing gaps in the structure of...
Replies
3
Views
1,780
hello, i am confused about modbus discrete input. i found an example online, HMI is Client, PLC is server. To read the "motor servo-on status"...
Replies
1
Views
1,620
Back
Top Bottom