Sie sind auf Seite 1von 11

11/7/2018 Application of the PBS5C function block

MaxPlant
Step by step tutorial CENTUM VP
Articles about the project

news Contacts

Peter

Posted on 1/26/2018

Tutorial content

Lesson 7
Using the PBS5C Function Block
The PBS5C function block is designed to implement the HMI 5 button control panel of a discrete object.

The task
Create a front panel with 3 buttons using the PBS5C function block.

Configure the marking of the front panel (Operation Mark) with a yellow frame labeled LOCK in test mode.

Simulate the state of the control object, locking the buttons on the front panel of the PBS5C function block.

Decision
1 Open the control scheme editor:
FCS0101> FUNCTION_BLOCK> DR0004

http://www.maxplant.ru/article/centum_tutorial_07.php 1/11
11/7/2018 Application of the PBS5C function block

2 Insert the PBS5C function block:

3 Set the tag name for the function block - LIGHT:

4 Open the Function Block Detail Builder editor:


Context menu of the PBS5C> Edit Detail block

5 Configure switch attributes:

Switch Type - switch type:


LAMPBUTN Button with an object status indicator
LAMP No button status indicator
BUTTON Button without an object status indicator
NO The indicator button is not used (not displayed on the panel)

http://www.maxplant.ru/article/centum_tutorial_07.php 2/11
11/7/2018 Application of the PBS5C function block

Label for OFF - text on the indicator for the object off state

Label for ON - text on the indicator for the enabled state of the object

Display Color for OFF - the color of the indicator for the object off state

Display Color for ON - the color of the indicator for the enabled state of the object

The connection of the state of the object with the indicators is carried out through the input parameters of the
PBS5C block: PV01, PV02, PV03, PV04, PV05.

6 Configuring the operation mode of the buttons: The

connection of the buttons with the control of the object is carried out through the output parameters of the
block: MV01, MV02, MV03, MV04, MV05, which are activated when the corresponding button is pressed
depending on the selected operating mode:

Button action Description


0: Alternate Button Turns on when you first press a button and turns off when you press the same button again.
1: Radio Button Turns on when a button is pressed, while all others are reset.
2: Momentary Button It turns on when the button is pressed and is reset itself after a specified time.

These parameters are used in the program to control the object.

7 Open the front panel labeling editor:


TRAINING> COMMON> OpeMarkDef

8 Set the tag label - LOCK:

http://www.maxplant.ru/article/centum_tutorial_07.php 3/11
11/7/2018 Application of the PBS5C function block

9 Open the common switches editor:

FCS0101> SWITCH> SwitchDef

10 Add tag names to simulate the control object:

11 We bind these tags to the corresponding indicators and buttons in the Function Block Detail Builder editor

12 Run the simulator:


FCS> Test Function

http://www.maxplant.ru/article/centum_tutorial_07.php 4/11
11/7/2018 Application of the PBS5C function block

13 In the execution environment, call the front panels of the tags: LIGHT, MV01, MV02, MV03, PV01, PV02,
PV03

14 We simulate object management - click on the LIGHT button on the central panel and observe how the
state of the tags associated with the buttons changes in the first 3 panels on the left. Repeat these
manipulations for all three button modes

15 We imitate the state of the object - press the buttons on the last 3 panels on the right and observe how
the state of the indicators on the central panel LIGHT changes

16 We right-click on the word LIGHT in the upper part of the front panel LIGHT, in the opened context menu,
select the item Tuning:

17 Press the [Operation Mark] button

http://www.maxplant.ru/article/centum_tutorial_07.php 5/11
11/7/2018 Application of the PBS5C function block

18 In the window that opens, select Setting: LOCK

19 A yellow frame appears on the front panel with the inscription LOCK:

http://www.maxplant.ru/article/centum_tutorial_07.php 6/11
11/7/2018 Application of the PBS5C function block

This technique is used to inform the operator that the control object is in a particular state (for example, in
repair).

20 Let's go back to the tuning panel and click on the word SWOP

21 In the window that opens, change the parameter 1 for the first button to 1:

22 On the front panel of LIGHT, the first button will be locked (circled in red by the dotted line):

http://www.maxplant.ru/article/centum_tutorial_07.php 7/11
11/7/2018 Application of the PBS5C function block

23 Let's go back to the tuning panel and click on the word SWST

24 In the window that opens, change the parameter 1 for the first button to 1

25 On the front panel LIGHT the first button will flash

26 Let's go back to the tuning panel and click on the word SWLB

27 In the window that opens, change the parameter 1 for the third button to BUTTON:

28 The inscription on the third button on the front panel LIGHT will change:

http://www.maxplant.ru/article/centum_tutorial_07.php 8/11
11/7/2018 Application of the PBS5C function block

29 Back in the tuning panel and click on the word SWCR

30 In the window that opens, change parameter 1 for the third button to 3:

31 On the front of the LIGHT panel, the button will turn yellow:

http://www.maxplant.ru/article/centum_tutorial_07.php 9/11
11/7/2018 Application of the PBS5C function block

32 In the next lesson, you will be shown how to program the logical connection between buttons and
indicators using the LC64 function block.

3D models and CNC lessons. All for 5990r!


stl3d.ru
All 3d models from the site + 3 Lessons CNC Profi for 5990r
Yandex.Direct

Step-by-step tutorial CENTUM VP: Lesson 8

Step-by-step tutorial CENTUM VP: Lesson 6

Yandex.Direct

3D models
http://www.maxplant.ru/article/centum_tutorial_07.php 10/11
11/7/2018 Application of the PBS5C function block

lessons. Al
To learn more

© Tumanov AV, 2016-2018

http://www.maxplant.ru/article/centum_tutorial_07.php 11/11

Das könnte Ihnen auch gefallen