Sei sulla pagina 1di 36

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

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

HIS

PROCESS SEQUENCE Start process 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 Tank empty Start CIP

Vnet/IP

MILK

START

FCS

CHOCOLAT E

MIXER

LI TEMP

STEAM

DRAIN

CENTUM VP Engineering

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

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

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: ST16E:
M_ST16:

Sequence table with 32 conditions and 32 actions (size is adjustable). Rule extension table for going beyond the 32 rules in a table.
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: _SFCAS: Push-button type SFC block. Analog type SFC block.

Switch Instrument Sequence instruments are used to control ON/OFF devices such as valves. SI-x: SO-x: SIO-xx: Switch instrument block with 1 or 2 inputs. Switch instrument block with 1 or 2 outputs. Switch instrument block with 1 or 2 inputs and 1 or 2 outputs.

Sequence Elements 1 Blocks TM: CTS: CTP: CI: CO: Timer block. Software counter block. Pulse train input counter block. Code Input Code output

Sequence Element 2 Blocks ALM-R RL: RS: VLVM: Representative alarm block Relation expression block. Resource scheduler 16 point valve monitoring block.

CENTUM VP Engineering

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

MIXERTANK 1 MIXER

SIO-11 1 Input 1 output


%Z021104

IN

MIXER-1 SIO-11

OUT

%Z021119

OUT (MV=2)
RU

ANSWERBACK (PV=2)

%Z021104

STO

MIXER

%Z021219

OPEN ANSWERBACK (PV=2)

SIO-21 2 inputs 1 output


DRAINTANK 1 DRAIN

Answerbac k P V 3 2 1 0

Limit Switch n 1 1 0 0 n+1 1 0 0 1


PERR

%Z021102

OUT %Z021218 (MV=2)

DRAIN IN DRAIN-1 SIO-21 OUT

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

%Z021103 CLOSED ANSWERBACK (PV=0)

CENTUM VP Engineering

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: SI-2(E): SO-1: SO-2(E): SIO-11: SIO-12(E): SIO-21(E): SIO-22(E): SIO-12P(E): SIO-22P(E): Switch instrument block with 1 input. Switch instrument block with 2 inputs Switch instrument block with 1 output. Switch instrument block with 2 outputs. Switch instrument block with 1 input and 1 output. Switch instrument block with 1 input and 2 outputs. Switch instrument block with 2 inputs and 1 output. Switch instrument block with 2 inputs and 2 outputs. Pulse type switch instrument block with 1 inputs and 2 output. 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 Ans. Bk. Check o MV AUT/ CAS

Ans. Bk. IN

Remote/ Local

IN

TSI

OUT

CENTUM VP Engineering

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

CENTUM VP Engineering

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

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

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 O I B = Periodic at the scan rate = One shot, normally started by another Sequence Table = START or RESTART (START = initial cold start) = 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 steps 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 Contact input Contact output Internal switch Tag or %Znnusmm.PV Tag or %Znnusmm.PV Tag or %SWnnnn.PV Data ON (OFF) ON (OFF) ON (OFF) Y or N Y or N Y or N

Global switch (CS3000) Tag or %GSnnnss.PV

ON (OFF)

Y or N

Timer

Tag.BSTS Tag.MODE

PAUS, PALM, CTUP, NR, RUN, STOP Y or N AUT (O/S) PALM, CTUP, NR, RUN, STOP AUT (O/S) Y or N Y or N Y or N

Counter

Tag.BSTS Tag.MODE

Regulatory control functions (depending upon the function block type). Tag.MODE Tag.ALRM (PG-L13) Switch instruments Tag.ZONE Tag.MODE Tag.ALRM AUT, MAN, CAS, PRD, ROUT, RCAS NR, HH, HI, LO, LL, IOP, OOP zone number AUT, MAN NR, ANS+, ANSY or N Y or N Y or N Y or N 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

CENTUM VP Engineering

15

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 Internal switch Tag Name. Data Item Tag or %Znnusmm.PV Tag or %SWnnnn.PV Data H (L, F, P) H (L) H (L) START STOP RSTR (Restart) WAIT (Pause) Software Counter (CTS)Tag.ACT ON Y or N Y or N Y or N Y or N Y or N Y or N Y or N Y Y

Global switch (CS3000) Tag or %GSnnn.PV Timer Tag.OP

OFF Regulatory control functions (depending upon the function block type) Tag.MODE AUT, MAN, CAS, PRD, RCAS, ROUT Preset MV Output Switch Iinstruments Tag.PSW Tag.MODE Tag.CSV 1 (ML), 2 (MH), 3 (PMV) AUT, MAN 0 (OFF), 1 (Middle), 2 (ON) Tag.CSV Operator Guide Message %OGnnnn.PV Annunciator Alarm %ANnnnn.PV Batch Data Set Unit (BDSET-1) Tag.ACT 0 (INITALIZE), NON NON P0, P2

Y Y Y Y Y or N

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

LESSON 5

CENTUM VP Engineering

18

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 logics 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

LESSON 5

CENTUM VP Engineering

20

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: _SFCAS: Push-button type SFC block. Analog type SFC block.

Initial step

INITIALIZATION

Transition 2 Step ADD PRODUCT

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

INITIALIZATION

Operation SEBOL
genname PID TEMP1 genname PID FLOW1 genname PID FLOW2 * * TEMP1.MODE=AUT FLOW1.MODE=CAS FLOW2.MODE=CAS * * end

ADD PRODUCT

HEATING

ADD CATALYST

COOK CYCLE

CENTUM VP Engineering

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 type or switch ST16 %SW %SW %SW %SW %SW TM Tag name SEQ-CTL SEQ-START COUNT-1 COUNT-2 COUNT-3 COUNT-4 TM301-11

Block name Sequence table block Common switch Common switch Common switch Common switch Common switch Timer block

ON

Start switch SEQ-START Switch COUNT-1 Switch COUNT-2 Switch COUNT-3 Switch COUNT-4 Guide Message

OFF

OFF ON

Time-up OFF

Timer start

Time-up

Timer re-start

Time-up

Timer re-start

Time-up

Timer re-start

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 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 . 0 5 . 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 1

0 0 0 0 2 3 4 5

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 youll 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 tables 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 tables 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 SEQ-CTL SEQ-START COUNT-1 (4) TM301-11 CT301-11 RL301-11 LC301-11 LG301-11

Block type ST16 %SW %SW TM CTS RL PID LAG %OG0002 %OG0003

Description Sequence table block Common switch for start/restart Internal Switch Timer setpoint PH=5 Counter setpoint PH=10 Compare LC301-11.PV to 80 and 20 Level controller Delay time for simulation I=3 Emergency stop End of operation Exists Exists Exists New New New New New 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 %OG0002 %OG0003 Color Red Cyan Related Window LAB-2 (created later) LAB-2 Message Emergency Stop 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 RL301-11 LC301-11 LG301-11 CT301-11

Model name RL PID LAG CTS PIO Link Block

Tag Comment Relational Level Control Lag Unit Counter 1

Input

Output

LG301-11.CPV LC301-11.MV

%OG0003.PV.NON

Loop Connections
LC301-11 PID

MV IN

IN LG301-11 CPV LAG

CT301-11 CTS

OUT

%OG0003.PV.NON (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. 1 2 X LC301-11.PV LC301-11.PV OP CMP CMP Y 80.0 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. 1 2 3 4 5 6 7 Tag name LG301-11 LC301-11 RL301-11 SEQ-START TM301-11 CT301-11 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 SEQ-CTL SEQ-CTL CT301-11 TM301-11 LC301-11 LG301-11 SEQ-START Item MODE PV PH PH MV I PV Data AUT A1 10 5 50 3 1 (ON) Turning this ON will start the process.

2. Click on RL301-11s 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-11s 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 tables 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
LEVEL-1

CPV

Comment: VESSEL
CALCU

Input: LEVEL-1.CPV (As shown)

IN

3. For the next instrument, create a Switch Instrument: Model Name: SIO-21 Name: DRAIN-1 Comment: PRODUCT DRAIN Input: %Z012101
%Z012101

IN
(LINK BLOCK)

DRAIN-1 SIO-21

OUT %Z013101 (LINK BLOCK)

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 CENTUM VP Engineering 29 TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

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.

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 Sequence logic block Common switch Common switch Common switch Common switch Common switch Block Type LC64 %SW %SW %SW %SW %SW Element Name -------------%SW0401 %SW0402 %SW0403 %SW0404 %SW0405 Tag Name 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 AND SRS2-R OND (1 each) (1 more) (1 each) (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 2 3 4 5 6 SW401-11 SW402-11 SW403-11 SW404-11 SW405-11 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 Model Name = TM Model Name = SIO-11 Name = SEBOL Name = TIMER1 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<=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 blocks 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 FC222A TIMER1 P=300 I=5 P=300 I=5 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 TC222As PV to reach 250. 21. When 250 have been reached, the timer starts. Double-click on the Transition box to see what its waiting for. 22. When the timer times out, next message occurs. Confirm it and watch what happens to TC222A, FC222A, and VALVE1.

CENTUM VP Engineering

35

TE 33M80N10-10EN-A

CENTUM VP

CONTROL PROGRAMS

LESSON 5

DEFINING AND LOADING THE STUDENTV PROJECT The only project that can be loaded is the current project. Other projects can be tested but cant be loaded. 1. On the Task Bar, click on Start and then go to Programs, YOKOGAWA CENTUM, and then Projects 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. CENTUM VP Engineering 36 TE 33M80N10-10EN-A

Potrebbero piacerti anche