IAE Academy

FOR CORE AND IT JOBS · CHAPTER 2 OF 7

Inputs, outputs and field devices

This chapter follows a signal from a field device into a PLC input module and from an output module back out to a load. You need it to wire a panel without damaging a module, choose the right output type, and turn a 4-20 mA count into a number with a unit.

Updated 30 Oct 2026

What you will be able to do

You will trace the current path of a 24 V DC input and say whether it is sinking or sourcing. You will pick relay, transistor or triac for a given load and check its rating. You will explain why a 4-20 mA loop starts at 4 mA and not 0 mA. You will convert raw counts from an analog module into engineering units.

Before you start

  1. Chapter 1, Industrial automation and the PLC

  2. Ohm's law and power, and

  3. RMS voltage and current of an AC supply

  4. A diode conducts in the forward direction with a drop of about 0.7 V (an infrared LED, about 1.2 V)

  5. Straight-line (linear) interpolation between two points

  6. The inductor relation

Digital inputs and the current path

A digital input asks one question: is enough current flowing through its LED? The LED sits inside an optocoupler, which passes the signal to the CPU as light, so the field wiring is isolated from the CPU. The module puts a resistor in series with that LED, so a 24 V DC input is a small current path, and the field switch decides whether the path is complete. Addresses here are in IEC style: %I0.0 is an input bit, %Q0.0 an output bit, %M0.0 a memory bit. Some PLC families write them differently.

INPUT CURRENT OF A 24 V DC INPUT

Holds while the switch is closed and the input is a series resistor plus an LED. is the supply (V), the LED drop (about 1.2 V), the series resistor (), in A. With , mA. The input reads 1 when exceeds the module's on-threshold.

Which way the current runs gives the two wiring styles. A group of inputs shares one return terminal, called the common. In a sinking input the module is the 0 V end: current flows from +24 V through the field device, into the input terminal, through the LED and resistor, and out of the common, which is tied to 0 V. In a sourcing input the module is the +24 V end: the common is tied to +24 V, and current flows in at the common, through the LED and resistor, out of the input terminal, through the field device, to 0 V. A three-wire sensor also takes its own supply from +24 V and 0 V.

Field device output

Behaviour when active

Wire it to

Contact (button, limit switch)

Closes the path

Either type, with the common wired to match

PNP sensor (sourcing)

Drives its output to +24 V

Sinking input

NPN sensor (sinking)

Pulls its output to 0 V

Sourcing input

WATCH OUT FOR

The word on the sensor is not the word on the input: an NPN (sinking) sensor needs a sourcing input. Test: trace the active path from +24 V to 0 V. One end must source and the other sink; two sinks or two sources leave no path.

Outputs and field devices

An output module switches power to a load. The three types differ in what they switch, how fast and how long they last. The figures below are typical; the datasheet of the module in use decides.

Output type

Switches

Typical rating

Speed and life

Watch for

Relay

AC or DC

About 2 A per point

About 10 ms; contacts wear

Contact life falls with lamp and coil loads

Transistor

DC only

About 0.5 A per point

Under 1 ms; no wear

Sinking or sourcing type must suit the load wiring; overload

Triac

AC only

About 0.5 A per point

On in about 1 ms, off at the next current zero (up to 10 ms at 50 Hz); no wear

Leakage current when off can hold a small load on

STEADY LOAD CURRENT FROM RATED POWER

Holds for a load drawing its rated power steadily. For DC, is the rated power (W). For AC, is the VA rating (volt-amperes: RMS volts times RMS amperes) and the RMS supply. in A must stay below the point's rating. Filament lamps and AC coils draw several times more for a moment at switch-on.

Coils are different. A solenoid valve or contactor coil is an inductor, which keeps its current flowing. When the output opens, the current is forced towards zero almost at once, so is very large. The coil then drives a voltage far above the supply, in the direction that keeps the current going, which can destroy a transistor output unless the current has another path.

VOLTAGE ACROSS A COIL WHEN ITS CURRENT IS CUT

For a coil of fixed inductance: in H, the coil current (A), in s, in V. A diode across a DC coil, cathode to its positive end, carries the current at turn-off and holds the coil near 0.7 V, opposite to its running polarity. An AC coil takes an RC snubber (a resistor in series with a capacitor) or a varistor (a part that conducts only above a set voltage).

Device

What it does

Signal to the PLC

Push button

Normally open (NO) closes when pressed; normally closed (NC) opens

Input

Limit switch

A lever or plunger moves a contact at a set position

Input

Inductive proximity sensor

Senses metal targets a few millimetres away without touching them

Input

Capacitive proximity sensor

Senses most materials, including plastics and liquids, at short range

Input

Photoelectric sensor

Light beam broken or reflected by an object

Input

Solenoid valve

A coil moves a valve spool to pass or stop fluid

Output

Contactor

A small coil closes heavy power contacts

Output

Motor starter

A contactor plus an overload relay that trips on sustained excess current

Output, with an overload input

WORKED EXAMPLE

A 24 V DC solenoid valve is rated 6 W. Which output type can drive it directly, given a relay point rated 2 A at 24 V DC, a transistor point rated 0.5 A at 24 V DC and a triac point rated 0.5 A at 230 V AC?

Solution
  1. The load current is A, from the load current formula, because a DC coil draws its rated power steadily.

  2. The relay point allows 2 A at 24 V DC, and 0.25 A is below it, so a relay works.

  3. The transistor point switches DC and allows 0.5 A, which is above 0.25 A, so a transistor works.

  4. A triac switches AC only: once on, it turns off only when its current falls to zero, which never happens on DC. So it cannot be used here however small the current is.

  5. The valve is a coil, so fit a diode across it, cathode to its positive end, to protect a transistor point from the turn-off spike.

Answer: A relay or a transistor point, not a triac. Fit a diode across the coil.

WATCH OUT FOR

An NC stop button at %I0.1 reads 1 while nobody presses it, not 0. Test: press stop or break its wire; either way the circuit opens and %I0.1 reads 0. So with NC wiring a broken wire stops the machine instead of disabling stop.

Analog signals and scaling

Analog signals carry a measured value as a level. The two common forms are 4-20 mA and 0-10 V. Current suits long runs: the same current flows through every part of a series loop, so cable resistance does not change it while the supply can still drive the loop. A 0-10 V signal loses volts along the cable, so it suits short runs. The module converts the signal into an integer count, which you then scale to engineering units.

LOOP CURRENT FROM THE MEASURED FRACTION

Holds for a linear transmitter. is the measured value, and the ends of its range (same unit), in mA. At the loop carries 4 mA and at it carries 20 mA.

Why start at 4 mA and not 0 mA? A broken wire, a lost supply or a dead transmitter drops the loop current to 0 mA or near it. If 0 mA also meant the bottom of the range, such a fault would look like a valid reading. With the bottom at 4 mA, called the live zero, the lowest real reading is 4 mA, so a current well below it (a common limit is 3.6 mA) means a fault and the program can alarm on it. A 0-10 V signal has no live zero, which is why 2-10 V is sometimes used.

VOLTAGE ACROSS A SENSE RESISTOR

Ohm's law, for a module that measures loop current as the voltage across a resistor. in , in A, in V. With , 4 mA gives 1 V and 20 mA gives 5 V.

SCALING COUNTS TO ENGINEERING UNITS

Holds when the signal is linear. is the count read; and are the counts at the bottom (4 mA, or 0 V) and top (20 mA or 10 V) of the signal, from the module's data. EU is the engineering value (bar, °C, m), with and the ends of the range.

WORKED EXAMPLE

A pressure transmitter spans 0 to 10 bar on 4-20 mA. The module gives counts 0 to 32000 for 4 to 20 mA. The program reads 20000. Find the pressure and the loop current.

Solution
  1. The fraction of the range is , since and .

  2. Pressure is bar, from the scaling formula.

  3. Current is mA, from the loop current formula, because the same fraction applies to the signal.

Answer: 6.25 bar, at a loop current of 14 mA.

WATCH OUT FOR

is the count at 4 mA, which is not always 0. Test: a module that reads 0 counts at 0 mA reads at 4 mA, and that is .

Check yourself

CHECK YOURSELF 1

A PNP proximity sensor drives its output to +24 V when active. Which input module should it connect to?

  1. (A)

    A sinking input

  2. (B)

    A sourcing input

  3. (C)

    Either, with no change

  4. (D)

    An analog input only

Answer and solution

Answer: (A)

  1. A PNP sensor sources current: it supplies +24 V at its output.

  2. A sinking input takes current in and returns it to 0 V through its common.

  3. So the path +24 V, sensor, input LED, 0 V is complete only with a sinking input.

CHECK YOURSELF 2One or more options are correct

A 230 V AC indicator lamp draws 0.1 A. The module points available are a relay rated 2 A at 230 V AC, a transistor rated 0.5 A at 24 V DC and a triac rated 0.5 A at 230 V AC. Which can switch the lamp within their rating?

  1. (A)

    Relay

  2. (B)

    Transistor

  3. (C)

    Triac

  4. (D)

    None of them

Answer and solution

Answer: (A), (C)

  1. A relay contact switches AC, and 0.1 A is below 2 A.

  2. A transistor output is DC only, so it cannot switch 230 V AC.

  3. A triac switches AC, and 0.1 A is below 0.5 A.

CHECK YOURSELF 3

A level transmitter spans 0 to 6 m on 4-20 mA. The module reads 0 counts at 0 mA and 32000 counts at 20 mA, in a straight line. The program reads 12800. Find the level in m.

Answer and solution

Answer: (accepted range )

  1. At 4 mA the count is , so and .

  2. Fraction is .

  3. Level is m.

CHECK YOURSELF 4

Why does a 4-20 mA loop use 4 mA, not 0 mA, for the bottom of the range?

  1. (A)

    So that a current near 0 mA signals a fault such as a broken wire

  2. (B)

    So that cable resistance cannot change the reading

  3. (C)

    So the loop needs no power supply

  4. (D)

    Because a PLC cannot read below 4 mA

Answer and solution

Answer: (A)

  1. A broken wire, a lost supply or a dead transmitter drops the loop current to 0 mA or near it.

  2. With 4 mA as the lowest real reading, a current near 0 mA can only mean a fault.

  3. Cable resistance does not change a loop current at any level, so B is no reason; C and D are false.

Used in these GATE topics