Fareed Mohmed ← Engineering

Fareed Mohmed · Engineering

Field Device to PLC Wiring

Device · Cable tray · Panel · PLC card

Follow every signal from the field device to the PLC. Pick a sensor, transmitter, load cell, RTD, thermocouple, solenoid valve, servo, stepper, VFD, encoder, pushbutton, safety device or fieldbus link, and see a colour-coded diagram of each wire from the device, through the cable tray and the panel terminals, to the PLC card, with the steps, the cable, the common mistakes and what to test before you run. Then read how to route the cables, lay out the panel and earth the screens.

This is a guide for first decisions. Terminal names, pin numbers and wire colours differ between makers, so the device and PLC manuals decide the final wiring. Wire colours in the diagrams are typical and for illustration. Safety circuits must be designed and validated to ISO 13849 and IEC 60204-1. A qualified person must review the wiring before it is energised. For cable sizes, derating and cable brands use the Machine Wiring Guide.

User manual with worked examples ↓

01

Wire a device to the PLC

Pick the device, then the way it connects. The diagram follows the signal from left to right: the field device, the panel terminals, and the PLC card or drive.

Connection type

02

From the machine to the PLC: the route

Every field signal takes the same journey. Each step has a job, and most noise and wiring faults come from skipping one of them.

1 · On the machine

Use moulded M8 or M12 plugs on sensors and valves, so a part can be changed in a minute. Group several sensors in one junction box with a multicore cable back to the panel, instead of one cable each. Seal every gland and leave a drip loop.

2 · Cable tray

Three compartments, or three separate trays: power, 24 V DC and signal. Keep the tray below about half full so heat escapes and you can add cables later. Fix the cables every 300 to 500 mm in vertical runs and at every bend.

3 · The panel

Cables enter on a gland plate. Screens clamp to the plate with a 360° clamp, so the earth is made where the cable enters. Wires are ferruled and numbered, land on terminals, and only then go to the PLC and drives.

03

Cable tray: what runs together

Noise comes from fast switching currents. A VFD or servo motor cable is the noisiest cable on the machine. Keep it away from everything that carries a small signal.

A screened cable with its braid clamped on an earthed rail
Screen under a clamp
Braid pressed 360° under a metal clamp on an earthed rail. Never a pigtail.
Metal EMC cable gland in a steel panel plate
EMC cable gland
Earths the screen where the cable enters the panel, and seals the hole.
A safety light curtain bar
Safety light curtain
Group D. Its own cable, kept away from power cables.

Typical practice. Some drive and PLC makers ask for larger distances: their EMC guide decides. See also IEC 61000-5-2 and EN 50174-2.

Cable groupExamplesCableKeep apart from
A · Power, noisyMotor and VFD output, servo motor power, contactors, heaters, mains feedersScreened for VFD and servo output (360° clamp both ends)All of B and C: 200 to 300 mm, or an earthed metal divider
B · 24 V DC controlSensors, solenoid valves, pushbuttons, lamps, relays, PLC digital I/OMulticore, unscreened (screened in noisy areas)Group A. Fine beside group C if the signals are screened
C · Analog and bus4 to 20 mA, 0 to 10 V, load cells, RTD, thermocouple, encoders, Ethernet, RS-485Screened twisted pairs, screen earthed at the panel endGroup A. Do not run alongside group B unscreened
D · SafetyEmergency stop, guard switches, light curtainsMulticore or screened as the maker says, own coresGroup A. Do not mix with standard control in one thin cable

Cross at 90°

When a signal cable must cross a power cable, cross at a right angle. The coupling between them is smallest, and a short crossing does little harm.

Screens: where to earth

A VFD or servo motor cable has its screen clamped at both ends with a 360° clamp. An analog or encoder screen is normally earthed at the panel end only. Never use the screen as the signal return or the supply wire.

Drag chains and moving parts

Use cable made for a drag chain (fine strands, special jacket), never ordinary flexible cable. Do not mix power and signal cables in one chain without a divider, and respect the bend radius on the data sheet.

04

Inside the panel: layout and earthing

A clean back-plate is easier to build, test and repair. Put the noisy parts at one side and the quiet parts at the other, and let the wires flow in short, straight lines.

Insulated wire-end ferrules crimped on wires
Ferrule on every stranded wire
Colour sleeves: the colour shows the cross-section. Crimp with the right tool.
Metal EMC cable gland in a steel panel plate
Gland plate
Glands go on the bottom plate, with the screen clamped as the cable enters.

One zone for power, one for control

Put the incomer, contactors and drives together, and the PLC with its I/O cards at the other side, with a wire duct between. Drive output cables run straight out of the panel to the gland plate, not past the PLC.

24 V distribution

Feed 24 V from a good supply through a fused or electronically protected rail, with one fuse per group (sensors, valves, drives, PLC). Run the 0 V as a rail too, tied to PE at one point only, as the PLC manual says.

Earthing

Mount the back-plate bare metal, bonded to the panel and the PE bar. Bond the door and the drives to it with short, wide braids. Land every screen on a clamp bonded to the gland plate. Keep the PE wire short and thick; it is a high-frequency path as well as a safety wire.

Wires, ferrules and labels

Fit a ferrule on every stranded wire and crimp with the right tool. Number each wire at both ends with the same number as the drawing. Use the control colours: black for power, red for AC control, blue for DC control, orange for interlocks supplied from outside the panel, green and yellow for PE only.

Spare capacity

Leave 10 to 20 % of spare I/O, terminals and duct space. Adding a sensor after delivery is the commonest change on every machine.

05

PLC cards at a glance

Match the device to the card before you buy it. A wrong card type is the most expensive wiring mistake.

CardForWhat to checkTypical field cable
Digital input 24 V DCSensors, switches, buttonsSinking or sourcing (PNP or NPN), input group common, input delay3 core 0.34 mm², M12 plug
Digital output transistorValves, lamps, small relaysSourcing or sinking, current per output and per group, short-circuit protection2 or 3 core 0.5 mm²
Digital output relayContactors, 230 V loads, mixed voltagesContact rating and life, interposing relay or snubber for inductive loadsControl cable, own fuse
Analog inputTransmitters, load cells (via amplifier), potentiometersCurrent or voltage range, isolation, resolution, wire-break detectionScreened twisted pair
Analog outputVFD speed, valve positioners, servo analog command0 to 10 V or 4 to 20 mA, load resistance, isolationScreened twisted pair
RTD / thermocouplePt100, Pt1000, thermocouple typesSensor type, wire count, wire-break detection, cold junctionScreened pairs, matching extension cable
High-speed counterEncoders, flow pulsesMaximum frequency, differential or single-ended, supply voltageScreened twisted pairs
Pulse output (PTO)Servo and stepper pulse and directionMaximum frequency, 24 V or line driver, number of axesScreened twisted pairs, short
Ethernet or fieldbusDrives, remote I/O, HMI, camerasProtocol, number of nodes, update time, switch typeCat5e S/FTP or M12 D-code
06

Before power, and when it does not work

Check in this order. Most faults are found in the first three steps without switching on.

Before you power the machine
When it does not work
What you seeLikely causeCheck
Input never turns onWrong sensor type for the input common (PNP or NPN), no 0 V or 24 V at the sensor, broken wireMeasure 24 V at the sensor; check the input common; check the sensor LED
Input always onSignal wire shorted to +24 V, wrong common, NC and NO swappedDisconnect the wire at the PLC; the input should go off
Input flickers when a motor startsNoise: signal cable beside power cable, no screen, poor 0 VReroute, screen the cable, add a filter or a diode on the coil that switches
Analog reading jumps or driftsGround loop (screen at both ends), noise, 0 V shared with powerEarth the screen at one end; check the input with a battery signal source
Analog reads under 4 mAWire break, 2-wire transmitter with no supply, wrong polarityMeasure the loop current in series
Output LED on, load does not runWrong load wiring, blown fuse, supply not connected to the output groupMeasure at the load terminals under load
Valve chatters or weakVoltage drop in a long thin cable, shared supply sagMeasure the voltage at the coil with the valve on
Servo or VFD trips at randomMotor cable and control cables together, no 360° clamp, no PESeparate the cables, check the screen clamps and the PE
Encoder counts driftA and B swapped, noise, screen not earthed, low supply at the encoderCheck the count by hand; check the supply voltage at the encoder
Fieldbus device offlineCable fault, wrong address, loop, missing termination (RS-485)Cable test, link LEDs, address and baud rate
07

How it works

Where the diagrams come from

Each connection type is described as a list of stages (the field device, the panel terminals or an amplifier, and the PLC or drive) and a list of wires between terminals. The page draws the diagram and the wire list from that one description, so the two always agree.

What it does not do

It does not size cables, choose the PLC, or check a design. Use the Machine Wiring Guide for cable size, derating and voltage drop, and the Sensor Selector to choose a sensor.

Standards used

Control wire colours follow IEC 60204-1. Sensor colours and pins follow IEC 60947-5-2. Thermocouple colours follow IEC 60584-3. Cable separation follows common EMC practice (IEC 61000-5-2, EN 50174-2). Terminal names, pin numbers and colours of each maker differ: the maker's manual always decides.

08

User manual

What this page is for

It shows a machine builder how a field device is wired to the PLC: which wire goes where, what cable to use, which tray to put it in, and what to check. It is written for a mechanical or electrical designer who wires a machine and has the manuals of the devices and the PLC at hand.

How to use it
  1. In section 01 pick the device, then the connection type (for example PNP or NPN, 2-wire or 4-wire).
  2. Read the diagram from left to right: field device, panel terminals, PLC card or drive. Each coloured line is one wire. The text above the gaps names the cable and the tray.
  3. Follow the numbered steps, then use the wire list as your terminal schedule.
  4. Read Common mistakes and Test before you run before you energise.
  5. Use Print / save as PDF to give the sheet to the wireman, or Copy as text to paste it into an email.
Worked example 1: a PNP sensor 30 m from the PLC

Pick Digital sensor, then 3-wire PNP. The diagram shows brown to +24 V, blue to 0 V and black to the input. Use a 3 × 0.34 mm² cable in the 24 V DC compartment of the tray, 30 m long. On 24 V the voltage drop is well under one volt at a sensor current, so the sensor still gets about 24 V. The card common goes to 0 V, because a PNP sensor sends current into the input. Test with the sensor LED and the PLC input together.

Worked example 2: a 4 to 20 mA pressure transmitter

Pick Analog transmitter, then 2-wire loop-powered. The loop runs from +24 V, through the transmitter, into the analog input AI 0+ and back to 0 V at AI 0−. Use a screened twisted pair in the analog compartment, with the screen earthed at the panel end only. Set the card channel to 4 to 20 mA with wire-break detection. Check 4 mA at zero pressure and 20 mA at full scale, then scale the value in the program.

Worked example 3: a servo axis with pulse and direction

Pick Servo motor, then Pulse and direction. The PLC pulse and direction outputs go to the drive PULS and SIGN inputs on screened twisted pairs, kept short. The drive alarm goes back to a PLC input. The motor, brake and encoder cables run from the drive to the motor in drag-chain-rated cable, in the power compartment, with the screen clamped at 360° at the drive. Wire STO through a safety relay, not through the PLC.

Limits

This is a guide for first decisions. Terminal names, pin numbers and wire colours differ between makers. Safety circuits must be designed and validated to ISO 13849. Cable separation distances are typical practice, not a guarantee. A qualified person must review the wiring before it is energised.

What's new
  • v1 · 24 Oct 2026
    First release: wiring diagrams from the field device to the PLC for 13 device types and 26 connection types (PNP, NPN and 2-wire sensors; 2-wire and 3 or 4-wire transmitters; 4 and 6-wire load cells; 2, 3 and 4-wire RTD; thermocouple; DC and relay-driven solenoid valves; servo with pulse, analog and EtherCAT; stepper; VFD by terminals and Modbus; HTL and differential encoders; pushbuttons and lamps; E-stop and light curtain; Ethernet and RS-485), with wire lists, steps, common mistakes and test lists. Added the route from machine to PLC, cable tray separation, panel layout and earthing, PLC card types, a pre-power checklist and a fault-finding table.