HomeAwzTechAnalog Inputs and Outputs in PLCs: A Comprehensive Guide

Analog Inputs and Outputs in PLCs: A Comprehensive Guide

Understanding Analog Inputs and Outputs

Programmable Logic Controllers (PLCs) are widely used in industrial automation to control machinery and processes. While many PLCs operate with digital inputs and outputs (I/O), they also support analog I/O devices.

Analog signals differ from digital signals in that they vary continuously within a specified range, such as 0 to 10 VDC or 4 to 20 mA. These signals represent physical quantities like speed, temperature, weight, pressure, and fluid levels. However, since PLCs operate using digital data, they require a way to convert analog signals into digital values for processing.

For Siemens S7-200 PLCs, this conversion is performed using analog expansion modules. These modules take standard voltage and current signals, convert them into 12-bit digital representations, and transfer them to the PLC’s register or memory locations for processing.

Furthermore, specialized analog modules are available for connecting thermocouples and RTD (Resistance Temperature Detectors). These sensors help measure temperature at specific points in machines or industrial processes.

 analog inputs and outputs

1. Analog Input Application Example

One of the most common applications of analog inputs is weight measurement using a load cell.

Example: Load Cell Integration with PLC

A load cell is a sensor that generates an electrical signal proportional to the applied force. Suppose we have a load cell designed to measure weights from 0 to 500 pounds, and it produces an output of 0 – 10 VDC corresponding to this weight range.

  1. The 0 – 10 VDC output from the load cell is connected to the analog input module of an S7-200 PLC.
  2. The PLC reads the digital equivalent of the analog value and processes it.
  3. The measured weight is compared to a predefined threshold, allowing the system to take appropriate actions.

Conveyor System Example

This weight measurement concept can be expanded to an automated conveyor system with sorting gates:

  • If a package weighs more than the required threshold, it is directed to one conveyor path.
  • If the package is underweight, it is routed to another conveyor path for further inspection.
  • The entire sorting process is managed by the PLC using the analog input from the load cell.

This type of automation is widely used in manufacturing, packaging, and logistics industries.

Analog outputs play a crucial role in industrial automation by controlling devices that require continuously varying voltage or current levels. These include:

  • Control valves (for adjusting fluid flow)
  • Chart recorders (for logging data trends)
  • Electric motor drives (for speed regulation)
  • Analog meters (for displaying readings)
  • Pressure transducers (for monitoring pressure changes)

Similar to analog inputs, analog outputs are connected to field devices through a transducer. The transducer converts the PLC’s voltage or current output into a signal suitable for controlling the device.

S7-200 PLC-controlled conveyor system

Example: Analog Output for a Scale Display

Consider a scale that displays weights ranging from 0 to 500 lbs. The PLC generates an output signal between 0 and 10 VDC, which is sent to the scale’s analog meter. The meter then displays the corresponding weight based on the voltage received.

This setup allows real-time weight monitoring and can be integrated into automated weighing and sorting systems.

Timers in PLCs

Timers are essential in automation, enabling PLCs to execute time-based functions. A timer counts time increments and triggers an action once the preset time is reached. A classic example is traffic light control, where timers determine the duration for each light change.

In ladder logic programming, timers are represented as timer blocks. When a timer receives an enable signal, it begins counting. Once the preset time is reached, it activates an output.

Types of Timers in S7-200 PLCs

The Siemens S7-200 PLC offers three main types of timers:

  1. On-Delay Timer (TON) – Delays turning ON an output after receiving an input signal.
  2. Retentive On-Delay Timer (TONR) – Similar to TON but retains elapsed time even if the input turns off.
  3. Off-Delay Timer (TOF) – Delays turning OFF an output after the input signal turns off.

Timer Resolutions in S7-200

The S7-200 PLC timers operate at different time resolutions:

  • 1 ms resolution – Maximum of 32,767 seconds
  • 10 ms resolution – Maximum of 3,276.7 seconds
  • 100 ms resolution – Maximum of 327.67 seconds

By combining multiple timers, logic can be programmed to handle much longer time durations.

S7-200 PLC timers in a factory setting

Hard-Wired Timing Circuit vs. PLC Timers

Traditional hard-wired timing circuits use relays and switches for time-based control. However, PLC timers replace these physical components with software-based logic, making automation more flexible and efficient.

Example: On-Delay Timer (TON)

An On-Delay Timer (TON) ensures that an output is activated only after a set duration once an input is received.

Consider a simple switch and light system:

  • When a switch is pressed, input I0.3 receives a logic 1.
  • The PLC starts timer T37 with a time base of 100 ms (0.1 seconds).
  • If the preset time is 150 (15 seconds), the output Q0.1 turns ON after 15 seconds, lighting up the lamp.
  • If the switch is released before 15 seconds, the timer resets to zero and restarts on the next activation.

This demonstrates a non-retentive timer since it does not store elapsed time once the input turns off.

Retentive On-Delay Timer (TONR)

A Retentive On-Delay Timer (TONR) functions like a TON but remembers elapsed time even if the input signal turns off.

For example:

  • A timer is set for 15 seconds.
  • If the input signal turns OFF at 10 seconds, the timer PAUSES.
  • When the input turns back ON, the timer continues from 10 seconds instead of restarting.

To reset a TONR timer, a RESET (R) instruction is used.

Off-Delay Timer (TOF)

The Off-Delay Timer (TOF) is used when an output needs to stay ON for a fixed period after the input turns OFF.

  • The output is activated immediately when the input signal turns ON.
  • When the input turns OFF, the timer delays turning OFF the output for the preset time.

This is useful in applications like delayed fan shutdowns or gradual system cooling.

Timer-Based Industrial Process Example

Consider a chemical mixing process controlled by an S7-200 PLC:

  1. Pump 1 adds the first chemical for 5 seconds.
  2. Pump 2 adds the second chemical for 3 seconds.
  3. A mixer motor blends the solution for 60 seconds.
  4. The drain valve opens and Pump 3 removes the solution after 8 seconds.
  5. The system stops until the Start button is pressed again.

This process demonstrates how timers automate industrial batch processes.

 S7-200 PLC-controlled conveyor system

Conclusion

Analog I/O and timers play an essential role in PLC-based automation. Whether controlling load cells, motor speeds, or process sequences, these features enable precise and efficient industrial operations. By leveraging Siemens S7-200 PLC timers and analog modules, industries can automate processes with greater flexibility and reliability.

Learn More with Tutorials

Expand your knowledge with the following resources:

Recent Posts

Popular Posts

Wonderware Intouch Cracked

Wonderware IntouchInTouch software leaps onto your screen with breakthrough technology, amazing graphic capabilities, and comprehensive functionality delivered with Wonderware’s legendary ease of use. Wonderware’s...

Download RSLogix 500 v12

RSLogix 500 is a programming software developed by Rockwell Automation for programming and configuring Allen-Bradley PLCs (Programmable Logic Controllers). It is part of the...

How to Install Intouch License: Download, Types, Features, Working

Intouch LicenseWonderware is a powerful and widely-used software platform that is used by many businesses and organizations to streamline their operations and increase efficiency....

Popular Softwares

Wonderware Intouch Cracked

Wonderware IntouchInTouch software leaps onto your screen with breakthrough technology, amazing graphic capabilities, and comprehensive functionality delivered with Wonderware’s legendary ease of use. Wonderware’s...

Download RSLogix 500 v12

RSLogix 500 is a programming software developed by Rockwell Automation for programming and configuring Allen-Bradley PLCs (Programmable Logic Controllers). It is part of the...

DOWNLOAD TIA Portal V15

TIA Portal V15TIA Portal V15 products and options. Engineering options. TIA Portal Multiuser Engineering. TIA Portal Multiuser Engineering enables multiple users to simultaneously work together on a project. As...

FIND MORE