- English
- Deutsch
- Português
- Español
- PLC Programable Logic Control
- What is a PLC
- Analog and Digital
- PLC Programming Languages
- Basic Logic Functions
- Combinatorial Logic
- Wire Break Detection
- Algebraic Simplification of Logic Circuits
- Karnaugh map
- PLC Exercises I
- PLC-exercises II – boolean algebra
- PLC exercise – Tank level monitoring
- Work Order PLC Material detection
- How a PLC works
- PLC function Set and Reset
- PLC-Program for H-Bridge
- Sequence control
- Analog value processing
- Bus Network
- Number Systems
- Videos about PLC
- Index PLC
Home ⇒ Overview Courses ⇒ PLC ⇒ Analog value processing ⇒ Scaling Analog values
PLC - Normalizing, scaling analog values
Scaling is the process of converting, for example, a voltage or current signal coming from a sensor into a more usable form to match the corresponding unit such as bar, rpm, etc.
The scanned range of 0-10V voltage or 0-20 mA current for analog modules from Siemens (SM 334) values are illustrated in the following. Also can be seen, that 10 V / 20 mA digitalized has the valor of 2764810.
These digitized values can be more easily processed in the PLC when they are normalized / scaled. Normalizing (scaling) means converting the integer value (from the analog input 'PIW'), into a real number, which refers to the voltage on the analog input or analog output. For example, measuring a voltage of 0-10 V should correspond to the actual number from 0.0 to 10.0. The algorithm for this conversion is quite simple:
Work order:
Write a program that implements this algorithm.
Posible solution in IL Instruction list):