Multiple output combinations

jefsmk

Member
Join Date
Jan 2010
Location
Eastlake Ohio
Posts
2
I have an application that I'm hoping someone could offer some advise on. I have a device I need to control that is setup to process different parts.

- I have 5 outputs that will tell the device which part to process.
- I would like to use a combination of those 5 outputs to provide more than 5 possible parts

So,
[5 outputs] = [part #]
00000 = part 1
10000 = part 2
01000 = part 3
00100 = part 4
00010 = part 5
00001 = part 6
11000 = part 7
01100 = part 8
ext...

It seems silly to create many rungs each with 5 outputs for all the possible combination I can have here. Just looking for some tips on a better way.

I'm using an AB ControlLogix, and probably would like to provide a part number to select the proper combination of outputs (i.e. 7 = 11000).

Any help out there? Thanks in advance!
 
It seems to me you could directly use the Base 2 binary value to indicate the "number of parts". 5 bits allows values between 0 and 31.

00001 = 1 part
00010 = 2 parts
00011 = 3 parts
00100 = 4 parts
00101 = 5 parts
and so on.

You could just use a Masked Move (MVM) instruction to move a DINT tag value between 0 and 31 to an output module's lowest 5 bits.

Depending on the controller in the 'remote' device you could use similar decoding on that side.
 
Last edited:

Similar Topics

Compactlogix controller, program has 28 conveyors that use TON's to start the conveyors. The TT sounds a warning horn during start and the DN...
Replies
10
Views
526
Safety Risk Assessment is PLd Category 2. Can I have a Safety Relay output wired to 14 Safety Contactors? Or do I need a Safety Relay with 14...
Replies
1
Views
1,676
Been trying to work on having multiple data types in a input/output assembly similar to have a powerflex has bools for most then an INT for the...
Replies
19
Views
7,926
Hi! I have a problem related to using same output on multiple programs. I have for example "Out1" in PLC1 Program and i need to use that same...
Replies
7
Views
2,588
Hi All, Can this be done ? I looking at writing code for "stand alone" Micrologix500 (No other control purposes intended) - Trying to track...
Replies
3
Views
2,483
Back
Top Bottom