Tutorial 06 Function Block Diagram Programming With PLC Tutorial
Tutorial 06 Function Block Diagram Programming With PLC Tutorial
Tutorial
By: Matthew Jourden
Brighton High School
Definition: Function Block Diagram programming is a language in which elements appear as blocks that
are connected together resembling a circuit diagram.
Function block diagrams show the relationship between the principal parts of a total system and are
well-suited for process or drives control.
Function (Instruction) Block is a graphical representation of a series of executable code that contains
user-defined control algorithms.
1. Open Connected Components Workbench (CCW) > New Project > Change Project Name > Add
Controller 2080-LC50-24QBB Version 9
b. OF4 Modification
i. Select Micro 850 Tab to Show the Controller and its modules > Select Channel 0
for the 2085-OF4 > Select Enable Channel > Set Min-Max Input Range to 0V to
10V
ii. Note can repeat the process for Channels 1-3 or set Disable Channels by
unchecking the Enable Channel Box
5. Setting of New File: File > New > Left Click on Program in the model tree > Select Add > Function
Block Programming
Return will
end/terminate the Comment allows the user to
program at that point provide detail information
about the program/line of code
Program Temp
1. Drag a Variable symbol from the toolbox and place in the top left area of the work space > once
placed the system will prompt user to set the I/O variable > Select the Potentiometer I/O
(IO_X1_A1_00) > rename Thermostat
2. Drag a Variable symbol from the toolbox and place it below the Thermostat variable (See below
for spacing) > set the variable type to the Thermocouple I/O (IO_P2_A1_00) > Rename
Thermocouple
3. Place a function block to the right of Thermostat > Set it as MOV (converts one variable to
another)
4. Connecting wires. Place the cursor on the right edge of the Thermostat variable where the black
line is showing > Hold Left Mouse Key down and drag to connect to the MOV Instruction Block.
Hold Left Mouse Button
here > Drag to MOV i1
Before After
5. Complete the program as shown below. Add all comments. (NOTE: To add a second wire from
an existing wire place the cursor on the right edge of the block and drag to desired location)
6. Upload the program and see what happens. Notice the Greater Than statement is TRUE so the
Blue Status Light turns ON, while the Red Status Light is turned OFF.
NOTE: Program is supposed to work by using the Potentiometer (POT) (AI0) on the control
board.
7. Develop a method (other than rubbing the thermocouple), to turn the Red Status Light ON and
the Blue Status Light is OFF. DO NOT Delete the original program. Add code and readjust the
connection lines. Provide Notation for what the adjustment is.
8. Test the original program using a hair dryer. (See Teacher for hair dryer)
Submission
Convert the following program to a Function Block Program. Add code that will reset the full carton to
zero so the process can repeat.
Submission
Submission