0% found this document useful (0 votes)
259 views29 pages

PLC Programming Cook Book Rev3

This document provides an agenda and recipes for PLC programming functions including basic ladder logic, alarm logic, function blocks, tank volume calculations, user defined function blocks, structured variables and arrays. It discusses programming recipes for a simple sequencer, alarms, lamp flasher, minimum/maximum values, tank level calculations and control, and arrays in loops. It concludes with contact information for questions.

Uploaded by

brizmar07
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
259 views29 pages

PLC Programming Cook Book Rev3

This document provides an agenda and recipes for PLC programming functions including basic ladder logic, alarm logic, function blocks, tank volume calculations, user defined function blocks, structured variables and arrays. It discusses programming recipes for a simple sequencer, alarms, lamp flasher, minimum/maximum values, tank level calculations and control, and arrays in loops. It concludes with contact information for questions.

Uploaded by

brizmar07
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

PLC Programming Cook Book & Special Recipes

Doug Norton & Currie Gardner

ISA Meeting May 31, 2007

Setting the Standard for Automation

May 31, 2007

Agenda
Introduction Cook Book / Recipes
Basic Ladder Logic functions
Simple Sequencer Basic Alarm Logic & Alarm Logic with FBs Lamp Flasher Process Alarms Tank Volume Calculations

User Defined Function Blocks (DFBs) Structured Variables / Tags & Arrays
Tank Level Scaling using Arrays & Structured Tags Arrays / Structures in loop for calculations

Ladder Tank Level Control

Questions & Discussion


2

Simple Eight Step Sequencer

Basic Alarm Logic

Alarms with Function Blocks

Lamp Flasher & Alarm Indicator

Minimum Value

Alarm Detection

Clear Alarms on First Pass

More than one function per button

10

Calculation of Volume of Horizontal Tank -1

11

Tank continued -2

12

Tank -3

13

Tank -4

14

DFB - Solenoid Valve Control (single coil)

15

DFB - Solenoid Valve Control (single coil)

A DFB can have many program sections of different language types and encapsulate standard repetitive logic
16

DFB - Solenoid Valve - Control Logic

17

DFB - Solenoid Valve - Alarm Logic

18

Structured Variables / Tags

19

Tank Level Scaling using Arrays & Structured tags

20

21

22

Arrays in loop for calculations

23

Controlling Tank Level

Useful when analog signal for tank level is too costly, or impractical because of process conditions.
24

Detect Tank Level

Fluid level is detected by proximity sensors, and sets appropriate program bits.

25

Set Pump Speed when Outside Limits


If the upper limit is reached, the discharge pump is set to max, and the controlled speed is incremented

26

Set Pump Speed when between limits

When the fluid level is between the limits, the pump speed is set to the adjusted speed, and the normal operation of the pump continues until the next time one of the fluid level limits are reached again.

27

Capture First Pass

28

Questions & Discussions


Contact Info:
Doug Norton (647) 295-2051 PLC Systems Integrators Inc. [email protected] Currie Gardner (416) 505-5530 Rendrag Solutions Inc. [email protected]
29

You might also like