"The application program is written in a language called ladder logic. Ladder logic comes from the electrical industry when relays were used to control equipment. Relays were energized from a power rail through a series of contacts that formed a rung. A number of rungs in turn formed a network."

PLC Applications

Eugene Kowch | PID Consultants, Inc.

PROGRAMMABLE LOGIC CONTROLLERS
----APPLICATION PROGRAMS----
By Eugene Kowch, PID Consultants, Inc.

"The application program is written in a language called ladder logic. Ladder logic comes from the electrical industry when relays were used to control equipment. Relays were energized from a power rail through a series of contacts that formed a rung. A number of rungs in turn formed a network."

Eugene R. G. Kowch, P.Eng. is a Control Systems Engineer with P.I.D. Consultants Inc.. Sixteen years of providing professional integrated design and construction support for industrial, commercial and residential projects. Is an active member of the Association of Professional Engineers and Geoscientists of British Columbia.
eugenek@pro.net
http://www.angelfire.com/wv/eugenek/PID.html


In the February 1997 issue of HTINews was an introductory article on programmable logic controllers (PLC). In that article the system hardware was explained, Input and Output Units (I/O) and the Central Processing Unit (CPU). This article will discuss the application programs for the PLC.

The application program is written in a language called ladder logic. Ladder logic comes from the electrical industry when relays were used to control equipment. Relays were energized from a power rail through a series of contacts that formed a rung. A number of rungs in turn formed a network. Below is an example of a standard across-the-line electrical diagram for a push button-activated motor start/stop circuit.

Pushing the motor start push button energizes motor start/stop relay R1and closes the contact to start pump motor M1. The motor auxiliary contact on motor start/stop relay R1 also closes, allowing the motor start/stop circuit to be latched ON. Two events can cause R1 to drop out:

  • An overload (OL1) on motor M1
  • The motor stop push button is pushed

Ladder logic programming consists of three general types of logic elements - contacts, coils, and shorts.

Contacts

Contacts are used to pass or inhibit power flow in a ladder logic program. Four kinds of contacts may be used - normally open, normally closed, positive transitional and negative transitional.


The normally open (N.O.) contact passes power when the input is ON.


The normally closed (N.C.) contact passes power when the input is OFF.

The positive transitional contact passes power for only one scan as the input transitions from OFF to ON.

The negative transitional contact passes power for only one scan as the input transitions from ON to OFF.

Coils

A coil is either ON or OFF, depending on power flow. When a coil is ON, it either passes power to a discrete output circuit or changes the state of an internal contact. There are two types of coils - normal and memory-retentive.

The normal coil turns OFF when power is removed.

The memory-retentive coil comes back in the same state when power is restored for one scan.

Shorts

Shorts are simply straight-line connections between contacts in a ladder logic network. A vertical short connects contacts one above the other in a network column. When two contacts are connected by a vertical short, power is passed when one or both contacts receive power. Horizontal shorts are used to expand a rung in a ladder logic network without breaking the power flow.

An implementation of the circuit using contacts, coils, and shorts in a ladder logic network is shown below.

The illustration above shows that the sequence of operation remains essentially the same when the pump motor start/stop circuit is designed for the PLC. The big difference is that all the I/O points are wired directly to the input/output units built into the PLC system and the actual control is programmed in ladder logic in the PLC. The ladder logic implementation allows greater flexibility of control and decreased development time, since all the hard-wiring between points of control is done electronically.


Comments (0)

This post does not have any comments. Be the first to leave a comment below.


Post A Comment

You must be logged in before you can post a comment. Login now.

Featured Product

PureLink - HCE III TX/RX: 4K HDR over HDBaseT Extension System w/ Control and Bi-Directional PoE

PureLink - HCE III TX/RX: 4K HDR over HDBaseT Extension System w/ Control and Bi-Directional PoE

The HCE III Tx/Rx HDBaseT™ extension system offers full HDMI 2.0 compliance supporting HDR (High Dynamic Range) and 4K@60Hz with 4:4:4 chroma sampling. Featuring PureLink's proprietary Pr©cis codec, a light compression technology, the HCE III can transport Ultra HD/4K, multi-channel audio, and High Dynamic Range (10 bits support) content over a single CATx cable. The HCE III provides HDMI extension up to 130 feet (40 meters) at Ultra HD/4K and up to 230 ft. (70 meters) at 1080p over category cable with embedded multi-channel audio, CEC pass-through, bi-directional RS-232 and IR control, and PoE - all with zero loss and zero noise. The HCE III Tx/Rx also supports Dolby TrueHD, Dolby Digital Plus and DTS-HD Master Audio plus LCPM (up to 192 kHz). Additionally, the low profile "slim box" enclosure design make the HCE III ideal for limited space installation environments, such as behind flat panel displays and video walls.