Documente Academic
Documente Profesional
Documente Cultură
Exercise 8.2 Add a Two Direction SFC for controlling the plant
TABLE OF CONTENTS
Exercise 8.2 Add a Two Direction SFC for controlling the plant.............................................................................................. 8.2-1
8.2.1 General Information................................................................................................................................................... 8.2-3
8.2.1.1 Objectives............................................................................................................................................................ 8.2-3
8.2.2 Exercise Steps ............................................................................................................................................................ 8.2-4
8.2.2.1 Create a normal SFC ....................................................................................................................................... 8.2-4
8.2.2.2 Create the header control module....................................................................................................................... 8.2-5
8.2.2.3 Connect the header to the chain.......................................................................................................................... 8.2-5
8.2.2.4 Set the end transitions ......................................................................................................................................... 8.2-6
8.2.2.5 Stop the plant: Step S51_StopPlant.................................................................................................................... 8.2-6
8.2.2.6 Wait till the plant is stopped: Transition TR52.................................................................................................. 8.2-6
8.2.2.7 Set the controls to manual mode: S52_ControlsToManual ............................................................................... 8.2-7
8.2.2.8 Set the controls to auto mode: S01_ControlsToAuto ........................................................................................ 8.2-7
8.2.2.9 Start the plant: S02_StartPlant............................................................................................................................ 8.2-7
8.2.2.10 Link the SC1_Header into the Functional Structure........................................................................................ 8.2-7
8.2.2.11 Test the chain .................................................................................................................................................... 8.2-7
8.2.3 Additional Exercises .................................................................................................................................................. 8.2-8
8.2.3.1 Set all plant controls to manual mode ................................................................................................................ 8.2-8
8.2.3.2 Set all plant controls to auto mode ..................................................................................................................... 8.2-8
8.2.3.3 Expand the Graphic Display of Tank1 ............................................................................................................... 8.2-8
8.2-1
8.2-2
With the On path we want to prepare the plant, with the Off part we want to shutdown
the plant. This is controlled by the faceplate of the special control module type.
What the chain should do is
8.2.1.1 Objectives
You will:
Expand the SFC to a Two Direction SFC which will prepare and shutdown your
plant
Test the Two Direction SFC with its faceplate and watch the sequence chain by
the SFC Viewer
8.2-3
On path
o
Start the batch of product for the plant The plant is running.
Off path
o
o
We want to create the normal SFC on a new code page for the program Control.
Please
8.2-4
Enable the library SeqStartLib for your project and for the application Tank1
as well. This library includes all the functionality for the advanced SFC.
Open the editor of the Control program and create a new code page of
language Sequential Function Chart. Please name the code page
SC1_Chain.
Create the SFC as displayed in the picture below. The right path is the path for
preparing the plant; the left path is for shutting down the plant. Do not forget
to set S0 as initial step.
Create a new control module for the application Tank1. Please use the type
SFC2DHeader and name it SC1_Header.
Assign the Name and the Description parameter of the SC1_Header control
module.
Name: SC1_Header
Description: Prepare and shutdown the plant
Create two global variables for controlling the chain. They are used for the
connection between the chain and the header.
Important is the nosort attribute because the two variables are working in a
kind of a loop.
Name
SC1_ToSFC
SC1_ToHeader
Data type
HeaderToSFC
SFCToHeader
Attribute
nosort
nosort
Parameter
ToSFC
FromSFC
Create a new code page for the Control program and name it SC1_Control.
Please set the language Structured Text for it.
The first step is to connect the Hold and the Reset parts of the chain
SC1_Chain to the header variable SC1_ToSFC. Please write structure text so
that the
SC1_Chain.Hold variable gets the value from the SC1_ToSFC.Hold
variable,
SC1_Chain.Reset variable gets the value from the SC1_ToSFC.Reset
variable.
The next step is to connect the last steps of the paths of the chain to the header
variable SC1_ToHeader. Please write structured text so that the
8.2-5
Connect the start transitions TR01 and TR51 to the header variable
SC1_ToSFC so that a start/stop command from the faceplate will start/stop the
chain path.
Please
8.2-6
Edit the transition TR52 of the S1_Chain so, that an enabled S0_Idle step
(variable S0_Idle.X) will continuo the SC1_Chain.
Open the step S01_ControlsToAuto of the S1_Chain and set the agitator M1
to auto mode.
Select the transition TR02. Write some code so that this transition is true when
the agitator M1 is in auto mode.
8.2-7
8.2-8