PLC Analog Input and Output Programming PLC Academy
PLC Analog Input and Output Programming PLC Academy
···
PLC Programming
···
But first, let me start out with some basics about analog
signals and how they work in a PLC.
···
For example you can have a 0-10 volt analog signal. This
signal can vary from 0 to 10 volts and have any voltage
level in between. And since analog signals are
continuous, this signal will always at any time represent
a voltage level. If you look at the diagram below, you will
see that the analog signal can have any value between 0
and 10 volts.
···
···
But this only gives us two states. Very useful for digital
signals, but not for analog. To understand how analog
inputs work in a PLC you have to understand binary
numbers.
X
PLC Learni… Insights int…
00000000 00000000
A/D Converter
When the analog input signal enters the PLC it goes
through an A/D converter or analog to digital converter.
This is the component in the PLC analog input card that
transforms the analog signal to digital signals. It is these
digital signals that will eventually give our binary value
representation in the PLC.
Voltage
Current
Resistance
The reason we need to know about the type of signal is
because we need to know the range of the signal.
All in all this means that our analog signal ranges can
be illustrated like this:
32512 7F00
27649 6C01
1 0001 361.7 4 mA
μV +
578.7
nA
0 0000 0V 4 mA
-1 FFFF No Undershoot
Negative Range
-4864 ED00 Values 1.185
mA
-32769 8000
With the over- and underflow in mind, we can now start
to calculate the real resolution of our analog signal. But
instead of just using the 22.96-1.185 mA or the 11.852
V ranges there is one number you should notice here:
27.648
As you can see in the table above this is where our rated
range ends. Our resolution for a 0-10 V signal should
therefore be calculated like this:
10 V / 27658 = 361.7 μV
16 mA / 27648 = 578.7 nA
Analog Inputs
With a little bit of theory in mind let’s dig into it by
looking at the analog inputs in a PLC.
Level
Flow
Distance
Viscosity
Temperature
Of course there are many other things you can measure.
The main point here is that we (the sensor or
transmitter) will transform those physical values into an
analog signal. It is that signal we can use in out PLC as
an analog input.
Voltage
Current
The reasons I divide the analog input signals in these
two categories are not only because they are the most
used signals. It is also because the wiring of them are
different. Since these two types of analog signals works
in very different ways, you will also have to wire them
differently on the analog input module. Mistakes in the
wiring can potentially destroy the input module, so be
careful!
Resistance.