Function Block Diagram Programming with PLC: A Tutorial, Study Guides, Projects, Research of Law

A step-by-step tutorial on Function Block Diagram programming using PLC, including setting up a project, modifying modules, and creating a program. The tutorial covers various types of function code blocks and their uses, as well as examples of scenarios and assignments.

Typology: Study Guides, Projects, Research

2021/2022

Uploaded on 07/04/2022

vidar_fu
vidar_fu 🇳🇴

5

(6)

339 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Function Block Diagram Programming with PLC
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
2. Setup the modules
a. 2080-MEMBAK-RTC
b. 2080-TC-2
3. Add on Modules
a. 2085-IF4
b. 2085-OF4
pf3
pf4
pf5
pf8

Partial preview of the text

Download Function Block Diagram Programming with PLC: A Tutorial and more Study Guides, Projects, Research Law in PDF only on Docsity!

Function Block Diagram Programming with PLC

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
  2. Setup the modules a. 2080 - MEMBAK-RTC b. 2080 - TC- 2
  3. Add on Modules a. 2085 - IF b. 2085 - OF
  1. Modify the IF4 (Potentiometer) and OF4 (Voltmeter) modules to the proper readings a. IF4 Modification i. Select Micro 850 Tab to Show the Controller and its modules > Select Channel 0 for the 2085-IF4 > 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 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

Types of Function Code Blocks

Variable used for inputs and outputs. NOTE: There is not rung needed when using a variable Return will end/terminate the program at that point Rungs Represents a group of function block elements leading to the initiation of an output. Rungs Include: Input, Output, Power Rails Left/Right Power Rail Represent the start/end of a rung Instruction Blocks: Represent instructions for the program: Comparisons, arithmetic, timers, etc. Jumps are used to skip a portion of the program instead of logically flowing to the next rung Comment allows the user to provide detail information about the program/line of code Symbols used within a rung. Used same as a Ladder Logic Program sequence. Label is used with the Jump command to tell the program what rung to jump to. I.E Jump from rung 2 to rung 5

Scenario: HVAC System : The function specification state a. Blue status light (DO6) indicates the cooling system is running b. The cooling system runs when the thermostat’s (potentiometer) meter reading (analog output meter) is less than the temperature probe (thermocouple channel 0) c. A red status light (DO0) indicates the heating system is running d. The heating system runs when the thermostat’s meter reading is greater than the temperature probe 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
  1. 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)
  2. 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.
  3. 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.
  4. Test the original program using a hair dryer. (See Teacher for hair dryer) Submission
  5. Show the teacher both methods. (Maybe in person or video)
  6. Print out final code

Assignment 1 : Egg Carton Packing Machine 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

  1. Show the teacher both methods. (Maybe in person or video)
  2. Print out final code Assignment 2 : Drag Racer Starting Lights Create a function block program that will do the following
  3. Push button DI4 to start program
  4. Turn ON the Yellow Lights (DO1/DO2)
  5. Timer 2 seconds
  6. Turn ON the Red Lights (DO3/DO4); Keep Yellow Lights ON
  7. Timer 2 seconds
  8. Turn ON the Green Lights (DO5/DO6); Keep Yellow/Red Lights ON
  9. Timer 2 seconds
  10. Turn OFF all lights and turn ON Blue Lights (DO7/DO8) Submission
  11. Show the teacher both methods. (Maybe in person or video)
  12. Print out final code