Centum VP 5 ENG Control Pgms - Global [PDF]

  • 0 0 0
  • Gefällt Ihnen dieses papier und der download? Sie können Ihre eigene PDF-Datei in wenigen Minuten kostenlos online veröffentlichen! Anmelden
Datei wird geladen, bitte warten...
Zitiervorschau

CENTUM VP

CONTROL PROGRAMS

LESSON 5

OBJECTIVES OF THIS LESSON

In this lesson you will be learning how to:

1. Create sequence elements for use in process control. 2. Use sequence elements in a sequence table. 3. Show the different execution times associated with sequence tables. 4. Learn the difference between tables executed as “Steps” and as “Rules”. 5. Define “Condition” and Action” entries in a sequence table. 6. Use a "Sequence Logic Chart" as an alternative for sequence tables. 7. Create a Sequence Function Chart and a SEBOL program to run inside.

CENTUM VP Engineering

1

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

PROCESS SEQUENCE Start process

HIS

Select grade Set flows Add milk Add chocolate Tank at 30% Mixer ON Heat ON Tank at 80% Milk & Choc flows OFF Mix timer ON Timer timeout Open drain Heat OFF Tank at 30% Mixer OFF

Vnet/IP

Tank empty Start CIP

MILK

FCS

START

CHOCOLAT E

MIXER

LI TEMP

STEAM

DRAIN

CENTUM VP Engineering

2

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE ELEMENTS Sequence elements are the items that combine to make sequence control of the process possible. Some of these elements are: Process Input/Output: This refers to the contact I/O points associated with the system. These can be limit switches, start buttons, or pump/motor starters. Internal Switches: An internal switch is used to store sequence states. Timers: Timers are used for time related sequence. The output of a timer (count up) can be connected to a counter (%CT), internal switch (%SW or %GS) or process output (%Z). Counters: These can be either software counters (counting how many times a program has run) or pulse input counters (counting the physical input from the field). Regulatory Control Functions: The status of a control instrument can be read or switched. Switch Instruments: The status of a switch instrument can be read or switched. Relational Expressions: Relational expressions are used to compare pairs of data items such a process data and set parameters. Message Outputs: Messages can be generated as actions of a sequence table. These messages can be sent to printers, operator guide message panel, or process alarm panel.

CENTUM VP Engineering

3

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

Sequence (32 conditions and 32 actions) table

CS3000 only, LFCS & KFCS for “Migration”. “Medium” size sequence table (48 conditions and 48 actions)

CS3000 only, LFCS & KFCS for “Migration”. “Large” size sequence table (64 conditions and 64 actions)

CENTUM VP Engineering

4

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE FUNCTION BLOCKS Sequence control is the predetermined series of events (both inputs and outputs) that are required to control a process. The different types of sequence function blocks are: Sequence Tables •

ST16:

Sequence table with 32 conditions and 32 actions (size is adjustable).



ST16E:

Rule extension table for going beyond the 32 rules in a table.



M_ST16:

CS3000 “Migration” sequence table with 48 conditions and 48 actions (size is adjustable).



M_ST16E: Rule extension table for going beyond the 32 rules in a “M_ST16” table.



L_ST16:



L_ST16E: Rule extension table for going beyond the 32 rules in a “L_ST16” table.



LC64

CS3000 “Migration” sequence table with 64 conditions and 64 actions (size is NOT adjustable).

Logic chart with 64 logic elements (AND, OR, NOT, etc.)

SFC Blocks •

_SFCSW: Three position switch type SFC block.



_SFCPB:

Push-button type SFC block.



_SFCAS:

Analog type SFC block.

Switch Instrument Sequence instruments are used to control ON/OFF devices such as valves. •

SI-x:

Switch instrument block with 1 or 2 inputs.



SO-x:

Switch instrument block with 1 or 2 outputs.



SIO-xx:

Switch instrument block with 1 or 2 inputs and 1 or 2 outputs.

Sequence Elements 1 Blocks •

TM:

Timer block.



CTS:

Software counter block.



CTP:

Pulse train input counter block.



CI:

Code Input



CO:

Code output

Sequence Element 2 Blocks •

ALM-R

Representative alarm block



RL:

Relation expression block.



RS:

Resource scheduler



VLVM:

16 point valve monitoring block.

CENTUM VP Engineering

5

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

MIXERTANK 1 MIXER

LESSON 5

IN

SIO-11 •1 Input •1 output

OUT

MIXER-1 SIO-11

%Z021104

OUT (MV=2)

%Z021119

ANSWERBACK (PV=2)

RU

%Z021104

STO

MIXER

%Z021219

“OPEN” ANSWERBACK

SIO-21 •2 inputs •1 output

(PV=2) DRAINTANK 1 DRAIN

Answerbac k P

Limit Switch n

n+1

V 3

1

1

2

1

0

1

0

0

0

0

1

%Z021102

PERR

OUT %Z021218 (MV=2)

DRAIN IN

DRAIN-1

OUT

SIO-21

%Z021102

%Z021218

With the standard SIO-21, you only define the “OPEN” answerback D/I. The “CLOSED” answerback will be the next physical digital point.

CENTUM VP Engineering

6

%Z021103 “CLOSED” ANSWERBACK (PV=0)

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SWITCH INSTRUMENTS Switch instruments are used to control ON/OFF devices such as valves, motors or pumps. •

If the SIO has 2 inputs (and/or 2 outputs) only the first point has to be specified. The software assumes that the next physical digital point (can be I/O or internal switch) is to be used by the function block.



Switch Instruments must be in “AUT” to be executed by a sequence table.

Switch instrument types are: •

SI-1:

Switch instrument block with 1 input.



SI-2(E):

Switch instrument block with 2 inputs



SO-1:

Switch instrument block with 1 output.



SO-2(E):

Switch instrument block with 2 outputs.



SIO-11:

Switch instrument block with 1 input and 1 output.



SIO-12(E):

Switch instrument block with 1 input and 2 outputs.



SIO-21(E):

Switch instrument block with 2 inputs and 1 output.



SIO-22(E):

Switch instrument block with 2 inputs and 2 outputs.



SIO-12P(E):

Pulse type switch instrument block with 1 inputs and 2 output.



SIO-22P(E):

Pulse type switch instrument block with 2 inputs and 2 outputs.

Note: (E) type SIO function blocks can specify non-contiguous digital input or outputs.

S W 1

Ans. Bk. Bypass

If BPSW=1 CS MA

P

CENTUM VP Engineering

Ans. Bk. Check

Ans. Bk. IN

Remote/ Local

IN

TSI

7

AUT/ CAS

o MV

OUT

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

CENTUM VP Engineering

8

LESSON 5

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

RELATIONAL EXPRESSION BLOCK The relational expression block is used to compare or ANDs two sets of process data, or process data and constant data. Up to 16 pairs of relational expressions can be set up in each of these blocks. When a sequence table references a relational block, the specific register number must be asked for (X01-X16) and the relationship to be tested for (GE, GT, LE, LT, EQ, and AND). Note: GE = Greater or Equal GT = Greater Than LE = Less or Equal LT = Less Than EQ = Equal AND = And

CENTUM VP Engineering

9

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

I

CENTUM VP Engineering

10

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

TIMERS AND COUNTERS Timers: Timers are created as second or minutes. •

These can be turned on by operators, SEBOL programs, or sequence tables



The highest time-up is 100,000 (minutes or seconds).

Counters: There are two types of counter blocks; software (CTS) and pulse train (CTP). •

CTS counters are used to count the occurrences of an event.



CTP counters are connected to digital pulse inputs.

The highest count-up is 100,000.

CENTUM VP Engineering

11

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

TABLE TIMING STEPS

RULES

CONDITION

COMMENT ACTION

THEN ELSE

CENTUM VP Engineering

12

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE TABLE LAYOUT From this panel the logical control of the process can be constructed. The best approach for creating a sequence table is to make a flow chart of the process to be controlled. From this process flow a series of inputs and outputs will become evident. Remember that sequence tables are built in blocks of 8. Timing: The execution timing for sequence tables can be modified. The example on the previous page shows TC and a “Basic Scan” rate. This means the table will execute: Once per second, outputs only on status change. Clicking on this area will display a list of the other table executions available. Refer to the FCS Function manual for specifics.

Execution: T

= Periodic at the scan rate

O

= One shot, normally started by another Sequence Table

I

= “START” or “RESTART” (“START” = initial cold start)

B

= “START” only (“START” = initial cold start)

Output: C = Output on initial change. Condition must go “False” then “True” again for the table output to occur again. E = Outputs each time conditions are satisfied.

Rules: Each table has 32 columns that are referred to as “Rules”. If a sequence table is made of rules only, then all of the Conditions are tested each timing cycle. When all of the conditions in any rule are found to be true, then the Actions under that set of conditions are taken. Steps: If the process must have sequentially defined steps in order to function correctly then steps are used. Using Steps, only the conditions in the step the sequence table is in are tested. When all of the conditions are true the Then row at the bottom of the sequence table tells the table which step will be tested next. Steps can be several Rules wide so that different sets of conditions can be tested and the first one becoming true will have its actions set. Then: As stated in the paragraph above, when a sequence table is made with Steps the table must be told which is the next step to go to when the current step’s conditions are met. If no Then is specified the table will not advance beyond that step. Else: The Else row allows the table to go to another step when the conditions in the current step are not true. Condition: These are the inputs into the sequence table. (What is the table looking to see happen.) Action: These are the outputs from the sequence table that turn on pumps, open valves, or change modes.

CENTUM VP Engineering

13

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

CONDITIONS

CENTUM VP Engineering

14

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE TABLE CONDITIONS Conditions are the inputs to a sequence table; they are what the table is looking for before it can take any action (output). The following are some common examples of Conditions used in sequence tables. More definition can be found in the FCS Function Manual. Tag Name. Data Item

Data

Contact input

Tag or %Znnusmm.PV

ON (OFF)

Y or N

Contact output

Tag or %Znnusmm.PV

ON (OFF)

Y or N

Internal switch

Tag or %SWnnnn.PV

ON (OFF)

Y or N

Global switch (CS3000) Tag or %GSnnnss.PV

ON (OFF)

Y or N

Timer

Tag.BSTS

PAUS, PALM, CTUP, NR, RUN, STOP Y or N

Tag.MODE Counter

Tag.BSTS

AUT (O/S)

Y or N

PALM, CTUP, NR, RUN, STOP

Tag.MODE

Y or N

AUT (O/S)

Y or N

Regulatory control functions (depending upon the function block type). Tag.MODE

AUT, MAN, CAS, PRD, ROUT, RCAS

Y or N

Tag.ALRM

NR, HH, HI, LO, LL, IOP, OOP

Y or N

(PG-L13)

Tag.ZONE

zone number

Y or N

Switch instruments

Tag.MODE

AUT, MAN

Y or N

Tag.ALRM

NR, ANS+, ANS-

Y or N

Relational expressions (each relational block can test up to 16 expressions) Tag.X01-16

CENTUM VP Engineering

EQ, GT, GE, LT, LE, AND

15

Y or N

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

ACTIONS

CENTUM VP Engineering

16

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE TABLE ACTION Actions are things that you want to change; like a Mode change, starting a timer, turning on a digital output. After the conditions in the same rule are found to be true the actions are executed. The following are some common examples of Actions used in sequence tables. More definition can be found in the FCS Function Manual. Contact output

Tag Name. Data Item Tag or %Znnusmm.PV

Data H (L, F, P)

Y or N

Internal switch

Tag or %SWnnnn.PV

H (L)

Y or N

Global switch (CS3000) Tag or %GSnnn.PV

H (L)

Y or N

Timer

START

Y or N

STOP

Y or N

RSTR (Restart)

Y or N

WAIT (Pause)

Y or N

ON

Y

Tag.OP

Software Counter (CTS)Tag.ACT

OFF Regulatory control functions (depending upon the function block type) Tag.MODE

AUT, MAN, CAS, PRD,

Y

Y

RCAS, ROUT Preset MV Output

Tag.PSW

1 (ML), 2 (MH), 3 (PMV)

Y

Switch Iinstruments

Tag.MODE

AUT, MAN

Y

Tag.CSV

0 (OFF), 1 (Middle),

Y

2 (ON)

Y

P0, P2

Y or N

%OGnnnn.PV

NON

Y

%ANnnnn.PV

NON

Y

0 (INITALIZE),

Y

Tag.CSV Operator Guide Message

Annunciator Alarm

Batch Data Set Unit (BDSET-1) Tag.ACT

1-16 (DOWNLOAD 1 ITEM) 17 (DOWNLOAD ALL 16 ITEMS) Batch Set Unit (BSETU) Tag.SW

0 (OFF), 1 (START),

Y

2 (RESTART), 3 (ABORT), 4 (STOP)

CENTUM VP Engineering

17

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

CENTUM VP Engineering

18

LESSON 5

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE LOGIC CHART (LC64) A logic chart block is a function block prepared in the form of an interlock block diagram. The input (condition) signals go through logic elements before becoming outputs (actions). Timing of the Logic Charts is the same as on Sequence Tables, although the logic’s execution occurs every scan cycle (TE). A logic block is mainly used to control interlock sequences. LC64: Logic chart with 32 inputs, 32 outputs, and 64 logic elements. Logic elements such as AND gates, OR gates, and delays are available.

CENTUM VP Engineering

19

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

CENTUM VP Engineering

20

LESSON 5

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SFC INSTRUMENTS AND SEBOL PROGRAM

SFC: (Sequential Function Chart) Graphical language to express executing order of a sequence. There are 3 different SFC instruments available: • _SFCSW: Three-position switch type SFC block. •

_SFCPB:

Push-button type SFC block.



_SFCAS:

Analog type SFC block.

Initial step

1

INITIALIZATION

2

ADD PRODUCT

Transition

Step

Initial Step: The initial step of a program is expressed using a double square. Transition: The transition condition (of one line only) is evaluated when the action of a step immediately before the transition has been completed. Then if the condition is true, the program proceeds to the next step. Step: A step is active only when it is being executed. It will contain a SEBOL program, sequence table, or logic chart. When the step completes, it proceeds to the next step as defined by a link. Each program can have up to 99 steps. SEBOL: (SEquence and Batch Oriented Language) Language to express control function of sequence ( mode change, comparison of data, open/close valve, etc.).The order of execution is defined, along with operation guide messages and prompts. • SEBOL/SFC blocks are executed in the time that remains after the function blocks are executed. Relationship between SFC and SEBOL

1

INITIALIZATION

Operation SEBOL

CENTUM VP Engineering

2

ADD PRODUCT

3

HEATING

4

ADD CATALYST

5

COOK CYCLE

genname PID TEMP1 genname PID FLOW1 genname PID FLOW2 * * TEMP1.MODE=“AUT” FLOW1.MODE=“CAS” FLOW2.MODE=“CAS” * * end

21

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE CONTROL EXERCISE 1 Note: The following exercise will be done in Test Function Mode. Also, this exercise and all future exercises should be done in the STUDENTV project folder; we will no longer being working in the “CENTUM1X” project folder. One further note: as the exercise progresses, the specific details for opening and closing builder screens will become less specific to allow you to become more self sufficient. In this exercise, you will learn how to define common switch (%SW), operator guide message (%OG), timer (TM), and apply them in a sequence table (ST16). Description: Shown below are the process flow chart and the blocks and tags involved. •

When “SEQ-START” is turned on a timer will be activated and switch “COUNT-1” will be turned on.



When the timer counts up, “COUNT-1” will reset, then “COUNT-2” will be turned on and the timer reactivates.



This cycle will continue until all four (4) switches have been cycled, then an operator guide message will be output when the cycle is over.

Block name

Block type or switch

Tag name

Sequence table block

ST16

SEQ-CTL

Common switch

%SW

SEQ-START

Common switch

%SW

COUNT-1

Common switch

%SW

COUNT-2

Common switch

%SW

COUNT-3

Common switch

%SW

COUNT-4

Timer block

TM

TM301-11

ON

Start switch SEQ-START

OFF

OFF ON

Switch COUNT-1 Switch COUNT-2

Time-up OFF

Timer start

Time-up

Timer re-start

Switch COUNT-3

Time-up

Timer re-start

Switch COUNT-4

Time-up

Timer re-start

Guide Message

Defining Internal Switches CENTUM VP Engineering

22

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

1. Open FCS0101, in “STUDENTV” and click on “Switch” and then “SwitchDef”. 2. Re-name these switches: •

%SW0500 = SEQ-START



%SW0501 = COUNT-1



%SW0502 = COUNT-2



%SW0503 = COUNT-3



%SW0504 = COUNT-4

REMEMBER: Switches 1-400 are reserved for system use! 3. Save and exit from this builder. Creating the Function Blocks 1. In “FCS0101” open “DR0003”. 2. First, we will create a timer. Select the “Function Block” icon again and then “Sequence Elements 1”. Click on the model name “TM” for a timer, and name it “TM301-11”. 3. Next, we will create a sequence table to control our process. At the top center of the page, select the “Function Block” icon and then “Sequence”. Select “Sequence Tables” and then “ST16” and “OK”. Click on the page to create the block and name it “SEQ-CTL”. 4. To display the sequence table builder click on the “Edit Function Block Detail” icon. 5. When the builder window appears, maximize it and enter this table. Refer, again, to the “Description” on the previous page for what the table will be doing: 0 0 0 0 1 2 3 4

0 5

C01 C02 C03 C04 C05 C06

SEQ-START.PV TM301-11.BSTS COUNT-1.PV COUNT-2.PV COUNT-3.PV COUNT-4.PV

ON CTUP ON ON ON ON

Y . . . . .

. Y Y . . .

. Y . Y . .

. Y . . Y .

. Y . . . Y

A01 A02 A03 A04 A05 A06 A07

SEQ-START.PV TM301-11.OP COUNT-1.PV COUNT-2.PV COUNT-3.PV COUNT-4.PV %OG0001.PV

H START H H H H NON

N Y Y . . . .

. Y N Y . . .

. Y . N Y . .

. Y . . N Y .

. Y . . . N Y

0 0 0 0 2 3 4 5

0 1

6. “Update” and then Exit. 7. Now Save and Exit from this builder. CENTUM VP Engineering

23

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

8. Under FCS0101 you’ll find a folder named “MESSAGE”. Open it and then open “OG0101” to create an operator guide message. Maximize this window. 9. For “%OG0001”, create the message “TIMER SEQUENCE COMPLETE”, then scroll across to “Related Window Name” and enter “SEQUENCE”. Save and close this builder. NOTE: The “Related Window” allows the user to click on the operator guide message and go to a specific graphic. 10. Now, create a new “Control (8 loop)” graphic window called “SEQUENCE” using these tags: •

TM301-11



SEQ-START



COUNT-1



COUNT-2



COUNT-3



COUNT-4



SEQ-CTL

Note: New function blocks in this exercise should be built using a level 3 access level. 11. Save and exit from the graphic builder and then minimize “System View”. 12. Display the graphic window “SEQUENCE” and go to the tuning window for “TM301-11”. Make PH=10. 13. On the control window “SEQUENCE” put “SEQ-CTL” into “AUT”, and bring up its tuning panel. Click on the “Sequence Table – Y/N” icon at the top middle to open the table. •

If the tuning window was brought up as the smaller size then drag the lower right corner of the table’s window to show all of the conditions and actions. You may have to move the bar between the “Conditions” and “Actions” to see all of each.

14. What does a “CYAN” condition indicate? 15. What does the GREEN BOX above step #1 indicate? 16. Double-click on condition #1 to display the “SEQ-START” faceplate. Now, double-click on “ON” to start the table. •

Watch the table’s operation, does it do what was described at the beginning of the exercise?

17. When the “Operation Guide” icon starts flashing, click on the icon in the “Tool Box” to display the “Operator Guide Message” window. (Will be different for CAMS). Double-click on the message, what appears? •

Why?

18. Now, click on the “Clear All” icon in the message area.

CENTUM VP Engineering

24

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE CONTROL EXERCISE 2 Using the function blocks from exercise #1, in this exercise, you will define operator guide messages (%OG), a counter (CTS), relational expression, and modify the existing sequence table (ST16) to control to the pre-defined process steps.

Exercise 2 Description: 1. When the start switch (SEQ-START) turns on, then internal switches (COUNT-1 through 4) will sequentially cycle on and off every 5 seconds. This cycle will be repeated 10 times by using software counter CT301-11 and then output an operator guide message saying the operation has ended. 2. As the table is running, it will also be monitoring the PV of LC301-11 and force the following operations: •

If the PV of LC301-11 goes above 80 or less than 20 an “Emergency stop” operator guide message will be generated. The operation will stop and the timer will be halted.



Change the PV between 20 and 80 and turn SEQ-START “ON” again to restart the operation.

Tag name

Block type

Description

SEQ-CTL

ST16

Sequence table block

SEQ-START

%SW

Common switch for start/restart

Exists

COUNT-1 (4)

%SW

Internal Switch

Exists

TM301-11

TM

Timer setpoint PH=5

Exists

CT301-11

CTS

Counter setpoint PH=10

New

RL301-11

RL

Compare LC301-11.PV to 80 and 20

New

LC301-11

PID

Level controller

New

LG301-11

LAG

Delay time for simulation I=3

New

%OG0002

“Emergency stop”

New

%OG0003

“End of operation”

New

Exists

Note: New function blocks in this exercise should be built using a level 3 access level.

Operator Guide Messages 1. Under “FCS0101”, “Message”, open folder “OG0101” and enter the following message: OG number

Color

Related Window

Message



%OG0002

Red

LAB-2 (created later)

Emergency Stop



%OG0003

Cyan

LAB-2

Finish

2. “Save” the file and, if no errors are detected, exit.

CENTUM VP Engineering

25

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

Creating the Function Blocks 1. Now, re-display “DR0003” on FCS0101, then create the following function blocks and remember to set up the “Lvl” to 3:

Name

Model name

Tag Comment

Input

RL301-11

RL

Relational

LC301-11

PID

Level Control

LG301-11.CPV

LG301-11

LAG

Lag Unit

LC301-11.MV

CT301-11

CTS

Counter 1

PIO Link Block

Output

%OG0003.PV.NON

Loop Connections

MV

IN

LC301-11

LG301-11 IN

PID

CT301-11

CPV

LAG

OUT

%OG0003.PV.NON

CTS

(LINK BLOCK)

Relational Expression Definition The relational expression block gives the user the ability to compare two items, and then test them in a sequence table. 1. Click on “RL301-11, then click on “Function Block Detail Edit” icon. Now, select “Relational Expression” and enter the following data: No.

X

OP

Y

1

LC301-11.PV

CMP

80.0

2

LC301-11.PV

CMP

20.0

2. Update and Exit from this builder.

Sequence Table Definition 1. Click on “SEQ-CTL” then click on the “Edit Function Block Detail” icon. 2. Modify the existing table to reflect the table on the next page. This will require using the “Insert Record”, and “Cut” or “Delete Record”. These are found under “Edit”. 3. Notice that the table will be built with “STEP 00”. What does this do?

CENTUM VP Engineering

26

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SELECT A “RULE”, THEN CLICK ON “EDIT” TO “INSERT” OR “DELETE” A “RECORD”.

4. After the table information has been entered, update and exit from the builder. “Save” the drawing, and if there are no errors, exit the drawing.

Control Window Assignment CENTUM VP Engineering

27

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

1. Go to “Windows” under “HIS0164”, create a new control window called “LAB-2” and assign the following tags to it. No.

Tag name



1

LG301-11



2

LC301-11



3

RL301-11



4

SEQ-START



5

TM301-11



6

CT301-11



7

SEQ-CTL

2. Save and exit from this builder, then minimize “System View”.

Testing the Table 1. Click on “Name” and open “LAB-2”, set the following tags as described: Tag Name

Item

Data



SEQ-CTL

MODE

AUT



SEQ-CTL

PV

A1



CT301-11

PH

10



TM301-11

PH

5



LC301-11

MV

50



LG301-11

I

3



SEQ-START

PV

1 (ON) Turning this “ON” will start the process.

2. Click on RL301-11’s tag name and display its “Tuning Panel”. NOTE: RV01 is the X register data (LC301-11.PV) and RV02 is the Y register data (80) for X01 3. Change LC301-11’s “MV” to 90 and watch the sequence operations. •

If the “PV” is less than “20” or more than “80”, the block status of the timer becomes “PAUS”.

4. Display “SEQ-CTL” sequence table by going to its tuning panel, then clicking on the “Sequence Table” icon. 5. Change LC301-11 “MV” to 50. 6. Looking at the sequence table’s logic, what must be done to re-start the table after the timer has gone to “PAUS”? Make the change. 7. Change LC301-11 “MV” to 10 and then back to 50 after the sequence table has stopped. 8. Click on “Operator guide” icon to view the messages generated by this exercise. 9. Click on the “Clear All” icon to close the operation display SEQUENCE INSTRUMENTS (Use the FCS on-line manuals for specific details) CENTUM VP Engineering

28

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

1. Go back to “System View” and then display “DR0003” in FCS0101. Create a BSETU-2 (which is found under “Regulatory Control Blocks”, “Signal Setters”) and define it as follows: •

Name: FILL-1



Comment: FILL PRODUCT



Range: 0-1000



Eng. Unit: GAL



Totalizer: MIN



Fully open/tightly shut: NO



Input: %Z011108



Output: %Z011116



Lvl: 3



QUESTION: What two things must done to a BSETU, after the BSET register is set, to start the 2. BSETU? 1.

(Refer back to the “Regulatory Control” chapter, or use the on-line manual.) 2. Now, create a CALCU function block and define it as follows: •

Name: LEVEL-1

CPV LEVEL-1



Comment: VESSEL



Input: LEVEL-1.CPV (As shown)

CALCU

IN

3. For the next instrument, create a “Switch Instrument”: •

Model Name: SIO-21



Name: DRAIN-1



Comment: PRODUCT DRAIN



Input: %Z012101

IN

DRAIN-1

%Z012101

OUT %Z013101



Output: %Z013101



Lvl: 3



Set BPSW=1 on tuning page



NOTICE: The SIO-21 has two inputs, but only one input (the “OPEN” limit switch - %Z012101) is defined on the “Control Drawing”. What is the I/O address of the “CLOSED” input?

SIO-21

(LINK BLOCK)

(LINK BLOCK)

4. Click on the name box “LEVEL-1”, select “Edit Function Block Detail” icon, and enter this calculation: program alias A FILL-1.MV alias B DRAIN-1.MV D=P01*A E=RV+D-P02*B IF (E=100) THEN E=100 ELSE CPV=E END IF END 5. Update and exit from the calculation builder. 6. Display the “Detail” page for “DRAIN-1”. Click on the “Switch Position Label” and enter “OPEN,TRANS, CLOSE, DRAIN”. Now, update and exit from this window. 7. Save and exit from the “Control Drawing Builder”. 8. Go to “HIS0164”, and create a control window (8 loops), called “BATCH” and add these new function blocks. 9. Save and exit from the builder and then minimize “System View”.

REWIRING, this makes the changes since the last drawing load active! 1. Click on the “Test Function” icon at the bottom of the page, followed by “Tools”, and “Wiring Editor”. Select “Tools” again, then “Auto wiring”. 2. Select all of the drawings (incase you have forgotten which drawing you were working on) and “OK”. 3. Click on “File” then “Download”. Select all drawings on the menu that appears then confirm to complete the Save. Now minimize the “Test Function”. NOTE: When you did the download not all of the drawings that were in “Auto wiring” appeared. Only drawings that have blocks attached to PIO (simulating field wiring) will appear in the wiring download.

Testing the Function Blocks 1. Click on “NAME” in the system message area and enter “BATCH”. Bring up the tuning panel for “FILL-1” and change “BSET” to 1000, and close this window. 2. Open up the tuning panel for “LEVEL-1”, then change P01=.01, and P02=.5. Exit this window. 3. Start “FILL-1”, (refer back to the question on the previous page) and watch the level increase. When the fill finishes, open the drain by double clicking on the “OPEN” box on “DRAIN-1”. 4. In the “Toolbox”, select “Process Report”, then the “I/O Search Dialog” icon. Now, click on “Process I/O” and “OK”. Go back to the faceplate for “DRAIN-1” and close it. Watch the inputs and output points change on the “Process I/O” as the drain is opened and closed. 5. Close the operation screens.

CENTUM VP Engineering

30

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SEQUENCE LOGIC CHART EXERCISE In this exercise, you will create a “Logic Chart” function block, and use common switches to test logic element symbols.

Sequence logic element and internal switches to be used in this exercise: (Remember to give the switches these tag names!) Block Name

Block Type

Element Name

Tag Name

Sequence logic block Common switch Common switch Common switch Common switch Common switch

LC64 %SW %SW %SW %SW %SW

-------------%SW0401 %SW0402 %SW0403 %SW0404 %SW0405

SQ111-11 SW401-11 SW402-11 SW403-11 SW404-11 SW405-11

Creating a "Logic Chart" 1. Open control drawing #4 and create an “LC64” and enter “SQ111-11” for the tag name. Change the Tag comment to “Logic Chart Exercise” 2. Click on the “Function Block Detail Edit” icon and maximize the display when the logic chart panel displays. 3. The element layout for this exercise is shown below.

4. To open up the builder elements, select the "Element" icon, "Input Element" and “Input1”. Place this in the position of the first input and enter “%SW0401.PV.ON”. 5. Use “Copy and Paste” (under "Edit") to duplicate the first input element. Place the copy underneath the first element as shown on the figure above. Repeat the copy to complete the inputs. 6. Click on the text on the second input element. Change the element number to “%SW0402.PV.ON”. Repeat this action for the other three input elements making them “%SW0403.PV.ON”, “%SW0404.PV.ON”, and “%SW0405.PV.ON” respectively. 7. Display the “Element” window. Select “Output”, “Output1” element and place this in the position of the first output and enter “%SW0405.PV.L”. 8. Click on the position of the second output and enter “%SW0404.PV.L”. CENTUM VP Engineering

31

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

Creating and Wiring the Logic Elements 1. Display the “Element” window again and select “Logic Operation Element” then the “AND” element. Place this according to figure. 2. Create and place the following elements according to figure above: •

OR

(1 each)



AND

(1 more)



SRS2-R

(1 each)



OND

(2 each)

(Delay timer)

3. Click on the “Draw Wiring” icon and connect the logic symbols and input/output symbols as shown above. 4. What is an "SRS2-R"? Let's find out by going to "Help" on the logic chart window. Scroll down and select "Builder Definition Items" from the menu items. 5. When the Adobe Acrobat window opens click on “Logic Operation Blocks” in the left-hand column. Select and open"SRS2-R" and then under “Detailed Settings” select “Connection”. 6. Scroll down until the “Calculation Algorithm” table appears. Study the table, so when the logic chart runs you will understand the operation of this function block. Click on the blue “Back” arrow in the bottom center of the page to return to the index. 7. What is “Matrix Expansion”? Let's find out by clicking on "Edit Logic Chart" at the bottom of the lefthand column. 8. When the screen changes click on "Execution Order" and the instruction manual opens. “Matrix Expansion” is explained on this page. 9. What is an "OND"? Click on the blue “Back” arrow to return to the main menu. Under “Logic Operation Blocks” in the left-hand column select "OND". Now in the right-hand side of the screen, under “Detailed Settings”, select “Connection”. 10. To close Adobe Acrobat and return to the "Edit Logic Chart" window. “Update” and exit from the logic chart screen. 11. Save and (if there are no errors) exit from the control drawing.

CENTUM VP Engineering

32

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

Control Window Assignment NOTE: The switches (%SW0401-%SW0405) should have already been given names of: SW401-11, SW402-11, SW403-11, SW404-11, and SW405-11 respectively. These named will be used instead of the element numbers. 1. On “HIS0164”,, create a new control window called "LOGIC" and define it as: •

1

SW401-11



2

SW402-11



3

SW403-11



4

SW404-11



5

SW405-11



6

SQ111-11

2. “Save” and exist exit from the Control window.

Running the "Logic Chart" 1. Call up the window named "SQ111-11" and display the tuning panel for "SQ111-11". 2. Change the following data on SQ111-11: •

MODE= AUT



ST01= 10 sec (delay time) On the tuning panel.



ST02= 10 sec (delay time) On the tuning panel.

3. Select the "Logic Chart" icon on "LOGIC" and turn “ON” these elements: •

SW401-11



SW402-11



SW404-11

4. Confirm logic chart operation as the wiring changes from green to red as the lines become active.

CENTUM VP Engineering

33

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

SFC/SEBOL INSTRUMENT EXERCISE In this exercise you will be using a SEBOL program to set instrument modes and setpoint after a confirmation prompt appears. •

When the desired temperature is reached, a timer is started.



After the timer counts up, you will be prompted again, which will change the instruments modes, SV, and MV.



You will also open a valve, and then close it when the temperature reaches 50.

1. Go back to “System View” and “DR0001” for “FCS0101” under “STUDENTV”. Create the following function blocks. •

Model Name = _SFCSW

Name = SEBOL



Model Name = TM

Name = TIMER1



Model Name = SIO-11

Name = VALVE1

Input = %Z012102

Output = %Z013102

2. Click on the name “SEBOL” again, and then click on the “Edit Function Block Detail” icon to display the “Edit SFC” window. Move the pointer down to the second row of icons and select the second icon (Step) from the left. Now, move the pointer into the white area below the icons and click again. A double box will appear with a “01” in the left most box. 3. Click on the “Transition” icon (third from the left) and click beneath the “01” of the first step. 4. Select the “Step” icon again, and click beneath the transition. Step 2 appears. 5. Now, select the icon with the arrow in it (Selection Mode), then click on the “01” in the SFC block. A gray box appears. 6. Click on the “ATTR” icon. When the step attribute window appears, enter “START” in the comment box, followed by “OK”. 7. Double-click on the transition and enter the following: •

Comment = WAIT



Transition = TIMER1.BSTS==”CTUP”

8. Display the attribute for step 2, and make its comment “STOP”. 9. Select the first step again. Click on the right most icon (“Edit Step Action”) and the “Edit SEBOL” window appears. Enter this SEBOL program:

global block PID TC222A, FC222A global block TIMER TIMER1 global block SIO-11 VALVE1 * dialogue “SET”;”Set modes and setpoint”;confirm * VALVE1.MODE=”AUT” * [TC222A.MODE.SV,FC222A.MODE=”AUT”,250.0,”CAS”] * wait until (TC222A.PV>=250.0) * TIMER1.OP=2 CENTUM VP Engineering

34

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

10. Close this window to return to the “Edit SFC” window. 11. Enter the following SEBOL program into step 2. dialogue “RESET”; ”Reset modes and setpoint”; confirm * drive [VALVE1=2] * [TC222A.MODE.SV,FC222A.MODE.SV.MV=”MAN”,50.0,”MAN”,0.0,0.0] * wait until (TC222A.PV