PLC Programming Cook Book Rev3
PLC Programming Cook Book Rev3
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
Minimum Value
Alarm Detection
10
11
Tank continued -2
12
Tank -3
13
Tank -4
14
15
A DFB can have many program sections of different language types and encapsulate standard repetitive logic
16
17
18
19
20
21
22
23
Useful when analog signal for tank level is too costly, or impractical because of process conditions.
24
Fluid level is detected by proximity sensors, and sets appropriate program bits.
25
26
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
28