0% found this document useful (0 votes)
525 views6 pages

Exercise 11.1 - Sequential Function Chart - SFC - V2-1 PDF

This document describes an exercise to create a sequential function chart (SFC) to control a batch process in a vessel. The SFC will fill the vessel, heat it, drain it, and end. Steps include creating the SFC chain, programming transitions and steps using structure text, adding global variables, and downloading/testing the application. Transitions and steps control valves and PID modules to automate filling, heating, draining based on level, temperature and other sensor signals. The completed SFC will automate one full batch cycle when started.

Uploaded by

RodrigoBurgos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
525 views6 pages

Exercise 11.1 - Sequential Function Chart - SFC - V2-1 PDF

This document describes an exercise to create a sequential function chart (SFC) to control a batch process in a vessel. The SFC will fill the vessel, heat it, drain it, and end. Steps include creating the SFC chain, programming transitions and steps using structure text, adding global variables, and downloading/testing the application. Transitions and steps control valves and PID modules to automate filling, heating, draining based on level, temperature and other sensor signals. The completed SFC will automate one full batch cycle when started.

Uploaded by

RodrigoBurgos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Course T300, Engineering an 800xA System

Exercise 11.1 Sequential Function Chart

TABLE OF CONTENTS
Exercise 11.1 Sequential Function Chart.................................................................................................................................. 11.1-1
11.1.1 General Information............................................................................................................................................... 11.1-3
11.1.1.1 Objectives........................................................................................................................................................ 11.1-3
11.1.2 Exercise Steps ........................................................................................................................................................ 11.1-3
11.1.2.1 Create SFC Chain for batch of product .......................................................................................................... 11.1-3
11.1.2.2 Create a global variable for starting the chain ............................................................................................... 11.1-4
11.1.2.3 Program the transition Tr1 for the filling ....................................................................................................... 11.1-4
11.1.2.4 Program the filling step S1_Fill ..................................................................................................................... 11.1-4
11.1.2.5 Program the transition Tr2 for the heating ..................................................................................................... 11.1-4
11.1.2.6 Program the heating step S2_Heat ................................................................................................................. 11.1-5
11.1.2.7 Program the transition Tr3 for the draining ................................................................................................... 11.1-5
11.1.2.8 Program the draining step S3_Drain .............................................................................................................. 11.1-5
11.1.2.9 Program the transition Tr4 for the end step.................................................................................................... 11.1-6
11.1.2.10 Program the end step S4_End....................................................................................................................... 11.1-6
11.1.2.11 Program the transition Tr0............................................................................................................................ 11.1-6
11.1.2.12 Download and test the application ............................................................................................................... 11.1-6

11.1-1

Course T300, Engineering an 800xA System

11.1-2

Engineering an 800xA System

11.1.1 General Information


In this exercise we introduce the SFC and create a small program block which will
make a batch of product in the vessel:

Idle

Fill

Heat

Drain

End

11.1.1.1 Objectives
In this exercise you will:
Create a SFC chain for controlling the product process
Program the steps and transitions in Structure Text
Learn the usage of global application variables
Learn how to test the chain in online mode

11.1.2 Exercise Steps


11.1.2.1 Create SFC Chain for batch of product
Create a new code page in the program Control1, name it Batch_of_product and use
as language the Sequential Function Chart.
Please create the chain as displayed in the picture below.

11.1-3

Engineering an 800xA System


Exercise 11.1 Sequential Function Chart

11.1.2.2 Create a global variable for starting the chain


On application level (application Tank1) please create a global variable.
Name
Run_Batch

Type
bool

Initial value
false

Description
Start / Stop the batch for the vessel

11.1.2.3 Program the transition Tr1 for the filling


Program the transition Tr1 so that

The Run_Batch variable is enabled

The valve V1 is in automode

The valve V2 is in automode

The maximum level is not reached (use the input signal LT1)

11.1.2.4 Program the filling step S1_Fill


The filling step should fill the tank. For this the valve V1 should be opened. Please
write the code and use the N tab card for this.
Note: Use the AutoCmd0 and AutoCmd1 parameter from the valve.

11.1.2.5 Program the transition Tr2 for the heating


Program the transition Tr2 so that

11.1-4

The high level of the vessel was reached (LT1)

Engineering an 800xA System

11.1.2.6 Program the heating step S2_Heat


The heating step should close the filling valve V1 and should heat the tank.
The Pid TIC1 which controls the heating has track functionality. If the track is set,
then the track value is set as a kind of internal set point for the Pid. We want to use
this to disable the heating and so we set the track value to 0.0 and enable the track
functionality in that case. Otherwise, if we disable the track function, then the Pid is
controlling the heating circuit.
Please do
1. Create a global application variable (for the Tank1 application) for controlling
the track function at the Pid TIC1 control module.
Name
Type Description
TIC1_Track
bool
Enable/Disable the track function
2. Connect the variable TIC1_Tank to the parameter Track of the control
module TIC1.
3. Set the default value for the track value at the Pid TIC1 control module. Use
the parameter TrackValue. As default value please use 0.0.
4. In the step S2_Heat please close the valve V1 (Please use the N tab card).
5. In the step S2_Heat please disable the TIC1_Track variable. This starts the
heating (Please use the N tab card).

11.1.2.7 Program the transition Tr3 for the draining


The transition should wait till the tank temperature is higher than the set point of the
Pid TIC1. The PidCC control module has a functionality which generates a deviation
level alarm when the set point was reached. To use this functionality in the program
Control1 you have to create a global application variable.
Please do
1. Create a global application variable (for the Tank1 application) for controlling
the deviation function at the Pid TIC1 control module.
Name
Type Description
TIC1_GTDevPos bool
Deviation feedback from Pid
2. Connect the variable TIC_GTDevPos to the parameter GTDevPos of the
control module TIC1.
3. Enable the deviation functionality for the control module TIC1 by setting the
parameter AEConfig to 4.
4. Please program the transition Tr3 so that it wait till the TIC1_GTDevPos is
enabled.

11.1.2.8 Program the draining step S3_Drain


The draining step should stop the heating and open the draining valve V2 (Please use
the N tab card).
Please program the step that

The heating stops (enable the TIC1_Track variable)

11.1-5

Engineering an 800xA System


Exercise 11.1 Sequential Function Chart

The valve V2 opens

11.1.2.9 Program the transition Tr4 for the end step


The tank should drain till the low level (LT1) is reached. Please program this for the
transition Tr4.

11.1.2.10 Program the end step S4_End


The low level of the tank is reached and so the valve V2 should be closed. Please
program this for the step S4_End.
Program the transition Tr0

11.1.2.11 Program the transition Tr0


There is no transition code for this transition. Per default all transitions in a chain must
have any code, so please program this transition that the chain will start at the
beginning.

11.1.2.12 Download and test the application


1. Download the application Tank1 to the controller Controller_1
2. In online mode set on TIC1 the parameter EnableDevPos=true and
LevelDevPos=0.0
3. Simulate an empty tank by setting the Vessel1_In variable to 5.0
4. Simulate a temperature in the tank by forcing the TT1 control module to the
value of 20.0 (use the Interaction Window for this).
5. Open the Interaction Windows for the valve V1, valve V2 and Pid TIC1 and
set them into automode.
6. Open your control chain (Control1 program, code page Batch_of_product)
7. Start the chain by setting the variable Run_Batch to true.
8. Force the level of the vessel (Vessel1_In variable) and the temperature level
(TT1) so that the chain is running one turn completely.

11.1-6

You might also like