Sie sind auf Seite 1von 25

Programmable Logic Controllers

prv

Contents
Analog Inputs

Data Representation
Data Handling

Analog Outputs

Data Representation
Data Handling

prv/PLC and its Applications

11-Oct-14

What is Analog
PLC

can understand
only discrete language
Examples

inputs:

prv/PLC and its Applications

of analog

Flow transducers

Humidity transducers

Load cell transducers

Potentiometers

Pressure transducers

Vibration
transducers

Temperature
transducers

11-Oct-14

Analog Input
Module
Analog

input
modules digitize
analog input signals
It

uses an A/D
converter for the
purpose.
PLC

reads the
information stored in
either BCD or Binary
format.

prv/PLC and its Applications

11-Oct-14

Steps in conversion

prv/PLC and its Applications

11-Oct-14

An example
What will the contents of register 1000
be after the multi bit instruction shown in
Figure is executed? Note that the
digitized value corresponding to the
analog transformation shown in the figure
is represented by 12 bits in binary format.

prv/PLC and its Applications

After the instruction is


executed, the contents of
register 1000 will be: 0000
1010 1100 1111 This
number corresponds to the
digitized value generated by
the module. Since the value
is represented in 12 bits,
the preceding bits are filled
with 0s. Note that the value
stored in register 1000 is in
binary.
Its
decimal
equivalent,
for
computational purposes, is
2767.

11-Oct-14

Analog input data


representation

prv/PLC and its Applications

11-Oct-14

Analog conversion
The

field sensing device sends a very

low-level current or voltage analog input


to the transmitter.
The

transmitter sends this information

to the input module as an amplified


current or voltage proportional to the
signal being measured.
Next,

the

analog

input

interface

digitizes the current or voltage by


converting it into an equivalent binary
number.
The

interface then sends the digitized

signal to the controller. Thus, the binary


value that the PLC receives is the digital
equivalent of the incoming analog signal.

prv/PLC and its Applications

11-Oct-14

A/D conversion
The

A/D converter divides, or digitizes,

the input signal into many digital counts,


This

division of the input signal is called

resolution.
An

A/D converter transfers its digital-

equivalent values to the processor,


which in turn, makes them available for
use in register or word locations.
The

format of these values varies

according to the format used by the


PLC; however, the most

common

formats are binary and BCD. In BCD


format, the module or processor must
perform an extra linearity computation
to provide a valid BCD number.

prv/PLC and its Applications

11-Oct-14

Try this!
An input module, which is connected to a
temperature transducer, has an A/D with a 12-bit
resolution. When the temperature transducer
receives a valid signal from the process (100 to
600C), it provides, via a transmitter, a +1 to +5 VDC
signal compatible with the analog input module.

10

prv/PLC and its Applications

(a) Find the equivalent


voltage change for each
count
change
(the
voltage
change
per
degree Celsius change)
and
the
equivalent
number of counts per
degree Celsius, assuming
that the input module
transforms the data into
a linear 0 to 4095
counts, and (b) find the
same values for a
module with a 10-bit
resolution.

11-Oct-14

Solution for (a)


An input module, which is
connected to a temperature
transducer, has an A/D with a
12-bit resolution. When the
temperature
transducer
receives a valid signal from
the process (100 to 600C), it
provides, via a transmitter, a
+1 to +5 VDC signal
compatible with the analog
input module.

11

prv/PLC and its Applications

11-Oct-14

Solution for (b)


An input module, which is
connected
to
a
temperature transducer, has
an A/D with a 12-bit
resolution.
When
the
temperature
transducer
receives a valid signal from
the process (100 to 600C),
it provides, via a transmitter,
a +1 to +5 VDC signal
compatible with the analog
input module.

12

prv/PLC and its Applications

11-Oct-14

Question No.2

13

prv/PLC and its Applications

11-Oct-14

Analog data
handling
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.

14

prv/PLC and its Applications

11-Oct-14

Analog Input
Connections
Analog

input modules usually

provide a high input impedance


(in the mega ohm range) for

voltage-type input signals. T


his

allows the module to

interface

with

high

source-

resistance outputs from input-

sensing

devices

(e.g.,

transmitters or transducers).
Current-type

input modules

provide low input impedance


(between 250 and 500 ohms),

which is necessary to properly


interface with their compatible
field sensing devices.

15

prv/PLC and its Applications

11-Oct-14

Analog Output
Channels
Analog

output interfaces are


used in applications requiring
the control of field devices
that respond to continuous
voltage or current levels.
An

example of this type of


field device is a volume adjust
valve (see Figure). This type of
valve, which is used in
hydraulic-based
punch
presses, requires a 010 VDC
signal to vary the volume of
oil being pumped to the press
cylinders, thereby changing
the speed of the ram or
platen.

16

prv/PLC and its Applications

11-Oct-14

Analog Output
Module
The

controller
transfers the contents
of a register, generally
specified by 12bits, to
the output module
upon execution of the
instruction
The

module then
transforms this value,
whether BCD or
binary, from digital to
analog and passes it to
the
field
control
device

17

prv/PLC and its Applications

11-Oct-14

Question and
Answer
Figure illustrates the binary transfer of information to an analog output
module via a multi bit instruction. Assume that the module converts a digital
signal equal to the binary value 0000 0000 0000 (0 decimal) to an analog
value that makes the control valve be completely closed, closed, while it
converts a value of 1111 1111 1111 (4095 decimal) to an analog value that
makes the valve be fully open. What will the state of the valve be according to
the contents of register 2000?

The value stored in register 2000 is


0000 0011 1111, which is equivalent
to decimal 63. Thus, the valve is open

approximately 1/65th, or 1.53%, of its


fully open position (63 4095 =
1.53%). Note that the position of the
valve is determined by the decimal
equivalent of the binary value, not

the number of 1s and 0sa binary


number with half 1s and half 0s does
not indicate that the valve is half
open. If the value in the register had
been in BCD, the output module

would have converted the value to


decimal to determine the valve
position.

18

prv/PLC and its Applications

11-Oct-14

Analog Output Data


representation
An

analog output interface operates

much like an analog input module,


except that the data direction is

reversed.
A

D/A transforms the

numerical data (BCD or binary)


sent from the processor into an

analog signal.
This

analog output value is

proportional to the digital numerical


value received by the module.
The

magnitude proportional to the

minimum and maximum capable


analog voltages or currents of the
field device (e.g., 0 to 10 VDC)

19

prv/PLC and its Applications

11-Oct-14

Analog Output
Data Handling
The

storage or I/O table section of a PLCs data

table area holds the data to be sent to an analog


output module (see Figure ).

This

data comes from program computations

that, when sent to the module, will control an


analog output device. During the execution of the
output

update,

the

processor

sends

the

register/word contents to the analog module


specified by the address in the instruction.

The

module transforms the register/words

binary or BCD value into an analog output


voltage or current. Since the program calculates

the register/word value, the user should take


precautions

during

programming

to

avoid

computing or sending nonvalid ranges to the


module.

20

prv/PLC and its Applications

11-Oct-14

Output data
handling

21

prv/PLC and its Applications

11-Oct-14

References

W. Bolton, Programmable Logic Controllers, Fourth


Edition, Newnes, 2006. (ISBN-13: 978-0-7506-8112-4)
John W. Webb, Ronald A. Reis, Programmable Logic
Controllers, Principles and Applications, Fifth Edition,
Prentice Hall of India, 2003. (ISBN-81-203-2308-4)
I.A. Bryan, E.A. Bryan, Programmable Controllers
Theory and Implementation, Second Edition, An Industrial
Text Company Publication,1997, ISBN 0-944107-32-X
John R. Hackworth, Fredrick D. Hackworth Jr.
Programmable Logic Controllers: Programming Methods
and Applications
22

prv/PLC and its Applications

11-Oct-14

References

Madhuchandra Mitra, Samarjit Sen Gupta, Programmable


Logic Controllers and Industrial Automation, an
Introduction, Penram International Publishing (India)P
Limited, 2005, ISBN: 81-87972-17-3
Gary Duning, Introduction to Programmable Logic
Controllers, 2nd Edition, Thomson Delmar Learning, 2005,
ISBN 0 7668 1768 -7

23

prv/PLC and its Applications

11-Oct-14

Have any?

Thanks for listening


24

prv/PLC and its Applications

11-Oct-14

A passing thought

Greatness knows itself

25

prv/PLC and its Applications

11-Oct-14