Nothing Special   »   [go: up one dir, main page]

4.3 Programming - TopDownWorkflow - Exercise07

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Exercise 07 – Programming – Top-down workflow

Time for exercise : 60 minutes

1.1 Add the plant “Hello world” and study the Command sequence block
(CMDSEQ_B)

Task
Navigate to programming add the plant “Hello world” from the library and study, observe
the properties of the CMDSEQ block. Modify the example solution to the mentioned re-
quirements. Assign the data points to the hardware and test the program.

Result
The plant “Hello world” is added from the library and modified with an Operation Indica-
tion for it. Additionally the program is tested as per the command sequence defined.

Page : 1
1.1 Add the plant “Hello world” from the library and modify it

Step Action

1 Archive Project
Navigate to the Project overview and archive the already created project if nec-
essary. The project archive will be stored in the preconfigured folder.

2 Navigate to the programming editor

You have two different option to navigate to the programming editor (See below)

Choose the navigation you like more.

Page : 2
Step Action

3 Drag and drop the plant from the library


Select the “Hello world” plant and drag and drop it to the Add plant icon.

Delete the first plant which you have created in the exercise 6.

Page : 3
4 Check the properties of the CMDSEQ block. Study the parameters.

Check the assign aggregates, Operating modes and Sequences

5 Modify the plant


• Add BO (Switch on/off, relay normally inactive) and rename it to “Opera-
tion indication” to indicate the following,
o plant is on ➔ LED on
o plant is off ➔ LED off

Page : 4
Use CMDSEQ.PrVal to determine whether the plant is on:
PrVal provides enumeration (1:Exception; 2:Off; 3: On), means: if value greater
than 2, plant is commanded to be on (but might still be in start sequence). You
can check these states in the properties of the PrVal pin.
Add function block CMP_I to accomplish above mentioned logic and,
• connect CMDSEQ.PrVal to CMP_I.IN1
• set CMP_I.IN2 = 2
• connect CMP_I.GT to ValIn4 of operation indication
• set EnIn4 = 1 and PrioIn4 = 16

Delete the Manual operating mode selection and SWICNV_M in the program

Page : 5
Add two BI (switch on/off, contact normally open) to the plant.
Rename the BI’s to Manual Automatic switch and Manual Switch. You can use
the existing text bars and adapt them to your needs.

Add an additional function Block SELBO_MS (Boolean selector for MS value).


Change the following settings.
• In0 = 1
• In1 = 2
And connect the Out pin of the SELBO_MS to the Val2 pin of the ENSEL_MS

Page : 6
Connect the Manual Automatic Switch PrVal pin to the En2 pin from the EN-
SEL_MS block.
Connect the Manual Switch PrVal pin to the K pin from the SELBO_MS block.

Disable the Scheduler for the first exercise. Set En3 on the Ensel_MS to 0
En3=3.

Page : 7
6 Modify the plant with Modbus devices
Navigate in ABT Site in Engineering to Modbus. Add a Modbus RTU Network, if
you have not already done it.

1. Add a Modbus network


2. Set the necessary settings (Baud rate= 9600)

Drag and drop the GDB111.1E/MO from the library into the network and change
the parameters (Baud rate).

Navigate back to the programming and start to adapt the plant.

Search in the programming the Analog Output value for the Valve Position. Use
the project tree to find the data point, with a double click on the data point you

Page : 8
will be guided to the correct place in the program.

Search in the project tree for the Modbus device “Siemens GDB111.1E/MO”

Page : 9
Select the Analog Output “Position” from the “Siemens GDB111.1E/MO” and
drag and drop it to the Analog Output value “Position” in the chart

You can delete the not used [AO] Position in ABT Site under engineering, I/O
configuration.

Page : 10
7 Assign the data points.
Navigate back to the engineering tab in ABT Site. To assign all data point you
can use in a real project the Assign all button, but because we work with the
training reck, we would need to use the preconfigured addresses.

Channel Object Name Description Signal Type Unit Inactive/Active


No Type Text
On-board module, universal inputs/ outputs
U1 AI TSu Supply air temperature LG-NI1000 °C
U2 AI PSu Supply air pressure 0…10V DC Pa
U3 BI ManAutSwi Manual Automatic Switch on/off, con- Auto/Manual
Switch tact normally open
U4 BI ManSwi Manual Switch Switch on/off, con- Off/ON /
tact normally open
U9 AO Spd Speed 0…10VDC (0-100%) %
On-board module, binary outputs
DO1 BO Cmd (Dmp) Command (Damper) Switch on/off, relay Closed/Opened
normally inactive
BO Cmd (Fan) Command (Fan) Switch on/off, relay Off/ON
DO2
normally inactive
DO3 BO Cmd Command (Pump) Switch on/off, relay Off/ON
normally inactive
DO4 BO OpInd Operation indication Switch on/off, relay Off/ON
normally inactive
[TXM1.4D3R] Binary inputs, relay outputs
3.5 BI FireDetCont Fire detection contact Switch on/off, con- Normal/Fire
tact normally closed
BI MntnSwi Maintenance switch Switch on/off, con-
3.6 Normal/
tact normally closed Maintenance
BI FrPrtMon Frost protection moni- Switch on/off, con- Normal/Tripped
3.7
tor tact normally closed

Check the Signal Type of the Maintenance switch (X.6) and change it to Switch
on/off, contact normally closed.

Check and adapt the Signal switches on the Operation board in your training
reck.

Page : 11
Observe the Alarm and Trend column -> they are checked as defined in the li-
brary. You can change the options and assignments if required.

7 Load the configuration and test

Adjust the signal types on the operation board and test the program as per the
logic.
Do not forget to verify the Operation indication.

Page : 12
Click on Pause.

You have now completed this exercise. Please take a pause and reflect what you learnt.
You can use the below section for the notes.

Page : 13

You might also like