Académique Documents
Professionnel Documents
Culture Documents
8.1.1 Description
Instantiate a function block for the first block valve on the inlet. Connect the global
variables previously created and declare the necessary local variables as before (take
in account that parameters of type “In_Out” must be connected when working with
function blocks).
Create another instance for the second inlet block valve using the copy & paste
functionality of Control Builder. Operate the valves using a built-in graphical interface
called an “Interaction Window”.
Verify the synchronization between Control Builder and the Control Structure in the
Engineering Workplace.
8.1.2 Legend
> Indicates when you go from one menu to a sub-menu
Italic Indicates object and file names
“ “ Indicates dialog box buttons, tabs, menus etc.
Bold Indicates important topics
Indicates start/explanation of student activity
Exercise 8.1 - 1
T315C-08 Exercise 8.1 - RevF
Use the information in the screen capture below to create a new program named Tank
in the application Sxx_ReactorApp.
Change the language of the code pane to Function Block Diagram (FBD) by right
clicking on the tab name (in this case ‘Code’) then selecting ’Change Language…’
from the context menu.
Exercise 8.1 - 2
System 800xA Training
Rename the code pane by right clicking on the tab name as shown below, select
‘Rename’, then enter ‘Inlet_Valves’ for the new name.
Exercise 8.1 - 3
T315C-08 Exercise 8.1 - RevF
‘ValveUni’ is a Function Block Type (Object Type) that is designed to interface with
digital valves. We will be creating instances of it for the inlet valves (V1, V5).
With the ‘Inlet_Valves’ code pane open, press the ‘Insert Function/Function Block’
button.
Select the ‘ValveUni’. This can be done through either of the two methods shown
below.
1. Selection from the pull down list.
Exercise 8.1 - 4
System 800xA Training
Exercise 8.1 - 5
T315C-08 Exercise 8.1 - RevF
Select the ‘Sxx_V1’ function block then press the “F1”key . This opens the online
help so that you can read more about the “ValveUni”function block.
Double click on the ‘Sxx_V1’ instance in the code pane to open a connections editor.
Connect the global variables for V1 (gV1_Open, gV1_Closed, and gV1_Ord) to the
correct parameters on the Sxx_V1 function block instance. Use Control Builder on-line
help for more information about each of the parameters. (HINT: The ‘Insert from
Tree’ tool (see circle below) may be used to make the connections.)
Exercise 8.1 - 6
System 800xA Training
Exercise 8.1 - 7
T315C-08 Exercise 8.1 - RevF
Connect the new local variables to the appropriate parameters of the Sxx_V1 function
block instance.
Enter the appropriate value for the feedback configuration (FBConfig parameter) of
the valves so that both the Open (FB1) and Close (FB0) feedbacks are used. Use the
parameter descriptions for assistance. (The value may be entered directly at the
parameter without the need for a variable).
Perform a check of the logic, save and close the program, then download the
application to the controller and go Online.
In the Online mode, right click the Sxx_V1 object listed under the Tank program and
select “Interaction Window”.
Exercise 8.1 - 8
System 800xA Training
Operate the valve in “Manual” with the red (to close) and green (to open) icons. You
should see the valve operate and the interaction window showing the valve “Valve
Opened – FB1” and “Valve Closed – FB0” feedback indications.
Auto
Manual
To close
To open
The window on the left indicates that valve is closed (FB0 = True) and the one on
the right indicates it is open (FB1 = True).
Note! If the interaction window appears too small on your monitor,
right click on it and select “properties”. Enable the
window to be resized for better viewing on the screen.
OR
Note! From the Control Builder menu, select “Tools > Setup >
Station > Graphics”. Change the
“InteractionWindowScale Factor” from 1.0 to 1.4.
Close the “Interaction Window” and take Control Builder to the Offline mode.
Open the program editor for the Tank program and copy the local variables for V1.
Exercise 8.1 - 9
T315C-08 Exercise 8.1 - RevF
Create the local variables for V5 by pasting the variables for V1 then using the “Edit >
Replace” from the menu bar to change V1 to V5.
Select the Sxx_V1 function block in the code pane, right mouse click, and select
“Copy”.
Exercise 8.1 - 10
System 800xA Training
With the function block Sxx_V1 still selected, select “Edit > Paste” from the menu bar.
Replace V1 with V5 in the dialog window and click the “Replace” button, then “OK”.
Select “Yes To All”, then “No” in the following two dialog boxes.
Exercise 8.1 - 11
T315C-08 Exercise 8.1 - RevF
Verify that the result looks similar to the screen capture below.
Perform a check of the program, then save and close the program.
Using the “Interaction Windows” for Sxx_V1 and Sxx_V5, open the tank inlet valves
and observe the tank level increasing. Close the valves before it overflows.
Exercise 8.1 - 12
System 800xA Training
Exercise 8.1 - 13
T315C-08 Exercise 8.1 - RevF
Exercise 8.1 - 14