centum vp 5 eng control pgms_global

36
CENTUM VP CONTROL PROGRAMS LESSON 5 CENTUM VP Engineering TE 33M80N10-10EN-A 1 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.

Upload: nikhilesh-muraleedharan

Post on 01-Jan-2016

1.177 views

Category:

Documents


163 download

DESCRIPTION

Centum VP 5 ENG Control Pgms_Global

TRANSCRIPT

Page 1: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

1

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.

Page 2: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

2

LI

MIXER

TEMP STEAM

DRAIN

MILK

CHOCOLATE

Vnet/IP

FCS START

Start process

Add milk Add chocolate

Tank at 30% Mixer ON

Set flows

Heat ON Tank at 80%

Milk & Choc flows OFF Mix timer ON

Timer timeout Open drain

Tank at 30% Mixer OFF

Tank empty Start CIP

Heat OFF

PROCESS SEQUENCE Select grade

HIS

Page 3: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

3

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.

Page 4: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

4

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)

Sequence table (32 conditions and 32 actions)

Page 5: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

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: CS3000 “Migration” sequence table with 64 conditions and 64 actions (size is NOT adjustable).

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

• LC64 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.

Page 6: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

6

SIO-21 • 2 inputs • 1 output

SIO-11 • 1 Input • 1 output

DRAIN

MIXER

DRAIN- TANK 1 DRAIN

ANSWERBACK (PV=2)

RU

STO

MIXER- TANK 1 MIXER

%Z021219

OUT (MV=2)

%Z021104

%Z021218

“OPEN” ANSWERBACK (PV=2)

“CLOSED” ANSWERBACK (PV=0)

%Z021102

%Z021103

OUT (MV=2)

SIO-11

MIXER-1

%Z021104 %Z021119

IN OUT

SIO-21

DRAIN-1

%Z021102 %Z021218

IN OUT

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

Answerback

Limit Switch n+1 n P

V3

2

1

0

1 1

1 0

0 0

0 1

PERR

Page 7: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

7

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.

AUT/ CAS

P

CS

MV

Ans. Bk. Bypass

Ans. Bk. IN

Ans. Bk. Check

Remote/ Local

S W 1

IN TSI OUT

MAo

If BPSW=1

Page 8: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

8

Page 9: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

9

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

Page 10: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

10

I

Page 11: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

11

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.

Page 12: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

12

CONDITION

ACTION

THENELSE

COMMENT

TABLE TIMING

RULESSTEPS

Page 13: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

13

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.

Page 14: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

14

CONDITIONS

Page 15: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

15

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 AUT (O/S) Y or N Counter Tag.BSTS PALM, CTUP, NR, RUN, STOP Y or N

Tag.MODE 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 EQ, GT, GE, LT, LE, AND Y or N

Page 16: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

16

ACTIONS

Page 17: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

17

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.

Tag Name. Data Item Data Contact output Tag or %Znnusmm.PV 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 Tag.OP START Y or N

STOP Y or N

RSTR (Restart) Y or N

WAIT (Pause) Y or N

Software Counter (CTS)Tag.ACT ON Y

OFF Y Regulatory control functions (depending upon the function block type)

Tag.MODE AUT, MAN, CAS, PRD, 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

Tag.CSV P0, P2 Y or N Operator Guide Message

%OGnnnn.PV NON Y

Annunciator Alarm

%ANnnnn.PV NON Y

Batch Data Set Unit (BDSET-1)

Tag.ACT 0 (INITALIZE), Y

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)

Page 18: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

18

Page 19: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

19

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.

Page 20: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

20

Page 21: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

21

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.

ADD PRODUCT

1

2

INITIALIZATIONInitial step

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

Operation SEBOL

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

HEATING

ADD CATALYST

COOK CYCLE

INITIALIZATION

ADD PRODUCT

4

5

2

3

1

Page 22: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

22

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

OFF OFF

OFF

ON

ON

Start switchSEQ-START

SwitchCOUNT-1

SwitchCOUNT-4

Timer start

Timerre-start

Time-up

SwitchCOUNT-2

SwitchCOUNT-3

Time-up

Time-up

Time-up

Timerre-start

Timerre-start

GuideMessage

Defining Internal Switches

Page 23: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

23

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:

C01C02C03C04C05C06

SEQ-START.PVTM301-11.BSTSCOUNT-1.PVCOUNT-2.PVCOUNT-3.PVCOUNT-4.PV

ONCTUPONONONON

01

Y.....

02

.YY...

03

.Y.Y..

04

.Y..Y.

05

.Y...Y

A01A02A03A04A05A06A07

SEQ-START.PVTM301-11.OPCOUNT-1.PVCOUNT-2.PVCOUNT-3.PVCOUNT-4.PV%OG0001.PV

HSTARTHHHHNON

NYY....

02

.YNY...

03

.Y.NY..

04

.Y..NY.

05

.Y...NY

01

6. “Update” and then Exit.

7. Now Save and Exit from this builder.

Page 24: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

24

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.

Page 25: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

25

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 Exists

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

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.

Page 26: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

26

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 Output

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 %OG0003.PV.NON

Loop Connections

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?

LC301-11 LG301-11

CT301-11 %OG0003.PV.NON OUT

CTS

LAG PID

(LINK BLOCK)

MV IN

IN CPV

Page 27: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

27

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

Page 28: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

28

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)

Page 29: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

29

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 BSETU? 1. 2.

(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

• Comment: VESSEL

• Input: LEVEL-1.CPV (As shown)

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

• Model Name: SIO-21

• Name: DRAIN-1

• Comment: PRODUCT DRAIN

• Input: %Z012101

• 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?

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<0) THEN

E=0

LEVEL-1 CALCU

CPV IN

%Z013101 OUT DRAIN-1 SIO-21

(LINK BLOCK) IN

%Z012101 (LINK BLOCK)

Page 30: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

30

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

Page 31: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

31

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 LC64 -------------- SQ111-11 Common switch %SW %SW0401 SW401-11 Common switch %SW %SW0402 SW402-11 Common switch %SW %SW0403 SW403-11 Common switch %SW %SW0404 SW404-11 Common switch %SW %SW0405 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”.

Page 32: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

32

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 left-hand 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.

Page 33: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

33

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.

Page 34: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

34

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

Page 35: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

35

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<=51.0) * drive [VALVE1=0] * VALVE1.MODE=“MAN” * quit

12. Close this window to return to the “Edit SFC” window. Now, click on “File” and “Update” to update the function block, then exit from the function block’s definition builder.

13. On “DR0001” do a “Save” to load this new function block and then exit.

14. Add and save “SEBOL”, “TIMER1” AND “VALVE1” to the window named “TEMP-CTL”, and then minimize “System View”.

15. Click on “NAME” in the system message area and enter “TEMP-CTL”. Change the following:

• TC222A P=300 I=5

• FC222A P=300 I=5

• TIMER1 PH=30

16. Close all tuning panels and then display the tuning panel for “SEBOL”.

17. Click on the “SFC” icon in the upper right-hand side, and then double-click on box 1. The SEBOL program window appears, re-size the borders to allow viewing of the entire program. Move this window to the right, and off of the “SEBOL” faceplate.

18. Double-click on the “RUN” position on the “SEBOL” faceplate. Note that the pointer in the program is pointing at the first dialogue line. At the left-hand side of the system message area the “Operation Guide” icon is blinking; select it.

19. When the operator guide message window appears click on the “Dialog” icon. The Operation Guide Acknowledgement window will appear with the message in it. Confirm again to open the Confirm/Cancel window. Confirm and then close the guide message window.

20. Notice that the modes of “TC222A” and “FC222A” have changed, as has the “SV” of “TC222A”. Also, notice that the SEBOL program is waiting for TC222A’s PV to reach 250.

21. When 250 have been reached, the timer starts. Double-click on the “Transition” box to see what it’s waiting for.

22. When the timer times out, next message occurs. Confirm it and watch what happens to TC222A, FC222A, and VALVE1.

Page 36: Centum VP 5 ENG Control Pgms_Global

CENTUM VP CONTROL PROGRAMS LESSON 5

CENTUM VP Engineering TE 33M80N10-10EN-A

36

DEFINING AND LOADING THE STUDENTV PROJECT

The only project that can be loaded is the “current” project. Other projects can be tested but can’t be loaded.

1. On the “Task Bar”, click on “Start” and then go to “Programs”, “YOKOGAWA CENTUM”, and then “Project’s Attribution Utility”.

2. Select “STUDENTV” and then select “Change”.

3. Click on “Current Project” and “Apply”. Notice that the symbol changes on “STUDENTV” to show that it is now downloadable.

4. Click on “Exit” to close the attribute window. NOTE: Once a project is made “current” you will be downloading to the running FCS and HIS!

5. Open “System View” and double-click on “STUDENTV”.

6. Click on “Load” at the top of “System View” and then click on “Download Project Common Section”.

• This tells the software which project is running in the HIS (among other things).

7. Select “FCS0101” and then click again on “Load” on FCS at the top of “System View”. Scroll down to “Off-line Download to FCS”, and select “Download”. Answer Yes to “Perform offline download to Project ‘STUDENTV’ FCS ‘FCS0101’?”

8. Answer No to “When offline downloading to FCS, the tuning parameters will be lost. Save tuning parameters of Project ‘STUDENTV’, Station ‘FCS0101’.

9. After that load has completed, select “HIS0164”, then click on “Load” at the top of “System View” followed by “Download to HIS”.

10. After the FCS load has completed, call up the new control and overview windows, and test your function blocks created in the previous exercises by using those exercises. Set your switch to allow the flow to be controlled by the program set unit (PG-L13). They are now running in the FCS.

CREATING A “HISTORICAL TREND” REPORT

This next exercise will require you to refer back to the "REPORT PACKAGE" exercise steps in the previous chapter to complete.

1. Open the report templates and select and open “19 TrendReport(graph)”.

2. Use the same tags and data items from the "snapshot report" in the previous chapter.

3. After the tags have been entered, scroll to last cell in the assignment window (13/13). Notice that the column for the time is highlighted. Enter the tag name from the first cell defined as the time basis for the report.

4. Name and Load this new report, then close the report builder and open the “Scheduler” for “HIS0164”, Enter F BKHRPT -nREPORTNAME -f and set the report run time to be 21:00 tonight.

Displaying the Historical Trend Report

1. Use the same steps as the snapshot report to display this new report.

2. When the report displays, scroll down to the bottom of the page to see the trended data.

3. Close the report and report builder.