MCG Hmi China PDF
MCG Hmi China PDF
MCG Hmi China PDF
This book primarily introduces several major functions applied to MCGS software configuration engineering:
animation, alarms, formulas and multi language. It is divided into 4 chapters: chapter 1, simple animation
configuration, introduces the configuration process of common animation forms in details, such as rotation, move
and size change; chapter 2, alarms, it lists the most common alarm forms in project; chapter 3, formulas, it
introduces configuration forms of two modes, formula stored in PLC and HMI in details, taking bread formula as
an example; chapter 4 introduces multi language function newly added into MCGS embedded vision configuration
software 6.8 vision and its specific implementation methods.
No part of this book may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording or by any information storage retrieval system, without
permission from Beijing Kunlun Tongtai Automation Software Technology Co., Ltd.
Simplified Chinese-language edition copyright 2010 by Beijing Kunlun Tongtai Automation Software
Technology Co., Ltd. All rights reserved.
The tutorial introduces simple applications of mcgsTps embedded integration touch screen and MCGS
configuration software, suitable to friends familiar with the junior tutorials.
Press
Configuration Software Control Technologies
Preface
Training objective: through the training, users are fully capable of actual projects of self-configuration and
solve on-site problems.
Training objects: users familiar with PLC knowledge and having learnt junior tutorial of MCGS.
Training plan:
Schedule
Course Arrangement
09:00-09:20
09:20-10:00
10:00-10:30
10:30-10:50
Practice
10:50-11:00
Rest
11:00-11:40
11:40-12:00
Practice
12:00-13:00
13:00-13:50
Lunch
Filling out the customer questionnaire
Formula introduction and the 1st mode
configuration
13:50-14:20
Practice
14:20-14:30
An interval
14:30-15:00
15:00-15:30
Practice on computer
15:40-15:50
An interval
15:50-16:20
16:20-16:40
Practice
16:40-17:00
1.1 Pre-knowledge
Before learning configuration, we firstly get to know the general frameworks and work processes of MCGS
configuration software.
The real-time database in the core of the whole software: data collected from external hardware is sent to
real-time database and then called by the window; through user window, values of database is changed and then
output to external hardware through equipment window.
Animation components in user window are associated with data objects in database and correspondingly
change according to values of data objects, so as to achieve move effects.
In the multimedia CD-ROM, there is a simple animation sample, including flash, move, rotation and size
change, etc. which can be accomplished by simple setting in components property window. Figure 1-1-2 shows
operational effects of this sample in TPC7062K; we can respectively give a small environment to such several
effects:
Wrong message displayed is implemented with horizontal shift while motor polishes glass is
implemented with vertical shift.
button and select load bitmap from shortcut menu ejected. Choose a pre-prepared bitmapselect it after loading
and then set the coordinates of the bitmap (0,0) in the status bar in the lower-right corner with the size of 800*480.
As figure 1-2-1 shows, the setting of background is completed.
Property Setting page, set the filling color to white and edge color to no edge. Set its coordinates to (0, 0) with
size to 800*60, so the setting of title background is completed.
Next lets start configuring animation effects.
Flash
Flash effect is implemented through setting the properties of tag. We do firstly introduce uses of tag:
Besides the display of data, the tag can also be used as a text display, such as of a paragraph of company
introduction, annotation information and titles, etc. Through the property dialogue box, the animation effect can
also be set. Tag can be considered as one of the most useful components.
Add tag
component and enter tag animation configuration property settings dialog box. In the
property setting page, set the filling color to no filling, character color to navy blue, font to Song Ti, bold and
small II and select flash effect.
In extended property page, input the text contents, simple animation configuration.
In the flash effect property page, fill out 1 in the flash effect expression which means the conditions are
established forever. Select flash implementation way implement flash with pixel visibility change. The
configuration effect is shown in figure 1-2-2 and click confirm after the settings. Set the coordinates of tag to (230,
10) and size to 320*40. The configuration effect is displayed in figure 1-2-3.
Note: when the values of the data objects connected (or expressions constituted by data objects) are non-0, the
graphics objects start to blink at the speed set. When the value of the expression is 0, the graphic object stops the
flashing.
Move
1. Horizontal move effect: we can also implement horizontal move effect with tag as long as we set the
properties of horizontal move of tag.
Add a tag
and enter tag property setting page. Set the filling color to no filling, character color to
red and font to Song Ti, bold and IV. Select horizontal move in location animation connection part.
In extended property page, input the text contents, display error message.
In the horizontal move property page, fill a data object in expression column; here we define a data object i.
Set the minimum offset to 0 and maximum offset to 200; the corresponding values of expressions are respectively
0 and 100 shown in figure 1-2-4. Click confirm and the prompting frame is ejected shown in the figure 1-2-5;
click yes and the dialogue box of data object property setting is ejected; select the object type of i to value
type shown in the figure 1-2-6, and then the data object is added into the real-time database. (Note: the operation
to rapidly add the variables is briefly described below in the book).
Double click the space of the window and enter the dialogue box of user window property setting. Add the
script of horizontal move of tag in cycling script page and set the cycle time to 100 shown in the figure 1-2-7.
2. Vertical move effect: we express vertical move effect by cutting glass with a motor as long as we set the
vertical move property of the glass.
Motor: select insert component
, add motor 13
and motor 14
object component library management, set the size to 70*40 and copy 3 groups of motors placing shown in the
figure 1-2-8.
Glass slip band: add rectangular
setting dialogue box; in the property setting page, set filling color to red and edge to black. Copy a rectangular
and place it in the location shown in the figure 1-2-9.
to be added to the window. Enter its animation configuration property settings dialogue box, set the filling color
to white and select vertical move.
In the vertical shift property page, define the numerical object b associated with expression with the minimum
offset as 0 and maximum offset as 200. The values of corresponding expressions are respectively 0 and 100
shown in the figure 1-2-10. Click confirm; when it hints configuration error, select yes to add data object b.
Open user window property setting dialogue box and add glass vertical shift script in cycle script shown in
the label part of the figure 1-2-11.
Note: the offset considers graphic objects locations in configuration as the basis (initial position) with the
pixel as the unit. To the left is the negative direction while to the right is the positive direction (for vertical
movement, being downward is the positive direction while being upward is the negative direction). The relationship
of expressions and offset: taking the configuration setting in the figure 1-2-10 as an example. When the value of
expression b is 0, the location of graphic object is moved 0 pixels to the right (namely, staying still); when the value
of expression is 100, the location of graphic object is moved 200 pixels to the right.
Rotation
The rotation of fan can be implemented with animation display members. The stage dividing points can be
added to animation display member; the pictures can be added to each stage dividing point; a large number of stage
dividing points can have many pictures. The alternating display of many pictures in different status can implement
rotation effect; the rotation of fan is implemented by alternating displaying two pictures at different status.
from common icons toolbox and set its size to 30*90; enter
animation configuration property setting dialog box, set the filling color to gray and click confirm to save it.
Copy two convex planes, adjust the size to 70*30 and respectively place them above and below the original convex
shown in the figure 1-2-12. The framework of the fan is therefore completed.
component property setting, select the stage dividing point 0, click bitmap button to load the image and eject
the dialogue box of object component library management. Click the load and add pre-prepared fan photos.
After the successful load of image, select fan bitmap
0, the stage dividing point, is successfully added into the bitmap, delete the text list and set the image size to full
of buttons shown in the figure 1-2-13. Set 1, another stage dividing point, in the same way and insert another fan
bitmap
In the display property page, select the display variable switch, the numeric type, define associated
numerical variables as rotation visibility and select animation display way display images according to value
shift of display variable shown in the figure 1-2-14. Click confirm; when it indicates configuration error, select
to add the data object rotation visibility.
After the settings, adjust the size of animation display configuration to 60*50 and drag it to the top left corner
of fan framework. And then copy 3 fans, respectively placed to the upper right, lower left and right corners, shown
in the figure 1-2-15.
3. Add script: open the dialogue frame of user window property setting and add script enabling fans to rotate
in cycle script page shown in the label part of the figure 1-2-16.
stop.
1Start
Enter the property setting dialogue box of start button; in the operation property page, set lift function: fill
set 1 in data object operation and define numerical values as cycle shown in the figure 1-2-17. Cycle controls
the rotation of fans; when it is 1, the fan starts the rotation.
In property setting dialogue box of user window, add cycle script IF cycle=1 THEN rotation visibility=
1-rotation visibility shown in the label part of the figure 1-2-18.
(2) Stop
Enter the property setting dialogue box of stop button. In the operational attribute page, set lifting function:
operate to 0 of data object value and cycle for associated variables shown in the figure 1-2-19. Cycle controls
the rotation of fans; when it is 0, the fan stops the rotation.
Bar Graph
Representing data with bar graph can more intuitively show the changes of data; the change of data can be
implemented with size change of the bar graph.
1. Adding a coordinate plane
Add a rectangular
the property setting page, set the filling color to white and edge color to black and click confirm to save
it. Thus, the coordinate plane is produced.
2. Producing Y axis coordinate
Add a tag
and enter tag animation configuration property setting to set the filling color to no filling,
property setting dialogue box in which set the filling color to red and select size change.
In size change page, the associated expression is defined as numerical data object c; click the icon button on
the right of change direction and select size change direction is one-way upward change with change way as
zooming shown in the figure 1-2-22.
Copy another two bar graphs and respectively set the filling colors to light green and navy blue. In the
size change page, set maximum change percentage respectively to 80 and 50 with the other setting the same as
the 1st bar graph.
Note: when the value of expression is greater than or equal to 100 and the maximum change percentage is set
to 100%, the size of graph object is equal to the initial size. No matter how the value of expression changes, the size
of graph object changes between the minimum and maximum change percentage.
4. Adding script
In user window property setting dialogue box, add the script of bar graph change in the cycle script page
shown in the label part in the figure 1-2-23.
5. Adding annotations
Add a tag
, dag it to the right of the bar graph and set the text content to bar graph demonstration
Chapter 2 Alarms
In the working process, we do really hope that: when the equipment operation fails, we are capable of
informing the working staffs so as to timely deal with it; checking the history record of alarms enables us to clearly
understand the operation situations of equipment. Different field operations require different alarm ways. In
conclusion, alarm has already become the necessary conditions for industrial site. According to customers needs,
MCGS configuration software comprehensively analyzes various needs of industrial site alarms and is committed
to offer suitable alarm programs to the customers. This chapter is: after analyzing customers real needs, Kunlun
Tongtai lists implementation of word alarm, level alarm, multi-state alarm and alarm information displayed by
window ejected, etc.
Chapter 2 Alarms13
Start
Start
Equipment
editing
window
address of PLC
PLC
no
Associating variables transferred
Add channel
to PLC address
Real-tim
Associated variables
e
database
Set
alarm
conditions
Meet
the
alarm
conditions?
of
yes
variables
HMI
Recording
User
alarms
to alarm queue
wind
ow
Displaying
alarms
End
End
Figure 2-1-1 Setting Process of Configuration
The figure 2-1-1 displays the configuration processes of alarms; firstly the hardware equipment should be
confirmed, such as PLC Model; add right drive component in the equipment window and addresses used in PLC (it
is called passage in MCGS configuration software) and associate them with variables; set alarm properties in
real-time database and display them in user window. MCGS offers alarm bar (digital gallop lamp), alarm display
component, alarm browser component and many alarm components.
We learn various expression ways of alarms through a sample with operational effects of the sample in the
figure 2-2-1.
The alarm sample lists four common basic alarm ways. Firstly we analyze the alarm needs of each form,
taking Siemens S7-200PLC as an example.
1.When the status of the 12.3, the address of PLC M register is 1, it hints it is full of water. The alarm
information is of scrolling display on the screen.
2. When the values of 49, address of PLC V register exceeds the range of 10-30, it hints too high or low
temperature displayed with lists.
3. When values of 200, address of PLC V register is non-0, it represents different failures which are
displayed with corresponding abnormal alarm information on the picture.
Various failure information is as follows:
Values of V200
Meaning
Normal
Failure Information 1
Failure Information 2
Failure Information 3
Failure Information 4
4. When the 12.3 produce an alarm, the address of M register, a small window is immediately ejected,
showing the current alarm information.
After clearly understanding the alarm needs, we start to analyze and conduct the configuration one by one.
Since we have introduced how to add equipment in the junior tutorial in details, we dont say more than is
necessary. Start engineering and add common serial interface father device and Siemens_S7200PPI drive in the
equipment window.
Chapter 2 Alarms 15
2. Associated variables of channel: select rapid connection variable button in equipment editing window,
enter rapid connection dialogue box and select default of equipment variable connection. Click confirm to
go back to equipment editing window to automatically produce variable name equipment 0_M012_3. In the
equipment editing window, click confirm to eject the prompt dialogue box of add data object and select add
all. Thus, variables established will be automatically added to real-time data library.
3. Set the alarm properties of variables in real-time data library: switch to real-time database and open
property setting dialogue box of variable equipment 0_read-write M012_3. In the alarm property page, select
allow for alarm treatment and set switching value alarm, the alarm value to 1 and alarm annotation to full of
water shown in the figure 2-2-4. Click confirm after completing settings.
4. Set alarm bar (digital gallop lamp) component: start window 0 and add an alarm bar (digital gallop
lamp)
component. Enter dialogue box of digital gallop lamp alarm property setting and click
to
select the variable equipment 0_read-write M012_3 established in equipment window. Set the foreground color
to black, background color to light pink, scrolling characters to 3, scrolling speed to 200 and support the flash
shown in the figure 2-2-5.
Note: when the alarm bar (digital gallop lamp) component is not associated with any variable, it displays all
the real-time alarm information.
5. Display data: add a tag
and select display output. In the display output property page, click
to select variable equipment 0_read-write M012_3, output with switching value. Besides, add a tag
and
input display water flooding. Set color of tag and font according to effects of the figure 2-2-6.
6. Check effects: after completing the configuration, connect PLC and download operation check effects:
when PLC produces alarms, the alarm information is displayed.
1Add word channel: in equipment window, double click Siemens_S7200PPI drive to enter equipment
Chapter 2 Alarms 17
editing window; click add equipment channel button and enter add equipment channel dialogue box;
select channel type V register, 16-bit unsigned binary of data type, 49 of channel address, 1 of channel
numbers and read-write of read-write way shown in the figure 2-2-7. Click confirm after completing the
settings.
Figure 2-2-7
2. Associated variables of channel: in the equipment editing window, select rapid connection variable
button; enter rapid connection dialogue box; select default equipment variable connection; click confirm to
return to equipment editing window to automatically generate variable name equipment 0_read-write
VWUB049; click confirm in equipment editing window. The system hints adding variables; select add all
and then variables established will be automatically added into real-time data library.
3. Set the alarm properties of variables in real-time database: switch to real-time database and open property
setting dialogue box of variable equipment 0_read-write VWUB049. In the alarm property page, select allow
for alarm treatment, set value of upper limit of alarm to 30 and alarm annotation to too higher temperature
shown in the figure 2-2-8. Set value of lower limit of alarm to 10 and alarm annotation is too lower
temperature shown in the figure 2-2-9. Click confirm after completing settings.
4. Set alarm bar component: start window 0 and add an alarm browser
box of alarm browser component property setting. In the basic property page, select real-time alarm data (R)
for display mode, click
2-2-10. In the display format page, check date, time, object name, alarm type, current value, alarm
description, set proper column width and adopt default settings to the other items shown in the figure 2-2-11. In
the font and color page, set background color to light blue and font to Song Ti, bold, small IV and black and
adopt default settings to the other items. Click confirm to save it.
Note: when the alarm browser component is not associated with any variable, all the real-time alarm
information currently is displayed.
5Display data: add a tag
and select display output. In the display output property page, click
to select variable equipment 0_read-write VWUB049, output with switching value. Besides, add a tag
input display current temperature in the extended property page. Set tag filling and font color according to the
figure 2-2-12.
6. Check effects: after completing the configuration, connect PLC and download operation check effects:
when PLC produces alarms, the alarm information is displayed.
Chapter 2 Alarms 2
Figure 2-2-13
2. Associated variables of channel: in the equipment editing window, select rapid connection variable
button; enter rapid connection dialogue box; select default equipment variable connection; click confirm to
return to equipment editing window to automatically generate variable name equipment 0_read-write
VWUB200; click confirm in equipment editing window. The system hints adding variables; select add all
and then variables established will be automatically added into real-time data library.
dialogue box of animation display component property setting. In the basic property page, set stage dividing
points to 0, 1, 2, 3, and 4. Clear picture list of each stage dividing point and set all the background types to bold
frame button: push and the text settings are in order (according to stage dividing point sequence): normal,
default information 1, default information 2, default information 3 and default information 4. Set
foreground color, background, 3D effect and select Song Ti, bold and small II shown in the figure 2-2-14.
In the display property page, select switch and numeric type for the display variable; click
to select
variable equipment 0_read-write VWUB200select display all pictures according to value shift of display
variable shown in the figure 2-2-15. Click confirm to save it.
4. Display data: add a tag
and select display output. In the display output property page, click
to select variable equipment 0_read-write VWUB200, output with switching value. Besides, add a tag
input multi-state alarm in the extended property page. Set tag filling and font color according to the figure
2-2-16.
5. Check effects: after completing the configuration, connect PLC and download operation check effects:
when PLC produces alarms, the alarm information is displayed.
Chapter 2 Alarms 21
1. Add the child window: switch to user window in the workbench interface and start window1.
2. Set display information: open window 1, select common symbols
common icons toolbox. Add convex plane
and set coordinates to (0, 0), size to 310*140, silver for the
then put the two components in the suitable location of rectangular shown in the figure 2-2-17.
Figure
3. Set window pop-up effect: switch to the operational strategy window in the workbench interface, click
new strategy button; select alarm strategy in the select types of strategies dialogue box; return to the
operational strategy window after clicking confirm. Double click new strategy to enter strategy configuration
window, click new strategy line in the tool bar and then open strategy toolbox to select script program shown
in the figure 2-2-18.
Double click
to enter strategy property setting dialogue box; set strategy name to affusion state
when the alarm is produced for the corresponding alarm state; click confirm to save it shown in the figure 2-2-19.
Double click script program icon
4. Check effects: after the configuration, connect PCL; when the 12.3, the address of M register produces
alarms, the window display alarm information will be ejected from window 0.
Note: if there is the alarm when starting the engineering, the alarm window will not be ejected.
After completing the alarm example function and then add a tag
contents as alarm and background color as white. Add annotation level alarm, word alarm and pop-up
window display alarm information to all alarms. After the configuration settings, the operational effects are
implemented.
Formula data is stored in PLC; you can upload formula data needed to HMI for display. Users select certain
formulas and modify them; and then they download them into PLC as the current formulas, commonly seen in the
initial system as a way. Since way mainly appears in the early system. Since the early HMI itself cant store
formula, it can only be implemented with storage space of PLC.
Formula data is stored in HMI for displaying all the formula data. Users select certain formulas to be
downloaded into PLC as the current formulas.
In this course, we introduce how to utilize MCGS embedded vision of configuration software and, taking
bread formula as an example, implement the applications of the two formulas.
Suppose there are only 3 parameters in the bread formula: bread, water and salt. The different ratio mixtures
can lead to three different flavors of bread, such as sugar-free, less sugar and cookie. Thus there are 3 members in
the formula; 3 formula records are divided into according to different contents of 3 members.
The multi-media CD offers samples of formulas and two modes of formulas with operational effects shown in
the figure 3-1-1 and 3-1-2.
3.2
address
nd
Data
VWUB000
VWUB002
VWUB004
VWUB006
VWUB008
VWUB010
VWUB012
VWUB014
VWUB016
2. We use Siemens S7-200 PLC to stimulate bread production machine, receive three parameters of bread
formula with the receiving address as 100~105 bytes of V register.
2.
PLC
address
Data
VWUB100
VWUB102
VWUB104
Configuration ideas:
According to needs above, a following configuration idea is offered by comprehensively combining
characteristics of MCGS software.
1. Add variables firstly in the MCGS database for operating formula data, later.
2. Add PLC equipment in equipment window and set it.
3. And then, add several tags, input boxes and button components in user window; edit necessary scripts for
displaying and operating formulas.
After setting configuration environment, we can immediately download engineering to HMI and operate
formulas in operating environment.
Open real-time database of workbench and start 3 numerical variables of flour, water and sugar;
other properties keep the default values. Such variables are applied to implement the display and
modification of data of formula.
Start a char-type variable equipment string and other properties keep default value. The variable is
used for information transfer with equipment.
Start a numerical variable offset and other properties keep default value. Such variables are used to
store offset addresses of formula data in PLC.
Start two numerical variables a and b and other properties keep default value. Such variable is used
to analyze equipment character string variable.
After creating variables, necessary notes can be selected to be added; the real-time database accomplished
is shown in the figure 3-2-1.
2. Adding equipment
Switch to workbench; open equipment window; add common serial interface father device and
Siemens_ S7200PPI; consider S7200PPI drive as the child device of common serial interface father
device.
Double click Siemens_ S7200PPI drive; enter equipment editing window; check drive template
information in order to make sure the drive is new drive template shown in the figure 3-2-2.
In order to facilitate real-time check of formula data in PLC, we add channels of the data in the
equipment and connect the variables shown in the figure 3-2-2, so as to view the data in real time.
Note: it is suggested that add a tag or input box component in engineering interface associating with
equipment 0_communiction status variable for displaying current communication status of PLC and HMI in
order to assure the normal operation of the project. When the communication status is 0, it means the normal PLC
and HMI.
3. Creating animation component and writing script program
Switch to user window interface in workbench; start a user window; add tag, input box, button, free
forms and other components; start window interface shown in the figure 3-2-4.
Set operation property page in the properties of the three input box above, respectively associating with
data center variables, flour, water and sugar used for display and modification of formula
numbers.
The form component can be activated by double clicking free form component below PLC tag so as to
enter form editing mode. Once selecting connect command in form menu, you will find the asterisks
*are added behind the line and column number of form for display. Click form with right-hand
button and adopt the way selecting from data center in variable selection dialogue frame opened
associating with channel connection variables shown in the figure 3-2-3 to display data of channel.
a=1
b=1
b = !InStr(a, equipment character string, ",")
flour = !Val(!Mid(equipment character string, a, (b -a)))
a=b+1
b = !InStr(a, equipment character string, ",")
water = !Val(!Mid(equipment character string, a, (b - a)))
sugar = !Val(!Mid(equipment character string, (b + 1), (!Len(equipment character
string)-b)))
The meaning of the script is:
1) Within the specified range, move PLC address forward with the length of a set of formula data.
2) Read formula data of offset location in PLC memory.
3) Analyze date acquired and assign to formula members for display and modification.
a=1
b=1
b = !InStr(a, equipment character string, ",")
flour = !Val(!Mid(equipment character string, a, (b -a)))
a=b+1
b = !InStr(a, equipment character string ",")
water = !Val(!Mid(equipment character string, a, (b - a)))
sugar = !Val(!Mid(equipment character string, (b + 1), (!Len(equipment character string) b)))
The meaning of the script is:
1) Within the specified range, move PLC address forward with the length of a set of formula data.
2) Read formula data of offset location in PLC memory.
3) Analyze date acquired and assign to formula members for display and modification.
It means three 16-bit binary numbers of V register from address of offset with the variable, Data 1, in the
MCGS as the start. In the successive 3 variables (namely, Data1Data2Data3), perform whether it can be
successfully returned with nReturn: 0 means success while non-0 means failure. Thus, it can control the reading of
the previous strip or the next formula data to configuration variables and display them.
!SetDevice(equipment0,6, "WritePV(V,offset,WUB,3,Data1,nReturn)")
It means that it will consider Data1 of MCGS variable as the start; values of three successive variables
(namely, Data1Data2Data3) are written into successive registers from starting from offset of V register in 16-bit
unsigned binary way; perform whether it can be successfully returned with nReturn: 0 means success while non-0
means failure. Thus, it can control that writing designated formula data into designated locations of PLC so as to
achieve goal modifying or perform formula data.
3.2.3 Using the formula
Download formula projects edited to HMI and connect PLC equipment; the projects operation effect is shown
in the figure 3-2-5.
Click move a strip upward and move a strip downward to switch formula items. The current formula
item data is displayed in the 3 input box components below HMI.
Click modify PLC formula data so that data in the three frames below HMI can be written into PLC
according to the specified format; modify the current formula data in PLC. The figure 3-2-6 and 3-2-7
represent modification processes of formula data.
PLC
PLC
address
Offset
Data
VWUB000
VWUB002
VWUB004
VWUB006
VWUB008
VWUB010
VWUB012
Modify
the
Data
VWUB000
VWUB002
VWUB004
VWUB006
VWUB008
VWUB010
VWUB012
VWUB014
VWUB014
VWUB016
VWUB016
current
formula
335
Offset
address
When switching to formula data adopted, click download formula data to PLC so that formula selected
can be downloaded to certain regions of PLC, representing change of the usage of the formula data. It is
100 here; the address differs from project to project and is generally determined value.
Form component in the bottom is associated with data in all addresses of objected PLC, capable of
representing all formula data of PLC. (the part is not essential)
Note: the premise to assure normal operation of the project is normal communications of PLC and HMI.
After setting configuration environment, we can download projects to HMI and operate formulas in operating
environment.
Open real-time database of workbench; start 3 numeric variables flour, water and sugar with
other properties keeping default values. Such variables are used to associate with displaying formula
data.
Start group object raw material group; add flour, water and sugar to group members. Such
variables are used to operate a set of formula data.
Start a char-type variable equipment character string and other properties keep the default values.
Start two numeric variables a and b and other properties keep the default values. Such variables are
used to analyze equipment character string. The variables created are shown in the figure 3-3-1.
2 Adding equipment
Switch to workbench; open equipment window; use equipment toolbox to add common serial interface
father device and Siemens_S7200PPI; consider Siemens_S7200PPI as the subset of common
serial interface father device.
Double click Siemens_S7200PPI drive to enter equipment editing window; check drive template
information in the upper left corner of the window to assure the drive to be the new drive template
shown in the figure 3-3-2.
3 Design formulas
Click tool (T) of the main menu of MCGS, select menu item of formula configuration design and
open formula configuration design tool.
(formula group 0). Click the right button of formula group 0, select rename formula group (R) and
rename formula group formula group 0).
right button of variable name of formula members, select variable flour in variable selection dialogue
box ejected. Likewise, start two formula members, respectively connected to variables water and
sugar.
Click use variable name as column title name button to respectively name formula members flour,
water and sugar. Formula members created are shown in the figure 3-3-3.
toolbar
Click increase button in formula modification dialogue box can increase a formula item. Adding
formula data is shown in the figure 3-3-4; save it after completing the adding and exit formula
modification dialogue frame.
Switch to user window interface of workbench; start a user window and open it.
Create tag, button, input box and animation components; the configuration is shown in the figure 3-3-5.
Consider two bigger tags as titles and respectively name them HMI and PLC. Three input boxs are
used to display formula data values of HMI; three tags below are used to display data values on PLC
equipment.
Make three input boxs below HMI respectively associate with parameters of data center flour,
water and sugar, used for display and modification of formula members.
Make three tags below PLC as display output to display data of PLC. When associating with
variables, check generate according to collect information, select common serial interface father
device 0[common serial interface father device] for communication port, equipment 0
[Siemens_S7200PPI] for collection equipment, V register for channel type, 16-bit unsigned binary
for data type and read-write for read-write type. Channel addresses of three tags are respectively
filled with 100, 102 and 104. Three tags are all selected to be output as numerical quantity.
Texts of three button components are respectively set: download formula data to PLC, check HMI
formula data and edit HMI formula data.
!RecipeModifyByDialog("bread formula")
The meaning of the script:
Call formula check dialogue box to edit designated formula data.
Note: it is suggested that adding a tag or input box component in the project interface associating with a
switch-type variable representing PLC communication status for displaying the current communication status of
PLC and HMI, so as to assure normal operation of the project. When the communication state is 0, it represents the
normal communications of PLC and HMI.
The initialization of input box is 0, the initial value of data object. After selecting the designated formula
items, data of formula item is displayed in three input boxes below HMI.
Click download formula data to PLC to write data in three input boxes below HMI into PLC according to
the prescribed format.
Click edit formula data of HMI to call formula editing window so as to edit and modify formula data.
We therefore take this as an example to learn the multilingual settings and use in learning configuration and
operational environment.
And then lets start the configuration!
4.1
characteristics of MCGS software, we offer the following configuration ideas for your reference.
The initial default language of the project is Chinese; firstly conduct the window contents in the Chinese
language environment, including settings of various components properties and functions, etc.
Set the language of the project and edit multi-lingual contents of the project
Set the project languages as Chinese and English; focus on editing multi-lingual contents of window
components in the multi-lingual text form.
Set two buttons in configuration with respective functions as switch the environment to Chinese and English;
when downloading it, it can dynamically switch the language environment
According to three steps above, the multilingual operation project can be easily configured.
as the title of the window; set the coordinates to (0,0), size to 800*50, filling
color to white and text contents to multilingual configuration. And then add two round rectangular
Tag configuration: add two tag
, enter its property setting dialogue box; set text contents to tag 1 and
tag 2 and both character and edge color to yellow and select no filling for filling color.
Button configuration: add two button
cancel use the same property; set lift state to life, text of push state to push and button background color
to navy blue. The text of the 1st button will not be modified but keep the default state.
Since the initial language environment here is Chinese, it is the Chinese language contents of tag button that
we set here.
the figure 4-2-2. In the initial situations, the window displays the No., Chinese and column contents referred to
which are the multilingual locations in the configuration window. Serial number, language column and reference
column together are called multilingual configuration text form.
Click open language selection dialogue box
dialogue box shown in the figure 4-2-3. Check English and then the project settings are two languages. The
drop-down list leftward is to set the default language of the project, namely, the initial operational language when
downloading and running the project with the default choice as Chinese. After click confirm, return to
multilingual configuration window; at that time, the English display column is added into the window.
can be used. For the duplicate contents, you do only need to input the corresponding multilingual contents once;
multilingual contents of other items will be automatically filled.
Additionally, users can also select to export the contents of multilingual text form to *.csv file; edit
multilingual contents in Excel and then import the contents edited.
want to manually switch the languages in operation; we can add two language switch buttons and set language
switch script in the script of button.
1. Add two buttons
in the window; set its properties with one text contents as Chinese and the other
as English shown in the figure 4-2-5. here we set the background color of buttons to purple.
2. Enter the property setting dialogue box of Chinese button; in the script program page and life script
interface, click open script program editor, enter script program editing window and select
system
Software built-in text: such as title of alarm browser component not capable of being edited by users but
supporting multilingual.
Editable parts of users configuration: such as text contents of tags and buttons not capable of being
Adding contents to operational environment: such as user information added in the operation not
supporting multilingual.
2. Components supporting multi language
Main animation component: tag, button, animation button and display component.
Data display component: data browse of deposit, free form, historical form and combo box component.
Components related to alarm: alarm display component, browse and bar (digital gallop lamp).
Display output; switch and other text information set in the button input.
Equipment Overview
mcgsTpc K Series
TPC7062KS
Product Attributes
Back of TPC7062KS
Front of TPC7062KS
inter
0.8kg
Display Specifications
Interface of TPC7062KS
Power
COM
Display Color65535colors
Application Environment
USB1
Resolution800480
Working Temperature0~50
USB2
BacklightLED
Working Humidity5%~90%
Backlight Life50,000hours
Storage Temperature-10~60
TPC7062K
Product Attributes
Front of TPC7062K
Back of TPC7062K
Power
Interface ofTPC7062K
COM
Display materialsTFT color LCD
Display Color65535colors
Application Environment
Resolution800480
Working Temperature0~50
BacklightLED
Working Humidity5%~90%
Backlight Life50,000hours
Storage Temperature-10~60
USB1
USB2
Ethernet
Equipment Overview
mcgsTpc H Series
TPC7063E/H
Back of TPC7063H
Front of TPC7063E/H
Product Attributes
CPU BoardARM embedded CPUGHz 400MHz
Memory64M SDRAM
Storage Device64M NAND FLASH
Touch Screenresistance-type
Interface1RS232/RS4852USB1LAN
Expansion interface:2RS2321RS232/485/422
1RS485
Product Specifications
Power 24V DC
Permitted Range
Interface of TPC7063E/H
19.2V~28.8V
Pore of Cabinet
215mm152mm
1.6kg/1.7kgE/H
Power
Display Specifications
COM
USB
Application Environment
Ethernet
Display Color65535colors
Working Temperature0~50
Expansion
Resolution800480
Working Humidity5%~90%
Interface
Backlight Life50,000hours
Storage Temperature-10~60
TPC1063E/H
Product Attributes
Front of TPC1063E/H
Back of TPC1063H
1RS232/RS4852USB
Product Specifications
Power 24V DC
Permitted Range
19.2V~28.8V
Interface ofTPC1063H
303mm226mm
Power
2.1kg/2.2kgE/H
Display Specifications
COM2
USB1
USB2
Application Environment
LCD
Working Temperature0~50
Display Color65535colors
Working Humidity5%~90%
Resolution 640480
Storage Temperature-10~60
50,000
COM1
Ethernet
Expansion
interface
Equipment Overview
mcgsTpc H Series
TPC1262H
Front of TPC1262H
Back of TPC1262H
Product Attributes
CPU BoardARM embedded CPUGHz 400MHz
Memory64M SDRAM
Storage Device64M NAND FLASH
Touch Screenresistance-type
Interface: 3RS232,1RS232/RS485,2USB and
1LAN
Product Specifications
Power24V DC
Permitted Range19.2V~28.8V
Panel size323mm246mm
Pore of Cabinet303mm226mm
Weight: 3.9kg
Interface of TPC1262H
Power
COM1
COM2
USB1
USB2
Ethernet
Expansion
interface
Display Specifications
Display size12.1inches
Display materialsTFT color LCD
Application Environment
Working Temperature0~50
Resolution800600
Working Humidity5%~90%
Background life50,000hours
Storage Temperature-10~60
TPC1561H
Product Attributes
Front of TPC1561H
Back of TPC1561H
Interface of TPC1561H
Power
COM1
Display Specifications
COM2
USB1
Application Environment
LCD
Working Temperature0~50
Working Humidity5%~90%
Resolution1024768
Storage Temperature-10~60
Background life50,000hours
USB2
Ethernet
Expansion
interface
Name
ent
Company Name
E-mail
Post
Address
Code
Tel:
Fax
Cell
No.
phone
Textile Machinery
Machinery
Rubber Machinery
Power
Industry
Nature of Users
Equipment Manufacturers
Colleges
Total staffs
Company Size
hardware
you use?
Gross product
thousands
piece
Energy Metallurgy
Institutes
Industrial ranking_______
Types of equipment_______
Model No.
Brand
Model No.
PLC:
Price of
Amount
Price
Amount
Price
Brand
Model No.
Amount
Price
Brand
Model No.
Amount
Price
Others Brand
Others
The
System Integrators
Trade
Glass Machinery
HVAC
Plastics
Model No.
Amount
Price
Brand
HMI
Functions
Others
do
you
Quality
Interface
Price
Appearance
Openness
Certification
Kunlun
Model No.
Amount
Price
Amount
Amount
Price
MCGS Developed Vision 7062K Junior Tutorial
: 7062K Study DV
Which
services
of
Kunlun
Tongtai do you
hope to enjoy?
Price
Free training: 7062K Junior Training 7062K Intermediate & Advanced Training
7062K Onsite Training
Charging Training: MCGS Comprehensive Training mcgsEPC Development of
Training
Learning Tools: TPC7062K Learning Package
Special Services:
Development
TPC7062KTraining Package
Driver
Program
After filling the form, please fold it down along the dotted line and fax it to Kunlun Tongtai 010-62979059 to
participate in lottery draw activity monthly held by Kunlun Tongtai! For more details and award notice, please
browse: www.mcgs.com.cn
www.gongkong.com
Beijing Branch
The 6th floor, No.7 Yanhua Building, Shangdi 6 th Street,
TPC7062 CE Certification
TPC7063 CE Certification
B, No.
Chengdu
Tel
028-86180260
Tel010-62979682 Fax010-62979059
0531-88685669
029-82098920 Fax029-82098910
Fax:028-86180260