3
3
3.2.2 Relays
A switch whose operation is activated by an electromagnet is called a relay. The contact and
symbology for relay is usually the same as for switches.
A small current passes through the magnet, causing the pole to switch. Usually the magnet is rated
between 3 to 100 volts and a few hundred milliamps.
Therefore it is operated at very low power (current and voltage). A circuit carrying a much heavier
rating can be switched using a relay, however the two circuit are totally separated.
Fig.3.2 – Relay
When a relay operates, the contacts do not all open or close instantaneously. There may be a delay
of several milliseconds between the operations of two contacts of the same relay.
In the design of a relay circuit, this delay must always be taken into account.
3.2.3 Counters
On the basis of their structure, counters can be classified as mechanical or digital. Mechanical
counters, such as an odometer, usually give readings as their output.
Because mechanical counters are generally not used in a relay panel circuit. Digital counters output
in the form of a relay contact when a preassigned count value is reached.
A digital counter consists of a count register, an accumulator, and a relay contact. The count
register holds the preassigned count value.
Fig.3.3 – Counter
3.2.4 Timers
A timer, as its name implies, is used for some timing purpose. It consists of an internal clock, a
count value register and an accumulator.
In process control, a significant number of operations must be timed. For example, in a chemical
process, the curing of certain products, and the mixing of chemicals and so on all require a certain
period of time to complete.
In process control, synchronization of operations is also essential. There are two ways to
synchronize operations, namely event triggered synch and time controlled synch. Even triggered
synch can be achieved by using sensors and switches to detect the event.
For time-controlled synch, each operation is given a fixed time period to finish therefore, a clock or
timer is necessary
Fig.3.4 – Timer
3.3.2 Memory
The memory of the PLC is important because the control program and the peripheral status are
stored there. Memory size in a PLC is measured in either bits, bytes or words.
Because many words of memory are required, it is usually measured in “k” increments (where 1k =
1024).
Although several types of memory are used in modern PLCs, memory can be classified into two
basic categories volatile and non-volatile. Volatile memory loses state when power is remove.
This may seem perfectly appropriate. However, you must remember that the program is stored in
memory, and if the power fails, the program must be rekeyed or reread into memory, a potentially
time consuming activity.
Non-volatile memory, on the other hand, maintains the information in memory even if the power is
interrupted.
3.3.5 Peripherals
A number of peripheral devices are available. They are used to program the PLC, prepare the
program listing, back up the program and display the system status. Old PLCs may still have
handheld programmers and CRT programmers, today they have been replaced by a PC-based
software programming environment. Following is a partial list of peripherals.
1. Operator console
2. Printer
3. Simulator
4. EPROM loader
5. Network Communication Interface
6. PC-based programming software
3.4.2 Logic
By using serial and parallel connections, various types of logic can be represented in a ladder
diagram. The logic states of a component are either on or off. The ladder diagram takes the input
state from the input module and output results to the output module.
1. Basic logic
a. AND logic
b. OR logic
c. Combined AND and OR logic
2. Relays
3. Timers and counters
3.6 References
Tien-Chien Chang, Richard A. Wysk, Hsu-Pin Wang “Computer Aided Manufacturing” 3rd Edition by
Pearson Education