PLC Week 10 - Function Block Programming
PLC Week 10 - Function Block Programming
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
1 N2G 4M4
Week 10
Function Block Programming
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
2 N2G 4M4
Function Block Programming is a PLC programming language outlined in the IEC 61131-3 standard. It
is a visual programming language that ties various instruction blocks together and allows them to
execute a process based on conditional logic. Unlike ladder logic, function block is less concerned
about displaying individual logic steps and more focused on linking prebuilt logic functions together to
create a desired result.
Memory Tags Memory tags and memory usage within function block is identical to that of ladder logic .
Work Area Since function block is a graphical language it is drawn on virtual pieces of paper
(“sheets”). A single function block routine can contain multiple sheets. A piece of logic
can be spread over multiple sheets to make it more legible.
Drawing Elements Function block is broken up into five main elements; Input References, Output
References, Function Blocks, Connectors and Wires.
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
3 N2G 4M4
Input References (IRef) Provide the locations for defining the data (memory tags or constant value)
that will be feed into the function block.
Output References (ORef) Provide the locations for the function block results to be stored
(normally memory tags).
Function Blocks (Instructions) Contain the logic required to complete a specific mathematical, logical or
comparison function. Function blocks are the equivalent of instructions in
ladder logic. Some Logix 5000 operations are available only in function block
while others are not available in function block at all.
Connectors (Icon) Provide the same functionality as wires but do not draw in the line in between
the two points, allowing for a cleaner, more legible schematic.
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
4 N2G 4M4
Wires are connected to small circles on the references and function blocks. These circles are referred
to as pins. Unlike ladder logic, in most instructions, not every function block pin must be connected to
something. Function pins that are not desired can be hidden by turning off their visibility. To do this
click on the instruction ellipse box and check off the functions visibility.
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
5 N2G 4M4
Count Up / Down
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
11 N2G 4M4
Greater Than
Greater Than or Equal To
Less Than
Less Than or Equal To
Doon Campus
PROG8075
CNTR8060
– Industrial
– PLCVisualization
2 299 Doon Valley Drive
Kitchener, Ont. Canada
12 N2G 4M4