196
SECTION
2
Components
and Systems
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
7
The Analog
Input/Output System
Thus, the count value for 100°C is 409.5 counts and for 500°C is 2047.5
counts. Since count values must be whole numbers, rounding these
values off yields 410 and 2048 counts, respectively. Therefore, at a
count of 410, the low-level temperature alarm would be enabled; and
at a count of 2048, the high-level temperature alarm would be enabled.
Another method for solving this problem is to determine the number of
counts that are equivalent to 1°C. A change of 1000°C per 4095 counts
can be expressed as:
∆counts
∆degrees
=
max counts −min counts
max degrees −min degrees
=
4095 − 0
1000 − 0
= 4.095
Therefore, each degree is equivalent to 4.095 counts. The count value
for 500°C would be (500)(4.095) = 2047.5 and for 100°C would be
(100)(4.095) = 409.5. Rounding off these values yields 2048 and 410
counts, respectively—the same values we computed before. If the
counts had not started at 0, an offset count addition would have been
necessary for computing the number of counts per degree.
7-4 ANALOG INPUT DATA HANDLING
The previous section showed how an analog input module transforms an
analog field signal into a discrete signal. Once the module digitizes the signal
into binary counts, the processor can read the value and use the information.
During the input reading section of the scan, the processor reads the value
from the module and transfers the information to a location specified by the
user. This location is usually a word or register storage area or an input
register. The processor enters the count value into memory using instructions
that differ from those used by standard discrete input modules, yet are similar
to those used by multibit discrete input interfaces (see Figure 7-12).
Most analog modules provide more than one channel, or input, per interface.
Therefore, they can connect to several input signals, as long as the signals are
compatible with the module. The analog instructions used in PLCs take
advantage of this multiple channel capability, inputting several values at a
time into registers or words. Examples of these instructions are analog in,
block transfer in, block in, and location in instructions (see Chapter 9). Some
programmable controller manufacturers use other instructions, such as arith-
metic instructions, to obtain count values from the analog module’s address.
When a processor executes the instruction to read an analog input, it obtains
the module’s data during the next I/O scan and places the data in the
destination register specified in the instruction. If multiple channels are to be