Title: Introduction to ControlLogix Function Block
1Introduction to ControlLogix Function Block
2Function Block Programming
- Relatively new PLC language
- ControlLogix only Allen-Bradley PLC family to
support function block - From IEC 1131-3 specifications
3Uses of Function Block
- Process control such as PID
- Drive systems
4Why Function Block?
- New instructions
- Advanced function block instructions have
instructions that would take many ladder rungs to
create equivalent logic. - Function block has user-defined blocks.
5- Not all relay ladder logic instructions are
available in function block. - A ControlLogix routine must be 100 the same
programming language.
6Function Block Components
- Function block routine
- Function blocks for instructions
- Input and output references
- Wire connectors
- Dotted wire for bit data
- Solid line for value data
7Create a New Function Block Routine
Routine name
Description if desired
Select routine type
8Function Block Routine
Continuous Task
Main Ladder Routine
Function Block Routine
9Function Block Sheet
Delete sheet
Navigate between sheets
Sheet number
New sheet
Sheet Name
Show / hide grid
Coordinates
Grid
10Language Element Toolbar
Input reference
Output reference
Output wire connector
Input wire connector
11Input Reference for Bit
Bit value
Input Reference
Dotted lines identify as bit or BOOL data
12Input Reference for Values
Bit data
Tag value
Solid line signifies the tag contains a value
13Output Reference
Output reference to tag
Bit value
Dotted line signifies bit data
14Wire Connectors (1 of 3)
- Used to move function block diagram wire from one
sheet to another - Output from one sheet is an input to the next
sheet
15Wire Connectors (2 of 3)
Sheet One
Output wire connector
Sheet Two
Input wire connector
Coordinates
16Wire Connectors (3 of 3)
- Coordinates refer ahead to the input wire
connector on the next sheet or back to the output
wire connector on the previous sheet. - 2A1 refers to sheet 2 coordinates A1.
- 1C2 refers to sheet 1 coordinates C2.
17Language Element Toolbar
Boolean AND
Boolean OR
Boolean Excusive OR
Boolean NOT
Up / Down counter
Timer on-delay with reset
18Boolean AND
19Relay Ladder AND Logic
20Boolean OR
21Relay Ladder OR Logic
22Boolean Exclusive OR
23Relay Ladder Logic Excusive OR
24Boolean Not
25Relay Ladder NOT Logic
26Adding Address Tag
27Drag Wire To Target
Drag wire to target. When target changes drop
wire.
28Function Block Properties
Click here to go to properties.
29BAND Properties Box
Parameters visible?
Monitor values
Execution order