You are on page 1of 97

Welcome

PI Studio HMI Software


Human Machine Interface (HMI) Programming So ware, It is a HMI programming tool for PI Series HMI.
This Help document will briefly introduce the func ons, programming process for the so ware.
Quick Start
Follow the 6 steps below to build a new HMI project:
1. Create a new project: Click [New Project] on the left top corner of software interface to create a new
project.
2. Con igure project properties: Click [Settings]/ [Communication]or[Project Settings] to set HMI
properties.
3. Project design: Create the new screen and add the proper objects to screen.
4. Save and Compile: Save and Compile the project before downloading or running simulator, to make
sure HMI project has no problem.
5. Simulation: PI Studio provides two types simulation: Off-Line / On-Line
Off-Line: Simulate project operation on PC without any connection.
On-Line: Simulate HMI and PLC operation on PC by connecting PC with PLC. There is 30 minutes time
limit.
6. Download: Click [Download] to download HMI project to HMI.
Programs
Start software:

Decompile:
HMI project copied from HMI need to be de-compiled irst.

Project Download/Upload:
Download or upload the HMI ile (including HMI project, recipe ile and irmware ile) using this tool,
inculding.
Menu
Items Descrip on
Undo Undo the last edi ng ac on; up to 10 opera ons are stored in the
Undo queue.
Redo Redo the last edi ng ac on.
Cut Remove the selected object in the project and relocate it on the
clipboard.
Copy Copy the selected object in the project and locate it on the clipboard.
Fast Copy Copies and mul ply the selected object and place them in the screen.
Paste Place contents from clipboard to the project.
Delete Remove the selected object from the project.
Select All Select all of the objects in the screen.
Compile Compile the project.
Cancel Cancel the compila on of project.
Download Download HMI project from PC to HMI.
Off-Line Start off-line simulator.
On-Line Start on-line simulator, there is 30 minutes for simula on.
Project Properties

Project: include screen, script and system screen status, by double click the designated property to edit.

Screen: all screens in current project are shown in the screen list.
Script: include global script and global function.
System screen: system sub-screen for keypad display.
Screen 1000: numerical input keypad.
Screen 1001: text input keypad.
Screen 1002: mutual screen, this screen will display on all other screens.
Screen 1003: user login screen.
Screen 1005: Chinese input keypad, include number, le er and symbol input func ons.
Screen 1006: user login screen, include user name and password input.
Screen 1007: password change screen.
Screen 1008: instalment payment password input screen.
Screen 1009: instalment payment alert screen.
Screen 5001: meout list.
Screen editing: Choose the designated screen, then edit the parts and properties on this area.
Preview: Preview the selected screen status.
Compiling: The compile progress will display in this area.
Screen
New screen:Start a new screen, the screen number and name should be unique.
Copy screen: copy a screen from current project or other project to current project.
Close screen: close current screen.
Close all.: close all screens on project
Save: save the modifica ons for current screen.
Save all: save the modifica ons for all screens
Delete: delete designated screen.
Proper es: display and modify current screen number, name, level, background, etc.
Manager:Display and modify all screen numbers, names, levels, backgrounds, etc.

New: create a new project


Open: open the designated project
Close: close current project
Communication
Click [Setting]-[Communication] to edit the communication parameters of HMI or PLC.
Project Settings
Click [Project]-[Project Settings] to edit HMI general properties, including HMI model, Startup screen,
Screensaver, Screen control etc.
Common Object
Button/Switch: perform read/write to designated address depend on switch state.
Input/Display: perform read/write to word address.
Meter Display: display word address value in meter graph.
Chart: show the trend of data change.
Display: control or display the picture from gallery or camera.
Draw: draw the graph by desired shape.
Date/Time: Display current date or time.
Object
Bit Switch:
Bit switch is designed to access the bit-address of the PLC/ HMI.
Word Switch:
when the switch is triggered the value of the word address will change depends on the switch type.
Function Switch:
Function key can implement functions like switch between different screens, copy data to UDisk, ile
transfer, etc.
Keypad Switch:
Key is a manual data input object; this part must work with the Keypad. User can assign letters or
numbers for each switch, when the switch is triggered the data will input to the textbox.
Combination Switch:
Individual functions can be added to one object, to implement multiple tasks at the same time.
Bit Switch (General/Text/Graphic/Securty/Animation)
Bit switch is designed to access the bit-address of the PLC/ HMI. When bit switch is triggered, the
changing of [write address] depends on the mode setting. When [Read] option is selected, the [read
address] is editable.
*For example, if the value of [Read address] is "ON", the state of a designated bit address shows the
picture and text corresponds to "ON", in contrary, the "OFF" features are shown.
Word Switch
Change a value of the word address, when the switch is triggered the value of word address will change
according to the switch type.
Keypad Switch
Keypad switch is designed to input data manually; this object must work with the Keypad.
User can assign letters or numbers for each switch, when the switch is triggered the data will input to the
textbox.
Function switch
Function key can implement functions like switch between different screens, copy data to UDisk, ile
transfer, ect.
Combination switch
Individual functions can be added to one object, to implement multiple tasks at the same time.

*For example, add "set bit" and "destination screen" to a combination switch, when press the switch, it
will trigger a bit switch while switch to another screen.
Input/display object
Numeric Input/Display:
Numerical input/ display in designated data format, the data is scalable.
Character Input/Display:
Data from PLC is inputted / displayed in ASCII format, multiple continues data can input/ display
simultaneously.
Numeric Input/Display
Numeric input/ display in designated data format, the data is scalable.
Characters input/display
Data from PLC is inputted / displayed in ASCII format, multiple continues data can input/ display
simultaneously.
Record Display:
Trend Chart:
Trend graph shows the data as a dynamic curve, the X axis represent the time, Y axis represent the
data.
History Trend Chart:
The real-time data in HMI cache will display curve graph, which X axis represent as time, Y axis
represent as data.
Data Record Display:
Check recorded alarm, the time span set by the user, and the alarm record will list by the time
sequence.
Alarm Record Display:
Check recorded alarm, the time span set by the user, and the alarm record will list by the time
sequence.
Recipe Display:
This function is designed to display and modify the formula of the recipe.
File List Display:
This function is designed to display the recipe iles.
XY Plot:
The real time data in cache will display as continuous curve or separated points, each point in XY plot
needs 2 addresses to set a point.
History XY Plot:
The data in cache will display as continuous curve or separated points, each point in XY plot needs 2
addresses to set a point.
Trend Chart (General/Advanced)
Trend graph shows the data as a dynamic curve, the X axis represent the time, Y axis represent the data.
History Trend Chart (General/Advanced)
The real-time data in HMI cache will display curve graph, which X axis represent as time, Y axis represent
as data.

advanced mode please refer Advanced mode.


While using history trend graph, there are 4 bottons will list below the graph,shown as following:

Set: time range setting.


<< :page up in the time range.
>> : page down in the time range.
Fresh: renew the data.
Alarm Record Display
Check recorded alarm, the time span set by the user, and the alarm record will list by the time sequence.
Data Record Display (advanced mode)
Check recorded alarm, the time span set by the user, and the alarm record will list by the time sequence.

?1
advanced mode please refer Advanced mode.
While using Data record display, there are 4 bottons will list below the graph,shown as following:

Set: time range setting.


<<: page up in the time range.
>>: page down in the time range.
Fresh: renew the data.
Recipe Display
This function is designed to display and modify the formula of the recipe.
File list
This function is designed to display the recipe iles.
XY Trend (General/Advanced)
The real time data in cache will display as continuous curve or separated points, each point in XY plot
needs 2 addresses to set a point.
History XY Plot (General/Advanced)
The data in cache will display as continuous curve or separated points, each point in XY plot needs 2
addresses to set a point.
Date /Time
Date:
Display current data, week on HMI.
Time:
Display current time on HMI.
Time
Display current time on HMI.
Date
Display current data, week on HMI

Classification Properties Description


yy/mm/dd:year/month/day
Show date mm/dd/yy:month/day/year
dd/mm/yy:day/month/year
Format Chinese1
English1
Display style
Chinese2
English2
Meter Display:
Pointer Meter:
Graph shows the data change in a combination of pointer and dial.
Pointer Meter
Graph shows the data change in a combination of pointer and dial.
Display:
Picture:
Import picture though gallery.
Rotation Picture:
Display the data change by rotate the corresponding picture
Drop-down List:
Drop-Down list is designed for display the designated state by text, to select the text in the list, the
corresponding state will change
/ Camera Control/Display:
Control/Display the camera image, the camera can only communicate with HMI though Ethernet port.
Picture
The picture can be put on the screen by following steps; Optimize the picture frame on the screen; Double
click the object and select from gallery; System will auto adjust the color of the picture harmoniously with
the HMI background.
Rotating Pictrue
Display the data change by rotate the corresponding picture (only support bmp format), user can set
rotation centre, direction, angle etc.
Drop-Down List (General/Text)
Drop-Down list is designed for display the designated state by text, to select the text in the list, the
corresponding state will change, and the write address will change to the designated state value. (There
are 32 states in total, as "0-31").
Camera display /Camera controller
Control and display the camera image,the camera can only communicate with HMI though Ethernet port.

Use dynamic control instruction: read a string from designated system address, then combine the
instruction to control the camera image.
Draw
Text:
Add text content in screen.
Point:
Draw point in screen.
Line:
Draw line in screen
Polygon:
Draw polygon in screen.
Cycle:
Draw cycle in screen.
Arc:
Draw cycle in screen.
Rectangle:
Draw rectangle in screen.
Broken Line:
Draw Broken line in screen.
Linear Scale:
Draw linear scale in screen.
Arc scale:
Draw arc scale in screen.
Table:
Draw table in screen.
Text
Textbox display the designated text content.
Point

Property Description
Color Point color
Type Point size
Position The position shown on screen
Line

Property Description
Line color N/A
Line type N/A
Start XY Start position
End XY End position
Auto adjustment In the range of designated value, the line
will remain vertical. Unit: pixel.
Polygon

Property Description
Point number Maximum point support is 51
Type N/A
Border N/A
Pattern N/A
Foreground N/A
Background N/A

Left click the mouse to draw the pro ile of the polygon, right click to inish drawing.
The points of the polygon can be modi ied by the point Editor at polygon setting window.
Drag the point needs to be modi ied to the designated position.
Cycle

1. Radius: X and Y radius represents the horizontal and vertical radius respectively.
2. Centre position: Choose the center position to decide the cycle position.
Arc

Left click to drop the top right point of the arc.


Left click again and rotates clockwise to erase the redundant part of the arc, rotates counter clockwise to create
the desired arc.
Left click again to finish drawing.
The profile, start point, end point can be modified by simply dragging.
Rectangle
Border line

Left click on the screen to drop the start point.


Drop the following points by left click on designated area.
Right click the mouse to finish the drawing.

The points of the polygon can be modified by the point Editor at polygon setting window.
Drag the point needs to be modified to the designated position.
Linear scale

Display direction: There are 4 display directions list as, top to bottom, bottom to top, left to right, right to left,
corresponding to the following pictures respectively.

Top to bottom Bottom to top Left to right Right to left

1. Main scale: default main scale number is 10.


2. Sub scale: the number of the sub scale is between the adjacent main scales.
Arc scale

Left click to drop the top right point of the arc scale.
Left click again and rotates clockwise to erase the redundant part of the arc, rotates counter clockwise to create
the desired arc scale.
Left click again to finish drawing.

1. Start angle: The angle corresponds to the X axis and the first radius drew.
2. End angle: The angle corresponds to the X axis and the last radius drew.
3. Main scale: Default main scale number is 6.
4. Sub scale: The number of the sub scale is between the adjacent main scales.
Table

1. Rows: The number of textboxes list horizontally.


2. Columns: The number of textboxes list vertically.
3. Invisible: The table frame becomes invisible, excluding the header.
4. Header cross: The options for header cross are No, row, column, and table, which shown in the following
table, respectively.

Header No Row Column Table


cross
Effects

5. Table cross: The options are No, row, column, and table, which shown in the following table, respectively.

Table No Row Column Table


cross
Effects

6. Row header color.


7. Column header color.
8. Header width: The header width does not affect the table size.
Bit Library
Two types of pictures in Gallery: User picture and System picture.

Click [se ng]-[gallery]: User can see all the pictures in the bitmap, import and export the picture. User can add
Mul -states in the project.
Font library
Users select the needed fonts and add to the font library.
Click [Project]-[Library] -[Font Library]
Text Library
Text library contains commonly used text. It avoids se ng the text repeatedly. HMI provides up to 8 languages
in text library.
Click [Project]-[Library]-[Text Library].

Export/import: HMI support CSV file, export or import csv file.


Address Library
Address library contains commonly used addresses. It not only avoids se ng the addresses repeatedly but also
expresses the func on of an address more clearly.
Click [Project]-[Library]-[Address library]

Export CSV: Export address library to csv file.


Import CSV: Import exis ng csv file to address library.
Address Mapping
Description
Address mapping is the opera on to build the rela onship between two different addresses. Forwarding address
from source address to des na on address, so the value in both addresses would be same according to the
predefined mapping mode. Both addresses could be from different, in this way, to make HMI processing faster.
*For example: forward "D0" to "HDW100" (length: 10), so the address D0,D1,..D9 would be related to
HDW100,HDW101..HDW109.
Settings
Click [Project management]-[Address mapping] .

Function
Read only: Destination address only read the value from source address. it is unable to write value to
source address.
Read/Write: The value of source and destination address always keep same.
Mapping control: Set the control bit to start or stop mapping.
Recipe
Click [Project]-[Data Tool]-[Recipe] .

Click [Add] or double click recipe item to edit the properties of recipe.
Alarm
PI software support bit alarm and word alarm, the alarm data and history can be saved in SD card, Udisk or HMI
flash storage.
Bit Alarm
Word Alarm
Bit Alarm Se ng
Press [bit alarm] in data tool, the se ng window shown as following:

Property Descrip on
Bit address Read address.
Record Alarm Record history data.
Upload the alarm me and informa on to designed address or not.
Upload Click the "Edit" beside "Advanced se ng" to select the upload
informa on.
Trigger mode The condi ons trigger alarm.
Content Alarm message which display on screen.
Beep when alarm Beep when alarm on.
No fy Set control bit on when alarm on, clear alert when alarm off.
Alarm screen Pop-up alarm screen (it must be sub-screen).
Loca on The loca on of the screen alarm display.
Interval me Reopen the alarm screen when alarm screen closed.
Pop-up once Pop up alarm screen once.
Close window
when Alarm Automa cally close the alarm screen when alarm off.
cancelled
Word alarm
Press [word alarm] in data tool setting:

Settings
Properties Description
Device name Alarm name.
Record Alarm Record history alarm information.
Device address Set alarm address.
Data Format Set data format.
Alarm description Set alarm information when alarm is on.
High Limit Alarm Alarm is on when it reaches high limit.
Low Limit Alarm Alarm is on when it reaches high limit.
Range Alarm Alarm is on when it is within the range.
Fixed value alarm Alarm is on when it equals to a constant.

Alarm conditions
Alarm is set ON when designated address meet the following condition:
1. High Limit Alarm: Alarm is ON when it reaches high limit.
2. Low Limit Alarm: Alarm is ON when it reaches low limit.
3. Range Alarm: Alarm is ON when it reaches the range.
4. Equal alarm: Alarm is ON when the value equals to the preset value.
5. Alarm record: save the alarm data to Udisk or SD card
6. Alarm information: Descript the alarm by preset text. The alarm text support up to 8 different
languages, the edit window is shown as following:
1. Alarm screen: when the alarm conditions are met, the sub alarm screen will display on designated
location, default setting is none.
2. Pop-up once: the alarm screen will not keep pop-up after close.
3. Close window when alarm cancelled: Automatically close the alarm screen when alarm off.
Data Record (General/Setting)
The data record func on is organized by the following structure; mul ple record groups can be traced.

Data record on SD card follows the rules above as well.


Trend Chart(Trend Chart/History Trend Chart)
Click [Project]-[Data Tool]-[Trend Chart].
History XY Plot
Click [Project]-[Data Tool]-[History XY Plot].
General:
General
Script Access to Device
Checking Grammar
Grammar Error
Hints to Use Script
Script Function:
Mathema cal Data Transforma on Strings Bit Control Applied Func on
Abs A2H InStr ClrB AddrStringCompare
Acos Asfloa ng LEFT InvB beep
Asc AsInteger Len SetB IsFloa ng
Asin AsString LTrim Compare IsInteger
Atan B2W Mid IF = IsString
Atan2 BCD Right IF >< Log
Cos BIN RTrim IF > Log10
Exp Chr Trim IF..THEN GOTO .. IF >= MSeconds
Hypot D2F UCase IF < NewNoAddr
Tan D2Float Variable IF <= NewStatAddr
Sin DegToRad Pi IF AND = 0 NStringCompare
Sqr F2D true IF AND >< 0 power
SignedInt16 F2S false IF = rand
SignedInt32 Float2D IF >< ReadAddr
Data Mover H2A IF > SleepA
BMOV MAX IF >= WriteAddr
IF
FILL MIN IF < Others
Process Control LCase IF <= Dim..as.
GOTO RadToDeg IF AND = 0 do
FOR SWAP IF AND >< 0 func on
END W2B ELSE sub
W2D ENDIF while
W2F
W2S
Script Type:
Script Type
Initialization Script
Trigger Control
Close Script
Timing Script
Global Function
Modbus All Faction
Modbus Function Code
No ce: In Modbus protocol, allow to access bit address like 100.1, which using the same func on code with
16bits read-write.

Word Address Func on Code(HEX) Data Length Read or Write


04 (Read input address)
3 06 (Write single holding address) 16-bits Read only
10 (Write mul ple coils)
03 (Read mul ple holding
addresses)
16-bits ?
4 06 (Write single holding address)
10 (Write mul ple coils)
03 (Read mul ple holding
addresses)
16-bits ?
W6 06 (Write single holding address)
10 (Write mul ple coils)
03 (Read mul ple holding
W16 address) 16-bits ?
0F (Write mul ple addresses)

Bit Address Func on Code(HEX) Data Length Read or Write


01(Read coils) 16-bits
0 05(Write single coil) ?
0F(Write mul ple coils)
02(Read discrete inputs) 16-bits
1 05(Write single coil) Read only
0F(Write mul ple coils)
01(Read coils) 16-bits
W5 05(Write single coil) ?
0F(Write mul ple coils)
W15 01(Read coils) 16-bits ?
0F(Write mul ple coils)

Address Mapping (Modbus RTU Master)


Modbus will read the value from HMI local address:
HMI Local Address Modbus Address
HDX3000.0~HDX3499.15 Bit address type:0 (Range: 0~7999)
HDW3500~HDW7999 Word address type: 4 (Range: 0~4499)
Bit Address Mapping:
HDX3000.0 = Modbus Address 00(Address Type: 0; Address No.:0)
HDX3000.15 = Modbus Address 015(Address Type: 0; Address No.:15)
HDX3001.1 = Modbus Address 017(Address Type: 0; Address No.:17)
Word Address Mapping:
HDW3500 = Modbus Address 40(Address Type: 4; Address No.:0)
HDW3615 = Modbus Address 4115(Address Type: 4; Address No.:115)
HDW4500 = Modbus Address 4100000(Address Type: 4; Address No.:1000)
General
If the device does not support MODBUS standard, and the protocol is not list in HMI compile so ware, then
user can define the protocol by following instruc on to realize simply communica on func ons like send and
receive commands.
Settings
1.Choose [other protocol]-[user defined protocol].

Figure 1
Press [communica on]-[user-defined protocol].

Figure 2
Proper es Descrip on
Instruc on edit The required command.
Mode Write to address or read from the address.
Format Encode format: HEX or ASCII.
Other No receiving: does not respond to the receiving command.
Send a er receiving: respond to the receiving command.
Manually send Respond once a er trigger the address.
Address: set the trigger address.
Add Save this se ng.
Cancel Cancel current se ngs.
Add Add a new command.
Edit Edit the designated command.
Delete Delete the designated command.
Clear Clear all the commands.
Instruc on list Browse all current commands.
Parts list Browse all the parts added.
Import Import the command files to the instruc on list.
Export Export current command se ngs to local storage.
Browse Browse local command files.
Advanced Combine two commands.
Exit Complete edi ng and exit se ng.

Press [Add] to create a new command.

Select the Mode as below.


Choose the data format as below.

Instruc on edit, when the data format is HEX, use two numbers to represent one 16bit number. ASCII format
using characters to input, shown as below.
Check se ngs, shown as below.

Proper es Descrip on
Add checking Add checking command when receiving the data.
Back checking Start posi on: select the start posi on of the data which need
to check.
Length: The data length need to be checked.
Add control Add control character in ASCII format.
character
Differ with send Set return checking.
check
Proper es Descrip on
Part Se ng Part type: bit or word address.
Address: the triggering address.
Note: descrip on to the part.
Byte order The numerical display order.
Proper es Descrip on
Return data Posi on: the start posi on of the return data.
Length: the return data length.
Write data Posi on: the start posi on of the write data.
Length: the write data length.
Proper es Descrip on
Send length The instruc on data will only send designated data length.
Return length The responds data length.
OpenCAN settings
General
Opencan is based on CAN2.0 standard; user can customize the protocol se ngs.
Instruction
Choose [se ng] on menu bar- [communica on]-[se ng], select OpenCAN, shown as following.

Settings

Proper es Descrip on
Add Add a frame for designated address
Insert Select the posi on to insert a frame.
Frame Browse current frame se ngs.
manager
9 Browse Show the frame se ng files in xml format.

Select [Add] and the following se ngs will show up, as figure 3.
Proper es Descrip on
Frame type Select between Standard frame and Extended Frame.
Frame format Select between Data frame and Remote Frame.
Data (Hex) Use two numbers to represent one 16bit number, separate with
blank.
use address Select address type between bit and word.
Op on Relate the frame and the designated address.
Interac on HMI send frame and the devices process and respond.
send a er HMI will process and respond a er receiving the command.
receiving
No response HMI or devices will not receive any responds
Confirm The HMI or devices will check the data received then respond to it.
response
Data response HMI or devices will respond the designated data when receiving the
frame.
Response ID The response ID can differ with the sending ID by this se ng.

Control address se ng shown as below


Proper es Descrip on
Address Send when the designated address value is not 0.
Ctrlbit CtrlBit address range is 0~255, the CAN command will only work
when the address value is 1.
Manually send Send once for each me the address is triggered.
Siemens S7-200 Smart Ethernet
General
The driver is designed for Siemens S7-200 Smart series PLC.
Addresses
HMI PLC
Type address address Format Range note
IW I IWn 0 ~ 99999
QW Q QWn 0 ~ 99999
AIW AI AIWn 0 ~ 99999
VB AQ VBn 0 ~ 99998
VW0=VB(0~1)
VW V VWn 0 ~ 99998 VW2=VB(2~3)
Even address
VD0=VB(0~3)
VD4=VB(4~7)
VD V VDn 0 ~ 99998 The addresses
need to be the
mul ply of 4
Word MB M MBn 0 ~ 99999
address MW=MB(0~1)
MW M MWn 0 ~ 99999 MW2=MB(2~3)
Even addresses
MD0=MB(0~3)
MD4=MB(4~7)
MD M MDn 0 ~ 99999 The addresses
need to be the
mul ply of 4
TW T TWn 0 ~ 99999 Current value on
mer
CW C CWn 0 ~ 99999 Current value on
counter
SW W SWn 0 ~ 99999
I I In.x 0.0 ~ 99999.7
Q Q Q 0.0 ~ 99999.7
VW-BIT V VW-BITn.x 0.0 ~ 99999.7
V V Vn.x 0.0 ~ 99998.7
M M Mn.x 0.0 ~ 99999.7
Bit
address SM SM SMn.x 0.0 ~ 99999.7
S S Sn.x 0.0 ~ 99999.7 Read only
Timer state, Read-
T T Tn 0 ~ 99999
only
Counter state,
C C Cn 0 ~ 99999
Read-only
Setting
Choose the correspond protocol for PLC, at [Se ng]-[Communica on]-[se ng].
Set the Ethernet data.

PLC IP: device IP


PLC port No.:102(fixed)
Network:TCP_Client_2N (fixed)
Wait me:the internet status(?1500ms)
Siemens S7-1200 Ethernet
Settings
Select [Siemens S7-1200 Ethernet] in [se ng]-[communica on]- [Se ng].

Connection
S7-1200 support maximum 3 device connec on.
HMI access with PLC with S7 protocol, TSAP is 02.01.
DB access
Offset is DB2 address
To access the B1 data in DB2, use addresses DBxDBB2xxxx, DBxDBW2xxxx, DBxDBD2xxxx.
Represent block: 2xxxx
For example: DBxDBB20000 = DD2.DBB0
DBxDBB20001 = DD2.DBB1
User Restriction
General
HMI allows accessing by multiple users. User need to set the user and group when designing
project. Different group have different permission level for accessing. Each user should be added to
certain group, it is possible to add one user to different group.
Operating record: record user enter, exit, and the operation record of 9 objects with "user restriction",
find the record file in \\flash\\UserOperationLogs.db (On simulator
C:\\WECON\UserMgrFile\UserOperationLogs.db).

Setting
1. New User and Group:
Click [system configuration]-[user enter], shown as the following user manager window.

The upper part is group list, the later part is user list. Display on the window bottom is [new
user], [copy], [delete user], when use mouse to activate user list; display on the window bottom is
[user group], [delete user group] when activate group list. Pop up user property window when click
[user], set the password for each user, then add the user to existing group. Modify user password
and group when click [property].
Click [import XML], import designated XML configuration file to edit.
Click [export XML], export edited XML configuration file to designated position.
Or create a "New group", then select existing user in following list.

2. Set User permission


Click icon on the tool bar to modify some object restriction together, includes bit switch, word
switch, function key, numeric input/display, character input/display, recipe transfer, drop-down list,
drop-down list, combination switch totally 9 objects.
Double Click on objects, select [Security]- [user restriction]:

Log work as a part of record information write in operation record file. The information can write in
variable. Record the detail information about the operation of HMI.

User Management
HMI allows managing user accounts on screen. Including adding, deleting and editing the user
account. HMI provide built-in screen for "log in "and "change password"(screen No.1006 and 1007).
Function Address Object type Address function
HUW1061~HUW1076 Drop down list User name
Character input
Log in HUW1002 Password
object
HUX1000.0 Bit switch(On) OK (log in)
Character display
HUW1061 User name
object
Character input
HUW1002 Old password
object
Change Character input
HUW1006 New password
password object
Character input
HUW1010 Confirm password
object
OK(change
HUX1000.1 Bit switch(On)
password)
Log out HUW1000 Bit switch(On) Log out
Character input
HUW1014 User name
object
Character input
HUW1006 password
object
New user Character input
HUW1010 Confirm password
object
HUW1150~HUW1169 Drop down list Select group
HUW1000 Bit switch(On) OK(add new user)
HUW1061~HUW1076 Drop down list User name
Delete user
HUW1000 Bit switch(On) OK (delete user)
HUW1061~HUW1076 Drop down list User name
Select group HUW1150~HUW1169 Drop down list Group name
HUW1000 Bit switch(On) OK(join)
HUW1061~HUW1076 Drop down list User name
delete HUW1150~HUW1169 Drop down list Group name
HUW1000 Bit switch(On) OK (remove)
Delete Profile HUW1000 Bit switch(On) OK(delete)
Export Profile HUW1000 Bit switch(On) OK(export)
Import profile HUW1000 Bit switch(On) OK(import)
Export log file HUW1000 Bit switch(On) OK(export)
Delete log file HUW1000 Bit switch(On) OK (delete)

The notification in HUW10001 shows the current state of HMI.


Value of HSW10001 Description
1 Insufficient permissions.
2 User name does not exist.
3 User name already exists.
4 Invalid password.
5 Log in successfully.
6 Password you inputted do not match.
7 Password changed.
8 User adding complete.
9 User deleting complete.
10 Maximum number of users exceeded.
11 User already exists in the group.
12 Completed adding user to group.
13 User not in the group.
14 User delete successfully.
15 Import file successfully.
16 Failed to Import file.
17 Export file successfully.
18 Export file failure.
19 Log out.
20 Delete Profile successfully.
21 Delete log file successfully.
22 Restore the original configuration file successfully

notice:
1. "export configuration file" include export operation log file.
2.extract the configuration files to \\flash\\,(when simulating save to C:\\), if there was a configuration
file, please delete current configuration file by "delete profile" tool, then download the current file to
HMI, reboot to apply new configuration file
3. Modify configuration during screen running, export configuration file to U disk, import from U disk
after modifying.

Operation record of user log in restriction can display with [object]-[record display], view concrete
operation of [record display].
Appendix A: record insert variable description
1. Variable format
{variable address, data format}
{HDW100,UW2.1} ---punctuation must be in English.

letter description
B binary
O octal
U Unsigned decimal
H hexadecimal
b BCD
F 32 bit floating
S Signed decimal
C character
W word
D Double words
Remote Access
LAN Access
1. Configure HMI IP
2. Download HMI project to HMI, then open the browser in mobile phone, PC or tablet PC, enter the IP to
address bar.
Chrome, Firefox, Safari and Internet Explorer(IE9 or above) recommended, any other browser if it can support
HTML5.

Internet Access
Configure the "Port forward" of router, mapping to HMI port 80.
Login to the TP-Link TL-WR740N Router
Click the Forwarding link near the le of the page.
You should now see a new menu. In this new menu, click Virtual Servers.

Click the Add New bu on near the center of the page.


HMI Address
HMI provide four types of HMI address for user.
*HSW, HDW, HPW, RPW are word address, HSX, HDX, HPX are bit address;
System Parameters (HSW/HSX)
The address starting with "HSW" are reserved by HMI system, define those address to save the state
or parameter of current system. Like system properties, communication parameters etc.
*HSW is related to HSX, (e.g. one word address HSW0 contains 16 bits from HSX0.0 to HSX0.15);
User Data (HDW/HDX):
The address starting with "HDW" are provided for user, saving data to this type of address.
*HDW is related to HDW, (e.g. one word address HDW0 contains 16 bits from HDX0.0 to HDX0.15);
Special Data (HUW/HUX):
Special address reserved by HMI.
*HUW is related to HUX, (e.g. one word address HPW0 contains 16 bits from HPX0.0 to HPX0.15);
System Data (HAW/HAX):
Addresses in this area are holding address, using for storing system data.

Word Address Format Range


HSW HSWn HSW0~50000 (Holding address:
HSW10000~19999)
HDW HDWn HDW0~30000 (Holding address:
HDW8000~30000)
HUW HUWn HUW0~50000
HAW HAWn HAW0~200000

Bit Address Format Range


HSX HSXn.m HSX0.00~50000.15
HDX HDXn.m HDX0.00~30000.15
HUX HUXn.m HPX0.00~50000.15
HAX HAXn.m HAW0.00~200000.15
System Address List
1. System data addresses
Address Descrip on Func on
Mul ple language can be set
HSW0 Language switch in the project, HMI support
maximum 8 languages.
HSW1 Beep frequency Frequency range (0-4999)
HSW2 Beep volume Volume range(0-80)
HSW3 Beep me Time unit ms
HSW4 Beep ON/OFF =0,ON; =1, OFF
= 0, only HSW control the
screen switch
HSW12 Screen switch = 1, only HUW control the
screen switch
HSW13 Designated screen switch The screen will switch to
designated screen number.
HSW14 Current screen number Display current screen
number
HSW24 Reboot HMI =1, Reboot
HSW28 Local me: year Range: 0-9999
HSW29 Local me: month Range: 01-12
HSW30 Local me: day Range: 01-31
HSW31 Local me: hour Range: 0-23
HSW32 Local me: minute Range: 0-59
HSW33 Local me: second Range: 0-59
On simulator:0-Sunday, 1-
Monday, 2, Tuesday, 3-
Wednesday, 4-Thursday, 5-
HSW34 Local me: week Friday, 6-Saterday
On HMI:0-Sunday, 2-
Monday, 3- Tuesday, 4-
Wednesday, 5-Thursday, 6-
Friday, 1-Saterday
=0: Chinese
HSW35 Message language
=1: English
0: read from HMI cache
HSW134 Script reading
1: read from PLC
=0: no opera on
=1: HSX521.0 = 1, delete all
records
=2: HSX521.1 = 1, delete all
Delete graph and alarm
HSW521 trend graph
record
=4: HSX521.2 = 1,delete all
alarm records
=8: HSX521.3 = 1, delete all
word alarm records
=0: no opera on
=1: HSX522.0 = 1, copy all
record
=2: HSX522.2 = 1, copy
Copy graph and data record
HSW522 to Udisk history XY trend graph
=8: HSX522.3 = 1, copy
alarm record
=32: HSX522.5 = 1, copy
recipe
=0: no opera on
=1: HSX523.0 = 1, copy all
Copy graph and data record record
HSW523 =4: HSX523.2 = 1, copy
to SD card
history XY trend graph
=8: HSX523.3 = 1, copy
alarm record
=0: no opera on
=4: HSX524.2 = 1, copy
history XY trend graph
Copy graph and alarm record =8:
HSX524.3 = 1, copy
HSW524 alarm record
to Udisk
=16: HSX524.4 = 1, copy
history alarm record
=32: HSX524.5 = 1, copy
data record
=0: no opera on
=4: HSX525.2 = 1, copy
history XY trend graph
Copy graph and alarm record =8:
HSX525.3 = 1, copy
HSW525 alarm record
to SD card
=16: HSX525.4 = 1, copy
history alarm record
=32: HSX525.5 = 1,copy data
record
=0: no opera on
=1: HSX526.0 = 1, delete
HSW526 Delete file list designated file
=2: HSX526.1 = 1, delete all
files
HSW10000~HSW19999 Power OFF protec on
Local IP address high endian
HSW10035
1
Local IP address high endian
HSW10036
2
Local IP address high endian
HSW10037
3
HSW10038 Local IP address high endian
4
Local IP address high endian
HSW10039 The Ethernet parameter is 4
only editable, when the Local mask IP address high
HSW10040 se ngs are programmed in endian 2
HMI so ware.
Local mask IP address high
HSW10041
endian 3
Local mask IP address high
HSW10042
endian 4
HSW10043 Local gateway high endian 1
HSW10044 Local gateway high endian 2
HSW10045 Local gateway high endian 3
HSW10046 Local gateway high endian 4
HSW10047 Local port address
=0, OFF (default)
HSW10201 Port mapping ON
=1, ON
HSW10202 Mapping port number Port number
=0, OFF (default)
=0, OFF (default)
HSW10203 Automa c DNS
=1, ON
HSW10204--
Automa c DNS h p require
HSW10460
2. Communication addresses
Port Descrip on Address Details
0 - 232
Communica on HSW010061 1 - 485
2 - 422
0 - 1200
1 - 2400
2 - 4800
3 - 9600
Baud rate HSW010062 4 - 19200
5 - 38400
6 - 57600
7 - 115200
8 - 230400
COM1 7 - 7 bit
Data bit HSW010063
8 - 8 bit
1 - 1bit
Stop bit HSW010064
2 - 2bit
0- None
Check bit HSW010065 1- ODD
2- EVEN
Wait meout HSW010066
Read meout HSW010067
Retry me HSW010068
Retry meout HSW010069
HMI sta on number HSW010070
PLC sta on number HSW010071
0 - 232
Communica on HSW010072 1 - 485
2 - 422
0 - 1200
1 - 2400
2 - 4800
3 - 9600
Baud rate HSW010073 4 - 19200
5 - 38400
6 - 57600
7 - 115200
8 - 230400
COM2 7 - 7 bit
Data bit HSW010074
8 - 8 bit
1 - 1 bit
Stop bit HSW010075
2 - 2 bit
0- None
Check bit HSW010076 1- ODD
2- EVEN
Wait meout HSW010077
Read meout HSW010078
Retry me HSW010079
Retry meout HSW010080
HMI sta on number HSW010081
PLC sta on number HSW010082
0 - 232
Communica on HSW010083 1 - 485
2 - 422
0 - 1200
1 - 2400
2 - 4800
3 - 9600
Baud rate HSW010084 4 - 19200
5 - 38400
6 - 57600
7 - 115200
8 - 230400
COM3 7 - 7 bit
Data bit HSW010085
8 - 8 bit
1 - 1 bit
Stop bit HSW010086
2 - 2 bit
0- None
Check bit HSW010087 1- ODD
2- EVEN
Wait meout HSW010088
Read meout HSW010089
Retry me HSW010090
Retry meout HSW010091
HMI sta on number HSW010092
PLC sta on number HSW010093
0 - 232
Communica on HSW010094 1 - 485
2 - 422
0 - 1200
1 - 2400
2 - 4800
3 - 9600
Baud rate HSW010095 4 - 19200
5 - 38400
6 - 57600
7 - 115200
8 - 230400
COM1-2 7 - 7 bit
Data bit HSW010096
8 - 8 bit
1 - 1 bit
Stop bit HSW010097
2 - 2 bit
0- None
Check bit HSW010098 1- ODD
2- EVEN
Wait meout HSW010099
Read meout HSW010100
Retry me HSW010101
Retry meout HSW010102
HMI sta on number HSW010103
PLC sta on number HSW010104
0 - 232
Communica on HSW010105 1 - 485
2 - 422
0 - 1200
1 - 2400
2 - 4800
3 - 9600
Baud rate HSW010106 4 - 19200
5 - 38400
6 - 57600
7 - 115200
8 - 230400
COM2-2 7 - 7 bit
Data bit HSW010107
8 - 8 bit
1 - 1 bit
Stop bit HSW010108
2 - 2 bit
0- None
Check bit HSW010109 1- ODD
2- EVEN
Wait meout HSW010110
Read meout HSW010111
Retry me HSW010112
Retry meout HSW010113
HMI sta on number HSW010114
PLC sta on number HSW010115
2. Communication control
Communica on Sta on Communica on
Control bit Descrip on
No. No. lamp
0~15 HSX550.0~550.15 HSX558.0~558.15
16~31 HSX551.0~551.15 HSX559.0~559.15
1
32~47 HSX552.0~552.15 HSX560.0~560.15
48~63 HSX553.0~553.15 HSX561.0~561.15
0~15 HSX566.0~566.15 HSX574.0~574.15
16~31 HSX567.0~567.15 HSX575.0~575.15
2
32~47 HSX568.0~568.15 HSX576.0~576.15
48~63 HSX569.0~569.15 HSX577.0~577.15
0~15 HSX582.0~582.15 HSX590.0~590.15
16~31 HSX583.0~583.15 HSX591.0~591.15
3
32~47 HSX584.0~584.15 HSX592.0~592.15
48~63 HSX585.0~585.15 HSX593.0~593.15
0~15 HSX598.0~598.15 HSX606.0~606.15
16~31 HSX599.0~599.15 HSX607.0~607.15
4
32~47 HSX600.0~600.15 HSX608.0~608.15
48~63 HSX601.0~601.15 HSX609.0~609.15
0~15 HSX614.0~614.15 HSX622.0~622.15
16~31 HSX615.0~615.15 HSX623.0~623.15
5
32~47 HSX616.0~616.15 HSX624.0~624.15
48~63 HSX617.0~617.15 HSX625.0~625.15
0~15 HSX630.0~630.15 HSX638.0~638.15
16~31 HSX631.0~631.15 HSX639.0~639.15
6
32~47 HSX632.0~632.15 HSX640.0~640.15
48~63 HSX633.0~633.15 HSX641.0~641.15
0~15 HSX646.0~646.15 HSX654.0~654.15
16~31 HSX647.0~647.15 HSX655.0~655.15
7
32~47 HSX648.0~648.15 HSX656.0~656.15
48~63 HSX649.0~649.15 HSX657.0~657.15
0~15 HSX662.0~662.15 HSX670.0~670.15
16~31 HSX663.0~663.15 HSX671.0~671.15 Default
8
32~47 HSX664.0~664.15 HSX672.0~672.15 se ng,
48~63 HSX665.0~665.15 HSX673.0~673.15 ON=0;
OFF=1.
0~15 HSX678.0~678.15 HSX686.0~686.15 OFF=1.
16~31 HSX679.0~679.15 HSX687.0~687.15 normal=0;
9 error=1
32~47 HSX680.0~680.15 HSX688.0~688.15
48~63 HSX681.0~681.15 HSX689.0~689.15
0~15 HSX694.0~694.15 HSX702.0~702.15
16~31 HSX695.0~695.15 HSX703.0~703.15
10
32~47 HSX696.0~696.15 HSX704.0~704.15
48~63 HSX697.0~697.15 HSX705.0~705.15
0~15 HSX710.0~710.15 HSX718.0~718.15
16~31 HSX711.0~711.15 HSX719.0~719.15
11
32~47 HSX712.0~712.15 HSX720.0~720.15
48~63 HSX713.0~713.15 HSX721.0~721.15
0~15 HSX726.0~726.15 HSX734.0~734.15
16~31 HSX727.0~727.15 HSX735.0~735.15
12
32~47 HSX728.0~728.15 HSX736.0~736.15
48~63 HSX729.0~729.15 HSX737.0~737.15
0~15 HSX742.0~742.15 HSX750.0~750.15
16~31 HSX743.0~743.15 HSX751.0~751.15
13
32~47 HSX744.0~744.15 HSX752.0~752.15
48~63 HSX745.0~745.15 HSX753.0~753.15
0~15 HSX758.0~758.15 HSX766.0~766.15
16~31 HSX759.0~759.15 HSX767.0~767.15
14
32~47 HSX760.0~760.15 HSX768.0~768.15
48~63 HSX761.0~761.15 HSX769.0~769.15
0~15 HSX774.0~774.15 HSX782.0~782.15
16~31 HSX775.0~775.15 HSX783.0~783.15
15
32~47 HSX776.0~776.15 HSX784.0~784.15
48~63 HSX777.0~777.15 HSX785.0~785.15
0~15 HSX790.0~790.15 HSX798.0~798.15
16~31 HSX791.0~791.15 HSX799.0~799.15
16
32~47 HSX792.0~792.15 HSX800.0~800.15
48~63 HSX793.0~793.15 HSX801.0~801.15

You might also like