introduction to controllogix function block. function block programming relatively new plc language...

29
Introduction to ControlLogix Function Block

Upload: ezra-scott-reeves

Post on 23-Dec-2015

242 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Introduction to ControlLogix Function Block

Page 2: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Function Block Programming

• Relatively new PLC language

• ControlLogix only Allen-Bradley PLC family to support function block

• From IEC 1131-3 specifications

Page 3: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Uses of Function Block

• Process control such as PID

• Drive systems

Page 4: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Why 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.

Page 5: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

• Not all relay ladder logic instructions are available in function block.

• A ControlLogix routine must be 100% the same programming language.

Page 6: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Function 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

Page 7: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Create a New Function Block Routine

Routine name

Description if desired

Select routine type

Page 8: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Function Block Routine

Continuous Task

Main Ladder Routine

Function Block Routine

Page 9: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Function Block Sheet

Sheet number

Coordinates Grid

Delete sheet

New sheet

Navigate between sheets

Show / hide gridSheet Name

Page 10: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Language Element Toolbar

Input reference

Output reference

Input wire connector

Output wire connector

Page 11: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Input Reference for Bit

Dotted lines identify as bit or BOOL data

Bit valueInput Reference

Page 12: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Input Reference for Values

Solid line signifies the tag contains a value

Bit data

Tag value

Page 13: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Output Reference

Output reference to tag

Dotted line signifies bit data

Bit value

Page 14: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Wire 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

Page 15: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Wire Connectors (2 of 3)

Sheet One

Sheet Two

Output wire connector

Input wireconnector

Coordinates

Page 16: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Wire 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.

Page 17: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Language Element ToolbarBoolean AND

Boolean OR

Boolean Excusive OR

Boolean NOT

Up / Down counter

Timer on-delay with reset

Page 18: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Boolean AND

Page 19: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Relay Ladder AND Logic

Page 20: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Boolean OR

Page 21: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Relay Ladder OR Logic

Page 22: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Boolean Exclusive OR

Page 23: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Relay Ladder Logic Excusive OR

Page 24: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Boolean Not

Page 25: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Relay Ladder NOT Logic

Page 26: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Adding Address Tag

Page 27: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Drag Wire To Target

Drag wire to target. When target changes drop wire.

Page 28: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

Function Block Properties

Click here to go to properties.

Page 29: Introduction to ControlLogix Function Block. Function Block Programming Relatively new PLC language ControlLogix only Allen-Bradley PLC family to support

BAND Properties Box

Parameters visible?

Monitor values

Execution order