Posted in

how to connect RS485 stack light to Modbus master

If you’ve been around industrial automation, you’ve definitely seen those stack lights hanging above machines — they’re the little visual communication tools that tell operators at a glance if everything’s running smooth, if there’s a warning, or if something’s gone wrong. For a long time, most of these worked on basic discrete wiring: each color LED had its own separate wire, and you’d have to run a dozen lines just to get a simple status signal. But as networks got smarter, RS485 stack lights started popping up, and suddenly you can control multiple LEDs over a single twisted pair wire, monitor their status, and even adjust their behavior all through Modbus. That’s exactly where we come in — as a go-to RS485 stack light supplier, we’ve helped dozens of factories and small system integrators make this connection, and it’s way more straightforward than it sounds, as long as you skip the common mistakes people make. RS485 Stack Light

First, let’s cut through the jargon for a second. Modbus is the old-school, universal protocol that’s basically the glue for industrial communication — it works with every PLC, HMI, and even some IoT gateways. RS485 is the physical wire we use to transmit the Modbus signals; it’s the best for long runs (up to 1200 meters, which is way longer than you’ll ever need in a factory) and can handle up to 32 devices on one bus. Our RS485 stack lights are built specifically to work with standard Modbus RTU, which is the most common version people use for hardware like ours. So if your Modbus master (that’s your controller, right?) supports Modbus RTU over RS485, you’re already halfway there.

Step one: Gather all the gear you need, and don’t overbuy or skip parts. You’re not gonna need some fancy expensive equipment here. Let’s break it down simply. First, your main components: our RS485 stack light (obviously — we make these with screw terminals, so wiring is no mess), your Modbus master (could be a Siemens S7, Allen-Bradley Micro800, even a cheap Raspberry Pi running Modbus software, whatever you’re using), a RS485-to-USB adapter if you’re testing on a laptop (don’t worry, we sell these too as add-ons if you need), a twisted pair cable — Cat5e or Cat6 works fine, just don’t use thin lamp cord or parallel wire, that’ll cause signal interference — and a 12-24V DC power supply for your stack light. Wait, critical note: power the stack light separately from your master. A lot of new folks try to power it off the same 5V from their PLC, and that’s a fast way to get dim LEDs or no communication at all. These lights draw a little more power than discrete ones, so a dedicated 2A 24V DC supply is perfect for a standard 3-LED stack.

Next, the wiring part — this is where most people mess up, and it’s not hard if you follow our standard pinout. Let’s get straight the RS485 pins: every device has A and B lines, right? A is the positive signal line, B is the negative. Never mix these up. The key rule for RS485 bus is that it’s a daisy chain, not a star. That means you run one length of twisted pair from your master’s RS485 port, connect the first light’s A to the master’s A, B to B, then run the same two wires to the next light, and so on. Don’t split off wires from a central point, that causes signal reflections and kills communication. Now, for our stack light specifically: you’ll find two screw terminals on the bottom side — one is labeled V+ (for your 12-24V DC), GND (ground), then A and B. So connect V+ to your power supply’s positive, GND to power supply’s negative, A to the master’s A, B to the master’s B. One quick tip: if your cable is under 50 meters, you don’t need a termination resistor, but if it’s longer, add a 120 ohm resistor between A and B on the very last device in the chain — that eliminates signal bounce that makes your lights flicker or not respond. We pre-label all our stack light terminals so you don’t mix up V+ with A, which is a super easy mistake to make.

Now, set up the Modbus side — this is where it clicks. Your Modbus master needs to talk to the stack light, so you’ll need to assign a slave address to each stack light in your chain. Our RS485 stack lights come factory set to slave ID 1, but you can change that with a tiny dip switch on the side (no special software needed, just a flathead screwdriver — we include that in every order). You can assign IDs 1 through 31, which is the max for a standard Modbus RTU bus. Let’s say you have three stack lights: set the first one to ID 1, the second to ID 2, the third to ID 3. That way your master knows which light it’s talking to when it sends a command.

Now, the fun part: testing the connection. If you’re using a laptop to test before hooking up to your master, plug the RS485-to-USB adapter into your laptop, open up a free Modbus utility like Modbus Poll (it’s free for basic use), and set the baud rate — our lights default to 9600 baud, 8 data bits, 1 stop bit, no parity, which is standard for most systems. If you change the dip switch on the light, make sure the utility uses the same settings. Send a “write single coil” command to slave ID 1, coil address 0 — that turns the red LED on. If it works, great. If not, go back and check your A and B connections (90% of wiring issues are reversed A and B), check power, and make sure the slave ID matches what you set. If you’re hooking straight to a PLC, the process is similar: in your PLC’s Modbus configuration, add a new Modbus RTU device, set the same baud rate, parity, and slave ID, then map the LED control coils to the stack light’s registers. For example, coil 0 = red LED, coil 1 = yellow, coil 2 = green — that’s how we program our lights’ memory, so you don’t have to mess with custom register mapping.

Wait, common pitfalls that we see all the time as a supplier, so I should mention these because they’re avoidable. First, ground loops. If you’re powering the light and the master from two different power supplies, make sure their GNDs are connected together, otherwise you’ll get signal noise. Second, running the RS485 cable next to power cables. If you’re laying wires in a factory, keep the twisted pair at least 30cm away from 120V or 240V power lines, otherwise the electrical noise will make your lights flash randomly. Third, too many devices on one bus. You can only have 32 RS485 devices total on a single bus, so if you have 10 stack lights, that’s already 10, so don’t add 25 other sensors on the same line. Fourth, wrong termination resistor. If you skip it on long runs, or put it on every device, that’s bad — only the last one, between A and B. We add a small note in every package to remind people, but it’s easy to forget.

Another thing a lot of people ask: can I use our stack light to not just turn LEDs on and off, but also get status back, like if a bulb is burned out or power is low? Absolutely. Our RS485 stack lights have input registers that feed that status back to your master. So if your machine goes down, you can turn the red LED on from your PLC, and also read a register that says “fault active” to trigger a work order automatically. That’s a huge step up from basic discrete lights — it’s two-way communication, not just one-way control.

We’ve installed this setup in all kinds of places: small injection molding shops, packaging lines, even a metal stamping factory with 15 stack lights running on a single RS485 bus. One customer told us before they were running 6 separate wires per light, so 18 wires total, and after switching to our RS485 lights, they cut their wiring time in half and reduced faults by 80%. That’s the kind of win we love to see.

Now, before you go off to try this on your own machine, a quick note: if you’re not sure about your master’s Modbus settings, or you want to confirm that our lights will work with your specific PLC (we’ve tested with almost every major brand, but it never hurts to double check), just reach out. We don’t charge for technical support for our products, and we can even send a sample stack light if you want to test it on your bench before committing to a full order. We’re here to make the process easy, not to make you figure it out alone.

So, to wrap this up: connect RS485 stack light to Modbus master isn’t rocket science. It starts with the right parts, daisy chaining the A and B lines correctly, assigning unique slave IDs, matching baud rates and parity, and avoiding those annoying common mistakes. As an RS485 stack light supplier, we build our products to work seamlessly with Modbus, so you don’t have to deal with weird compatibility issues. If you’re ready to upgrade from your old discrete stack lights, or you’re building a new line and want a smarter visual communication system, get in touch with our team to chat about your project — we’re happy to help you pick the right setup, answer any questions, or even walk you through the wiring step by step.

Electrical Cabinet Light References
Modbus Organization. Modbus Application Protocol Specification V1.1b3.
RS-485 Standard. EIA/TIA-485-A Standard for Differential Data Transmission.
Industrial Automation Suppliers Association. Best Practices for RS485 Network Wiring.


Suzhou Pouge Lighting Electrical Appliance Co., Ltd.
As one of the most professional rs485 stack light manufacturers and suppliers in China, we also support customized service. Please feel free to wholesale advanced rs485 stack light made in China here and get quotation from our factory. For price consultation, contact us.
Address: Building 6-501, No.1330, Jinfeng South Road, Mudu Town, Wuzhong District, Suzhou City, China
E-mail: xduanlyy@126.com
WebSite: https://www.pouge-light.com/