Product guide
NPN vs PNP: How to Wire a Tower Light or Beacon to a PLC
NPN (sinking) and PNP (sourcing) outputs switch opposite sides of the load. This guide shows how to connect each tier of a tower light or a beacon to either type of PLC output, where the common wire goes and what to check before switching on.
NPN and PNP describe which side of the load a transistor output switches. An NPN (sinking) output connects the signal wire to 0 V, so the lamp's common wire goes to +24 V. A PNP (sourcing) output connects the signal wire to +24 V, so the common wire goes to 0 V.
A tower light wired this way lights the tier whose signal wire the PLC switches — and ZJWZJH (JINHONG) tower lights and beacons rated 12/24 V AC/DC work with both, because their inputs are not polarity-sensitive.
What NPN and PNP actually mean.
Both are transistor outputs, as found on PLC output cards, sensors and relay modules. The transistor acts as an electronic switch with three wires on the outside: supply, 0 V and the output. What differs is the direction in which the output switches:
| NPN output | PNP output | |
|---|---|---|
| Also called | Sinking output | Sourcing output |
| When ON, the output is connected to | 0 V (it sinks current from the load) | +24 V (it sources current into the load) |
| The other end of the load goes to | +24 V | 0 V |
| Tower light common wire goes to | +24 V | 0 V |
| Common in | Japan and much of Asia | Europe and North America |
| If the PLC output fails open | Lamp off | Lamp off |
The last line is the reason why many European machine builders prefer PNP: an earth fault on the signal wire of a PNP circuit blows the fuse instead of switching the load on. Which one you use is decided by the PLC or the output module you already have — not by the signal light.
How a tower light is wired.
A ZJWZJH tower light has one signal wire per colour, one for the buzzer if fitted, and one common wire. Each tier lights when current flows between its signal wire and the common wire. The catalogue shows the same wiring for an external contact (relay or switch), an NPN transistor and a PNP transistor:

| Function | Wire colour |
|---|---|
| Red tier | Red |
| Yellow tier | Orange |
| Green tier | Green |
| Blue tier | Blue |
| White tier | White |
| Buzzer | Purple |
| Common | Yellow |
Wire colours differ between series — the STL29 mini beacon, for example, has two black wires — so always follow the wiring diagram on the product page. Every series lists its own diagram under Dimensions, e.g. TL52, TL-E52 or STL-E96.
Wiring to an NPN (sinking) PLC output.
- Connect the common wire through a 1 A fuse to +24 V.
- Connect each signal wire to one NPN output of the PLC.
- Connect the 0 V of the PLC output card to the same 0 V as the 24 V supply.
- When the PLC switches an output on, that output pulls the signal wire to 0 V and the tier lights.
Wiring to a PNP (sourcing) PLC output.
- Connect the common wire through a 1 A fuse to 0 V.
- Connect each signal wire to one PNP output of the PLC.
- Supply the output card from the same +24 V.
- When the PLC switches an output on, it puts +24 V on the signal wire and the tier lights.
With a relay output or a pushbutton the rule is the same: the contact sits in the signal wire, the common wire goes to the other pole of the supply.
Polarity: when it matters.
Lights rated 12 V or 24 V AC/DC — most ZJWZJH tower lights and beacons — also run on AC, which means their inputs work with either polarity. The same light can therefore be wired to NPN or PNP outputs without ordering a special version, and ZJWZJH beacons are designed so that an open-collector PLC output can drive them directly.
Some models are DC only, for example the TL-60 tower light (12/24 V DC), the WL30 light bar and the DHBC sounder. Check the polarity on their wiring diagram before switching on. The FL16 three-colour line light is ordered for one type: code A = common anode (for NPN outputs), B = common cathode (for PNP outputs). With the wrong polarity the light stays off.
Check the current before connecting.
A transistor output has a current limit, typically a few hundred milliamps. Each LED tier of a ZJWZJH tower light draws only tens of milliamps — for example 30 mA at 12 V and 18 mA at 24 V per tier on the TL45, with an inrush of about 100 mA — and the buzzer about 18 mA. That is well within a normal PLC output, so no interface relay is needed. Larger beacons draw more: an STL72 beacon takes 60 mA at 24 V. The Characteristics tab of each product lists the current per colour and voltage.
| Series | Type | LED current | Inrush |
|---|---|---|---|
| TL45 | Ø45 mm tower light | 18 mA | 100 mA |
| TL-E52 | Ø52 mm tower light | 18 mA | 100 mA |
| STL29 | Ø29 mm mini beacon | 18–24 mA | 24 mA |
| STL72 | Ø72 mm beacon | 60 mA | 100 mA |
When to skip the wiring: RS-485.
On larger lines, running one wire per colour to every station adds up. The RS-485 versions of the TL-E52, TL-U60, TL-BX52, STL-E96 and K8X take a two-wire bus instead: the PLC or a PC sets each colour, flashing and the buzzer over Modbus RTU, and baud rate, address and parity are configurable.
FAQ
Can I connect a tower light directly to a PLC output?
Yes. ZJWZJH tower lights draw only tens of milliamps per tier, which a standard 24 V transistor output can switch directly without an interface relay. Fit a 1 A fuse in the common wire, and check the current of larger beacons on the product page.
Do I need an NPN or a PNP tower light?
For lights rated 12/24 V AC/DC you do not need a special version: the inputs work with either polarity, so only the common wire changes — to +24 V for NPN, to 0 V for PNP. DC-only models such as the FL16 are ordered as common anode or common cathode.
What happens if I connect the common wire to the wrong side?
With an AC/DC-rated light nothing is damaged but the tiers will not switch as intended. With a DC-only light the wrong polarity simply keeps the light off; check the wiring diagram and swap the common wire.
Which is safer, NPN or PNP?
PNP is preferred in Europe because an earth fault on the signal wire trips the fuse rather than switching the light on. Both are safe when the circuit is fused and wired as shown in the diagram.
How do I wire the buzzer?
The buzzer has its own signal wire (purple on the TL52) and shares the common wire with the LED tiers, so it is switched exactly like an extra colour from its own PLC output. On the TL45 the buzzer draws about 18 mA, well within a normal transistor output.