- What is a PLC?
- What is a Pull-Up Resistor in PLC Applications?
- PLC Input Types & Sensor Outputs
- Why is a Pull-Up Resistor Needed?
- What is the formula for calculating resistor value?
- Formula for Calculating Pull-Up Resistor
- PLC Pull-Up Resistor Calculator
- How to calculate pull-up resistor?
- Example Calculations – Pull-Up Resistor
- Summary of Calculated Values
- Practical Considerations for PLC Applications
- Frequently Asked Questions (FAQ) on Pull-Up Resistors
- What is the application of a pull-up resistor?
- How do you choose the value of a pull-up resistor?
- What is the typical value of an input pull-up resistor?
- What is a universal pull-up resistor value?
- What is the pull-up resistor value used in encoders?
- Why is it called a pull-up resistor?
What is a PLC?
The Programmable Logic Controller (PLC) operates as a digital industrial computer developed to handle automation together with process control functions. A Programmable Logic Controller (PLC) detects signals through its input modules from sensors and switches and other similar devices. The inputs get processed by the controller to control the output devices that activate motors or operating relays or activate actuators or trigger alarms.
What is a Pull-Up Resistor in PLC Applications?
PLC discrete input circuits require a pull-up resistor to properly detect high voltage Logic 1 conditions when sensor outputs turn OFF. The detection of valid high voltage (logic 1) with NPN (sinking) sensors becomes vital when sensors utilize open-collector outputs.
PLC Input Types & Sensor Outputs
Understanding the relationship between PLC inputs and sensor outputs becomes essential before performing pull-up resistor calculations.
PLC Digital Input Types
PLC input modules typically support:
- Sink (NPN) Inputs: The PLC input is pulled to ground (0V) when active.
- Source (PNP) Inputs: The PLC input is pulled to a positive voltage (+VDC) when active.
- Dry Contact (Relay) Inputs: Mechanical switch-based inputs.
Types of Sensor Outputs
- PNP (Sourcing) Output: Provides +VDC when activated.
- NPN (Sinking) Output: Provides a path to ground (0V) when activated.
- Open-Collector Output: Requires an external resistor to pull the voltage to a valid level when the transistor is OFF.
The NPN open-collector sensor needs a pull-up resistor to create a valid HIGH (logic 1) output level when deactivated(OFF).
Why is a Pull-Up Resistor Needed?
- The use of a pull-up resistor maintains a specific voltage level which protects the PLC input from unstable floating conditions.
- The pull-up resistor enables the PLC to identify proper HIGH signals.
- Use of a pull-up resistor prevents electrical noise issues which help avoid erratic behavior caused by fluctuating voltage.
Without using a pull-up resistor the input signal would stay uncertain after the sensor turns OFF thus causing unreliable behavior.
What is the formula for calculating resistor value?
Formula for Calculating Pull-Up Resistor
To determine the maximum pull-up resistor value, we use Ohm’s Law:

where:
- R= Maximum pull-up resistor value (Ω)
- Vdc = Power supply voltage (V)
- Vmin = Minimum voltage required for the PLC to register a HIGH signal (Typically 2.6V)
- Imin= Minimum current required for reliable operation (Typically 6.8mA or 0.0068A)
PLC Pull-Up Resistor Calculator
Use our below PLC Pull-Up Resistor Calculator to determine the optimal resistor value for reliable sensor signal detection in automation applications.
How to calculate pull-up resistor?
Example Calculations – Pull-Up Resistor
Let us calculate the maximum pull-up resistor value for different PLC power supply voltages.
Example 1: 5V DC Power Supply

Example 2: 12V DC Power Supply

Example 3: 24V DC Power Supply

Summary of Calculated Values
Power Supply Voltage (Vdc) | Maximum Pull-Up Resistor (Ω) |
5V DC | 352 Ω |
12V DC | 1382 Ω |
24V DC | 3147 Ω |
Practical Considerations for PLC Applications
Choosing the Correct Pull-Up Resistor
- The selected resistor value needs to be high enough to enable quick voltage transitions while remaining low for minimizing power dissipation and current overload.
- A switch between lower value resistors like 1kΩ compared to 3kΩ will improve switching speed at the cost of more power use.
- The response time becomes slower when you use a high-value resistor (3kΩ rather than 1kΩ) but power usage declines.
Checking PLC Input Specifications
- Many PLCs come with automatically integrated pull-up resistors which operate between 4.7kΩ to 10kΩ values.
- The presence of an internal pull-up resistor means external pull-up resistors might not be necessary for operation.
Sensor Manufacturer Guidelines
- You must read the sensor datasheet to determine whether the sensor has an integrated pull-up resistor.
- The output mode setting of certain sensors offers PNP/NPN options to eliminate requiring external resistors.
Handling Long Cable Runs
- Long cables tend to produce signal noise while causing voltage drops during transmission.
- The signal integrity of long-distance connections will improve when using a pull-up resistor with a lower resistance value.
- Using shielded wires alongside filter components will minimize external electronic disturbances.
Heat Dissipation and Power Consumption
You can determine the pull-up resistor power dissipation through the following calculation:

For example, with 24V and a 3.1kΩ resistor:

- Select pull-up resistors featuring minimum ratings between 0.25W (1/4W) and higher to guarantee they remain below their safe operating temperature range.
- PLC applications require pull-up resistors as an essential component when using open-collector sinking output sensors.
- The selection of maximum resistor values depends upon supply voltage parameters while lower values provide faster response capabilities.
- Check PLC and sensor specifications before picking a resistor to find the optimal performance outcome.
- Proper choice of resistors ensures stable signals and prevents spurious triggering together with controlled power usage.
Frequently Asked Questions (FAQ) on Pull-Up Resistors
What is the application of a pull-up resistor?
The primary function of a pull-up resistor exists in digital circuits for defining voltage levels during signal inactivity.
Digital circuits employ pull-up resistors as a standard component which produces specific voltage levels during signal inactive states. The device helps designers interface logic gates and set input configurations while enabling device troubleshooting. An input voltage finds its resistance kept high through a resistor before a switch or jumper links the input to the ground level.
How do you choose the value of a pull-up resistor?
The selection process for pull-up resistors requires choosing values that are below the maximum current sink rating permitted by the circuit. A sufficient power rating for the resistor must be selected to prevent heat damage. When employing a 2kΩ resistor in a 24V system it will deliver a 12mA current flow (24V / 2kΩ = 12mA).
What is the typical value of an input pull-up resistor?
Pull-up resistors used for switches and resistive sensors ought to fall within the 1kΩ to 10kΩ range. A common starting point is 4.7kΩ. CMOS digital circuits as well as other systems use pull-up resistors with specifications in the range of 10kΩ to 1MΩ to benefit from their minimal input leakage.
What is a universal pull-up resistor value?
The most standard pull-up resistor choice for logic input applications exists between 4.7kΩ and 10kΩ. Higher pull-up values enable decreased power usage particularly when the circuit enables low sinking current resistance. Selection of exact value depends on device switching speed requirements and circuit operational parameters.
What is the pull-up resistor value used in encoders?
Most encoders implement internal pull-up resistors with a value between 1.5kΩ and 2.2kΩ. The selected values serve as pull-up resistors according to specifications of counter inputs or PLCs although built-in pull-up functionality is absent.
Why is it called a pull-up resistor?
Pull-up resistors operate by drawing input pin voltages up to high logical levels (5V or 3.3V) during signal inactive states. Under corresponding conditions a pull-down resistor draws the voltage to reach a low logic level (0V).
Click here to access 100+ Online Instrumentation Calculators Collections