logix pro question. 3 spst switches workin as two three ways and one four way

Join Date
Jul 2011
Location
mississippi
Posts
3
I'm in school for the electrical technology program and we are working with logixpro and i can not figure out how to make three spst switches work as two three ways and a four way. i can make two work which is relatively simple. but for some reason i cant figure this one out(n)
 
I'm in school for the electrical technology program and we are working with logixpro and i can not figure out how to make three spst switches work as two three ways and a four way. i can make two work which is relatively simple. but for some reason i cant figure this one out(n)

Show us a Screen Shot of what you have so far.

Stu....
 
Another way to think of three-way with intermediate four-way switches is with the Exclusive-OR function (XOR). In ladder an XOR can be made like this (the same as the top two branches of dirtbikedustin's diagram:


S1 S2 X
--] [------]\[----+---------------------( )
|
S1 S2 |
--]\[------] [----+



The 'X' is just a temporary holder. But what do you do with the third switch? You do another XOR using the result (X) of the rung above with the third switch.


S3 X LIGHT
--] [------]\[----+---------------------( )
|
S3 X |
--]\[------] [----+



You can actually expand this out, just as you could in a real electrical circuit by adding four-way switches in the middle, by adding another XOR rung for each added input. The end result will be ON if there are an odd number of ON inputs.
 
Last edited:
Nice Solution Bernie!

Another Solution that seems to work. Try it and see if it works for you.

Stu....

Light Switches.jpg
 
If the course doesn't offer it it would be wise to Google 'Boolean Algebra' which, in essence, is the basics of what ladder logic does.

A whole chain of XOR rungs can be used to decode a Gray Code encoder. It is a very useful function and can be implemented very easily.

Edit - regarding Stu's offering.

If you analyze the 4 contact groups you will see they represent the 'X' as developed in my first rung. They are then XORed with Switch 3. So nearly the same thing without the intermediate holding contact (though this turns on the light if an even number of contacts (including zero) are on. There are various ways to solve this. Though this might be a bit harder to expand - at least not as obvious.
 
Last edited:
Bernie:

Agreed on learning basic Boolean Algebra and rules, not to mention Number Systems, it will always serve you well with PLCs.

Please don't think I am saying there was anything wrong with your solution. I was just offering another solution that seemed to fit the requirements of his problem to help him improve his knowledge.

As you stated, there are always lots of ways to implement something, and every Programmer approaches it differently. The most important thing is a logical flow, and good documentation IMHO.

Stu....
 
To add a second 4-way then takes another 4 rung branches. Each additional simulated 4-way light switch probably doubles the number of rung branches.

3 & 4-Way Light Switches.jpg
 

Similar Topics

How do I get the timer to trip a relay using the ACC instruction. I am using a CTU and a CTD Both are C5:1. I used an examine if closed with...
Replies
4
Views
2,092
So, I have a little dillemma I am trying to work through but I feel there is probably a better way. I've always liked the idea of using a VM in...
Replies
5
Views
2,044
I have some software that requires the use of rslogix 5 professional (Auvesey Octohub) But now that Rockwell no longer offers Pro licensees I am a...
Replies
6
Views
1,535
I want transfer my I/O data from schneider (Unity Pro) as a write data and RS Logix 5000 as a read data. I use Ethernet as an communication...
Replies
0
Views
693
I am trying to move an RS5000 21.03.01 install on a Win10Pro machine. Currently have this existing setup on another Win10Pro machine. The only...
Replies
2
Views
1,407
Back
Top Bottom