1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

12 SFC programming i Training PLC Allen Bradley

46 86 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 46
Dung lượng 301,94 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

6 – 10 December 2010QUALIFIER • Each action non-boolean and boolean uses a qualifier to determine when it starts and stops • The default qualifier is Non-Stored • The action starts w

Trang 2

WHAT IS SFC ?

Stand for: SEQUENTIAL FUNCTION CHART

SFC is similar to a flow-chart of your process

SFC defines the steps or states through which your system

progresses

Trang 3

6 – 10 December 2010

SFC SCHEMA

Sequential Function Chart (SFC) Programming I 12

Trang 4

WHEN TO USE SFC ?

Use SFC to:

Organize the functional specification for your system

Program and control your system as a series of steps and

transitions

Trang 5

Sequential Function Chart (SFC) Programming I 12

Trang 6

SFC OVERVIEW

SIMULTANEOUS BRANCH

Trang 7

6 – 10 December 2010

SFC OVERVIEW

SELECTION BRANCH

TEXT BOX

STOP

Sequential Function Chart (SFC) Programming I 12

Trang 8

BASIC ELEMENTS IN SFC

STEP

• Represent a major function of process

Trang 9

Sequential Function Chart (SFC) Programming I 12

Trang 10

BASIC ELEMENTS IN SFC

TRANSITION

to go to the next step

Trang 11

6 – 10 December 2010

BASIC ELEMENTS IN SFC

SELECTION BRANCH

takes the first true path

Sequential Function Chart (SFC) Programming I 12

Trang 12

BASIC ELEMENTS IN SFC

SIMULTANEOUS BRANCH

executed at least once If the transition is false, the SFC repeats

the previous step

Trang 13

6 – 10 December 2010

BASIC ELEMENTS IN SFC

LOOP BACK

Sequential Function Chart (SFC) Programming I 12

Trang 15

6 – 10 December 2010

BASIC ELEMENTS IN SFC

SEQUENCE

Sequential Function Chart (SFC) Programming I 12

Trang 16

STEP STRUCTURE

Each step uses a tag to provide information about the step

Access this information via the Monitor Tags tab of the Tags

window

Trang 17

and last scan)

first and last scan

Sequential Function Chart (SFC) Programming I 12

Trang 18

STEP STRUCTURE

active during any of its executions

Trang 19

6 – 10 December 2010

STEP STRUCTURE

Sequential Function Chart (SFC) Programming I 12

Trang 20

ACTION TYPE

NON BOOLEAN

Trang 22

ACTION TYPE

BOOLEAN

when the bit is on

Trang 23

Each action (non-boolean and boolean) uses a tag to provide

information about the action

Sequential Function Chart (SFC) Programming I 12

Trang 24

ACTION STRUCTURE

(milliseconds)

Trang 25

6 – 10 December 2010

QUALIFIER

Each action (non-boolean and boolean) uses a qualifier to

determine when it starts and stops

The default qualifier is Non-Stored

The action starts when the step is activated and stops when

the step is deactivated

Sequential Function Chart (SFC) Programming I 12

Trang 26

QUALIFIER

Qualifier Meaning Function

stop when the step is deactivated

Edge)

Start when the step is activated AND execute only once

when the step is deactivated

Trang 27

6 – 10 December 2010

QUALIFIER

Qualifier Meaning Function

this action

Time Limited

Stay active until a Reset action turns off

this action or a specific time expires, even if the step is deactivated

Sequential Function Chart (SFC) Programming I 12

Trang 28

QUALIFIER

Qualifier Meaning Function

AND execute once when the step is deactivated

(Falling Edge)

Start when the step is deactivated AND execute only once

Trang 29

Start a specific time after the step is activated, even if the step is deactivated before this time AND stay active until a

Reset action turns off this action

Sequential Function Chart (SFC) Programming I 12

Trang 30

QUALIFIER

Qualifier Meaning Function

Delayed

Start a specific time after the step is

activated and the step is still active AND

stop when the step is deactivated

Trang 31

Start a specific time after the step is

activated and the step is still active AND stay active until a Reset action turns off

Trang 32

TURN OFF DEVICE AT THE END OF

A STEP

When the SFC leaves a step, you have several options on how to

turn off devices that the step turned on

The Options are:

Trang 33

6 – 10 December 2010

DON’T SCAN

Default option for handling the last scan of a step

All data keeps its current values when the SFC leaves a step

Requires additional instructions to clear any data that you

want to turn off at the end of a step

Sequential Function Chart (SFC) Programming I 12

Trang 34

TO TURN OFF A DEVICE AT THE

END OF A STEP:

Use a P0 Pulse (Falling Edge) action to clear the required data

Make sure that the P0 action or actions are last in the order of

actions for the step

Trang 35

6 – 10 December 2010

EXAMPLE

This action turns on the conveyor When conveyor_state

turns on, the conveyor turns on

Before the SFC leaves the step, the P0 action turns off the

conveyor On the last scan of the step, conveyor_state turns

off This turns off the conveyor

Sequential Function Chart (SFC) Programming I 12

Trang 36

PROGRAMMATIC RESET

All actions execute according to their logic

All data keeps its current values

Trang 37

6 – 10 December 2010

TO TURN OFF A DEVICE AT THE

END OF A STEP:

To your normal logic, add logic that clears the required data

Use the LS bit of the step or the Q bit of the action to condition

the execution of the logic

Use a P0 Pulse (Falling Edge) action to clear the required data

Sequential Function Chart (SFC) Programming I 12

Trang 38

EXAMPLE: USING LS BIT

When the step is not on its last scan (conveyor_fwd.LS = 0),

this statement turns on conveyor_state When conveyor_state

turns on, the conveyor turns on

On the last scan of the step (conveyor_fwd.LS =1), this

statement turns off conveyor_state When conveyor_state

Trang 39

6 – 10 December 2010

EXAMPLE: USING Q BIT

When the action is not on its last scan (conveyor_start.Q =1),

this statement turns on conveyor_state When conveyor_state

turns on, the conveyor turns on

On the last scan of the action (conveyor_start.Q =0), this

statement turns off conveyor_state When conveyor_state

turns off, the conveyor turns off

Sequential Function Chart (SFC) Programming I 12

Trang 40

EXAMPLE: USING PO ACTION

This action turns on the conveyor When conveyor_state

turns on, the conveyor turns on

Before the SFC leaves the step, the P0 action turns off

the conveyor On the last scan of the step,

Trang 41

6 – 10 December 2010

AUTOMATIC RESET

Execute P and P0 actions according to their logic conditions

Clear tags to the left of [:=] assignments

Sequential Function Chart (SFC) Programming I 12

Trang 42

TO TURN OFF A DEVICE AT THE

END OF A STEP:

Control the state of the device with an assignment or instruction

such as:

Trang 43

6 – 10 December 2010

EXAMPLE:

This action turns on the conveyor When conveyor_state

turns on, the conveyor turns on

When the SFC leaves the step, conveyor_state turns off

This turns off the conveyor

Sequential Function Chart (SFC) Programming I 12

Trang 44

Lets you stop the execution of an entire SFC or a path of a

simultaneous branch and wait to restart.

When an SFC reaches a stop element:

Trang 45

6 – 10 December 2010

STOP STRUCTURE

Property Function

active

Each stop uses a tag to provide the following information about

the stop element:

Sequential Function Chart (SFC) Programming I 12

Trang 46

DAY 3

NEXT TOPIC : SEQUENTIAL FUNCTION

CHART (SFC) PROGRAMMING II

Ngày đăng: 15/05/2019, 20:45

TỪ KHÓA LIÊN QUAN