Manual LevistudioU PDF
Manual LevistudioU PDF
HMI So ware
Human Machine Interface (HMI) Programming So ware, It is a HMI programming tool.
This Help document will brifly introduce the func ons, programming process for the so ware.
Software Homepage
Start so ware:
Figure 1
1. Decompile:
HMI project copied from HMI need to be de-compiled first.
Figure 2
Property Descrip on
HMT File Select exis ng HMT file from local folder.
Save to Saving loca on of decompiled HMI project.
Require password if the uploaded project comes with designer
Project Password
password.
2. Udisk Download:
Hold right top corner of HMI for 5 seconds to enter [Setup Screen].
Figure 3
Property Descrip on
Select HMI project file which end with "HMI", this project file
will be downloaded to HMI via USB disk (Insert USB Disk to
Project file HMI , then go to [Setup Screen] of HMI, then click [Copy
HMT]).
Select Firmware file which end with "OSF",this firmware file
will be downloaded to HMI via USB Disk(Insert USB Disk to
Firmware file
HMI, then go to [Setup Screen] of HMI, then click [Update
OSF]).
Demo Projects
Various small demo projects are provided to illustrate several aspects of using the HMI programming.
All of the demo projects are exis ng in [Demo Projects] which under so ware installa on folder.
Functions:
1. Anima on
2. Change Screen by Address
3. Data Record to UDisk
4. Discrete Recipe
5. File List Recipe
6. Simple Recipe
Script:
7. Four Arithme c Opera ons
8. Timer
9. Determine
Extensions:
10. User Restric on
11. Short Message
Communication:
12. Open CAN
13. Siemens S7-1200 Ethernet
14. User-Defined Protocol
15. Modbus RTU-Client
16. Modbus RTU-Host
17. Modbus TCP_Host
18. Modbus TCP_Client
19. Mul Link_Client
20. Mul Link_Host
Start a new project
The new project can be created by selec ng [Project]-[New Project] form the menu bar, or clicking the [New Project] on tool bar.
Location and Name:
Figure 1
Project Properties
1. Select template, the project will be created as the template se ng.
2. Customize the ini al screen and project style.
Figure 2
There are four parts in Project Manager, including Project Screen, Built-in screen, Project Setting, Library and Script.
1. Project Screen: All screens in this project.
2. Built-in scree: All built-in screens in this project, including Common Screen, Keypad Screen etc.
3.Project Proper es:The project configura on informa on, for example, screen style, recipe, bit alarm, data record, ect.
4. Library: library informa on includes address, text, gallery and font.
5. Script: global script, global func on and background script can be configured to achieve advanced func on.
Figure 3
The HMI model can be changed by selec ng [Se ng]- [project proper es].
Figure 4
Screen Desing
Project editor is a integrated development environment that combine the project management and screen design, user can design a new screen a er
the project created.
Figure 1
Add Screen
The new screen can be created by clicking “new screen” on the tool bar.
Figure 1
Figure 2
Add Bit Switch
Add objects to the screen, to meet the different requirement of automa on control.
Select [Bit switch] from [objects Library].
Le click on screen to locate the posi on of "Objects" , then drag mouse to define a area for the object, le click again to finish adding the bit switch.
Double click the "Objects" to edit its proper es.
Figure 1
Address Setting
Edit the proper es by double click the “Object” to open the proper es window.
The address can be entered manually or edited by address editor.
Figure 1
Appearance
The appearance se ng can be found in [Object Proper es] - [Graphic].
Some picture can set different colors for different states.
Figure 1
Figure 2
Gallery
Select [Use picture]- [Object Proper es] - [Graphics] to customize the switch appearance.
Figure 1
Double click to select the picture from the gallery.
Figure 2
The pictures used in the project are all shown in the gallery.
Figure 3
Property Descrip on
Import Picture Import the picture to the project.
Import/Export Export Picture Export the picture from the project to local folder.
Export Gallery Export the en re gallery from the project.
New Create a mul ple state picture.
Mul -States
Edit Edit a mul ple state picture.
Edit Transparency To make designated color transparent.
Add Bit Lamp
1. Add a bit indicator to the screen.
2. Set the read address corresponding to the device.
3. Set the suitable appearance for bit lamp.
Figure 1
Add Text
1. Add text for the bit switch to dis nguish from others.
2: Double click the object, enter “Hello World” in the text box.
Figure 1
Add Bit Alarm
Add the Bit Alarm from [Property Se ng]-[Project Se ng]-[Bit Alarm] o r click [se ng]-[Bit Alarm] on menu bar to add bit alarm.
Set the alarm bit address, trigger mode and other alarm informa on.
Figure 1
Place the alarm bar on the screen, the alarm text will display when the state of the bit address meet the demand of the trigger mode.
Figure 2
Compile
Click [Tool]-[Compile] or select the icon on the toolbar to start compiling.
The project needs to be compiled before downloading or running simulator:
Checking the error exis ng in project.
Op mizing project to make the screen running faster on the HMI.
Processing the project fronts.
Compiling the HMI project to create project file with extension "HMT", which can be recognized by HMI.
Project Download/Upload
project download/upload is a process to transfer compiled project file to the HMI, via serial cable,USB cable or U disk.
1. Connect HMI with PC via proper download cable,before downloading.
2. HMI will enter download mode automa cally,a er HMI connected.
3. C lick [Tool]-[Download] on menu bar to open "Download Tool".
Figure 1
4. The "Download Tool" can be found on so ware installa on folder.
Figure 2
property Descrip on
The port on PC used to connect with HMI (serial cable or USB
Download
cable).
Baud rate 115200 bps by default.
Select a file type to download to HMI, including project file,
File type
recipe,Firmware.
Uploading password. go to {Project Proper es]-[Screen Security]-
Password
[Designer password]to set the password.
Advanced
The selected items will not be deleted during downloading.
Se ng
HMI->PC Upload project file from HMI to PC.
PC->HMI Download file from PC to HMI.
Recalibra on Recalibrate HMI touch screen.
Sync HMI me Update the HMI system me with PC me.
HMI version Check the HMI firmware version.
5. Restart HMI to take effect by clicking a er HMI project downloaded.
Recipe Download/Upload
Recipe upload/download is the process to download recipe file , Select [File Type] as "Recipe File" then click [HMI->PC] or [PC->HMI].
Figure 1
Simulation
HMI programming so ware provide two types simula on to user : Offline simulator and online simulator.
Offline simula on:[tool]-[offline simula on]
Online simula on:[tool]-[online simula on]
Of line Simulation
Offline simula on is the process to simulate the HMI project without any connec on, the project opera on can be simulated on PC before
downloading to HMI.
Online Simulation
Online simula on is a process to simulate HMI project with external device connec on, it enables the connec on between Device and PC without
connec ng HMI. The project file can be edited before downloading and greatly saves me
there is a 30-minute online simula on limit.
New Screen
Click [screen]-[new screen] to add a new screen, or choose new screen from the toolbar.
Figure 1
Figure 2
Figure 3
Property Descrip on
Screen No. Screen number can only contain 0~9.
Name Screen name can only contain 0~9, a~z.
Screen security User can set the security level of screen.
Background Screen background se ng.
Sub-screen Set the screen as sub-screen.
Screen and Sub-screen
Basic screen can be displayed on HMI, sub-screen can only be displayed based on basic screen.
The difference between basic screen and sub-screen:
Figure 1
Screen Properties
Screen number should be unique.
Open screen proper es dialog to edit its proper es.
Figure 1
Right click on the working area, select [screen proper es] to edit screen proper es.
Figure 2
Copy Screen
Copy a new screen from local project or other exis ng project.
Figure 1
No ce: the picture cannot be copied automa cally when copy the screen.
Figure 2
Property Descrip on
Local Copy screen from current project.
System Copy screen from current built-in project, like keypad screen etc.
Others Copy the screen from other exis ng project.
Screen List All of the screens in this project.
Preview Preview of selected screen.
Screen No. The number for copied screen, it should be unique.
Screen name The name for copied screen.
General
Click [Se ng]-[Project Proper es]-[General] to edit HMI general proper es, including HMI model, Startup screen, Screensaver, Screen control etc.
Figure 1
1. Device type:Select proper HMI Model.
Property Descrip on
Save data record to HMI internal FLASH, only supply 30M for data
HMI FLASH
storage
CF/SD Card Save data record to CF/SD Card (Capacity<4GB)
U Disk Save data record to U Disk (Capacity<4GB)
3. Backlight se ng:HMI backlight se ng.
Property Descrip on
Backlight Auto sleep a er designated me of inac vity.
se ng Invalid when alarm: HMI will not sleep when alarm is ON.
Backlight
HMI will sleep when control bit is ON.
control
Alarm
When backlight is enabled, HMI keep sleeping when alarm is ON.
screensaver
Response
The minimum me interval for clicking touch screen.
me
4. Data Setting
Property Descrip on
HMI name HMI name
Floa ng Floa ng data format se ng, li le-endian by default.
5. Startup Screen:The first screen displays on HMI when HMI started.
Property Descrip on
Address Use the designated address to control the screen display.
The length address, 1 by default.
Length The first address: control screen display.
The second address: Switch display language (length=2).
Write address Save current screen display.
7. Screensaver se ng:Set wait me and screensaver.
8. Others
Property Descrip on
Hide “NC” when me
Hide “NC” when me out.
out
Gray font To make font display more clear.
Custom password
Use customized password keypad (No.:1004).
keypad
Hide password keypad
Hide password keypad le when use .
le
Hide character keypad
Hide character keypad le when use.
le
Hide password keypad
Hide password keypad le when use.
le
Quick update Quick update the address informa on priority.
Keep pressing(for 5 seconds) on right top corner of screen
A er startup
to enter setup screen.
Before startup Enter setup screen before startup.
Valid when “Print Save the alarm message to buffer
record” is
Print buffer
enabled (alarm which
will be sent to printer later.
Buffer size: 200 by default (0-1000).
se ng).
Unencrypted data The created data record file is not encrypt.
record
Communication
Click [Se ng]-[Communica on] to edit the communica on parameters of HMI or PLC.
Figure 1
Proper es Descrip on
Device New Add new port and protocol.
Connec ons Delete Delete the selected protocol.
Se ng Edit selected protocol.
Sta on No. HMI No. Set HMI sta on No. (0 by default).
PLC No. Set PLC sta on No. (by default).
Mul -link Host Device Set HMI as host device.
Client Device Set HMI as client device.
COM Connect:RS232,RS485,RS422
(COM2 cannot support RS422 connec on).
Se ng
Parity bits:EVEN ODD SPACE NONE
Data bits: 7 or 8.
Device IP Device IP Set the device IP Address.
Port No. Set port number.
TCP_Client_2N:TCP protocol, PLC mul -link .
Network UDP_Client_2N:UDP protocol,PLC mul -link .
TCP_Server: TCP protocol,HMI server.
Timeout Wait
HMI wait PLC response.
meout(ms)
Receive
The max me between HMI receive the character.
meout (ms)
Retry mes Retry mes when communica on meout.
Sequen al (0: default length 10), read or write the sequen al
Length length of device address.
Peripheral Peripheral device which can work with HMI,
including Mini printer, serial keyboard etc.
PLC Debug PLC debugging parameters se ng.
Change the The communica on parameter do not change
protocol only when choose a new protocol.
User-defined
Se ng about User-defined protocol.
protocol
CAN Se ng about CAN protocol.
HMI IP
Click [Se ng]-[Project Proper es]-[HMI IP] to set HMI IP address.
Figure 1
Proper es Descrip on
HMI IP se ng Set HMI IP address.
WebSever Enable webserver func on.
Default server port Default network port number.
Enable password protec on on webserver webpage, require
Password password when user access the webpage.(Set user name and
protec on password in the UserASP/USER.ASP of so ware installa on
folder).
Folder of ASP file The loca on to save the webpage file of webserver.
Instalment
The HMI requires the password when it reach expire me.
Click [Se ng]-[Project Proper es]-[Instalment].
Figure 1
Proper es Descrip on
Instalment Enable instalment.
Max. payment Set the maximum number of payments.
Admin. password The admin password can be used for any payments in this project.
Input the password for each payment, HMI pop up password window
No.1-12
when me has come. (Password contain at most 8 digit from a~z, 0~9.
Close password screen Trigger to close “instalment password screen”.
Open password screen Trigger to open “instalment password screen”.
No ce when expire me is Remind before the expira on me.
coming
Custom instalment screen Allow se ng the new password for new payment.
Figure 2
2.Modify installments informa on on HMI interface. Select “instalment”in the “Func on Switch” .
Figure 3
Display instalment screen when click the func on switch.
Figure 4
Select [Instalment]-[Custom instalment screen] to enable system built-in screen No. 1009 and No. 1010.
No ce: Do not change the address of objects in “custom instalment screen”.
Figure 5
Dynamic Instalment Password
HMI only need “Key” (for first payment) and ”Date” to generate “Password”. So if someone open the original project of HMI, even they cannot get
the right key for rest of payments.
Set the “Key” and “Date” in the project when use “dynamic instalment password”.
Figure 6
For example:
Date: 2018-10-10
Key: 0d809192
Next expire date: 2018-10-10 (HMI display password screen when data reach 2018-10-10 ).
No ce:
1. Key can only contain 6 digits, from 0~9, a~z.
2. Date format: 2014-12-12.
Security
HMI provides 3 kinds of protec on: Screen Security, Bu on password and Parts security.
Screen security: Input the password to access the screen.
Bu on password: The screen is automa cally locked a er designated me of inac vity.
Parts security: Input password to operate the objects with corresponding level.
Figure 1
Parts Security
HMI require password when opera ng protected objects. The parts security protects the equipment from false opera on without permission.
Click [se ng]-[Project Proper es]-[Parts security] to open the following dialog.
There are 12 security levels in the parts security; the higher level means the higher authority. In most case, HMI require password when operate
object with the higher security level. HMI will always require password when select “Each level independent” .
Figure 1
Proper es Descrip on
Parts security Enable parts security.
Level 1 security passwords, System Address
Level 1
HSW452~HSW455, 8 bytes.
Level 2 security passwords, System Address
Level 2
HSW456~HSW459, 8 bytes.
Level 3 security passwords, System Address
Level 3
HSW460~HSW463, 8 bytes.
…… ……
Ini ate level Default level when HMI startup.
Each level HMI always require password when operate all objects with
independent different part security level.
Objects proper es
HMI always require password when operate all objects, even
“Always require
all objects with same part security level.
password”
Screen Security
HMI require password when accessing protected screen with higher level. The screen security protects the screen from false opera on without
permission. Screen security is available for both basic screen and sub screen.
There are 12 security levels in the screen security; the higher level means the higher authority. In most case, HMI require password when access
object with the higher security level. HMI will always require password when select “Each level independent”.
Click [se ng]-[Project Proper es]-[Screen security] to open the following dialog.
Figure 1
Proper es Descrip on
Level 1 Level 1 security passwords ,System Address HSW404~HSW407, 8 bytes.
Level 2 Level 2 security passwords ,System Address HSW408~HSW411, 8 bytes.
Level 3 Level 3 security passwords ,System Address HSW412~HSW415, 8 bytes.
…… ……
Ini al level Ini al level of HMI when startup.
Valid Level The maximum level will be enabled.
HMI always require password when accessing the screen with different
Each level independent
security level.
No ce: The password should not contain more than 8 bytes.
Edit the screen proper es to set its security level.
Figure 2
Screen Lock
Set HMI to automatically lock itself after a specified period of inactivity. Once the set period of time expires, the computer will be locked
and enter the password to unlock it.
In most case, add the “Function Switch”(with full screen size) to “Common screen”.
Figure 1
Set a specified period of inactivity in [Setting]-[Project Properties], enter the password and time.
Figure 2
Extensions
HMI provides some special func ons to HMI, it is op onal, select the func on if needed.
Figure 1
User Restriction
General
HMI allows accessing by mul ple 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.
Figure 1
Add “New Group” to following dialog.
Figure 2
Figure 3
Set the password for each user, then add the user to exis ng group.
Figure 4
Or create a “New group”, then select exis ng user in following list.
Figure 5
Figure 7
User Permission
Figure 8
Figure 9
TTS Function
Setting
1. TTS func on require addi onal voice module.
2. Click [Se ng]-[Project Proper es]-[Extensions] to enable “TTS func on”.
Figure 1
Audio Setting
Figure 2
Figure 4
1. Priority: the higher priority the have the priority when mul ple trigger at same me.
2. Content: input the content in the text box.
3. Personaliza on: Audio style can be set separately when start.
4. Preview: Listen test. (No ce:need to link the usb to interface that have TTS module, only can preview first 50 characters)
5. Control Bit: Insert the character to current text box.
6. Import alarm: Insert the alarm content.
Control bit
Figure 5
1. Trigger by fixed: cycle.
2. Trigger by bit: audio output when the trigger address meet demand. Cycle trigger when ON and OFF.
3. Alarm clock:24-hour,trigeer by me.
Text Label
Figure 6
1. Number processing mode: the number will pronuncia on a er insert.
2. Prompt tone: prompt tone when come across the sign.
3. Variables: pronounce according to the variables address.
Edit variable
Figure 7
Figure 8
Picture
All pictures of project can be found in [se ng]-[Gallery].
Picture could be:
1. Single state picture.
2. Mul -state picture.
3. GIF format picture.
Gallery
User could use customized pictures from “Gallery”.
Two types of pictures in Gallery:
1. User picture: Import picture by user.
2. System picture: So ware provide the different kinds of picture for user programming.
Select from [se ng]-[gallery].
Figure 1
Proper es Descrip on
Import Import picture from PC.
Export Export picture to PC.
Export gallery Export full gallery to PC in blb format.
New: Create a new mul -states.
Mul -states
Edit: Edit exis ng mul -states.
Selec on Select or unselect a picture.
Transparent Make designated color transparent.
Rename Rename picture (name must be unique).
Delete Delete picture that choose currently.
Empty Delete all of picture in Gallery.
Close Close Gallery window.
Add Picture
Add pictures to [gallery]:
1. Import a picture from PC.
2. Create a new mul -states.
3. Select picture from so ware built-in gallery.
Figure 1
New Multi-states
Mul -states consist of common pictures , those pictures should be added to mul -sates in certain order.
Click [se ng]-[gallery]-[new mul -states].
Figure 1
Property descrip on
Name Name of new picture.
Total states Total states of new picture, support up to 32 states.
Transparent Make designated color transparent.
R/G/B The digital of transparent color.
Drag mouse to pick
Select the color.
color
Width/height The size of selected picture.
Insert Insert picture to mul -states.
Delete Delete picture from mul -states.
Ok Save changes to mul -states.
Cancel Cancel and close the dialog.
Select Picture
Select a picture for the object from “Gallery”.
No ce: unable to select both vector and picture in one mul -states.
Figure 1
Address
1. Address length:
Word address: each address occupies 16 bits.
Byte address: each address occupies 1 bit.
2. Address type:
Internal address of HMI: HMI local address, including HDW/HDX,HSW/HSX and so on.
Device address: PLC address or other peripheral device.
Address Format
HMI support connec ng with PLC devices by different COM port, also support one COM port to communicate with more than one device;
[Connec on] #[ Sta on No.] :[Address]
Connec on: COM port number ( range 1-3).
Sta on No. :To mark the different device in same COM port.
Address: Device address number.
No ce:
Connec on and sta on number can be omi ed.
*for examplae “A#B:C”means that connec on number is “A” , sta on number is “B”and access address “C”.
Address Editor
Address editor is a dialog to edit address, including connec on, sta on number and address of device.
Figure 1
Property Descrip on
PLC sta on No. Set device sta on number for address.
Input directly The address is inpu ed by user.
From address library Choose address from address library.
System reserved Choose address from the system address.
address
Connec on COM port number ( range 1-3).
Address type Choose address type.
Address No. Choose address number.
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.
Figure 1
Property descrip on
Word address List of all predefined word addresses.
Bit address List of all predefined bit addresses.
Objects List
List of all addresses in current project, user can see the all of usage address.
Click [View]-[Objects list] from the menu bar.
Figure 1
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.
Function:
1. Mapping Mode(Read only): Des na on address only read the value from source address.it is unable to write value to source address.
2. Mapping Mode(Read/Write):The value of source and des na on address always keep same.
3.Mapping control: Set the control bit to start or stop mapping.
4. The maximum length of mapping group is 2048.
Font Library
Support all of Windows font display in HMI screen, allow adding up to 32 kinds of font display in one project.
Click [Se ng]-[Font library] on the menu bar.
Figure 1
Property Descrip on
List List of font type in font library.
Font name Font name of selected font.
Size Font size of selected font
Example Preview of selected.
Custom Font
Objects can use custom font.
Click [Font] on object [text], click [new] to add a new font.
Figure [
Figure 2
Property Descrip on
Font name Font name (must be unique).
Font Current selected font.
Style Font style, including Regular, Bold, Italic, Bold Italic.
Size Font size.
Text Library
Text library contains commonly used text. It avoids se ng the text repeatedly.
Click [se ng]-[Text library] to open the following dialog.
Figure 1
Property Descrip on
ID Automa c ID for the predefined text.
Language1 The first language content (256 bytes).
Language2 The second language content (256 bytes).
Language3 The third language content (256 bytes).
Figure 2
Current Language
Select the display of screen from the tool bar.
Figure 1
Use Text Library
Objects can be added text from text library.
There are two types of text library:
1. Click [se ng]-[text library] to select the proper text you need;
2. Choose [text] label on bit switch, then select [from text Library]-[text library].
Figure 1
Figure 2
Bit Switch (General/Text/Graphics/Security/Animation)
General
Bit switch is to access the bit-address of the PLC/ HMI. When bit switch is triggered, the changing of [write address] depends on the mode se ng.
When [read] op on 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.
Settings
Figure 1
Figure 1
Classifica on Proper es Descrip on
Read
Read the value from set address.
Address
Same Read-
The value of [Read Address] is equals to [Wri ng
Edit Write
Address].
Address
Write
Edit the value of Address for the device.
address
Data Format Data Format
The Data Format of the Object.
Length The data length of the Object.
Set value Set a constant value for the word address.
Increase the [operand] value for each me the switch
Increase
triggered.
Decrease the [operand] value for each me the switch
Mode Decrease
triggered.
Operand The variable for each opera on.
High Limit The value will not increase when the value is reached.
Low Limit The value will not decrease when the value is reached.
Keypad Switch (General/Text/Graphic)
General
Keypad switch is a manual data input object; this part must work with the Keypad.
User can assign le ers or numbers for each switch, when the switch is triggered the data will input to the textbox.
Settings
Figure 1
Classifica on proper es descrip on
Enter Corresponds to [enter] on keyboard.
Delete Corresponds to [Delete] on keyboard.
Clear Corresponds to [Clear] on keyboard.
ESC Corresponds to [ESC] on keyboard.
Symbol For the symbol input.
Func on Switch Change the input mode between Chinese and English.
Switch Pinyin
UP/Down Page up/down for Pinyin input.
Chinese
Page up/down for Chinese input.
UP/Down
Pinyin 1~3 Select Pinyin from designated number.
Chinese 1~6 Select Chinese from designated number.
Input N/A Set input value in ASCII code.
Slider Switch (General /Graphics)
General
Change the address value from the slider posi on.
*For example: set the high and low limit for a slider as 0-100; read-write address as HDW0, when the slider moves to the middle of the switch, the
value of HDW0 is 50.
Settings
Figure 1
Classifica on Proper es Descrip on
Read- write Read and write for the designated address.
Length The length of the read-write address.
Data format The data format for the read-write address.
Dynamic limits The limits of value will read from address.
Decimal point N/A
Min scale The minimum operand for each opera on.
Display
General Slider movement direc on.
direc on
Set constant operand for each opera on.
*For example, scroll value is set as 10, every me slides
Scroll mode
the switch the data value will increase or decrease a
constant value of 10.
Show limits Show the limits on the slider
Write now Out the value in real me.
Show value Display the slide value on the le side of the switch.
Block width Set the width of the slider.
Slider
Block color Set the color for the slider.
Function Key (General/Text/Graphics/Security/Animation)
General
Func on key can implement func ons like switch between different screens, copy data to UDisk, file transfer, ect.
Settings
Figure 1
Classifica on Proper es Descrip on
Des na on Screen No.
Switch to the selected screen.
screen
Previous
Switch to previous screen.
screen
Next screen Switch to next screen.
Return Return to last screen.
File transfer Transfer file to designated loca on.
Copy data
Transfer data from CF/SD to Udisk for data backup and
from CF/SD
alarm recording.
to UDisk
Copy data
Others from Transfer data from FLASH memory to Udisk for data
FLASH to backup and alarm recording.
UDisk
Pop-up Pop-up designated sub-screen, relevant pop-up window
window se ng can be found underneath.
Input data from pop-up Keypad, if the physical data input
Password
is over me.
Instalment Pop-up the instalment window instantly.
Close
Close current sub screen.
window
Display or Hide the Object.
*Func on Key is not operable when [hide] is selected, to
Display Hide set the switch operable while hide, go to [Se ng]-
se ng [Project Proper es] – [operability of hiding se ng], and
select [enable] op on.
Invisible Keep the func on switch hided.
Screen No. Pop-up the designated screen.
Title Display or hide the tle bar.
Pop-up
window The pop-up window will display on the designated
Posi on posi on.
Mode Pop-up window can close with the main screen.
Source
Select the folder need to be transferred.
folder
Des na on Select the folder to save the file.
Select the folder to save the file.
folder
Udisk :\Udisk\
Flash:\Flash\
SD: \CFDC\
C Disk: C:\
Use *.* at the end of the route to transfer all files under
the folder, shown as following
File transfer
File transfer
descrip on
Recipe Transfer (General/Text/Graphics)
General
Recipe transfer is designed for reading and wri ng the recipe address, over write will replace the current address.
Setting
Figure 1
Classifica on Proper es Descrip on
Transmission Upload Transfer the data to the designated recipe.
mode Download Write the recipe to designated address.
Enable
N/A Please refer to Parts Security
password
User
N/A Please refer to User Restric on
restric on
Combination Switch (General/Text/Graphics/Security/Animation)
General
Individual func ons can be added to one object, to implement mul ple tasks at the same me.
*For example, add “set bit” and “des na on screen” to a combina on switch, when press the switch, it will trigger a bit switch while switch to
another screen.
Settings
Figure 1
Classifica on Proper es Descrip on
Timing System will trigger the object periodically depends on the
N/A
transfer set me.
Control bit N/A Trigger the object by designated address.
Set bit Set ON the designated address.
Reset bit Set OFF the designated address.
Invert the designated address, for each me the Switch is
Invert bit
triggered.
Copy mul ple con nues addresses, the address number
Bit copy
needs to be set.
Des na on
Switch to designated screen.
screen
Func on
Se ng data Set mul ple data, the data volume needs to be set.
Value copy Copy mul ple data, the data volume needs to be set.
Recipe
N/A
download
Recipe
N/A
upload
Perform adding, subtrac on, mul plica on, division,
Calcula ons complementa
on calcula ons to designated addresses.
Numerical input/ display (General/Graphics/Security/Advanced/Animation)
General
Numerical input/ display in designated data format, the data is scalable.
Settings
Figure 1
Figure 1
Classifica on proper es descrip on
Read-write Read 2 words Read 2 bytes data simultaneously.
Display Length The address length of the read or write address.
Display in
reverse order N/A
Reverse the order of high byte and low byte.
*The descrip on of other items, please refer to “Numeric Input/Display”.
Log Display
General
The object is designed to display and browse the opera on log.
Figure 1
Settings
Classifica on Proper es Descrip on
Log
The file loca on to view the log.
source
The address is aiming for receive func on code to interact with the HMI.
The func on code shown as following:
Mode 1: page up
2: page down
Address
3:front page
4:last page
5:search
6:cancel the search
Set the start me for the query period.
Start me For example, set the start me as HDW10(HDW0~HDW15 will be occupied )
Query
HDW0:year,HDW11:month,HDW12:day,HDW13:hours:HDW14:minute,HDW15:second.
End me Set the end me for the query period.
Alarm record display (Graphics)
General
Check recorded alarm, the me span set by the user, and the alarm record will list by the me sequence.
Figure 1
Settings
Figure 2
Figure 4
If the start address set as HDW100 the next 15 address perform the following func ons.
Address Address type Func ons remark
HDW100 Start me: year
HDW101 Start me: month
HDW102 Start me: day
HDW103 Start me: hour
HDW104 Start me: minute
Word address
HDW105 Start me: second
HDW106 Time interval: day
HDW107 Time interval: hour
HDW108 Time interval: minute
HDW109 Time interval: second
HDX110.0 Refresh Auto reset
ON:keep refreshing
HDX110.1
OFF:stop refreshing
HDX111.0 Page up
HDX111.1 Bit address Page down
Page up in the designated Auto reset
HDX111.2
range
Page down in the designated
HDX111.3
range
History alarm (General/Graphics)
General
All alarm records are displayed, data includes alarm me, clear me. History alarm record will erased a er HMI powered off.
Settings
Figure 1
Classifica on Proper es Descrip on
Show me N/A Display alarm me and clear me.
Display alarm me and clear me by selected
Show date N/A
order.
Display in reverse
Alarm se ng order Reverse display the alarm order.
Alarm Bar
General
Scroll the alarm informa on on HMI.
Settings
Figure 1
Classifica on proper es Descrip on
Text speed N/A Set the scroll speed.
Transparent N/A Set the display background.
Date N/A Date format.
Time N/A Time format.
Alarm display (General/Graphics)
General
This func on will list the current alarm informa on.
Settings
Figure 1
classifica on Proper es Descrip on
Show me N/A Display alarm me and clear me.
Show date N/A Display alarm me and clear me by selected order.
Hide box when
N/A Hide alarm informa on a er the alarm reset.
alarms reset
History Disk Record Display
General
The data is recorded in cache and displayed in disk diagram.
Figure 1
Settings
The history disk record is able to record only one data group, maximum 4 data type, each data type corresponds to one disk curve.
Figure 2
Classifica onProper es Descrip on
The line type and color is editable for each curve number
Total N/A
selected.
Channel Select channel number needs to be displayed.
Enable No.
Data range The record data range.
Curve se ng N/A Select the curve number needs to be edited.
Trend Display (percent) (General/Graphics)
General
Trend graph will visualize the data as the percentage trend.
Settings
Figure 1
Classifica onProper es Descrip on
The line type and color is editable for each curve number
Total N/A
selected.
Channel Select channel number needs to be displayed.
Enable No.
Data range The record data range.
Curve se ng N/A Select the curve number needs to be edited.
Data Record Display
General
The data recorded can be displayed, queried as commanded and shown as a table.
Setting
Select [menu bar]N/A [se ng]N/A[data record] to add the data group.
Figure 1
The record and save interval, trigger condi on can be edited.
Figure 2
Advanced mode is able to change the query condi ons from designated addresses, the ‘’start address” need to be set to ac vate the func on, the
following 21 adjacent addresses will be occupied, but only 16 addresses are func onal.
Figure 3
Address Address type Part type func on
HDW0 Start me: year
HDW1 Start me: month
HDW2 Start me: day
HDW3 Start me: hour
HDW4 Start me: minute
Word address Numerical display
HDW5 Start me: second
HDW6 Time interval: day
HDW7 Time interval: hour
HDW8 Time interval: minute
HDW9 Time interval: second
HDX10.0 Require auto print
HDX10.1 Bit address Bit switch Confirm auto print
HDX10.2 Query for prin ng
HDW11 Time interval for auto print
HDW12 Start row for prin ng
Word address Numerical display
HDW13 End row for prin ng
HDW14 Query for print interval
HDX15.0 Page up for a set number
HDX15.1 Page down for a set number
Bit address Bit switch
HDX15.2 Page up
HDX15.3 Page down
HDW16 N/A N/A
HDW17 N/A N/A
HDW18 Word address N/A N/A
HDW19 N/A N/A
HDW20 N/A N/A
When the project is opera ng, hold the part for 2~3 seconds to ac vate the query me.
Figure 1
Classifica on Proper es Descrip on
The line type and color is editable for each curve number
Total N/A
selected.
Channel Select channel number needs to be displayed.
Enable No.
Data range The record data range.
Curve se ng N/A Select the curve number needs to be edited.
History curve display (General/Graphics)
General
The real- me data in HMI cache will display curve graph, which X axis represent as me, Y axis represent as data.
Settings
Figure 1
Classifica on Proper es Descrip on
The line type and color is editable for each curve
Total N/A
number selected.
Enable Channel No. Select channel number needs to be displayed.
Figure 2
Classifica on Proper es Descrip on
Variable curve The curve will change dynamically as the data
N/A
No. change.
X axis The number of box on X axis.
Other Y axis The number of box on X axis.
style Choose the direc on to move the object.
Data range N/A The variable range.
Figure 3
Advanced mode is able to change the query condi ons from designated addresses, the ‘’start address” need to be set to ac vate the func on, the
following 21 adjacent addresses will be occupied, but only 16 addresses are func onal.
Figure 4
Address Type Part func on
HDW100 Start me: year
HDW101 Start me: month
HDW102 Start me: day
HDW103 Start me: hour
HDW104 Word
Numerical display Start me: minute
HDW105 address Start me: second
HDW106 Time interval: day
HDW107 Time interval: hour
HDW108 Time interval: minute
HDW109 Time interval: second
HDX110.0
HDX110.1
HDX110.2
HDX110.3
Bit address Bit switch Whether to display 0-7 the curves
HDX110.4
HDX110.5
HDX110.6
HDX110.7
HDW111 Maximum data range
HDW112 Word Minimum data range
Numerical display
HDW113 address Movement interval
HDW114 Print percentage
HDW115.0 Refresh
Bit address Bit address ON:keep refreshing
HDW115.1
OFF:stop refreshing
History XY Plot (General/Graphics)
General
The data in cache will display as con nuous curve or separated points, each point in XY plot needs 2 addresses to set a point.
Setting
Figure 1
Figure 2
Figure 3
Classifica on Proper es Descrip on
The Maximum and minimum value displayed on
X limits
X axis.
The Maximum and minimum value displayed on
Y limits
Y axis.
The X high limit value will determined by the
X high limit
designated address.
Data range
The X low limit value will determined by the
X low limit
designated address.
The Y high limit value will determined by the
Y high limit
designated address.
The Y low limit value will determined by the
Y low limit
designated address.
Discrete point:the XY graph will displayed as
Style separated dot.
Junc on:the XY graph will displayed as a curve.
1 point:a point is displayed as 1 pixel.
2 point:a point is displayed as 2 pixel.
other Point type
3 point:a point is displayed as 3 pixel.
5 point:a point is displayed as 5 pixel.
X axis grids The grids number on X axis.
Y axis grids The grids number on Y axis.
Clear Clear the display.
XY Plot (General/Graphics)
General
The real me data in cache will display as con nuous curve or separated points, each point in XY plot needs 2 addresses to set a point.
Setting
Figure 1
Figure 2
Figure 3
Classifica on Proper es Descrip on
Auto sampling Sampling me Auto record me interval.
XY amplifica on Amplifica on Enlarge the scale of the XY axis.
Sampling control Control bit The switch to control the sampling.
Discrete point:the XY graph will displayed as
Style separated dot.
Junc on:the XY graph will displayed as a curve.
1 point:a point is displayed as 1 pixel.
Data range 2 point:a point is displayed as 2 pixel.
Point type
3 point: a point is displayed as 3 pixel.
5 point:a point is displayed as 5 pixel.
X axis grids The grids number on X axis.
Y axis grids The grids number on Y axis.
Trend Graph
General
Trend graph shows the data as a dynamic curve, the X axis represent the me, Y axis represent the data.
Figure 1
Press “S” icon or hold the graph for 2~3 seconds. The following se ng will show up.
Figure 2
Setting
Figure 3
Classifica on Proper es Descrip on
The line type and color is editable for each curve
Total N/A
number selected.
Line type N/A
Enable
Line color N/A
Variable curve The curve number will be determined by designated
Curve No. No. address.
Curve se ng Select the curve number needs to be edited.
Custom User is able to change the se ng UI, but the address
se ng screen N/A changing is not recomanded.
Figure 4
Classifica on Proper es Descrip on
Data range N/A The data range for the graph can be set as a variable.
The color for high and low limit, and line type can be
Alarm color N/A
set.
Advanced mode N/A Refer the table down blow.
Clear screen N/A Clear the display by pressing the bit switch.
Total points The maximum point shown on one graph.
X axis The number of box on X axis.
Y axis The number of box on X axis.
Others
Show scale N/A
Scroll bar N/A
Hide Y axis N/A
Rotating Picture
General
Display the data change by rotate the corresponding picture (only support bmp format), user can set rota on centre, direc on, angle ect.
Figure 1
Settings
The picture selected cannot be scaled in this func on.
?2
Classifica on Proper es Descrip on
Angle
N/A Scale the rota on angle by the set data.
propor on
Counter
N/A N/A
clockwise
Transparent N/A Delete the selected color in picture.
Data
Unsigned, BCD, signed, 32bits floa ng.
format
Data format Min. Angle
N/A
Max. Angle N/A
Rota on
Address Set the write address to keep the rota on angle data.
angle
Rota on
Rota on The picture rotates around the central point of the picture.
center center
X/Y Set the central rota on point manually, this posi on may set as a variable.
The picture will rotate every [ ] (100ms).
Cycle *for example, the data input is 10, the me interval will be
Auto rotate 10*100ms=1000ms.
Automa c Rotates designated angle for each me interval.
angle
Dynamic Picture (General/Text/Graphics)
General
The picture moves as the preset track path, the posi on and state of the picture is determined by the designated address.
Figure 1
Settings
How to set the object:
Select the dynamic picture func on in parts library.
Le -click on the start point (point 0), then drop the following track points (point 1, 2, 3…..) by le -click. The track path contains maximum 50 points.
Drag the point to change the posi on.
Right –click to finish the track input.
Figure 2
Classifica onProper es Descrip on
Set designated addresses to control the state and posi on
the picture, 2 addresses will be occupied in total.
*For example set the read address as HDW0, then the
Read address N/A
addresses func on as following:
HDW0:state of the picture
HDW1:posi on of the picture
A er the picture reaches the last point, it will return to the
Return
start point.
Auto move Frequency The picture will move automa cally at the designated
frequency. (unit, 100ms)
State change Change the state by designated frequency.(unit, 100ms)
Control bit Read address Set designate address to trigger the movement.
Point editor N/A Edit the posi ons for the track points.
Scrolling picture
General
The picture will moves in a set movement pa ern, for example, add water effect on the picture.
Settings
Figure 1
Classifica on Proper es Descrip on
Block forecolor N/A
Block
N/A
background
Rail forcolor N/A
Color
Rail background N/A
Border color N/A
Line type N/A
Pa ern style N/A
Control bit Set the designated address to trigger the movement.
Blocks The number of blocks.
Speed Scrolling speed.
Proper es Direc on Movement direc on.
Block picture Customize the block.
Rail picture Customize the rail.
No border Display or hide the border.
Dynamic picture (XY axis) (General/Text/Graphics/Animation)
General
The picture will move based on the designated read address.
Settings
Figure 1
Dynamic Polygon
General
Connect points to construct a polygon; the points are posi oned based on designated address.
Settings
Each point requires 2 addresses to locate the posi on.
Figure 1
Proper es Descrip on
Points The points contained for the polygon.
Read address Start address for the graph.
Video input display
General
Real me monitoring can be realized in this func on, the video data cannot be saved.
The video input window will display on the top layer.
Settings
If the designated address set as HDW100, it will occupy the following 13 addresses.
The preset for brightness, contrast ra o, satura on and display area is required.
PAL: the maximum individual scan lines are 312 lines.
NTSC: the maximum individual scan lines are 256 lines.
Figure 1
Address value Descrip on
0 Pause
HDW100 1 Start
2 Stop
HDW101,HDW102, Set the display posi on
HDW103,HDW104
0 Display video signal from 1 channel.
1 Display video signal from 2 channel.
HDW105
2 Display video signal from 3 channel.
3 Display video signal from 4 channel.
Brightness se ng, 0-minimum brightness, 255-
HDW106 0~255
maximum brightness.
HDW107 -128~0~127 Contrast se ng:
HDW108 -128~0~127 Satura on se ng.
HDW109 0~255 Color tone se ng.
HDW110 Reset and ini alize the video input se ng.
0 Set the display rota on direc on.
1 Rotate 90 degree.
HDW111
2 Rotate 180 degree.
3 Rotate 270 degree.
HDW112 Reset the color se ng of the video input.
Pie Graph
General
A pie chart (or a circle chart) is a circular sta s cal graphic, which is divided into slices to illustrate numerical propor on.
*For example: there are 3 values: 100 (HDW0), 60 (HDW1) and 40 (HDW2, 200 (100 + 60+ 40), the ra o rela onship is: 50%; 30%; 20%, shown on the
pie chart as figure 1.
Figure 1
Setting
Figure 2
Classifica onProper es Descrip on
Total
Edit variable members The number of slices in the chart.
The pie chart value will start to read from the designated
Start address address.
Edit
The range will calculated automa cally depends on the
Address range start
address and total members.
Data format Display format, number or percentage.
Sta s c
Font size Font size se ng.
Bar graph
General
Bar graph is a chart that presents Grouped data with rectangular bars with lengths propor onal to the values that they represent.
Figure 1
Settings
Figure 2
Classifica on Proper es Descrip on
Edit Read address The graph read value from the designated address.
Data format Data format
Value format se ng
Min/Max The data range
When the minimum value reaches, display the alarm
Min
color.
Alarm control
When the maximum value reaches, display the alarm
Max
color.
When the low limit reaches.
Double color Read address
Figure 3
Classifica on Proper es Descrip on
Main scale value The total scale number on the bar graph.
Show scale
Sub scale value The scale number between two main scales.
Show scale Minifica on Display the decimal numbers.
value Scale range The display ra o.
Font size Style Customize the text style.
Meter Graph
General
Meter graph display the value change in an autometer.
Figure 1
Settings
The se ngs refers to “Graph”.
Figure 2
Figure 3
Column Graph
General
Column graph reflect the data change as fluid change in the tank.
Figure 1
Settings
The se ngs refers to “Bar graph”.
Figure 2
Figure 3
Meter (General/Text/Graph)
General
Graph shows the data change in a combina on of pointer and dial.
Settings
Figure 1
Classifica on Proper es Descrip on
Edit Read address The value is red from designated address.
Data format Data format
The format of the data.
Max/Min The data range.
Display
N/A Invert the display value.
inverted
Figure 2
Classifica on Proper es Descrip on
Minifica on Minify the scale.
Show scale Scale range The display ra o.
value The limits are determined by the designated
Dynamic limit
addresses.
Show pointer Pointer color
N/A
Pointer type N/A
Main scale value The total scale number on the bar graph.
Show scale
Sub scale value The scale number between two main scales.
Normal range The normal data range.
Abnormal
Low limit color The color of the area lower than the limit .
indica on
High limit color The color of the area higher than the limit.
Circle meter type 330 degree or 360 degree.
Meter type Star ng offset
The “0” posi on.
angle
Clock
General
The me is displayed in the clock graph
Figure 1
Settings
Figure 2
Classifica on Proper es Descrip on
Show scale Scale color The scale(text) color.
value Scale size N/A
Scale type N/A N/A
Pointer color N/A
Show pointer
Point type N/A
Show scale Scale color N/A
Timer
General
The designated command will be executed a er the mer set.
Setting
Figure 1
Classifica on Proper es Descrip on
Mode N/A The mer func on.
Timing trigger N/A The mer triggers address.
Counted me N/A The mer will reset a er the designated me
reaches.
Modify me Timer data can be modified while coun ng,
when ming N/A default se ng is not ediable.
When the mer reaches the designated me,
Bit address
trigger the address.
Output When the mer reaches the designated me
Word address change the value of the word address in the
selected mode (set value, increase, decrease).
Timing N/A Numerical display the mer.
Clear the mer record, when the address is
clear N/A
triggered.
Bit Lamp
General
Bit lamp indicates the state of corresponding bit switch.
Figure 1
Figure 1
Classifica on Proper es Descrip on
The states will change automa cally in designated
Automa c
frequency.
The me interval to change the states, unit set as
Frequency (ms).
*For example, the input value is 5, the frequency will
be 500ms.
Change back to the ini al state a er the last state
Return
reaches
Change states Control Bit
Set a switch to trigger the state change mode.
The frequency can set as a variable, the value will be
Frequency Address red
from designated address, unit set as (ms).
*For example, in default se ng, state 0 corresponds
Enable states to the value of the read address is 0, the state
controller controller can change the state number corresponds
to the designated address value.
Manual Change the state manually.
Double bits lamp
General
Double bits lamp read from two addresses, display the states depend on the different combina on of the addresses.
Setting
Figure 1
Figure 1
Classifica on Proper es Descrip on
Control Bit N/A The switch to trigger the window.
Display as sub N/A Ac ve the control bar for the sub-window.
Move to top N/A Top priority on display .
Direct Window (General/Animation)
General
Direct window will display a designated sub-window when the set condi ons are met.
Features of direct window:
a. Direct window only displays sub-window.
b. The sub-window displays depending on the trigger condi ons.
c. The window size and posi on depend on the size and posi on of the object.
Settings
Figure 1
Classifica on Proper es Descrip on
Control bit The switch to trigger the window.
Trigger Trigger when ON The window will show up when the trigger is set ON.
Trigger when OFF The window will show up when the trigger is set OFF.
Display as sub N/A Ac ve the control bar for the sub-window.
window
Screen Number N/A The designated screen displays when triggered the switch.
Move to top N/A Top priority on display.
Drop-Down list (General/Text/Graphics)
General
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”).
Settings
Figure 1
Classifica on Descrip on
Data format Select the data format from Unsigned, signed and BCD.
Line Spacing The distance between two different op ons in the list.
Dynamic Text (General/Text)
General
A designated Text content will loop display on the HMI. This func on is mainly used for display the adver sement on the HMI.
Settings
The content needs to be set in the text op on.
Figure 1
Classifica on Descrip on
Text speed Select the scrolling speed for the text.
Transparent Set the feature transparently.
Le to right The text scrolling from le to right, default se ng as right to le .
Printer
General
Printer can save the designated display area as picture, or print-out the text though the micro printer.
Settings
Figure 1
Figure 1
Classifica on Proper es Descrip on
yy/mm/dd:year/month/day
Show date mm/dd/yy:month/day/year
dd/mm/yy:day/month/year
Format Chinese1
Display style English1
Chinese2
English2
Time Display (General/Animation)
General
Time display shows the system me on the main screen.
Figure 1
Settings
Figure 2
File List (Graphics/Query)
Query
Query is mainly used for data searching; the required data will be acquired by the set condi on.
Settings
Figure 1
Classifica on Proper es Descrip on
Index group N/A Display a designated data group.
Query The condi ons set to select the required data, support
N/A
condi on maximum 10 condi ons.
Trigger the controller to query the designated data
Query controller group.
Member ID Query will start from the designated member ID.
Length The ID number needs to be queried.
Query se ng Type
Number, me, string.
Range The data limits.
Matched group Store maximum 50 groups data queried.
Result N/A
Recipe Display
General
This func on is designed to display and modify the formula of the recipe.
Settings
Figure 1
Classifica on Descrip on
Input Modify the recipe is possible when input func on ac ve.
Alignment The text posi on in the frame.
Custom width N/A
List Box (General/Text/Graphics)
General
List box is able to modify the value of the designated bit address from 0- 31.
Settings
Se ngs refer to drop-down list.
Figure 1
Draw
General
Draw func on can be found in the menu bar [parts]-[draw], or in the parts library.
Figure 1
Settings
posi on: the top le posi on of the drawing shown in the screen.
Line color:select the color for the drawing
Line type: select the type of the drawing
size:the size of the drawing, expressed as pixel number.
Point
Se ngs shown as below.
Figure 1
Line
The se ng window shown as below.
Automa c adjustment range:in the range of designated value, the line will remain ver cal.
Figure 1
Polygon
New polygon
Le click the mouse to draw the profile of the polygon, right click to finish drawing.
Settings
The points of the polygon can be modified by the point Editor at polygon se ng window.
Drag the point needs to be modified to the designated posi on.
Figure 1
Figure 2
Cycle
Cycle se ng window shown as below.
Figure 1
1. Radius: X and Y radius represents the horizontal and ver cal radius respec vely.
2. Dynamic cycle: The center posi on and X, Y radius are decided by the designated addresses.
Arc
General
Le click to drop the top right point of the arc.
Le click again and rotates clockwise to erase the redundant part of the arc, rotates counter clockwise to create the desired arc.
Le click again to finish drawing.
Settings
The profile, start point, end point can be modified by simply dragging.
Figure 1
Rectangle
Settings
Figure 1
The color will change as the value input changes. The color se ng will occupy 3 con nues addresses, for example, the designated address is HDW100,
the following two addresses, HDW101, HDW102 will all be occupied, the value input range is between 0-255, the higher the value the darker the color.
HDW100 represents Red;
HDW101 represents Green;
HDW102 represents Blue.
Text
Textbox display the designated text content.
Broken Line
General
Le click on the screen to drop the start point.
Drop the following points by le click on designated area.
Right click the mouse to finish the drawing.
Settings
The points of the polygon can be modified by the point Editor at polygon se ng window.
Drag the point needs to be modified to the designated posi on.
Figure 1
Figure 2
Linear Scale
Settings
Figure 1
Display direc on: There are 4 display direc ons list as, top to bo om, bo om to top, le to right, right to le , corresponding to the following pictures
respec vely.
Figure 1
Settings
Figure 2
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.
Picture
Settings
The picture can be put on the screen by following steps;
Op mize the picture frame on the screen;
Double click the object and select from gallery;
To import customized picture, select [import]op on;
System will auto adjust the color of the picture harmoniously with the HMI background.
Figure 1
Table
Settings
Figure 1
1. Rows:The number of textboxes list horizontally.
2. Columns:The number of textboxes list ver cally.
3. Invisible:The table frame becomes invisible, excluding the header.
4. Header cross:The op ons for header cross are No, row, column, and table, which shown in the following table, respec vely.
5. Table cross:The op ons are No, row, column, and table, which shown in the following table, respec vely.
Table cross No Row Column Table
Effects
Figure 1
Fast Copy
General
When the same part is required for mul ple mes, click the part need to be copied, select fast copy on the menu bar, chose the rows and columns
required, shown as following.
Figure 1
Settings
1. Number of copies:the numbers is expressed by the rows and columns.
2. Spacing:the space expressed as pixels between the rows and columns.
3. Direc on:the addresses line up direc on.
4. Address distant: the interval of the address number. For example, set the address distant as " 2", the start address is HDX10.0 then the addresses of
the copied parts are named as HDX10.2, HDX10.4...
When the fast copy se ng is completed the parts will list as following.
Figure 2
Bit Alarm
Bit alarm message
Add bit alarm to display alarm informa on on the screen.
Click [Se ng]-[Bit Alarm]-[Add].
Figure 1
Bit Alarm
Add or edit bit alarm informa on, set bit address, trigger mode, content, and alarm screen ect.
Figure 2
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 on cause 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
Figure 3
Word Alarm
Word Alarm
Monitor the data, alarm is on when designated address meet the condi on.
Word Alarm type:
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.
Click [Se ng]-[Word Alarm].
Figure 1
Figure 2
Proper es Descrip on
Device name Alarm name.
Record Alarm Record history alarm informa on.
Device address Set alarm address.
Data Format Set data format.
Alarm descrip on Set alarm informa on 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.
Recipe Function
The Recipe func on keeps data in the HMI or other removable storage device, download the data from HMI to designated device addresses, or
upload data from device addresses to HMI.
If user has several kinds of parameters and want to switch all or those parameters during produc on, you need to enter the parameters one by one
every me, but if user can use the Recipe func on, just need to enter the all parameters in HMI once and just switch the recipes.
For example: A new can needs to be printed with different color and different prin ng dura on. So user can create a recipe to save all of those
parameter.
Posi on Red(KG) Green(KG) Blue (KG) Dura on
(Second)
Car Top 2 2 1 30
Car Bo om 3 1 2 40
Car Inside 2 3 3 20
Figure 1
Proper es Descrip on
Se ng Specify the total groups and members in recipe.
Data Format The format data write to device or read from device addresses.
Con nuous address Use con nuous address for recipe, need to specify the start address.
Trigger Transfer recipe file when meet the control bit condi on.
Recipe Display
Click [Objects]-[Recipe]-[Recipe Display].
For example: In the car paint case, it needs 3 groups. 4 numbers in each group:
Group 1: Top;
Group 2: Bo om;
Group3: Inside;
Red: HDW0;
Green: HDW1;
Blue: HDW2;
Dura on: HDW3;
Figure 1
Add “Recipe Display” to the screen by clicking [Objects]-[Recipe]-[Recipe Display].
Figure 2
Recipe Transfer
Recipe transfer is designed for reading and wri ng the recipe address, over write will replace the current address.
Add the “Recipe Transfer bu on” to the screen by click [Objects]-[Bu on]-[Recipe Transfer] and set its proper es.
Also need to add a “Numeric Input/Display” with address “HPW0”, “HPW” is used for specifying the Group number.
Classifica on Proper es Descrip on
Transmission Upload Transfer the data to the designated recipe.
mode Download Write the recipe to designated address.
Trend Chart
Trend graph is designed to input and save related trend informa on. It will display the curve in real me.
Figure 1
History XY Plot
1. A record can collect up to 12 word address.
2. Use triggers address of sampling.
3. Sampling cycle is 0.1 second.
Click [Se ng]-[History XY Plot]-[Add].
Figure 1
Web-Sever
Web-Server is designed to access HMI from PC Browser, user need to set the related address in this area.
Click [Se ng]- [Web-Server]-[Add]:
Figure 1
Proper es Descrip on
Name Name of each informa on.
Address The address needs to be related to web ASP Index.
Set ASP Index to link with project address. For example, set the
ASP Index project object address “HDW10”, Set ASP Index” VW0”. Wherever
there is “VW0”, it will be replaced with value of “HDW0”.
Figure 2
Multi-Link
Mul ple HMI can communicate with each other through RS485 connec on. one interface is HOST, the other are client. Only HOST HMI
communicates with PLC, and it shares the data with other Client HMI.
Connection Type
Note: Every HMI needs to set different sta on number for communica on. It can use RS232 connec on if there is only one client.
Setting
Click [Se ng]-[Communica on]-[Device Type]-[Other Protocol]-[Mul -Link Protocol].
Figure 1
No ce:
Make sure using same address se ng for all HMI (HOST and Client).
Need to add all addresses to [Se ngs]-[Mul -Link] area, if use those addresses in script.
Disc Record Display
Disc Record Display is used to input and save disc record related informa on. User can read from disc record display and History XY Plot.
1. A record can maximum collect 4 curves.
2. Use Trigger Address of sampling.
3. Sampling Cycle is 0.1 second,"Sampling cycle" means the me of the disc record draw a cycle.
Click [Se ng]-[Disc record Display]-[Add]:
Figure 1
General
Script is applied to realize complex control func ons. HMI compile so ware provide powerful func on, simple opera on, reliable script system, the
features of script are list as follow:
The script can access with the device though: write and read.
For example
If @B_HDX0.0 = 1 then ‘read the value from address HDX0.0.
@B_HDX0.0 = 0 ‘write 0 to address HDX0.0
Else
@B_HDX0.0 = 1 ‘write 1 to address HDX0.0
Endif
@W_QW0 = @W_QW0 + 1 ‘read data from address QW0, add 1 to this value then write to address QW0.
Script Type
Edit background script: double click [background script] on project manager. Then click to add it, set the ming interval to enter screen script.
Shown as following:
Figure 1
Global script can be divided into four categories:
Property Descrip on
Ini alize The script will be executed once during loading project.
Close The script will be run once during closing HMI project.
Timing Trigger to run once in a while un l project end, during running. Each
project can be set global script of more than one ming trigger.
Bit trigger Script will be repeat executed when meet the condi on of bit trigger.
No ce: global script of bit trigger can also have more than one in one project.
In order to edit global script, double click [global script] from project manager.
Screen script can be divided into four categories under running condi on:
Property Descrip on
Ini alize Run under loading screen, the script will be executed once during
running.
Close Run under closing screen, the script will be executed once during
running.
Timing Trigger to run at every once un l screen is closed, during running.
Bit trigger Script will be repeat executed when meet the condi on of bit trigger,
under running project.
Figure 1
Double click [ini alize] node from “the view of script” on screen script or global script, then edit script.
Figure 2
Trigger Control
General
Trigger control script is that so ware will check whether the designated bit meet trigger condi on every 20ms.script execute once when condi on is
met un l project closed.
No ce:The maximum number of trigger script for one screen is 32.
1. The script guidance.
2. New trigger control script.
Click [global script] from project manager to enter global script editor window.
Figure 1
Double click [ini alize] node from “the view of script” on screen script or global script, then edit script.
Condi on Descrip on
TRUE check monitor bit Every 20ms,script execute once when the bit value
is TRUE;
FALSE check monitor bit Every 20ms,script execute once when the bit value
is FALSE;
Bit changed Execute once when bit switch state.
rising check monitor bit Every 20ms, script execute once when the bit value
from FALSE to TRUE;
falling check monitor bit Every 20ms, script execute once when the bit value
from TURE to FALSE;
Figure 1
Timing Script
General
The script will run for a designated me interval.
No ce: each trigger script screen of ming and global ming script limit to 32.
New ming script
Click the symbol from script editor bar, shown as figure1.
Figure 1
Property Descrip on
Cycle Script runs at designated me interval, unit is 500ms. Background ming
script at 1ms per cycle.
Ok Script created.
Cancle Cancel the current script se ng.
Figure 2
Global Function
General
Global func on is a form of code for using,it can be called in any script.the method reference system func on.
New global func on
Double click [global func on] in project manager.
Figure 1
Figure 2
Property Descrip on
Func on name Func on name cannot be the same as exis ng.
Return type None, string, integer, float.
Paremeter1 The name of paremeter 1.
No ce: func on contains no more than are four parameters and cannot be repeated.
Edit global func on proper es
[Edit] is to modify name and parameter. Click on tool bar.
Call global func on
Refer to the call of system func on.
Checking Grammar
Check script grammar is correct or not, error occurs when compile error.
Select from script tool bar, system does not prompt grammar error if grammar is correct, system will list all errors for modifica on.
Grammar Error
In this sec on common grammar errors of so ware script are listed as following:
1. Iden fier *** contains invalid characters.
2. A empt to redeclare sub *** .
3. A empt to redeclare func on *** .
4. A empt to use reserved word *** as iden fier.
5. A empt to use type *** as iden fier.
6. Unexpected ‘)’ while parsing arguments for func on *** .
7. Cannot parse expression (one of the arguments of func on ***) .
8. Cannot parse arguments of *** .
9. Too many arguments for func on *** .
10. Not enough arguments for func on *** .
11. ‘(‘ expected a er sub name *** .
12. Unexpected ’(‘ while parsing arguments for sub *** .
13. Cannot parse expression (one of the arguments of sub ***) .
14. Cannot parse arguments of *** .
15. Too many arguments for sub/func on *** .
16. Not enough arguments for sub/func on *** .
17. Cannot parse expression .
18. ‘(‘ expected a er func on name *** .
19. Unexpected use of sub *** as a part of expression .
20. Illegal statements preceding subs/func ons declara on .
21. Unexpected end of file while looking for ‘endsub’ .
22. End of line expected a er ‘else’.
23. End of line expected a er ‘endif’.
24. End of line expected a er ’next’.
25. End of line expected a er ‘wend’.
26. ‘while’, ‘un l’ or end of line expected a e r’do’.
27. Cannot parse expression a er ‘while’.
28. Cannot parse expression a er ‘un l’.
29. ‘do’ without ‘loop’.
30. Sub *** contains invalid character’@’ .
31. Sub *** already declared.
32. Func on *** already declared.
33. Sub name expected a er ‘sub’.
34. Func on name expected a e r’func on’.
35. Variable name expected.
36. Argument *** contains invalid character ‘@’.
37. ‘integer’, ‘floa ng’ or ’string’ expected.
38. ‘‘‘,’ or ‘)’ expected.
39. ‘endsub’ without ’sub’.
40. ‘end func on’ without ‘func on’.
41. End of line expected a er ’beep’.
42. ‘dim’ unexpected here.
43. Variable name expected a er ’dim’.
44. ‘as’ expected a er variable name.
45. ‘integer’ ‘floa ng’ or ‘string’ expected a er ’as’.
46. ‘,’ or end of line expected a er type in dim statement.
47. Cannot parse expression a er ’while’.
48. End of line expected a er’ while’ condi on.
49. ‘while’ without ‘wend’.
50. End of line expected a er ’wend’.
51. ‘wend’ without ‘while’.
52. Variable name expected a er’ for’.
53. ‘=‘ expected a er variable name.
54. Cannot parse expression a er ’for’.
55. ‘to’ expected.
56. Cannot parse expression a er ’to’.
57. Cannot parse expression a er ’step’.
58. End of line expected.
59. ‘for’ without ‘next’.
60. End of line expected a er ‘next’.
61. ‘Next’ without ’for’.
62. Cannot parse expression a er’if’.
63. ‘then’ expected.
64. Unexpected end of file while looking for ’endif’.
65. Unexpected end of file while looking for ’else’ or ’endif’.
66. ‘else’ without ’if’.
67. ‘end if’ without ’if’.
68. Label name expected a er ’goto’.
69. Unexpected end of line while looking for ‘)’ in func on call.
70. ‘,’ expected.
71. Missing ‘)’.
72. Unexpected end of line in expression.
73. Unexpected end of file in expression.
A2H
Function
Val = A2H(A1)
Description
Convert string A1 to hexadecimal number.
Parameters
A1: convert first four value of the string.
No ce: string must be address(such as:@W_HDW000002).
Val: The value is hexadecimal number.
Example
@W_HDW20=A2H(@W_HDW10) ' convert the string of HDW10 to hex then save in HDW20.
Input: @W_HDW10=255
Result: @W_HDW20=255
Abs
Function
val = Abs(A1)
Description
The absolute value of A1.
Parameters
A1:the data of absolute value, must be variable.
Val:it is absolute value that is address or variable.
Example
Dim a as integer 'a is defined as integer
a = SignedInt16("@W_HDW0")'convert the data of @W_HDW0 into signed data.
@W_HDW1 = Abs(a) 'assign the returned absolute value to @W_HDW1
Input:@W_HDW0=-6,
Result:@W_HDW1=6
No ce: SignedInt16 func on is designed to convert unsigned to signed.
ACOS
Funcition
val = ACos(A1)
Description
To compute the inverse cosine value of A1.
Parameters
A1: float value, can be a address or variable.
Val: return value is float, can be a address or variable.
Example
Dim a ,b as floa ng 'define two float variable a,b
a = 0.5 'assign the designated value to a
b = ACos(a) 'the inverse cosine value of “a” is a radian which assign to variable b.
'to add the following sentence if needed to view the return value:
float2d("@W_HDW200", b) 'float b wri en into HDW200.
Result: @W_HDW200=1.047
No ce: please call RadToDeg func on to convert radian into angle.
AddrStringCompare
Function
val = AddrStringCompare(A1, A2, length)
Description
It is designed to compare the designated length of two character strings.the string value is 1 when the two strings are the same.
Parameters
A1, A2:character string, must be an address(such as:"@W_HDW000002")
Length:The length of character string.
Val:Return value, 0 or 1.
Example
if AddrStringCompare("@W_HDW10","@W_HDW0",2)=1 then 'compare the character string of HDW10 and @W_HDW0 whether value are 1.
@W_HDW20=1 '@W_HDW20 display 1
else
@W_HDW20=0 '@W_HDW20 display 0
Endif
Input: @W_HDW10="1a2 ",@W_HDW0="1a2 ",
result:@W_HDW20=1
Script 2:
W2S("@W_HDW200","@W_HDW300","02d")
W2S("@W_HDW210","@W_HDW400","02d")
W2S("@W_HDW220","@W_HDW500","02d")
@W_HDW0=AsString(@W_HDW300)+AsString(@W_HDW400)+AsString(@W_HDW500)
Input:@W_HDW200=12,@W_HDW210=34,@W_HDW220=56
Result:@W_HDW300=12,@W_HDW400=34,@W_HDW500=56,@W_HDW0=123456
(Ensure the data always is two bits; otherwise occur error. reference the other chapter of W2S func on)
ATan
Function
var = ATan(A1)
Description
Return a arctangent value,the radian ranges -pi/2 to pi/2.
Parameters
A1:Can be float, address or variable.
Val:radian of return value.
Example
@W_HDW20= Atan (@W_HDW10) ‘save the arctangent value of (HDW10) to (HDW20)
Input: @W_HDW10=1.000,@W_HDW20=0.785
No ce: please call RadToDeg func on convert radian to angle.
ATan2
Function
val = ATan2(A1,A2)
Description
Return the arctangent value of A1/A2,radian range
Parameters
A1, A2: Address or variable.
Val: return value is a radian, range -pi to pi.
No ce: ATan2 use sign of two parameters to define the quadrant of return value.
Example
@W_HDW20= ATan2 (@W_HDW10,@W_HDW12) 'save the arctangent value of (HDW10/HDW12) to (HDW20).
Input:@W_HDW10=1.0,@W_HDW12=1.0,
Result: @W_HDW20=0.785
No ce: please call RadToDeg func on convert radian to angle.
B2W
Function
B2W(A1, A2,length)
Description
Convert a array (begins with A2, unit: byte, to another array ( begins with A1,unit:word).
Parameters
A1:Saving address a er conver ng
No ce:must be address(e.g.:@W_HDW000002)
A2:Address of the value be converted
No ce:must be address(e.g.:@W_HDW000002)
Length:The length of conversion
No ce:It can be address or variable.
Return value:None
No ce:This is a subprogram, it has no return value.
Example
B2W(@W_HDW100,@W_HDW10,2) 'convert (@W_HDW10) to the length of 2,save as the result that begins with @W_HDW100.
Input: @W_HDW10=1A2B
Result: @W_HDW100=2B
@W_HDW101=1A
BCD
Function
val = BCD(A1)
Description
Convert A1(binary) to BCD, save the result as return value.
Parameters
A1:The binary be converted, it can be a address or variable.
Val:Return value, BCD code; it can be a address or variable.
No ce:Return value is a word; it hexadecimal corresponds to BCD code.
Example
@W_HDW20=BCD(@W_HDW10) 'convert HDW10 (binary) to BCD code, then save in (HDW20)
Input: @W_HDW10=11111111(binary),
Result: @W_HDW20=255
Beep
Function
Beep
Description
Buzzers send out beep.
Parameters
None
Example
if @B_HDX100.0=1 then 'beep when the bit switch HDX100.0 set ON
beep
endif
result: HMI beep when bit switch HDX100.0 set ON.
BIN
Function
Val = BIN(A1)
Description
Convert A1 (BCD) into binary, save the result in return value.
Parameters
A1: The BCD code is converted; it can be address or variable.
Val: Return binary value,it can be address or variable.
Example
@W_HDW20=BIN(@W_HDW10) 'convert HDW10(BCD) to binary, save the result in (HDW20)
Input: @W_HDW10=255
Result: @W_HDW20=11111111 (binary)
BMOV sub function
Function
BMOV(A1, A2,length)
Description
Copy data with a designated length from source address A2 to A1.
Parameter
destAddr: saving address
srcAddr: source address
length: data length
Example
@W_HDW20 = 20 'assign value to HDW20
@W_HDW21 = 21 'assign value to HDW21
@W_HDW22 = 22 'assign value to HDW22
BMOV(@W_HDW10,@W_HDW20,3) 'assign the word address of HDW20, HDW21, HDW22 to HDW10, HDW11, HDW12
Result:
@W_HDW10 = 20
@W_HDW11 = 21
@W_HDW12 = 22
Chr
Function
val = Chr(A1, A2, ...)
Description
Convert integer parameter into correspond ASCII character,return the character string.
Parameters
A1, A2....: converted integer; it can be a address or variable.
Val:return value, can be a address or variable.
Example
@W_HDW100=Chr(@W_HDW20,@W_HDW21,@W_HDW22,@W_HDW23,@W_HDW24)
'convert the value of(HDW20,HDW21,HDW22,HDW23,HDW24) to ASCII character,assign the value to (HDW100)
Input 72,69,76,76,79 step by step according to HDW20,HDW21,HDW22,HDW23,HDW24,result returns HELLO to (@W_HDW100).
ClrB subfunction
Function
ClrB(A1)
Description
Set the bit of A1 as FALSE(0).
Parameters
A1:System address(bit)
No ce; subprogram has no return value.
Example
ClrB(@B_HDX100.0) 'assign 0 to(@B_HDX100.0)
Constant
Description
Script supportd stable constant, users can use on script:
pi = 3.14159265358979321
TRUE = 1
FALSE = 0
Example
Dim a as integer ‘define integer a
a = RadToDeg(pi) 'convert radian pi to angle then assign to a,RadToDeg func on is used to convert radian to angle.
@W_HDW11 = a 'assign a to (HDW11)
Result: @W_HDW11=180
Cos
Function
Val = Cos(A1)
Description
Return a cosine value of an angle.
Parameters
A1:a float radian of angle, it can be an address or variable.
Val:return float value, it can be a address or variable.
Example
Dim a, b as floa ng 'define float a, b
b = pi/3 'convert the value of HDW11 to float and assign to ‘b’.
a=Cos(b) 'return the cosine value of‘b’ and assign the result to ‘a’.
'to add the following sentence if need to view the return value:
Float2D("@W_HDW20",a) 'the float value of a wri en into HDW13.
Result:@W_HDW20=0.5
No ce: please call RadToDeg func on convert radian to angle.
D2F subfunction
Function
D2F (A1, A2) or A1= D2F (A1, A2)
Description
Convert the 32 bit integer format data to float then output the result.
Parameters
A1: required data, begin with“@”;
A2: source data, begin with“@”;
Example
D2F(@W_HDW2,@W_HDW0) 'convert the double word (HDW0) to float, save the result to (HDW2).
@W_HDW2=D2F(@W_HDW2,@W_HDW0) 'convert the double word (HDW0) to float, save the result to (HDW2).
Result: HDW0=100, HDW2=100
D2Float
Function
F= D2Float("A1",F)
Description
Convert the designated value to floa ng then assign to variable.
Parameters
A1: Must begin with address“@”;
F: Define the floa ng by self;
Example
dim F as floa ng 'define F as floa ng
F=D2Float("@W_HDW10",F) 'assign the value of (HDW10) to F in floa ng
Float2D("@W_HDW12",F) 'copy the floa ng value of F to HDW12 register,use to display result.
Result:HDW10=200,
HDW12=200.
DegToRad
Function
A2 = DegToRad(A1)
Description
Convert the angle into correspond radian, and display.
Parameters
A1: inpu ng angle supports address, other variable or floa ng.
A2: outpu ng radian supports address, other variable or floa ng.
Example
@W_HDW12=DegToRad(@W_HDW10) ' input angle on (HDW10),convert to correspond redian and copy to (HDW12)
Result: HDW10=180; HDW12=3.14159
2. A1 is an address,A2 is variable
dim a as integer
a=134 ’define a integer 134 to a,
@W_HDW2=W2F (a) 'convert to 32bit floa ng save to HDW1, HDW2.
Result:@W_HDW1=134' 32bit floa ng
W2S
Function
W2S(A1,A2,S1)
Description
Convert integer word in address A1 text as S1 format, and then save to A2.
Parameters
A1: operated address.
A2: source address.
S1: saving format.
1. d format:Decimal format.
d:real data length.
Md:designated data length.
0md:designated data length if the length is shorter than m add 0 at the le .
2. oformat:Unsigned octonary format. Mo and 0mo is also applied.
3. x format:unsigned Hex integer format?Mx and 0mx is also applied.
4. c format: ASCII format.
Example
1. Decimal format
@W_HDW1=1456 ’assign value {1456} to HDW1.
W2S("@W_HDW1", "@W_HDW10", "6d") ' convert{1456} to decimal text and save to HDW10.
Result: @W_HDW10 shown ”1456”
2. 0md
@W_HDW1=1456 ’ assign value {1456} to HDW1
W2S("@W_HDW1", "@W_HDW10", "06d") ' convert{1456} to integer decimal text and add 2 {0} on the le of the data then save to HDW10.
Result: @W_HDW10 show text “001456”
WHILE ... WEND
Function
While condi on
[statements]
Wend
Description
If the condi on is true, then all the commands before Wend in the statement will be executed then recheck the condi on, if the condi on is false, the
command a er Wend will be executed.
Parameters
Condi on:Number or string, the result represent as True or False.
Return value: not available.
Example
while @W_HDW1>50 ’the condi on is the value of HDW1 bigger than 50.
@W_HDW1=@W_HDW1-1 ’when the condi on is true, execute subtract 1 from 1HDW.
wend
@W_HDW2=@W_HDW2+1 ’ when the condi on is false, execute add 1 from 1HDW.
Execute: If HDW1=60,a er executed; HDW1=50, if the condi on is true.
WriteAddr
Function
WriteAddr(A1,A2)
Description
Assign the value from A2 to address A1.
Parameters
A1: operated address
A2: source address
Return value: not available.
Example
dim f as integer ' integer f
f=13 ' assign the value 13 to f
WriteAddr("@W_HDW1",f) ' write the value to HDW1.
WriteAddr("@W_HDW10",@W_HDW2) ' write the value from HDW2 to HDW10.
Result:
HDW1=13
HDW10= HDW2'IF HDW2=1456,Then HDW10=1456;IF HDW2=-123,Then HDW10=-123
HMI Address
HMI provide four types of HMI address for user:
System Parameters (HSW/HSX)
The address star ng with “HSW” are reserved by HMI system, define those address to save the state or parameter of current system. Like system
proper es, communica on parameters etc.
User Data (HDW/HDX):
The address star ng with “HDW” are provided for user, save data to this type of address. Provide holding addresses
(HDW8000~HDW30000) as well.
Special Data(HPW/HPX):
Special address reserved by HMI.
Recipe Query(RPW):
Accessing recipe data by reading or wri ng those addresses.
The address format RPW**####; ** means group number; #### means data number; (e.g. RPW010002 means the second data in first group)
No ce:
HSW, HDW, HPW, RPW are word address, HSX, HDX, HPX are bit address;
HSW is related to HSX, (e.g. one word address HSW0 contains 16 bits from HSX0.0 to HSX0.15);
HDW is related to HDW, (e.g. one word address HDW0 contains 16 bits from HDX0.0 to HDX0.15);
HPW is related to HPX, (e.g. one word address HPW0 contains 16 bits from HPX0.0 to HPX0.15);
RPW has no related bit address.
Word Address Address Format Range
HSW HSWn HSW0~16000
HDW HDWn HDW0~30000
HPW HSWn HPW0~8191
RPW RPWn RPW000000~491000
Figure 1
1. Language: choose display language.
2. Import: import new record group from CSV file.
3. Export: export the current record group to CSV file.
Figure 2
1. Group name: group name, should be unique;
2. Sampling cycle: the sampling cycle of the group;
3. Saving cycle: the saving cycle of the group, in minute;
4. Trigger mode: Trigger to record the ;
5. Trigger address: Control to collect the record;
6. Show “0” when me out: the data record will display 0 when channel failed to get the data.
Figure 3
1. Channel name: group name, it is sole, can not repeat;
2. Address: the word address need to be record, it can be external register address, also can be HMI register address;
3. Display format: Data transfer format, current support binary system, octonary number system, unsigned, signed, hexadecimal, BCD,32 floa ng,32
unsigned,32 signed, character;
4. Decimal point: whether to display the decimal point and the number a er the decimal point in the data storage medium.
At most 30Mb space for data storage. If user needs to record large data, it is suggested to storage in U disk or SD card. The data may be lost if
removable storage is larger than 4 GB.
Save cycle of the data Interval of generate file
0-30 minutes 1 hour generate a file
30 minutes -12hours 1 day generate a file
12hours-15days 1 month generate a file
More than 15days 1 year generate a file
Data Record Tool
View data from “Data record display”.
Figure 1
Click “S” in the le side of the data record display object, display the se ng dialog box.
Figure 2
Data log tool
The so ware record the file in CSV format, The record data exported form HMI is encrypted by default. So need to use the “data log tool”.
Click [Tool]-[Data Log Tool]
Figure 3
Data Record Transfer
Add “Func on Switch” to the screen, and double click to edit its proper es.
The record data stored in HMI FLASH or SD card can be transferred to Udisk by func on switch.
Figure 1
PLC Debugging
The PLC programming so ware(Running on PC) can be communicated with remote PLC over HMI, to download, upload and monitor the PLC.
Figure 1
Setting
Requirement:
1. At least 2 COM port on HMI, one is for PLC connec on, the other one is for PLC debugging.
2. PLC programming so ware support communica ng with PLC over COM port.
For Example
Mitsubishi PLC:
1. Connect HMI(COM1) with PLC.
2. Connect HMI (COM2) with PC (PLC programming so ware), the communica on parameters of both COM ports should be same.
3. Set the wait meout.
No ce: It may be disconnected during communica on, when PLC debugging is enabled.
Figure 2
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
Current value on
TW T TWn 0 ~ 99999
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].
Figure 1
Set the Ethernet data.
Figure 2
Figure 3
PLC IP: device IP
PLC port No.:102(fixed)
Network:TCP_Client_2N (fixed)
Wait me:the internet status(=1500ms)
Figure 4
Siemens S7-300 MPI protocol
General
The RS485 cable connec on is shown as figure 1. Communica on parameter: 185000,1,8,Even; Sta on No.: 2.
Figure 1
Address
IW address format is shown as following, QW and MW address se ng is the same.
Word: IW0, IW2, IW4, IW6, IW8…… corresponds to: I0.0~I1.7(IW0),I2.0~I3.7(IW2),I4.0~I5.7(IW4),….
Dword: IW0, IW4, IW8, IW12, IW16…
Figure 2
DBn Address:
BBB
BD data (0~255);
DDDD=
Corresponds to BD addresses (0~8192);
Shown as following BBBDDD = 1000095, 100 is data block, 0095 is address.
Figure 3
The data filled with zeros shown as 0120005 which represent the address 0005 in data block 012.
Figure 4
DB##DBWxxxxxx:## is data block number (0~255), xxxxx represent data block range (0~8192), shown as figure 5, 01 is data block, 4 is the address
correspond to it.
Figure 5
Siemens S7-300 Ethernet
HMI
Type PLC address Format Range Note
address
IW I IWn 0 ~ 99999
QW Q QWn 0 ~ 99999
MB M MBn 0 ~ 99999
MW=MB(0~1)
MW M MWn 0 ~ 99999 MW2=MB(2~3)
Even address
MD0=MB(0~3)
MD4=MB(4~7)
MD M MDn 0 ~ 99999 The addresses
Word need to be the
address mul ply of 4
nn: block
DBxDBB DB0.DB~DB99.DB DBxDBBnnxxxx 000000~999999 number, xxxx:
address
nn: block
DBxDBW DB0.DB~DB99.DB DBxDBBnnxxxx 000000~999999 number, xxxx:
address
nn: block
DBxDBD DB0.DB~DB99.DB DBxDBBnnxxxx 000000~999999 number, xxxx:
address
I I In.x 0.0 ~ 99999.7
Q Q Q 0.0 ~ 99999.7
Bit M M Mn.x 0.0 ~ 99999.7
address nn: block
DBxDB DB0.DB~DB99.DB DBxDBnnxxxx.y 0.0 ~ 99999.7 number, xxxx:
address
Figure 1
Internet parameter.
Figure 2
Figure 3
Siemens S7-1200 Ethernet
Settings
Select [Siemens S7-1200 Ethernet] in [se ng]-[communica on]- [Se ng].
Figure 1
Figure 2
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-de ined Protocol
Write and Read
Applica on 1: according to Modbus protocol, HMI send 01 03 00 00 00 04 44 09, 01: sta on number, 03: write, 00 00: index address, 00 04: data
length, 44 09: CRC code.
The device will return 01 03 08 00 24 00 00 00 06 00 07 50 16, 01: sta on number, 03: write, 08: valid data length, 50 16: CRC code.
The specific se ngs are shown as following.
Step 1: Add checking, in [check] se ng.
Figure 1
Step 2: set address details in [part] se ng.
Figure 2
Step 3:set return data posi on and length in [data length].
Figure 3
Step 4:set the return data length in [instruc on length].
Figure 4
Case 2: Based on Modbus protocol, HMI send: 01 06 00 01 00 38 D9 D8. 01: sta on number, 06: write, 00 01 index address, 00 38: acquired data, D9
D8: CRC code.
Device responds same command: 01 06 00 01 00 38 D9 D8, means write successful.
Step 1: set start posi on and length in [checking]-[back checking].
Figure 5
Step 2: set write data in [data length].
Manually send
“manually send”: the command will send while the address is triggered.
Case 1: assign manually send to a command, control bit is 12 (range: 0-9999).
[oncectrlbit] can be found in address se ng in [user-defined protocol].
Figure 6
Send a er receiving
Send a er receiving will applied when the HMI is used as a Client device. The se ngs shown down below.
Figure 7
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.
Figure 3
Select the Mode as below.
Figure 4
Choose the data format as below.
Figure 5
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.
Figure 6
Check se ngs, shown as below.
Figure 7
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
Figure 8
Figure 9
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.
Figure 10
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.
Figure 11
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.
Figure 1
Settings
Figure 2
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.
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.
Figure 4
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.
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)
06 (Write single holding address) 16-bits Read only
3
10 (Write mul ple coils)
03 (Read mul ple holding
addresses)
16-bits v
4 06 (Write single holding address)
10 (Write mul ple coils)
03 (Read mul ple holding
addresses)
W6 16-bits v
06 (Write single holding address)
10 (Write mul ple coils)
03 (Read mul ple holding
W16 address) 16-bits v
0F (Write mul ple addresses)
Figure 1
step 2:
keep pressing on the le bo om corner of HMI (Hold on).
Figure 2
Figure 3
Step 3
Turn on HMI (connect with power supply of HMI) with keeping pressing on le bo om corner of HMI (Step2).
Figure 4
Step 4
Secure startup screen will appear, in this screen, user could download a new project for HMI from PC.
Figure 5
Setup Screen
Keep pressing on the right top corner of Screen for 5 seconds, HMI setup screen will appear.
Figure 1
HMI Version:
Click on “Version” to see the version info of HMI.
Figure 2
Figure 3
Communication Protocol
Check the current communica on protocol in this HMI by clicking on the version; you can see the driver info of HMI.
Figure 4
Figure 5
COM port parameters:
Click on “Setup HMI”
Figure 6
Figure 7
Figure 8
Figure 9
IP Setting
Figure 10
Figure 11
Figure 12
Touch and display setting
Figure 13
Figure 14
Figure 15
Time setting
Figure 16
Figure 17
Figure 18
HMI Installation
Description
Buckle is designed to fix HMI to device.
Figure 1
Usage
On each side of the HMI is equipped with a moun ng hole, ghten the screws.
Figure 2
Figure 3