Embedded Systems Conference
Breaking News
Newest First | Oldest First | Threaded View
<<   <   Page 4 / 5   >   >>
Max The Magnificent
User Rank
Re: Ladder logic should work
Max The Magnificent   7/15/2013 11:48:07 AM
@betajet: Speaking of my old relay book -- this was written at a time when Boolean algebra was not widely known, so they sort of make up their own notation, which can make your eyes water.

They also were talking about "sneak paths" but their explanations were really confusing -- then they showed one example and I thought "Ha, so THAT'S what they mean!"

Max The Magnificent
User Rank
Re: Ladder logic should work
Max The Magnificent   7/15/2013 11:45:27 AM
@betajet: You can do a very nice XOR using just two of those Mock Relays.

Very interesting -- I was wondering about an XOR, but I was leaving that for later because I've been plunging into my old relay logic book.

The strange thing is how hard I find it to wrap my brain around ladder diagrams -- I never used them myself. At the moment I find it easier to actually think of the relays as a circuit -- but I can see that ladder diagrams would be much more useful -- I need to look for a simple tutorial.

Max The Magnificent
User Rank
Re: Ladder logic should work
Max The Magnificent   7/15/2013 11:41:49 AM
@betajet: "Buzz, buzz", as Hamlet would say?


Max The Magnificent
User Rank
Max The Magnificent   7/15/2013 11:39:41 AM
@Betajet: I saw Harry's relay computer on the Internet quite a few years ago and ended up in an email conversation with him. It really is a "tasty" piece of work, even if he did end up using a silicon chip for the memory :-)

Ron Neale
User Rank
Relays as delay lines
Ron Neale   7/14/2013 5:24:28 AM
Ah relays, delay lines and equivalent circuits. I think I am now able to tell this story without some legal beagle chasing me. Long, long ago I worked on a very simple stock control computer. It used a Sperry drum as the magenetic memory, an arithmetic unit with electronic adders that employed wonderful arithmetic features like end-around-carry for subtraction, but I digress.

The output printer was a Creed Teleprinter. A delay line with a large number of miilisecs delay was urgently needed, it was required for synchronization purposes (I suppose nowadays we would call it clock domain transition) between the computer and the printer. Miles of coax might have done the trick or some big capacitors and inductors. At that time I think IBM had developed a wire relay that was the fastest available. Four in series, the contacts of one driving the coil of the next, provided the required repeatable delay. What appeared on the documentation? A box with the conventional inductor-capacitor delay line schematic with annotation please contact the manufacturer for further details. Why would I (we) do such a thing? Because the sales department had promised delivery tomorrow, when there was still six months of development required, Situation Normal All...etc.

User Rank
Re: Mock Relay Truth Table
Weatherbee   7/13/2013 5:03:36 PM
And the truth table:

C1 C2 A  B  | Y
0  0  0  0  | 0
0  0  0  1  | 0
0  0  1  0  | 1
0  0  1  1  | 1
0  1  0  0  | 0
0  1  0  1  | 1
0  1  1  0  | 0
0  1  1  1  | 1
1  0  0  0  | 0
1  0  0  1  | 1
1  0  1  0  | 0
1  0  1  1  | 1
1  1  0  0  | 0
1  1  0  1  | 0
1  1  1  0  | 1
1  1  1  1  | 1


User Rank
Mock Relay Truth Table
Weatherbee   7/13/2013 5:00:41 PM
Some quick C code to generate a truth table for the Mock relay:

#include <stdio.h>
#include <stdlib.h>

int main (int argc, char **argv)
    unsigned int C1, C2, A, B, Y;
    printf ("C1 C2 A  B  | Y\n"
    for (C1=0;C1<=1;C1++)
        for (C2=0;C2<=1;C2++)
            for (A=0;A<=1;A++)
                for (B=0;B<=1;B++)
                    if (C1 != C2) Y = B;
                    else Y = A;
                    printf ("%d  %d  %d  %d  | %d\n", C1, C2, A, B, Y);            


User Rank
Re: Claude Shannon explains it all to you/XOR Gate with 2 relays
Weatherbee   7/13/2013 4:13:00 PM
Well your observation with the NC7SB3257 was close but not quite right.   Actually, given the description of the relay if the coil operates at the logic voltage then it would be equivalent to a 2:1 multiplexer like you mention *plus* an XOR gate in front of the 2:1 multiplexer control pin.  This is because the relay coil is polarity insensitive, so as long as the inputs to each leg are opposite the magnetic field will move the Y contact from A to B.  Therefore you can realize an XOR gate with a single relay.

C1 = Input 1, C2 = Input 2, Y = Output, A = GND, B = +5V

Note that the above actually indicates that you can get even more then an XOR out of a single relay, since in the above case A and B are statically connected

In comparison to non-tristating gate logic (assuming all contacts must have a valid logic level at all times)

The relay connections C1, C2, A, and B are inputs while Y is an output.   So there are a number of 4-input, 1-output functions that can be realized.   If you allow passives on A, B and Y then there could be some 2 output functions additionally.  

User Rank
Relay logic
JeffL_2   7/13/2013 2:19:54 PM
It would make a nice demo to use relays to show combinatorial logic but I think it would be too hard to take it much beyond that. The hard part only starts when you try to use standard relays to make an element capable of toggling ie the basic component of counting, at least so long as you don't cheat and use special mechanics like alternate-action latching relays! I suppose (in theory at least) you could use four relays to implement something like a master-slave flip-flop but I can't recall having seen it done, maybe you could use fewer if you allow some "non-relay" components. Then you'd just have an asynchronous counting stage, to make it synchronous and running on a master clock would be quite a challenge, can you imagine compensating for contact bounce and unequal closure delays? No thanks, if you want to carry it to that extreme I'll watch, you design, thank you very much!

David Ashton
User Rank
Relay logic
David Ashton   7/12/2013 8:55:06 PM
When I first got my training part of it covered Strowger telephone exchanges.  Which are nothing more than huge collections of relay logic.  They used the old GPO 3000 type relays - probably 2 or 3 times as large as the one you show here Max.  They had specialist tools like tension gauges and what we called "goalposts" - two small pins sticking up from a thin flat bar that were used for precisely bending and adjusting the tension on the contact springs.  Lots of fun, and noisy too when you had a few thousand of them in an exchange.

More recently I have collected some latching relays from some chucked out equipment.  You put 12V on the coil one way and it sets the contacts one way (even when you remove the 12V).  You put the 12V the other way and it pushes the contacts the other way.   I'm not sure what I can do with them, I recall a solar panel charge controller which used one - hence no constant drain on the battery when it was charging, and no diode voltage drop - but I haven't found the diagram for it yet.

I also have some small relays with no less than 8 changeover contacts.  Problem is the coils are 48V.....

Relays in many ways are great things.  If you don't abuse the contacts they last nearly for ever and they are almost totally immune to spikes and surges.    For simple switching they are hard to beat.

BTW if anyone is interested in or can use any of the above, I'll gladly part with them - I work on the principle that if I can see a use for something I'll grab it, and if anyone else can put it to use they can have it.  Works well, except I need a bigger shed :-)

<<   <   Page 4 / 5   >   >>

In conjunction with unveiling of EE Times’ Silicon 60 list, journalist & Silicon 60 researcher Peter Clarke hosts a conversation on startups in the electronics industry. One of Silicon Valley's great contributions to the world has been the demonstration of how the application of entrepreneurship and venture capital to electronics and semiconductor hardware can create wealth with developments in semiconductors, displays, design automation, MEMS and across the breadth of hardware developments. But in recent years concerns have been raised that traditional venture capital has turned its back on hardware-related startups in favor of software and Internet applications and services. Panelists from incubators join Peter Clarke in debate.
Most Recent Comments
Cheri S
Peter Clarke
Most Recent Messages
10:01:44 AM
Flash Poll
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Special Video Section
Chwan-Jye Foo (C.J Foo), product marketing manager for ...
The LT®3752/LT3752-1 are current mode PWM controllers ...
LED lighting is an important feature in today’s and future ...
Active balancing of series connected battery stacks exists ...
After a four-year absence, Infineon returns to Mobile World ...
A laptop’s 65-watt adapter can be made 6 times smaller and ...
An industry network should have device and data security at ...
The LTC2975 is a four-channel PMBus Power System Manager ...
In this video, a new high speed CMOS output comparator ...
The LT8640 is a 42V, 5A synchronous step-down regulator ...
The LTC2000 high-speed DAC has low noise and excellent ...
How do you protect the load and ensure output continues to ...
General-purpose DACs have applications in instrumentation, ...
Linear Technology demonstrates its latest measurement ...
Demos from Maxim Integrated at Electronica 2014 show ...
Bosch CEO Stefan Finkbeiner shows off latest combo and ...
STMicroelectronics demoed this simple gesture control ...
Keysight shows you what signals lurk in real-time at 510MHz ...
TE Connectivity's clear-plastic, full-size model car shows ...
Why culture makes Linear Tech a winner.