Pro
12 min

Wiring 5 — Pull-up & Pull-down Resistors

wiringpull-uppull-downopen-collectorresistor

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Wiring 5 — Pull-up & Pull-down Resistors scenario preview

Briefing

An **open-collector** (NPN) output can only pull a line LOW. To produce a valid logic HIGH, you must add an external **pull-up resistor** between the signal line and +24 V. Rule of thumb for 24 VDC logic: - Pull-up resistor: 4.7 kΩ → 10 kΩ (enough current for the input threshold) - Pull-down resistor: 1 kΩ → 10 kΩ (holds signal near 0 V when output is off) Wire the pull-up resistor so the PLC input reads correctly.

Objectives

  • Wire the pull-up resistor between +24 V and the signal line (%I0.0)
  • Wire the NPN sensor signal to the pull-up junction (%I0.0)
  • Wire the NPN sensor 0 V to the common bus

Hints

  • The pull-up resistor connects the signal line to +24 V so it defaults HIGH.
  • When the NPN sinks the signal line to 0 V, the input sees LOW — that is the active state.

I/O Table

Inputs

PULLUP_R

Pull-up resistor connection to signal/+V junction

BOOL · %I0.0

NPN_SIGNAL

NPN sensor signal output → junction with pull-up

BOOL · %I0.1

NPN_GND

NPN sensor 0 V (emitter to common)

BOOL · %I0.2

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Runnable simulator field guide

PLC pull-up and pull-down wiring scenario: test checklist

Direct answer

The learner can predict current and voltage for open and closed conditions and distinguish a deliberate bias from an unsafe or incompatible field interface.

Written for pLC and electronics learners examining how resistive bias establishes a defined input state when a switch or transistor output is open.

a supervised industrial electrical bench used to trace 24 VDC control power, terminals, relay contacts and PLC I/O with a correctly selected meter while studying pull-up, pull-down, default state and open-circuit behavior
System map / 02

NODE 01observable

Scenario setup

Supply, reference, input impedance, pull-up or pull-down resistor, switch or transistor state, leakage, threshold, default state, power loss and fault response.

NODE 02observable

I/O and state map

Source through bias resistor and switching element to input voltage, module threshold, software state and observable result.

NODE 03observable

Normal run

Open and closed switching conditions produce the intended stable default and active state within declared input thresholds.

NODE 04observable

Boundary run

Open wire, short to supply, short to return, leakage, wrong resistor, floating input, shared common, power loss and restart.

NODE 05observable

Injected fault

A source, reference, resistor, switch, transistor, wiring, threshold or software-interpretation mismatch.

NODE 06observable

Target check

The circuit checked against the exact field device and module electrical specifications.

Answer surface / 07

What does a pull-up resistor do?

It biases a signal toward the positive supply when no stronger path drives the node, creating a defined default state.

Why should a PLC input not be left floating?

A floating node can cross the input threshold unpredictably because of leakage, coupling and noise, so the interface needs a documented electrical state.