- PLC
- 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 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
- Number Systems
PLC - Normalizing, scaling analog values
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.

PLC - Normalizing, scaling analog values
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:

PLC - Scaling analog values
Work order:
Write a program that implements this algorithm.
Posible solution in IL: