Skip some of the logic_relay outputs through lua?

I found awesome map with peculiar func_button, this button triggers "logic_relay", the relay has 5 seconds delay, then outputs some parameters back to the func_button. I would like it to do that without 5 seconds delay, but I cant really edit someone else map, so I wondered if I can do that from lua.

https://preview.redd.it/9ieay2xk84381.png?width=665&format=png&auto=webp&s=965ef997227911e19400b4692dd50ff0e8219002

πŸ‘︎ 20
πŸ’¬︎
πŸ‘€︎ u/MercGrim
πŸ“…︎ Dec 02 2021
🚨︎ report
Is there a good way to loop a command infinitely? I just made 2 logic_relays and made them trigger each other
πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/_cerbus_
πŸ“…︎ Dec 05 2021
🚨︎ report
Part of the service manual for a still-running system whose control logic is 100% mechanical (all relays and mercury switches)
πŸ‘︎ 92
πŸ’¬︎
πŸ‘€︎ u/ralfsmouse
πŸ“…︎ Oct 05 2021
🚨︎ report
Fanuc people. Question on safety loop. Wiring my estop/fence door to a guardmaster 440, internal logic to click the G7S omron relay. Would this work?
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/filbob
πŸ“…︎ Sep 04 2021
🚨︎ report
What cool stuff have you guys come up with using logic relays, timers, triggers, etc.?

For example I'm working on a motion-sensitive security camera system

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Dear-Crow
πŸ“…︎ Jul 01 2021
🚨︎ report
Well this new. Advanced relay logic with safety relays and contactor feedbacks. imgur.com/8Sa08m2
πŸ‘︎ 132
πŸ’¬︎
πŸ‘€︎ u/SheepShaggerNZ
πŸ“…︎ Mar 02 2021
🚨︎ report
Relay Logic Nixie Tube Clock Checks All The Boxes hackaday.com/2021/08/09/r…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/hackadaybot
πŸ“…︎ Aug 09 2021
🚨︎ report
Could I connect HC or HCT series logic gates' output(s) into their inputs without transistors or relays?

In Tinkercad, the power supply (not the chip) breaks because too much current is passing through.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/cyrilsiyuan
πŸ“…︎ Jun 26 2021
🚨︎ report
Have you ever encountered pure relay logic in your work?

I have always been curious to know if implementing relay logic with actual relays (not ladder logic) still happens.

Couple days ago my boss was telling me how he started his career troubleshooting these kind of circuits in 70s and I thought that there might be some of these circuits out there.

Can you share your experience with relay logic if have any? I’m really curious to hear your stories

πŸ‘︎ 42
πŸ’¬︎
πŸ‘€︎ u/pK_xXx
πŸ“…︎ Oct 26 2020
🚨︎ report
Is relay logic still a thing?

I'm a software developer moving into electromechanics, as such, all of my perceptions on this topic may be totally wrong.

so the thing is, I have been exposed to PLCs and relay logic recently.

As a software developer, the whole thing feels bend over backwards, the first time I heard of a PLC in my mind it was a "bigger Arduino with more capabilities, I have played with that, this should be nice!", but then I get this ladder logic madness of 4 columns and 150 rows of..just....why?? it just feels like 50 years behind of every piece of technology I have ever worked in.

anyways, is relay logic still a thing in the industry? I mean, do people still design stuff using physical relays instead of coding the logic in a small IC that drives all the relays? why is it still taught? why is it used as an abstaction layer for programming PLCs instead of code? it feels so confusing.

As a note, it's not that I find ladder logic hard, it's pretty easy, but it's so inconvenient and unreadable for anything with any kind of complexity, I feel a named function and written C code would just do the job.

EDIT: Thank you all for your aswers!, I have learned a lot by reading all of you and now I have a differennt view on the topic. Thanks for all the practical anecdotes, for all the diferent points of view. I have grown a bit by reading you.

πŸ‘︎ 97
πŸ’¬︎
πŸ‘€︎ u/martov
πŸ“…︎ Oct 10 2020
🚨︎ report
[Suggestion] A clockwise relay block as basis for logic gates

IO: Shaft input, shaft output on the opposite side, small gear input on the sides (like in the mill and similar blocks).

Behavior: Transmits rotation from both inputs to the output by usual rules, except that if either of the inputs are rotating clockwise, the output will also be rotating clockwise, and the block will be emitting a redstone signal.

Purpose: Distinguishing between clockwise and counter-clockwise directions in a compact and lagless way - among other obvious applications, facilitating the creation of awesome and needlessly complicated gear-based logic computers a-la mechanical calculators.

Reasoning behind this specific IO configuration:

Assuming that direction of rotation represents a ternary logical signal -- 1 for clockwise, 0 for counter-clockwise, and -1 for no signal -- a couple of these blocks front-to-back will form a basic OR gate, with inputs from the sides, output in the front and baseline counter-clockwise rotation input on the back: if at least one of the side inputs is clockwise, the output will be clockwise as well.

Combined with a fact that NOT gates already exist in the game - reversing a direction is as simple as putting two gears together - we would have a functionally complete set of logical gates, with which computational devices of any complexity could be implemented within Create alone. :3

πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/deFazerZ
πŸ“…︎ May 31 2021
🚨︎ report
Relay Logic (two inputs and outputs, that break eachother)

Hi :) I’m working on basic relay logic and can’t seem to figure it out.

Here’s where I’m at so far: https://imgur.com/a/X3A2B09

S1 pushbutton activates red light. S2 pushbutton activates green light. There is a holding contact.

Simple enough, but I need the buttons to break eachother. Meaning that, when -S1 is pushed, -S2 closes, and vica verca.

Any tips? :)

Edit: Solution is placing the interlocks in the holding contact for the switches. https://imgur.com/a/sCJLriG

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Thorathe
πŸ“…︎ Mar 06 2021
🚨︎ report
My mini-game build WIP. Logic board, game clock, and a little peak at the display circuit. And of course the target board. The little board in the back has the relays I had to create because the signal was degrading by the time it got through the board, and could trigger the next action. reddit.com/gallery/m0va38
πŸ‘︎ 19
πŸ’¬︎
πŸ‘€︎ u/den_of_thieves
πŸ“…︎ Mar 09 2021
🚨︎ report
Recently someone asked on here if any of us used relay logic at work. This is common at my workplace (unfortunately)...
πŸ‘︎ 52
πŸ’¬︎
πŸ‘€︎ u/calebsullivan3
πŸ“…︎ Oct 31 2020
🚨︎ report
DIY Nixie tube clock with switch relays instead of transistors. Counting circuit is based on 4000series CMOS logic. Fun fact: it accepts 1pps from Rubidium frequently standard which quality this as a true atomic clock! Ish... :) reddit.com/gallery/il47xp
πŸ‘︎ 105
πŸ’¬︎
πŸ‘€︎ u/Tettiah
πŸ“…︎ Sep 02 2020
🚨︎ report
Horn Elevator DAC - Relay Logic controller v.redd.it/waaodmy3poy51
πŸ‘︎ 38
πŸ’¬︎
πŸ‘€︎ u/GatorSK1N
πŸ“…︎ Nov 11 2020
🚨︎ report
Using a OR logic gate (CD4072B) to trigger a relay

Here's a quick sketch of what I'm working with here: https://i.imgur.com/xIXjWl9.png

Basically I have four safety interlocks inputs to a quad OR gate: two doors that must be closed, a flow sensor, and a thermostat. All four are configured such that when the system is safe to operate, the respective switches (or in the case of the thermostat, the relay) will be closed, shorting them to ground. A pull-up resistor on these inputs ensures that if the interlocks are not closed, the input goes high. Since this is a quad OR gate, any high input will result in a high output. So far, everything here is good.

The problem is that the CD4072B is only capable of sinking about 1mA of current on the output pin. I'm using an off the shelf relay board that uses an optocoupler to trigger the relay. 5v supply and 1KOhm resistor for the LED inside the optocoupler so I need to sink 5mA.

What would be the best way to go about this?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/xxbiohazrdxx
πŸ“…︎ Jan 28 2021
🚨︎ report
Cold room dampers : is there a better way to set up this logic with some relays ? Sorry if this is the wrong sub
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/OldBender
πŸ“…︎ Oct 13 2020
🚨︎ report
Relay logic
πŸ‘︎ 141
πŸ’¬︎
πŸ‘€︎ u/rupr25
πŸ“…︎ Dec 30 2019
🚨︎ report
Help using an TXS0108E bi-directional logic shifter to convert 3.3V signals from a raspberry pi to a 5.0V signal to a relay board

Basically the title says it all. I'm trying to trigger a 5 volt relay board using a raspberry pi Basically on the a-side I have my 3.3 raspberry pi connections And on the b-side I have my 5-volt connections but this doesn't work I've even checked with a multimeter and I'm getting millivolts so I'm clearly doing something wrong any help would be greatly appreciated

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/jaredes291
πŸ“…︎ Jul 06 2020
🚨︎ report
70's and 80's relay logic, how did you old timers work it out?

I am reverse engineering the relay logic in and old system now, and its just not working for me. To make it happen in my brain I have to copy the circuit into ladder logic.

Asking the question to the guys who are on the upper side of the 50's age wise? How did you design complex relay logic? All I can come up with is a complex truth table, but even then I am not sure how to write it down.

EDIT: Should have stated that I just transfer it all to ladder logic in the preferred PLC and that works for me. But I can stare at a schematic for hours and hours and still not figure out.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/gamman
πŸ“…︎ Jul 13 2020
🚨︎ report
3.3v to 5v logic level converter problems with relay.

So I am using the raspberry pi 4b and this relay breakout board. The relay board doesn't like the 3.3v from the pi's GPIO's so I have wired one of these Logic level converters to bring the 3.3v up to 5v and when testing everything works as expected and the logic leveler bring the 3.3v up to 5.0v but as soon as I wire that to the relay the 5.0v logic wire coming from the logic leveler drops to 3.0v.

Now I have heard that the logic level converter is a pull-up and the relay would be a pull down but wouldn't the circuity on the breakout board take care of this problem or no?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/ichiemo
πŸ“…︎ Aug 20 2020
🚨︎ report
Control circuit for AC drive. The logic of this circuit works, but it draws too much current. If I add any resistor before ground, the relay won't switch. Can this be solved or should I approach differently?
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/ussmaff
πŸ“…︎ Jun 11 2020
🚨︎ report
The machine room of a 1929 elevator in the Clifford Building, San Antonio, TX. Single-speed AC motor controlled by relay logic.
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/1Davide
πŸ“…︎ Dec 28 2019
🚨︎ report
The machine room of a 1929 elevator in the Clifford Building, San Antonio, TX. Single-speed AC motor controlled by relay logic.
πŸ‘︎ 195
πŸ’¬︎
πŸ‘€︎ u/1Davide
πŸ“…︎ Dec 28 2019
🚨︎ report
Relay logic finally broke. Management wants us to "simply port the electrical wiring diagrams" to a PLC, or fix the relay logic.

We had one station that was using the classic electro-mechanical relay logic, and mechanical timers of some sort. No one knew how it really worked. There was a group of engineers that tried to push for a proper reverse engineering so they could port to a PLC, half a decade ago. That got shut down.

We only realized some of the electrical wiring diagrams were missing or extremely degraded after a recent electrical fire burned up a good chunk of the relay logic controls.

While I'm not involved with the mess (yet), from what I've heard, an industrial controls vendor was contacted to see if they could rebuild the relay logic instead of trying to replace it with a PLC, and they noped out of that.

I wish I could post some pictures, but the company has a hard no-camera policy on company grounds.

I'm going to assume that we're going to need to program and wire a new PLC setup from a blank slate and incomplete documentation, with the clocks ticking because the downtime was not scheduled at all.

EDIT: The reason why I'm sharing it here is because I have never worked with mechanical relays before, so porting a burned up setup to PLC is not going to be fun.

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/COMPUTER1313
πŸ“…︎ Jun 22 2019
🚨︎ report
Nowadays keys must be wireless) I mounted PIR sensor indoor at entrance zone and connect it to EXIT button. Schematic changes: replace 16V capacitor to 25V, removed 10 ohm resistor near relay, and change logic from NC to NO. #DIY
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/krezalis
πŸ“…︎ May 26 2020
🚨︎ report
How to Make a Computer - Part I: Relays and Logic Gates youtube.com/watch?v=fB85N…
πŸ‘︎ 896
πŸ’¬︎
πŸ‘€︎ u/hoppelake
πŸ“…︎ Dec 12 2016
🚨︎ report
The machine room of a 1929 elevator in the Clifford Building, San Antonio, TX. Single-speed AC motor controlled by relay logic. The relays can be pushed directly to start the elevator moving.
πŸ‘︎ 40
πŸ’¬︎
πŸ‘€︎ u/camtarn
πŸ“…︎ Dec 28 2019
🚨︎ report
Building a computer out of relays. Ep 1 Basic Logic Gates youtube.com/watch?v=F__Tr…
πŸ‘︎ 380
πŸ’¬︎
πŸ‘€︎ u/asoap
πŸ“…︎ Nov 28 2017
🚨︎ report
Warframe Logic β†’ LEAVE SIMULACRUM β†’ LEAVE RELAY β†’ LEAVE LARUNDA/KRONIA/ORCUS RELAY β†’ Back on your Orbiter

Using Fast Travel on the PC yields interesting results.

Ditto with "Leaving Cetus" while in Cetus where you land again in Cetus (some instance the game wants you to be) before going back to your Orbiter.

Coding at its finest.

πŸ‘︎ 181
πŸ’¬︎
πŸ‘€︎ u/grondoval
πŸ“…︎ Dec 17 2017
🚨︎ report
The machine room of a 1929 elevator in the Clifford Building, San Antonio, TX. Single-speed AC motor controlled by relay logic.
πŸ‘︎ 45
πŸ’¬︎
πŸ‘€︎ u/1Davide
πŸ“…︎ Dec 28 2019
🚨︎ report
How to Make a Computer - Part I: Relays and Logic Gates (2016) youtube.com/watch?v=fB85N…
πŸ‘︎ 323
πŸ’¬︎
πŸ‘€︎ u/eric1707
πŸ“…︎ Jan 31 2017
🚨︎ report
Relay, Switches and Ladder Logic

Hello all,

Could anyone explain or link to a detailed explanation of how the author derived the truth tables for the following Ladder Logic Diagram. Or am I supposed to just "know" or memorize that the ladder logic diagrams correlates with the truth tables? Thanks!

https://preview.redd.it/c5dew7z003g31.png?width=743&format=png&auto=webp&s=4ac50e60def2247aa8dfe7ad57d9e48ef573df40

https://preview.redd.it/r8g338i103g31.png?width=708&format=png&auto=webp&s=da08b3c6e0af8ef66941456b782366d1112d3bc5

Here are a couple more examples the author asks:

https://preview.redd.it/zsyegu4n03g31.png?width=755&format=png&auto=webp&s=678c0f9aa4d5ca62533e6519bde27bbb6e4511e6

https://preview.redd.it/2sicklyn03g31.png?width=765&format=png&auto=webp&s=ef6daebded241197533af2366c6417e25c17612f

Solutions to the above:

https://preview.redd.it/z99gjc7r03g31.png?width=696&format=png&auto=webp&s=4b145021966ed80268eb209945b6775fe6b66c29

Thanks again.

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/jkenzie47
πŸ“…︎ Aug 12 2019
🚨︎ report
The machine room of a 1929 elevator in the Clifford Building, San Antonio, TX. Single-speed AC motor controlled by relay logic. The relays can be pushed directly to start the elevator moving.
πŸ‘︎ 20
πŸ’¬︎
πŸ‘€︎ u/camtarn
πŸ“…︎ Dec 28 2019
🚨︎ report
My relay computer project - building the ALU logic block youtube.com/watch?v=2vjxf…
πŸ‘︎ 118
πŸ’¬︎
πŸ‘€︎ u/friedo4
πŸ“…︎ Oct 02 2017
🚨︎ report
Request for advice on controlling 5V relays from 3V logic

I'm trying to design a circuit that controls several relay boards and I wanted to check some of my assumptions, get a better handle on the reading of a datasheet, and get a recommendation on connecting LEDs.

Ultimately what I'm trying to get to is controlling a number of 5V relays using a 3.3V microcontroller and have an LED on each relay channel for visual feedback. The relays get turned on by bringing it's appropriate control pin to ground.

My current approach is using shift registers (specifically I'm looking at NPIC6C596A but I'm not tied to it) to control the relays but I'm still learning and trying to understand parsing datasheets and how things fit together.

First the shift register above is listed as open-drain. I'm pretty sure this is what I want, is there anything else I need to do besides connecting the relay control pin to these outputs and bring them low to activate the relay (this grounds the relay through the pin when it is low right?). I don't think I need a current limiting resistor on it (each relay seems to consume about 17mA at 5V and the datasheet has the outputs rated for 100mA continuous).

Next that level shifter has a supply range specification between 2.3V and 5.5V does it matter whether I power it from my 3.3V or 5V rail? Does the supply voltage have any impact on the voltage needed to control it? Or the voltage it can control? Does it matter they're not the same? The data sheet say HIGH-level input voltage between 3Vcc and 5.5Vcc with a Min of 0.85Vcc. I have no idea what that 0.85Vcc actually means on this data sheet (is it voltage drop on the pin?) If I power it from my 3.3V rail will there be any issues controlling the 5V relays? If I power it from a 5V rail will the 3.3V from the micro be recognized by the input pins?

The last question I have is connecting the LEDs to the outputs as well. Will connecting the cathode of the LED to a pin shared by a relay cause any issues (assuming I don't sink more current than the pin is rated for)? Does it matter if the supply voltage for the LED matches the 5V of the relay?

If you've gotten this far thanks for reading my flood of questions and thanks in advance for any advice anyone has to offer.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/TrueDuality
πŸ“…︎ Apr 11 2019
🚨︎ report
Just got to see what relay logic looks and sounds like imgur.com/gallery/OE5YN
πŸ‘︎ 65
πŸ’¬︎
πŸ‘€︎ u/killnvilln36
πŸ“…︎ Jan 31 2018
🚨︎ report
PLC and relay logic

Hello everyone! I've been a journeyman electrician for three years working mostly in the oil and gas industry. One area that I'm really weak in is PLC's and relays. Following plans and landing wires in new construction is easy but trouble shooting is beyond me. I'm getting frustrated with it and I want to know if you guys have any tips, YouTube links or slutty tricks I can use to get better. Thank you!

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/GrayRanchXP
πŸ“…︎ Feb 03 2019
🚨︎ report
Logic-Relay Error

I used this tutorial from Valve for creating my double doors and they do work perfectly but I always get this console-output while closing the doors:

ERROR: logic_relay door_relay1 has been triggered but is awaiting refire. OUTPUTS WILL NOT BE FIRED!!!

It does not really bother me that much but it still does. Is there any easy fix for it that i am missing? "Allow fast retrigger" did not work btw, game crashed while closing. HavenΒ΄t found fixes on the internet.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/TaishanCS
πŸ“…︎ Jul 25 2019
🚨︎ report
Horn Equipment. Relay Logic!!!
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/GatorSK1N
πŸ“…︎ Sep 29 2018
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.