EasyBuilderPro V60301 UserManual Eng
EasyBuilderPro V60301 UserManual Eng
EasyBuilderPro V60301 UserManual Eng
Ver. 6.03.01
Software:
Visit Weintek Labs, Inc.’s website at http://www.weintek.com. The language versions include
Simplified Chinese, Traditional Chinese, English, Japanese, German, Italian, Korean, Spanish,
Russian, French, Polish, and Turkish. The latest upgraded files can be downloaded too.
Operating System:
Windows® 7 (32bit / 64bit)
Windows® 8 (32bit / 64bit)
Windows® 8.1 (32bit / 64bit)
Windows® 10 (32bit / 64bit)
1. Click [Install] and select the language for the installation process, and then click [Next].
2. If there is a previous version of EasyBuilder Pro on the PC, please remove it before
installation.
3. Please read and accept the License Agreement before continuing.
4. Select a folder for EasyBuilder Pro installation, or use the default folder. Click [Next].
5. Select a start menu folder, or use the default folder. Click [Next].
6. Select additional tasks, for example: [Create a desktop icon]. Click [Next].
7. Confirm all setting. To change the setting, click [Back]. To start installation, click [Install].
8. Installation in progress.
10. The EasyBuilder shortcut can be found in [Start] » [All Programs] » [EasyBuilder Pro].
Note
Certain HMI supports downloading/uploading projects via USB cable. After installing
EasyBuilder Pro, the USB driver will be automatically installed. A message saying
“Windows can’t verify the publisher of this driver” may show, please continue anyway.
After installing the USB driver, open [Computer Management] » [Device Manager] to
check if installation succeeded.
2. Utility Manager
This chapter explains how to use Utility Manager.
2.1. Overview
After installing EasyBuilder Pro, double click [UtilityManagerEx] shortcut on the desktop to
start. Utility Manager is for launching several utilities and it is a stand-alone program.
Utilities Description
Select Model Select your HMI model. Please note that if the model is incorrect,
certain features may not work correctly.
Design EasyBuilder Pro: Launch EasyBuilder Pro to edit projects.
EasyAddressViewer: Review the address ranges and formats of
supported PLCs.
Simulation: Simulate a HMI on PC by On-line Simulation (with PLC)
or Off-line Simulation (without PLC).
Analysis & Testing EasyDiagnoser: On-line monitoring and debugging tool. Diagnose
the connection status between PC/HMI and PLC.
See “33 EasyDiagnoser”.
EasyWatch: Allows users to monitor HMI or PLC address values via
Ethernet on PC.
See “35 EasyWatch”.
Reboot HMI: Restart a HMI to its initial condition by Ethernet or
USB connection.
Pass-Through: Allows PC applications to control PLC via HMI. In this
case the HMI is an adaptor.
Settings
When operating HMI via Ethernet or USB cable, please set the password for HMI to protect
against unauthorized access.
Set the download password. To use masking password, select [Mask] check box.
Note
Please remember the password, otherwise, while restoring HMI default settings, the
project files and data in HMI will be completely erased.
Reboot HMI
Reboot the HMI without unplugging. After reboot, the system returns to the initial state. Set
the correct IP address when rebooting HMI via Ethernet.
Assume we will download data in the folder named “123” (K:\123) on an USB disk.
1. Insert USB (in which the project is saved) to HMI.
2. In [Download / Upload] dialog box select [Download].
3. Enter Download Password.
4. In [Download Settings] dialog box, select [Download project files] and [Download history
files] check boxes.
5. Press [OK].
6. In [Pick a Directory] dialog box, select directory: usbdisk\disk_a_1\123.
7. Press [OK].
Project will then be updated.
Note
If only the history files are downloaded, it is necessary to reboot HMI to update files.
2.4. Transfer
Setting Description
Firmware Update HMI kernel programs. The firmware
must be downloaded at the first time
downloading data to HMI.
MQTT If MQTT is used in the project and HMI is the
broker, this checkbox must be selected before
download.
Project Select an .exob / .cxob project file.
RW / RW_A Select a .rcp recipe file.
Recipe database Select a .db file of Recipe Database.
System settings Select a conf. system settings file.
Upload files from HMI to PC via Ethernet or USB cable. Click [Browse] and assign the file path
before uploading.
Setting Description
Event log Upload the .evt file in HMI to PC.
Extended Memory Upload the .emi file saved in SD card or USB disk
(EM) to PC.
For information about [Project], [RW / RW_A], [Recipe database] or [Data log], see “2.4.1
Download” in this chapter.
Note
The file will be uploaded to PC in .exob / .cxob format. Please decompile it into
editable .emtp file first and open the .emtp / .cmtp file in EasyBuilder Pro.
To upload the historical files saved in the external device, please use FTP. See “32 FTP
Server Application” for more information.
2.5. Simulation
Note
When using [On-line simulation] on PC, if the target device is a local PLC (the PLC directly
connected to PC), there is a 10 minutes simulation limit.
Before executing On-line/Off-line Simulation, please select the source .exob file.
When executing On-line/Off-line Simulation, right click to use these functions:
Setting Description
Exit simulation Stop simulating.
Run EasyDiagnoser To monitor current communication status.
Screenshot Capture and save current screen image as a
picture file in the screenshot folder under the
installation directory.
2.6. Pass-Through
This function allows the PC application to connect PLC via HMI. In this case, the HMI works like
a converter.
3.1. Overview
4. Configure parameters.
6. Create an object, for example, a Toggle Switch, and then set the address.
1. In EasyBuilder Pro toolbar click [File] » [Save] to save the .emtp file.
2. In EasyBuilder Pro toolbar click [Project] » [Compile] to compile .emtp file as .exob file,
which could be downloaded to HMI. This also checks if the project can run correctly.
Note
For cMT Series models, the project file extension is .cmtp, and the compiled file extension
is .cxob.
3. To use multiple languages, all languages must be configured in Label Tag Library first.
When downloading the project to HMI, select the needed languages only. A successful
compilation is shown in the following figure.
Off-line simulation: Simulate project operation on PC without the need for connecting
any device.
Note
When using On-line Simulation on PC, if the target device is the PLC directly connected to
PC, there is a 10-minute simulation limit.
This program connects to cMT Series models via network. To run this program, execute
cMTViewer.exe under installation directory. Or, in EasyBuilder Pro toolbar, click [Tools] » [cMT
Viewer].
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
The following explains four ways to download the project file to HMI.
Note
For cMT-SVR, only the way described in 3.6.1 is available.
When download project file to HMI using mini USB cable, please do not connect PLC
simultaneously, in order to avoid noise from PLC interfering with HMI.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
1. In EasyBuilder Pro toolbar, click [Project] » [Download]. Make sure that all the settings are
correct.
2. Select [Ethernet], set password and HMI IP.
Setting Description
Font files Download the font used in the project to HMI.
Runtime Select the check box to update the HMI kernel
programs. If this is the first time downloading file or
EasyBuilder Pro version is updated, please download
the firmware before downloading files to HMI.
EasyAccess 2.0 Download EasyAccess 2.0 driver to HMI. (This option
is available only for MT8000iE models. For other
models, EasyAccess 2.0 will be automatically
downloaded.)
Use user-defined Download the selected .bmp picture to HMI as the
startup screen
startup screen.
Use system settings Download the system settings file to update
file
hardware settings.
Synchronize HMI Synchronize HMI time with PC time when
clock with PC
downloading project file.
Delete existing user Select the check box to delete existing user
accounts, e-Mail
contacts and SMTP accounts, e-Mail contacts or SMTP settings before
settings downloading the project. This setting is only
2. On PC, select the HMI name and start downloading. To use [Search], enter the HMI name
first to search for the HMI. [Search all] searches for all HMIs in the same subnet network.
Select USB cable to download project to HMI. The way of setting is same as “3.6.1 Configure in
EasyBuilder Pro”. Before downloading via USB cable, please make sure the USB driver is
installed. Go to [Computer Management] » [Device Manager] to check if USB driver is installed.
If it is not installed, please refer to installation steps to install manually.
The following explains how to download project file by using USB drive or SD card.
1. On EasyBuilder Pro toolbar click [Project] » [Build for SD card / USB disk download].
Browse for the project file and then click [Build], the file for download will be generated in
the connected external device.
4. After password is confirmed, it will show the directories in the external device. (pccard: SD
Card; usbdisk: USB Drive)
5. Select the directory that contains project, and then click [OK] to start downloading.
Note
Please select the parent directory of the generated files when downloading. For the
structure above, please select disk_a_1, not mt8000ie.
You may click [System Settings] to save the hardware settings configured in EasyBuilder
Pro into SD card or USB disk, and then download the settings file to HMI. See “4 Hardware
Settings” for more information.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
4. Hardware Settings
This chapter explains HMI settings.
4.1. Overview ....................................................................................................................... 4-2
4.2. I/O Ports ........................................................................................................................ 4-2
4.3. LED Indicators ............................................................................................................... 4-2
4.4. System Reset ................................................................................................................. 4-3
4.5. System Toolbar.............................................................................................................. 4-4
4.1. Overview
The I/O ports may vary between models; please see the datasheet for more information.
The I/O Ports include:
SD card slot: Allows downloading / uploading project file, including recipe data, event log,
data log…etc and also allows recording history data and data backup.
COM Port: Connects PLC or other peripheral devices. The type of serial port include:
RS-232, RS-485 2W, RS-485 4W, and CAN Bus.
Ethernet: Allows downloading / uploading project file, including recipe data, event log,
data log…etc. Connects to Ethernet devices, such as PLC, laptop.
USB Host: Supports USB devices, such as mouse, keyboard, USB disk, printer, or barcode
device.
USB Client: Allows downloading / uploading project file, including recipe data, event log,
data log…etc and also allows recording history data and data backup.
For the first time operating HMI, please complete the following system settings. When finished,
the project files designed using EasyBuilder Pro can be used on HMI.
Each HMI is equipped with a reset button and a set of DIP switches. When using the DIP
switches to change modes, the corresponding functions will be triggered. If system password is
lost or forgotten, see the following steps to restore factory default.
1. Flip DIP Switch 1 to ON and the rest to OFF, and then reboot HMI. HMI will switch to touch
screen calibration mode.
2. A “+” sign appears on the screen, touch the center of the sign, after all 5 signs are touched,
“+” disappears and the touch screen parameters will be stored in HMI system.
3. After calibration, confirm to restore the default password, select [Yes].
4. Confirm to restore the default password again by typing [yes] and clicking [OK]. The
project files and history records stored in HMI will all be removed. (The default Local
Password is 111111. However, other passwords, such as Download/Upload passwords
have to be reset.)
The following lists the DIP switch settings of different models. Please see the relevant
installation instruction.
Note
The state of DIP Switch 4 on each unit may be different. If it should be ON when out from
factory, the Dip Switch 4 would be set ON and cut off. If it should be OFF, the Dip Switch 4
would be set OFF but the switch is not cut.
SW1 SW2 Mode
ON ON Restore factory default
ON OFF Hide system setting bar
After rebooting HMI, you can set the system with [System Toolbar] at the bottom of the screen.
Normally, this bar is hidden automatically. Only by touching the arrow icon at the bottom-right
corner of the screen will the System Toolbar pop up. From left to right the icons are: System
Settings, System Information, Text Keyboard, and Number Keyboard.
Set or modify system parameters. Confirm password for security first. The factory default
password is 111111.
Network
When downloading project file to HMI via Ethernet,
set the correct IP of the target HMI. You can obtain
an IP address automatically or enter the IP address
manually. To use Email and EasyAccess2.0, please set
correct DNS address.
Time / Date
Set HMI local time and date.
Security
Password protection, the default is 111111. Please
click the buttons to set the passwords, and finish
password confirmation.
[Password for entering system]
[Password for uploading project]
[Password for downloading project]
[Password for uploading history data]
History
Clears history data in HMI.
HMI name
Set HMI name to be used when download/upload
project.
OS setting
[Upgrade OS]
Upgrade firmware. Please do not turn off or unplug
HMI during OS upgrade process. For more details,
see the instruction about OS upgrade of the model
used.
[Portrait Mode]
Set screen orientation mode. After changing the
mode, reconnect HMI to power supply, for the
setting to take effect. That is, disconnect all power
from HMI, and then connect again. If portrait mode
is used (90 or 270 degree), the project must be
designed for portrait mode, otherwise it cannot be
correctly displayed.
Misc 1
Rotary switch for adjusting LCD brightness.
[Popup download window]
If selected, after inserting USB disk or SD card to
HMI, the Upload / Download dialog box shows.
[Restart after download/upload]
If selected, restarts HMI automatically after
uploading / downloading project.
Misc 2
[Hide mouse cursor]
If selected, the mouse cursor will be hidden.
[Enable [Reset HMI to default] button in calibration
mode]
If selected, when the operator presses and holds
anywhere on the screen for more than 2 seconds
during HMI startup, the touch screen calibration
mode will start. After calibration, [Reset HMI to
default] option shows.
[FTP client can modify USB/SD data]
If selected, USB/SD data can be modified using FTP.
[Modify HMI ports]
Change the port number for Upload/Download and
FTP.
EasyAccess 2.0
Activate EasyAccess 2.0 service.
Click the icon to download the demo project.
Please confirm your internet connection before
downloading the demo project.
5.1. Overview
Launch EasyBuilder Pro, in the main menu select [Home] » [System Parameters] to open the
[System Parameter Settings] dialog box. System Parameter Settings are divided into several
tabs, these tabs will be introduced respectively in this chapter.
5.2. Device
Parameters in this tab determine the attributes of each device connected with HMI. The device
can be a Local / Remote HMI / PLC. A default device "Local HMI" exists when creating a new
project. This device is the HMI that will be updated and programmed.
“Local Device” is a device connected to the local HMI. To control/connect a Local Device, add
this type of device first. Click [System Parameters] » [New] to open [Device Properties] dialog
box. For example, when connecting MODBUS RTU as a Local Device:
Setting Description
Name The name of the device.
HMI / Device In this example a device is used, so select [Device].
Location Select [Local] or [Remote]. In this example the device is
connected to the Local HMI, so select [Local].
Device type Select the type of the device.
I/F The available interface: [RS-232], [RS-485 2W], [RS-485
4W], [Ethernet], [USB], and [CAN Bus].
If the interface used is [RS-232], [RS-485 2W], or
[RS-485 4W], configure communication parameters
by clicking [Device Properties] » [Settings] and then
[Com Port Settings] dialog box opens.
Timeout
If the communication has been disconnected for more
than preset time limit configured in [Timeout] (in sec),
Window No. 5 will pop up and show “Device No
Response” message.
Turn around delay
While sending the next command to the device, HMI will
delay the sending according to the time interval set in
[Turn around delay]. This may influence the efficiency of
the communication between HMI and the device. Default
value is “0”.
Note: If the device used is SIEMENS S7-200 Series, it is
recommended to assign “5” to [Turn around delay] and
“30” to [Send ACK delay].
If the interface used is [Ethernet], click [Device
Properties] » [Settings] and the [IP Address Settings]
dialog box opens. Please set correct device IP address
and port number.
Note
When using cMT, select “Local HMI” in [System Parameter Settings] dialog box and then
click [New Device] to add a “Local PLC 1” under “Local HMI”.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
“Remote Device” is a device being connected to a remote HMI. To control a remote device, add
this type of device first. Please click [System Parameters] » [New] to open [Device Properties]
dialog box. For example, use MODBUS RTU as the Remote Device:
Setting Description
HMI or
In this example, a device is used, so select [Device].
Device
Location Select [Local] or [Remote]. In this example the device is
connected to Remote HMI, so select [Remote]. Set the IP
address and port number of the Remote HMI by clicking
[Settings] next to [Remote].
After all settings are completed, a new device named “Remote PLC 1” is added to the *Device
list].
Note
When using a cMT Series model, select the defined “Remote HMI 1” in [System
Parameters] dialog box and then click [New Device] to add a “Remote PLC 1” under
“Remote HMI 1”.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
“Remote HMI” is the HMI other than “Local HMI”, and PC is also a “Remote HMI”. To control a
Remote HMI, add this type of device first. Click [System Parameters] » [New] to open [Device
Properties] dialog box as shown in the following figure:
Setting Description
HMI or
In this example, the device used is a HMI, so select [HMI].
Device
Location Select [Local] or [Remote]. In this example Remote HMI is
used, select [Remote]. Set the IP address and port number
of the Remote HMI by clicking [Device Properties] »
[Location] » [Settings].
After all settings are completed, a new device named “Remote HMI 1” is added to the [Device
list].
Note
When using a cMT Series model, in [Device list] click [New HMI] to add a “Remote HMI 1”.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
5.3. Model
Configure the [HMI model], [Timer], [Printer] and [Scroll bar] settings, and more.
eMT、iE、XE、mTV Series
cMT Series
Setting Description
HMI model Select an HMI model.
The [Resize pop-up windows / objects] dialog box will pop
up when changing to a model with a different resolution.
Select required adjustment and click [OK]. In most cases,
select all options.
Landscape/Portrait
Change the orientation of the project.
HMI station no. Set the station number of current HMI. The default value is
“0”.
Port no. Set the port number of current HMI. It is also used in
MODBUS server. The default value is “8000”.
Support cMT Supports communication with cMT Series models. cMT
communication
protocol Series project file should use the same communication port.
Timer Clock source
Set the source device of the clock/time information. It is
used by [Data Sampling], [Event Log], etc.
If [HMI RTC] is selected, the time information comes
from the internal clock of the HMI.
If [External device] is selected, the time information
comes from an external device. The address of the
source device must set correctly. As shown below, the
time information is from “TV” address type of the
“Local PLC”. The addresses of “TV” start from 0 and
contain 6 consecutive words and each of them store
the following information:
TV 0 → Second (range: 0~59)
TV 1 → Minute (range: 0~59)
TV 2 → Hour (range: 0~23)
TV 3 → Day (range: 1~31)
LW-n Command
0 None
1 Update connection parameters.
LW-n+1 I/O
0 Ethernet
1 USB
LW-n+2 IP address (Total: 4 words)
LW-n+6 Port (Default port number: 9100)
Please note that using only the ppd file for a printer may
not be able to run the printer since the corresponding
driver is absent. Using tested models is recommended.
Scroll bar Set the width of Scroll Bar, when the size of the object is too
small to display the contents, a scroll bar is displayed in the
object. This feature can be applied to objects that allow
scrolling, such as Alarm Display, Event Display, History Data
Display, and Option List.
Pass through
(Virtual COM Set the port number for Pass-through communication.
port)
5.4. General
cMT Series
Setting Description
Options Enable fast display mode when change window
With this option selected, certain objects will cache the
most recent value and display it after changing window, to
achieve fast display.
The objects are: Bit Lamp, Word Lamp, Numeric, ASCII, Bar
Graph, Meter Display, Animation, and Moving Shape…etc.
RW_A enabled
Enable or disable recipe data RW_A. Enable this, the
objects can then control RW_A .The size of RW_A is 64K.
Windows Startup window no.
Designate the window shown when start up HMI.
Common window
The objects in the common window (Window No. 4) will be
shown in each base window. This determines that the
objects in common window are placed above or below the
objects in the base window.
Object layout
If [Control] mode is selected, when operating HMI,
[Animation] and [Moving Shape] objects will be displayed
above other kinds of objects neglecting the sequence that
the objects are created. If [Nature] mode is selected, the
display will follow the sequence that the objects are
created, the first created will be displayed first.
Screen saver Back light saver
If the screen is left untouched and reaches the time limit
set here, the back light will be turned off. The unit is
minute. Back light will be on again once the screen is
touched. If [none] is set, the back light will always be on.
Screen saver
If the screen is left untouched and reaches the time limit
set here. The current screen will automatically switch to a
window assigned in [Saver window no.].The setting unit is
minute. If [none] is set, this feature is disabled.
Saver window no.
To assign a window for screen saver.
Fast This setting is applicable for eMT, iE, XE, mTV, and iP Series.
selection Setting the attributes for fast selection button for Window
buttons No. 3. To use the fast selection button, create Window No.
3 first.
Attribute
Enable or disable fast selection window. Select [Enable] and
Some features are duplicated from system registers, such as, [Hide system setting bar
(LB-9020)], [Hide mouse cursor (LB-9018)], [Disable buzzer (LB-9019)], and [Disable upload
function (LB-9033)]. Users can also set these features via system tag.
To select a system tag, select [Address] » [System tag] check box when adding a new object and
then select the [Address Type].
To browse all the system tags, Select [Library] » [Tag] » [System] from the main menu of
EasyBuilder Pro.
Setting Description
Startup language after Set the language to use when HMI starts after
redownloading the the project is re-downloaded.
project
Delay time of device Certain PLC models need relatively longer
communication after startup time. In order to prevent
HMI starts communication error that occurs when HMI
attempts to communicate with a PLC that has
not yet started, a delay time can be set.
Include delaying the execution of all init.
Macros when HMI starts.
With this option selected, the macros that
have [Execute one time when HMI starts]
enabled will also be delayed.
Execute init. MACRO Designate the macro to be executed when HMI
when power on power on.
Auto logout If leaving HMI untouched for longer than the
set time, the objects protected by security
classes will not be able to operate. The user ID
and password must be entered again to unlock
it.
Hide system setting bar Hide the system setting bar in the bottom right
corner of the HMI screen.
Hide mouse cursor Hide the mouse cursor in HMI screen.
Mouse cursor size Set mouse cursor size.
Sound control With each touch on a button, a sound is
emitted: A sound is emitted when touching a
button.
With Each operation from a button, a sound is
emitted: When the [Min. press time] is
specified, there may be a time gap between
touching the object and the action of the
object. With this option selected, the sound is
emitted when the object actions.
Disable sound output: Mute HMI. (Not
including the sound played when tapping
system setting button on HMI.)
Disable upload function Disable HMI to upload project.
(effective after rebooting
HMI) (or set LB9033 ON)
5.6. Remote
Parameters in this tab configure remote connections. Certain functions can be carried out
using system registers.
Setting Description
Prohibit remote HMI Prohibit the connection with a remote HMI.
connecting to this The remote HMI will not be able to control the
machine local HMI.
Prohibit password Prohibit Remote HMI to read Local HMI’s
remote-read operation project password and user password.
(or set LB9053 ON)
Prohibit password Prohibit Remote HMI to write to Local HMI’s
remote-write operation project password and user password.
(or set LB9054 ON)
VNC Server If [Password free] check box is selected, the
client can connect with HMI via VNC without
entering the password.
If [Monitor mode] check box is selected, the
HMI connected via VNC can only be monitored
but not controlled.
If [Password from project] check box is
selected, set the password for VNC login.
Easy Access server Login EasyAccess 1.0 server:
Through this technology, users can easily
access to any HMI connected to the internet
and operate them on PC just like holding touch
screen in hand.
Easy Access does not transmit updated graphic
images directly but only the real time data.
This makes transmission really quick and
efficient. Please refer to “EasyAccess Manual”
for more information.
Location of EasyAccess 2.0 server:
Current location includes Global and China.
Click the icon to watch the demonstration
film. Please confirm your internet connection
before playing the film.
Diagnoser Enable
When selected, cMT Viewer will allow
diagnostic operations when connecting to a
cMT model. System register LB-12656 can also
be used to control Diagnoser.
Password free
Enabling Disgnoser will not require password
login. System Register LB-12657 can also be
5.7. Security
Parameters in this tab configure the user passwords and security classes. There are two
authentication modes: General Mode and Enhanced Security Mode.
For more information, see “10 Security”.
Up to 12 sets of user and password are available. Password should be one non-negative integer.
Once the password is entered, the objects that the user can operate are classified.
There are six security classes available: A to F.
If [None] is selected for an object, every user can access this object.
For example, when the security class of User No. 3 is set as the preceding figure, User No. 3
could only access objects of classes A, B, C and “none”.
At most 11 users can be set here. An [Administrator] user is provided in this mode. An
[Administrator] has all privileges and can operate all object classes. User passwords must be
alphanumeric and each user can have up to 12 classes: A to L.
Setting Description
Editable Determines whether other users can change the
password settings or see passwords.
Enable read-only
Under this mode, the settings can be viewed but not
changed.
Mask password
Passwords are masked by asterisks (*).
Select operable When [Use existing user accounts on HMI] check box
classes for each is selected, the user accounts existing on HMI will not
user be erased after downloading the project file to HMI.
Administrator Default administrator account, cannot be deleted, has
all privileges, and cannot be changed. Enhanced
Security Mode can be used with Option List object. It
displays the account names and privileges. If [Secret
Extended Memory is numbered from EM0 to EM9. It works in a way similar to other device
types (i.e. LW or RW address). Users can simply select from [Device type] list while adding a
new object. Size of each extended memory is up to 2G word.
Extended memories are saved as files in [SD card] or [USB disk]. [EM0] to [EM9] are saved as
“em0.emi” to “em9.emi” respectively. Users can use RecipeEditor.exe to open these files and
edit the data in the extended memory.
Data in extended memory will not be erased when power is cut, which means next time when
start up HMI again, data in the extended memory remains the same as before power off. This is
similar to recipe data (RW, RW_A).
When the device of extended memory does not exist and to read data in it, the data content
will be “0”; to write data to a device that does not exist, the "PLC no response" message will be
shown in HMI.
Users can insert or remove the external device to or from HMI without cutting the HMI power
to update or take data in extended memory.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Setting Description
Output Orientation
settings Set how will words or pictures be printed out, [horizontal]
or [vertical].
Printer size
Set to print out in [Original size] or to [Fit to printer
margins].
Margin
Set the top, bottom, right and left margin width.
Communication IP address
settings Assign the IP address of the printer via network.
Setting Description
HMI time zone Select HMI time zone.
Enable time Execute time synchronization when HMI starts
synchronization Automatically synchronizes HMI time with the
via NTP (Network designated NTP server when HMI starts.
Time Protocol) Server response time
server Select NTP server time zone.
Network time server
Provides four fields to fill in Network Time Servers for
user’s device. If the synchronization with server 1 fails,
the system will try to synchronize with server 2, and so
on. If HMI time cannot synchronize with any of the
Network Time Servers, the system register LB-12055 will
change to ON status.
Update interval
The frequency of synchronization, the range is from 10 to
86400 seconds.
Automatically set Start / End
daylight saving Set the start/end of Daylight Saving Time.
time (DST) The option [Last] may refer to the 5th or 6th week
depending on the selected month.
Daylight bias
Set the time zone's offset during DST.
Note
When DST ends, and the time falls back, the Trend Display object in Real-time mode will
stop refreshing for the overlapping hour(s) when it just going back to standard time.
However, historical data will not be affected.
When DST ends, adjusting HMI time (manually or by network) back to the DST period will
not be effective to the system. The system register LB-12355 stays OFF.
When DST ends, and the time falls back, the system will not start DST for the overlapping
hour(s). The system register LB-12355 stays OFF.
Before DST starts, adjusting HMI time (manually or by network) into the DST period will
start DST. The system register LB-12355 will be set ON. The HMI time will be the specified
time without adding the offset.
During DST, adjusting HMI time (manually or by network) to a time that is not within DST
period will end DST. The system Register LB-12355 will be set OFF. The HMI time will be
the specified time without subtracting the offset.
This feature does not yet support the DST in Southern Hemisphere.
For more information on system registers relevant to DST, see “22 System Registers”.
5.11. e-Mail
Setting Description
SMTP Settings Server: Set SMTP Server.
Port: Set communication port.
User name: Set e-mail address.
Password: Set e-mail password.
Confirm Password: Confirm e-mail password.
SMTP server requires authentication:
Decide whether Secure Password Authentication is needed
when log in e-mail.
Use the following type of encrypted connection:
Decide whether the encrypted connection (TLS, SSL) is
needed when sending e-mail.
Sender Name:
Information Enter the sender name or use the local HMI name in the
device list, or the name specified using system register
LW-10884 (HMI name).
Mail Address:
Setting e-mail address.
Error message When an error occurs in email delivery, the error message
sent from SMTP server can be shown in the designated
address.
For more information on system registers relevant to
mail delivery, see “22 System Registers”.
Error Turn OFF LB-12053 or LB-12054 before send an e-Mail
notification When enabled, system registers LB-12053 or LB-12054 will
be turned off before sending e-mail, otherwise, when an
error occurs in email delivery, the register remains ON.
Test SMTP Verify SMTP settings in advance by sending a test email to
Settings the specified e-mail address.
Setting Description
Contact list Add or remove contacts from the list.
Group Group up contacts.
Information No. of groups:
Set no. of contact groups, according to the number, the
groups are named from A to P and up to 16 groups can be
set.
Current group:
Displays the group that includes the contacts above.
Comment:
Enter a description for the current group.
Setting Description
Recipes List Add or delete a recipe, the maximum is 100 recipes.
New Add a new item, the maximum is 1000 items.
Settings Configure recipe settings, see the following description.
Delete Delete the selected items.
Import Import recipe definition.
Export Export recipe definition. The exported file will not contain
recipe records.
Click [Settings]:
Setting Description
Name Enter recipe item name.
Display Type Setting item data type.
Item size (WORD) Setting the size of the item.
Display with (Chars) Setting the number of characters of the item to be
displayed.
Right of decimal pt. Setting the decimal place when displaying data.
Alignment Setting the alignment when displaying data. [Align
left], [Align center], and [Align right] can be selected.
Note
The maximum number of Recipe Database acceptable in a project file is 100 Recipe
Databases. A Recipe Database can contain 1000 items.
The maximum data length acceptable in a Recipe Database is 2000 words. Exceeding the
limit can lead to compilation failure.
The name of Recipe Database and recipe items should be alphanumeric.
For more information, see “24 Recipe Editor”.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
This tab is for setting cellular data. Cellular data network settings may differ from one model to
another.
Applicable models:
cMT-SVR (OS ver. 20151127 or later)
cMT3072/cMT3090/cMT3103/cMT3151 (OS ver. 20180723 or later)
cMT-HDM/cMT-FHD (OS ver. 20190130 or later)
Attaching a 3G/4G USB dongle to the USB port enables the cMT-SVR to connect to 3G/4G
networks.
Setting Description
Use existing contact If this check box is selected, the cellular data currently
settings on HMI in HMI will be used. When no specific settings are
required, generally, [PIN code] is “0000”, [APN] is
“internet”, and [Username], [Password], [Dial number]
are optional.
When successfully connected, the following registers can be used to monitor and control the
connection status.
LW-11380: (16bit) : stop (set 0)/start (set 1) connection (USB
tethering)
LW-11381: (16bit) : connection status (0:no device, 1:disconnect,
2:connected, 3:fail, 4:OS not support, 5:HMI not
support) (USB tethering)
Click the icon to download the demo project. Please confirm your internet connection
6. Window Operations
This chapter describes different types of windows and how to create, set and delete a window.
6.1. Overview
A window is a basic element in a project. With a window, all kinds of information like objects,
pictures, and texts can be displayed on HMI screen. In total, 1997 windows numbered from 3 ~
1999 in EasyBuilder Pro can be built and edited.
There are 4 types of windows, each with different functions and usages:
Base Window
Fast Selection Window
Common Window
System Message Window
The most frequently used window, except for main screen, it can also be:
A background of other windows.
A keyboard window.
A pop-up window of Function Key object.
A pop-up window of Direct Window and Indirect Window objects.
A screen saver.
Note
Base Window should be in same size as the HMI screen. Therefore, the resolution of the
base window should be set to the resolution of HMI.
Window no. 3 is the default Fast Selection Window. This window can co-exist with base
window. Generally, it is used to place the frequently-used buttons on the lower-left side or the
lower-right side on the screen. Please create window no. 3 first, and set the relevant properties
in [System Parameter Settings] » [General] tab. Apart from showing or hiding fast selection
window with the button on the screen, there are system registers to do so:
[LB-9013] Fast Selection window control [hide(ON)/show(OFF)]
[LB-9014] Fast Selection button control [hide(ON)/show(OFF)]
[LB-9015] Fast Selection window/button control [hide(ON)/show(OFF)]
Note
cMT Series does not support Fast Selection Window.
Window no. 4 is the default Common Window. Objects in this window will be displayed in
other base windows, not including pop-up windows. Therefore, the common objects in
different windows are often placed in common window.
When operating HMI, select [Function Key] » [Change common window] to change the source
of common window.
In menu[File] » [Preferences] » [Display] select whether or not to [Display Common Window
objects on Base Windows] when editing a project. This can avoid overlapping objects in base
window with objects in common window.
The following system registers can be used to check the free memory space in HMI, USB disk,
or SD card:
[LW-9072] HMI current free space (K bytes)
[LW-9074] SD current free space (K bytes)
[LW-9076] USB disk current free space (K bytes)
To check if there is sufficient storage in the devices, the following system registers can be used.
These addresses will set ON when the space is under 4 MB.
[LB-9035] HMI free space insufficiency alarm (when ON)
[LB-9036] SD card free space insufficiency alarm (when ON)
[LB-9037] USB disk free space insufficiency alarm (when ON)
The text shown in windows no. 5 ~ 8 can be edited for easier reference.
Note
A screen can display up to 16 pop-up windows simultaneous including System Message
Window, Direct Window and Indirect Window.
The system does not allow opening the same window with two Direct (or Indirect)
Windows in one base window.
Windows no. 3 to 9 are used by the system only, and windows no. 10 to 1999 can be
edited based on actual usage.
For cMT Series, only 1 pop-up window can be displayed at a time.
Setting Description
Name The name appears on the title bar and also in window tree.
Window no. Can be 3 to 1999.
Size Set the window size in accordance with the HMI resolution.
Underlay Underlay Window can be seen as an extra Common
window Window. When designing the project, some commonly
used objects are used in some windows but not all. These
objects can be placed in underlay window.
Each base window can set three underlay windows as
background, from [Bottom] to [Top]. The objects in underlay
windows are displayed in this order in base window.
Pop-up Base window can also be used as a pop-up window. Use [X]
window and [Y] to set the coordinates indicating where in the screen
will this base window pop up. The origin of the coordinates
is the upper-left corner of the window.
Monopoly If the option is selected, when the base window pops up, no
operations of other pop-up windows and background
windows are allowed until the monopoly window is closed.
If a base window is used as a keyboard window, “Monopoly"
is automatically enabled.
Title bar If the option is selected, a title bar appears on a system
message window. This feature is only available for system
message windows no. 5 to no. 8.
Macro Select the macro to be executed when the window opens or
closes, or the macro to be executed periodically (each 500
ms).
Please build the macro in advance.
Note
The objects in underlay window cannot be edited from the base window that displays
them. To edit those objects, please open the underlay window where they are located.
When the window number of the underlay window used by the base window is identical
to the pop-up window, the pop-up window is disabled.
When base window and pop-up window use the same underlay window, the objects in
the underlay window cannot be displayed in pop-up window.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Or, from the main menu click [View] » [Open Window] and then click [New] and select the type
of the window and click [OK].
The cMT Series models support setting window transparency. This setting is applicable for
popup windows, Direct / Indirect Windows, and keyboard windows. The settings dialog box
and the effect are shown in the following screenshots. Greater transparency can make the
object on the base window more visible when it is covered by the popup window.
Example
Setting transparency to 40%:
EasyBuilder Pro provides a user-friendly interface with which users can easily edit projects. The
following are some editing tips.
As shown in the following screenshot, two areas can be found in the editing window: editing
area and non-display area. The non-display area refers to the area outside the editing area (the
one in the middle). Objects placed in the non-display area will not be visible on HMI, and
communication with devices continues. The invisible objects such as Meter, Time-based Data
Transfer, or Text objects used for comments can be placed in this area to avoid overlapping
with other objects in the editing area, which adds difficulty to project editing. The objects
placed in the non-display area remain effective.
Select Tool
Clicking this icon in the toolbar changes the cursor to the Select Tool. Select a
single object by clicking it, or select multiple objects by clicking on an empty
part of the editing screen and then drag a box around the objects.
Hand Tool
Clicking this icon in the toolbar changes the cursor to the Hand Tool. The Hand
Tool allows moving through the project screen by simply left clicking the mouse
and dragging anywhere.
6.5.2. Ruler
Selecting [View] » [Ruler] adds rulers to the top and left of the editing screen. Guides can be
added from the ruler by right click on the ruler. Objects will automatically snap to the guides
when moved or resized.
Setting Description
Delete Delete the guide.
Edit
Quick copy can be carried out by pressing and holding Ctrl key on the keyboard while an object
is selected, and then drag the cursor to a new location where the object will be created.
7. Event Log
This chapter explains how to set and use Event Log.
7.1. Overview
Firstly, define the event content then use Alarm Bar , Alarm Display , Event Display
objects to view the process of the whole event from triggering→waiting to be processed→
return to normal. The upper limit for the number of event logs is 10000.
Setting Description
Category Classifies events by dividing them into 0 ~ 255 categories.
Select one category to add or view event log. In the bracket
“* +”, it shows the number of events are in this category.
History Saves event log files to the specified location. Once an event
files occurs, the HMI immediately saves the history file. When
executing On-line or Off-line Simulation on PC, the files will
be saved in the HMI_memory / SD_card / USB folder under
the installation directory.
Preservation limit
This setting determines the maximum number of Event Log
files to be preserved in HMI memory. This does not include
the file generated today. That is, if [Days of preservation] is
set to 2; the two latest files excluding the file generated today
will be kept. The files that are not within the range will be
deleted automatically for saving the storage space.
Setting Description
Category Classifies events by dividing them into 0 ~ 255 categories.
Select one category to add or view event log. In the bracket
“* +”, it shows the number of events are in this category.
Edit category name mapping… Opens a category name table
which allows editing corresponding category names.
Control If select [Enable] check boxes under both [Control address]
address and [History files], entering a specific value in the control
address sends the corresponding command.
Value Command
1 Clear the event log on cMT HMI
2 Synchronize event log to the external device
3 Synchronize event log to the external device and then
clear the event log on cMT HMI
4 Use the history data stored in USB disk / SD card after
changing HMI
11 Update event log message contents by reading a new
String Table
If none of these values is entered, the system will synchronize
data in the same rules as [History files] setting explained
below.
Status When LW-n is used as the control address, the four
Error consecutive addresses following LW-n (LW-n+1~LW-n+4) will
(cMT Series) show status and error, please see the prompt in the settings
dialog box.
database
Copy Copy the selected item.
Paste Overwrite the selected items with the clipboard contents.
A message window will pop up to confirm this operation.
Paste
Append the clipboard contents to the end of the list.
(Add Mode)
Note
Before removing SD card / USB disk, or disconnecting from database server, please
synchronize event log data by using control address.
Click on the Excel icon in Event Log setting dialog box to open the Excel template for a
reference of editing. This template is under the installation directory, the file name is
EventLogExample.xls. This template includes the ready-made dropdown lists and validation
mechanism.
Note
[System tag] and [User-defined tag] cannot be set to true simultaneously, otherwise, the
system will view the User-defined tag to be a System tag, and [User-defined tag] to be
false. If setting [Device type] to [User-defined tag], please set [System tag] to false.
When setting [User-defined tag] to true, if the system compares the [Device type] with
the user-defined tag in the system, and no suitable tag is found, the system will set the
[User-defined tag] in event log to false
[Color] format is R:G:B, each should be an integer form 0 to 255.
Before importing Label Library / Sound Library, please make sure the library names exist in
the system.
When compiling the project, the errors in Event Log will be displayed in the Compile window.
To open Event Log and view the errors, double click on the item in the Compile window.
General Tab
Setting Description
Category Select event category, the range is from 0 to 255.
Priority When the number of events equals to the max number of the
level system (default 1000), the lower priority events will be
deleted and new events will be added in.
Save to In Event Log main settings, if [Save to HMI memory] check
history box under [History files] group box is selected, selecting [Save
to history] here determines whether each separate event
should be saved as historical file.
Push With this check box selected, each time when an event
notification occurs, user’s iOS®/Android® device can run EasyAccess 2.0
(EasyAccess application to receive push notifications.
2.0)
Delay time This feature is used to set the delay time of Event Log after
for event HMI reboot, in order to avoid false alarm that occurs upon
monitoring HMI reboot due to uninitialized values. This feature is often
when HMI
resets used with [Dynamic condition value]. The delay time only
occurs once upon HMI reboot.
Read The system reads data from this address to check if the event
address matches the trigger condition.
Notification When enabled, the system will set the specified address ON
or OFF when the event is triggered.
Follow
The notification bit will reset to its original state once the
alarm condition returns to normal. For example, when the
alarm is triggered, the state of the notification bit turns ON.
When the alarm condition returns to normal, and [Follow]
check box is selected, the state of the notification bit turns
OFF.
Condition When [Bit] is selected, Event Log will detect the state of a Bit
address.
When [Word] is selected, Event Log will detect the value of a
Word address to check if it is greater than, less than, or
equals to a specified value. See Example 1 and Example 2.
Dynamic condition value
Allows online change of the comparison value for trigger
condition when the condition is a Word address type. If
[Read/Condition use different addresses] is not selected, the
source of condition value will be the next consecutive address
from [Read address].
Read/Condition use different addresses
Allows selecting the Word address type to be the source of
condition value.
Example 1
Example 2
Message Tab
Setting Description
Content The text content displayed in [Alarm Bar], [Alarm Display],
and [Event Display] objects. Use the formats in the
following two examples of WATCH addresses to use
register data in content. The content in Label Tag Library
and String Table can be used in the Event Log message.
Font / Color / The font / color / background color can be set respectively
Background
color for each event. The font and color settings determine how
[Alarm Bar] shows the text, while The font, color, and
background color settings determine how [Alarm Display]
and [Event Display] show the text. These settings are not
available in the [Event Display] under History mode.
Write value for When an event in [Event Display] or [Alarm Display] is
Event/Alarm
Display object acknowledged, the value is written to the assigned [Write
address].
Click the icon to download the demo project. Please
confirm your internet connection before downloading the
demo project.
Sound If enabled, the selected sound will be played when an
event is triggered. Continuous beep can also be enabled,
which only stops when the event is acknowledged or
recovered.
For continuous beep, a delay time can be set between
triggering the alarm and the start of beeping.
e-Mail Tab
Setting Description
Recipients Select the [To], [Cc], and [Bcc] recipients.
Subject Enter the subject of the e-mail.
Message Enter the [Opening] and [Ending] content of an E-mail.
Attach If the [Contains a screenshot of window] check box is
selected, the screenshot of the selected window will be
attached.
Statistics
Setting Description
Occurrence If enabled, the number of occurrence of the event after
read and reset HMI startup will be written to the designated word
address address. The word address can be read / written.
Elapsed time If enabled, from an event occurs to its recovery, the
read and reset elapsed time (in seconds) will be written to the
designated word address. The word address can be read /
address written.
Click the icon to download the demo project. Please confirm your internet
connection before downloading the demo project.
8. Data Sampling
This chapter explains how to set and use Data Sampling.
8.1. Overview
After defining how the data is sampled, by sampling time, address, or data length, the sampled
data can be saved to the designated location, such as HMI memory, SD card, or USB disk. Trend
Display and History Data Display objects can be used to display sampling records.
Setting Description
Sampling mode High priority
Data sampling processes with this feature enabled will be
prioritized. Please note that too many priorities can slow
down update rate of other objects.
Time-based
Samples data in a fixed frequency. The [Sampling time
interval] can be set from “0.1 second(s) to 120 mins”.
Trigger-based
Triggers data sampling by the status of a designated bit
address.
Mode Conditions to trigger Data Sampling:
[OFF -> ON] Triggers sampling when the status of the
address changes from OFF to ON.
[ON -> OFF] Triggers sampling when the status of the
address changes from ON to OFF.
[OFF <-> ON] Triggers sampling when the status of the
address changes.
Set ON/OFF after triggered
If selected, after triggering Data Sampling, the system will
set the designated bit address back to ON/OFF state.
Read address Specify an address to be the source of Data Sampling. To
convert a data record, please use a user-defined
conversion tag that allows [Read conversion]. For array
addresses, the GetCnvTagArrayIndex function can get the
relative array index and then calculate.
Data Record In Real-time Mode, when [Auto. stop] is not selected, the
(Real-time) max. number of data records can be saved on HMI is
86400. When the number of records exceeds 86400, the
earliest data will be deleted.
Data Format
Data of different formats in consecutive registers can be
sampled. For example, setting: LW-0 (16-bit Unsigned),
LW-1 (32-bit Float), and LW-3 (16-bit Unsigned). The
upper limit for the number of records is 1000.
Auto. stop
Data sampling will automatically stop when the number
of records reaches [Max. data records].
See “8.3.1 Demonstration of Auto. stop”.
Clear real-time Set when the bit address status changes from [OFF -> ON]
data address or [ON -> OFF], clear the sampled data in Trend Display
Real-time Mode. The number of data records returns zero
but the data records that are already saved as history files
will not be cleared.
Hold address If the status of the designated address is set ON or OFF,
sampling will be paused until the status of the designated
address returns.
History files Save to HMI momery
Saves Data Sampling to HMI every 10 seconds. Or, use
system register [LB-9034] to force storing data. See
details on the restrictions of using LB-9034 in the Note
below.
Save to SD card / USB disk
Saves Data Sampling to the specified external device.
Each file consists of all records of a day
Note
A Data Sampling may include more than one type of records. Data Sampling can retrieve
different types of records at the same time. For example, if define three types of data, 4
words in total, the system retrieves a 4-word data each time from the designated address to
be the content in one Data Sampling.
When using [Each file consists of all records of a day] and set [Preservation limit] to 2 files,
the data of yesterday and the day before yesterday will be kept. Data that is not built in this
period will be deleted to prevent the storage space from running out.
When using [Customized file handling] and set [Preservation limit] to 2 files, not only the
currently sampled file, another 2 newest files (3 files in total) will be kept. The rest of the
data will be deleted to prevent the storage space from running out.
When running simulation on PC, all data sampling will be saved to the datalog folder in
C:\EBPro\[Storage Location]\datalog. If you change the data format of data sampling, delete
the previous data records in the installation directory to prevent the system from reading
the old records.
When saving files to USB disk or SD card, the capacity of a FAT32 folder depends on the
length of the file names. Fewer files can be saved when the file names are longer.
When using LB-9034, the shortest interval between two successful executions is 2 seconds.
That is, after LB-9034 is triggered, it can be effective again 2 seconds later.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
cMT Series
The settings are almost similar to eMT, iE, XE, mTV, iP Series. The following highlights the
settings that are different.
Setting Description
Data Record Data of different formats in consecutive registers can be
sampled. The upper limit for the number of records is
1000.
Control Entering a value in the control address sends the
address corresponding command.
Value Command
1 Clear the sampled data in HMI
2 Synchronize data to the external device / database
3 Synchronize data to the external device / database
and then clear the sampled data in HMI
4 Use the history data stored in USB disk / SD card
after changing HMI
5 As data sampling stops when HMI storage is full, this
command allows restarting of data sampling when
there’s free space
Status & Error When LW-n is used as the control address, the four
address consecutive addresses following LW-n (LW-n+1~LW-n+4)
will show status and error, please see the prompt in the
settings dialog box.
This feature depends on the arrangement of different objects and modes. (Set [Max. data
records] to n.)
Object [Auto. stop] not selected [Auto. stop] selected
Trend Display- Deletes the earlier Stops after reaching the
records and displays the specified number of
Real time latest number of records data records (n).
(n) in Trend Display. See
the following figure.
Trend Display- Keeps on sampling data Stops after reaching the
and displays all history specified number of
Historical data in Trend Display. data records (n).
History Data Keeps on sampling data Stops after reaching the
and displays all history specified number of
Display data in History Data data records (n).
Display.
Data Sampling Keeps on sampling new Stops after reaching the
data. specified number of
data records (n).
The figure illustrates how the data is sampled in Trend Display – Real Time mode when [Auto.
stop check] box is not selected. Set the number of data records to 10, when the 11th data is
generated, the earliest record is deleted and the newest record is added.
This feature can be used to customize naming and management of data sampling files (*.dtl,
*db).
Setting Description
File creation Automatic mode
A new file will be created when the name of an existing
file is changed.
Trigger mode
A new file will be created according to the [Trigger
method] settings.
Trigger method Limit by number of data records
A new file will be created when the number of data
sampling records reaches the specified "Max. data
records in a file"
Register status
A new file will be created when the status of a designated
bit address meets the specified condition. The condition
is specified in Mode field.
Set ON/OFF after triggered
If selected, after the new file is created, the system will
set the designated bit address back to ON/OFF state.
File name The file name can be an alphanumeric name, and certain
half-width symbols are allowed. The file name can also be
specified by a file name syntax.
Dynamic format
The file names can be set by a designated word address,
or by a file name syntax indicating the current system
time. The file name syntax can be specified by selecting
time buttons or entering the syntax in Format field. The
length limit is from 1 to 25.
The following half-width characters are not allowed:
\/:*?“<>|
Note
If both [Limit by number of data records] and [Dynamic format] check boxes are selected,
before startup HMI, please enter the name in the designated register for Dynamic Format,
otherwise, it is impossible the reach the “Max. data records in a file”, and the data sampling
file will not be generated.
When a new file is generated, the systm will first detect if the filename already exists. If the
file name does exist, the newly sampled data will be appended to the existing file.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
8.4. Synchronizing cMT Viewer data and Saving to External Device or Database
For other series, when displaying the sampled data in Trend Display object, it is necessary to
select from Real-time mode or History mode and the two modes cannot simultaneously be
displayed in one object.
cMT Series allows displaying history data and at the same time updates real-time data in one
Trend Display or History Data Display object. The data saved in the external device can be
updated.
The rule of synchronizing the data saved in the external device:
1. When the sampled data reaches 10000 records, HMI will automatically save data to the
external device and deletes the earliest 1000 records in HMI.
2. If the external device is removed from HMI, and inserted back again at the time when the
sampled data is under 9000 records, the data generated during the time the external
device is removed is saved in HMI and is not cleared. If the data exceeds 9000 records
during the time the external device is removed, the earlier data is cleared and cannot be
synchronized even to insert the external device back to the HMI.
3. If there already exists sampled data in the external device, the new data is appended
without overwriting the original data each time in synchronization.
To check the history data, see the following steps (Use Trend Display object as example).
1. Tap the icon in the upper-right corner of the Trend Display object.
2. The following dialog box appears.
9.1. Overview
Most objects read data from PLC devices, so a properly configured PLC address is needed.
Select the PLC to control at [PLC name] which comes from [System Parameters Settings] »
[Device List].
Setting Description
PLC name Select the PLC type.
Device type Different PLCs have different device types.
Address Set the read/write address.
System tag Address tags include [System Tag] and [User-defined Tag].
This option allows users to use [System Tag]. [System Tag]
consists of the preserved addresses by system for
particular purposes. The address tags include bit registers
or word registers (LB or LW).
After selecting [System tag], not only will the [Device type]
field display the chosen tag, but [Address] field will also
display the chosen register.
Index register Select this check box to use the [Index Register].
For more information about System Tag, see “22 System Reserved Words and Bits”.
For more information about Index Register, see “11 Index Register”.
For more information about Tag Library, see “16 Address Tag Library”.
In the settings dialog box of certain objects, “Shape” tab can be found. In this tab, Shape
Library and Picture Library can be used to add visual effects on objects. Select Shape tab to use
the libraries when creating an object.
9.3.1. Picture
Select [Use picture] and then click [Picture Library] button to open Picture Manager window,
and select a picture from the window.
Setting Description
Picture Click [Picture Library] button in Picture group box to open
Library Picture Manager window.
Set to
When this checkbox is selected, EasyBuilder will return the
original
picture to its original size to eliminate the redrawing step.
dimensions
Duplicate these This button is available only when a system picture is used.
attributes to Clicking this button will duplicate the attributes of the
every state current picture to other states.
9.3.2. Shape
Select [Use shape] and then click [Shape Library] button to open Shape Manager window, and
select a shape from the window.
Setting Description
Inner Select [Display] to show the inner color of the shape, and
select a color as the inner color by clicking the drop down
button.
Frame Select [Display] to show the frame color of the shape, and
select a color as the frame color by clicking the drop down
button.
Pattern color Click the drop down button to select a color for the
interior pattern of the shape.
Pattern type Click the drop down button to select a pattern.
In Picture Manager and Shape Manager windows, the currently selected pictue / shape is
highlighted yellow as shown below.
For more information, see “14 Shape Library and Picture Library”.
Setting Description
Use label Select this check box to use labels for the object.
Use label
Select this check box to choose a label in Label Library.
library
Convert
labels to Select this check box to convert the label text into bitmap
bitmap format.
images
Label Library Browse Label Library
For more information, see “15 Label Tag Library
and Multi Language”.
Font Select a font from the list. EasyBuilder Pro supports
Windows True-type fonts.
Color Select the font color.
Size Select the font size.
Blink Specify the way the text blinks. Choose [None] to disable
this feature or set the blinking interval to [1 second] or
[0.5 seconds].
Italic
Use Italic font.
Underline
Use Underline font.
Movement Direction
Set the direction of the marquee effect. The directions
include: [No movement], [Left], [Right], [Up], [Down].
Continuous
Specify how the marquee effect is displayed.
If not selecting this check box, the next text appears only
when the previous text disappears completely.
Speed
Adjust the speed of the text movement.
Content Set the content of the text. If [Label Library] is used, it will
automatically use the text defined in Label Library.
Tracking If this check box is selected, when changing the position of
the text in one state, the text position in the other states
will also change in accordance.
Duplicate this
label to other Duplicate the current text to the other states.
state
Note
When Text/Comment object is used with Comment enabled, the text used as comment
will not appear on HMI.
Clicking shortcut keys can align multilined label text. To align label text, please
select the dotted outline of the label (red). When object’s outline (blue) is selected,
clicking the shortcut keys can only move the entire label to the left, center, or right edge
of the object without aligning the label text lines.
When an object is created and placed in the editing screen, double click it and select the
[Profile] tab to adjust the position and size of the object.
Setting Description
Position Pinned
When this check box is selected, the position and the size
of the object cannot be changed.
[X] and [Y]
The coordinates of the position of the object in the editing
screen.
Size Adjust the [width] and [height] of the object.
10.1. Overview
This chapter discusses the protection for operations provided by setting up user passwords and
security classes. There are two authentication modes:
General Mode
Enhanced Security Mode
Each mode will be introduced later.
The security parameters can be found in [System Parameter Settings] » [Security]. Two modes
are available: General Mode and Enhanced Security Mode.
Up to 12 sets of user and password are available. A password should be one non-negative
integer. There are six security classes: A to F.
Once the password is entered, the objects that the user can operate are classified. As shown
below, “User 1” can only operate objects with class A or class C.
Note
General Mode is not available for cMT Series.
Click the icon to download the demo project. Please confirm your internet connection
Enhanced Security Mode provides a [Control address] for users to manage the accounts
directly on HMI. Please see “10.3 Enhanced Security Mode and Control Address” for more
details. Alternatively, use USB Security Key to log in automatically. Insert the USB disk in which
the key is saved to log in. Please see 10.4.3 Login / Logout Automatically with USB Security Key”
for more details.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
The Control Address is used for login and account management. The Control Address can only
be assigned to LW register on Local HMI, and 20 consecutive registers will be used. To log in
using Control Address, please select to log in by [user name] or [user index].
Please set [user name] and [password] in [System Parameter Settings] » [Security] » [Enhanced
security mode] in advance.
When control address is set to LW-n, where n is an arbitrary number, the following addresses
will be designated:
Address Tag Name Description
LW-n (1 word) command Commands to be executed: Login, Logout,
Add/Setting/Delete Accounts, etc.
LW-n + 1 (1 word) command Displays the result of executing
execution commands.
result
LW-n + 2 (1 word) user index The index of accounts (used with Option
List Object).
LW-n + 3 (1 word) user Binary value. Level A = bit0, Level B =
privilege bit1, …
LW-n + 4 (8 words) user name Account name (Case-sensitive and only
allows letters and numbers).
LW-n + 12 (8 words) password Account password (Case-sensitive and
only allows letters, numbers, or special
characters).
After setting the [Control address], the relevant addresses can be found in [Address Tag Library]
» [User-defined tags].For example, setting [Control address] to LW-0: (UAC stands for User
Account Control)
LW-0 [UAC command]
LW-1 [UAC command execution result]
LW-2 [UAC user index]
LW-3 [UAC user privilege]
LW-4 ~ LW-11 [UAC user name]
LW-12 ~ LW-20 [UAC password]
Note
In Enhanced Security Mode, if cMT Series model is used, the Control Address can only be
assigned to PLW register of Local HMI.
10.3.2. Commands
Note
Add a temporary account / expiring account: The difference between temporary accounts
and expiring accounts is that temporary accounts are not stored in the system and will be
invalid after HMI is turned off. Both temporary accounts and expiring accounts will be
automatically deleted when they are expired.
Delete the existing account: The currently logged in account cannot be deleted.
Offline/Online Simulation: Simulate using the account settings in the program. Any
modifications of the account during simulation will not be reserved for next simulation.
admin: Default administrator account, cannot be deleted, has all privileges and cannot be
changed.
System Register PLW-10754: Displays current user name. (Only available for cMT Series)
The [user privilege] address does not display the privileges assigned to current user
account, please use system register LW-9222 to display the privileges.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
After the command is executed, the system will store the result code to control address LW-n +
1. The listed result codes below are shown in hexadecimal format.
Result Codes Command execution result
(0x001) Succeeds
(0x002) Invalid command
(0x004) Account exists (when adding a new account)
(0x008) Account not exists
(0x010) Password error
(0x020) Deny command
(0x040) Invalid name
(0x080) Invalid password character exists
(0x100) Invalid import data
(0x200) Out of validity range (when log in by USB Security Key).
The [Effective Time] can be set in Administrator Tools.
Note
Users can add a new event in Event (Alarm) Log, and designate the [Read address] to LW-n
+ 1 [command execution result]. Open [Message] tab » [Text] » [Content] and specify the
message to be displayed in Event Display Object for showing command execution result.
The user accounts can be set using other tools we provide, apart from the settings in [System
Parameter Settings] » [Security] tab. Administrator Tools can also be used to set user accounts.
Administrator Tools can be found in the installation directory. After the program starts, select
the [User Accounts] check box. Up to 127 accounts can be added.
The added accounts can be stored in USB disk or SD card and imported in HMI by a Function
Key Object. To do so, create a Function Key Object, and select [Import user accounts].
When finished, insert the external device to HMI, and press Function Key to import accounts. If
[Overwrite] is selected, the existing accounts will be overwritten with new accounts and
automatically log out after importing. If select [Delete file after importing user accounts] check
box, the system will delete the account data saved in the external device after importing. If the
[Effective Time] in Administrator Tools is specified, the importing can only be done in the time
limit specified. The imported accounts will not be deleted by system when the effective time
ends.
Instead of entering user name and password to login, a key can be used to do so. In EasyBuilder
Pro installation directory, launch Administrator Tools, select [USB Security Key] check box. The
account information uses the predefined data in [System Parameter Settings] » [Security].
Note
Please note that the user accounts used for USB Security Key must already exist in HMI.
USB Security Key can be stored in USB disk or SD card, and create a Function Key to log in by
USB Security Key as shown below:
When finished, insert the external device to HMI, and press Function Key to log in using USB
Security Key. If the [Effective Time] in Administrator Tools is specified, the login can only be
done in the time limit specified. The system will log out automatically when the key expires.
As shown below, in [System Parameter Settings] » [Security], select [Enable] check box for
[Execute auto. login/logout when insert an USB key into HMI].
This function allows automatic login / logout using an USB security key. Insert the USB disk in
which the key is saved to HMI to log in, and remove the USB disk to log out. The login / logout
status will be written into a designated address, the result codes of login / logout:
0x00: No Action
0x01: Login Succeeds
0x04: Login Fails
0x08: Login Succeeds
0x10: Logout Fails
For more information about USB Security Key, see “36 Administrator Tools”.
Note
When Auto Login / Logout is enabled, log in by [Function Key] object is not possible, but it
is still possible to log in / out with a designated control address.
This function does not support On-line / Off-line simulation.
Only the USB Security Key saved in USB disk is valid.
Click the icon to download the demo project that explains how to use USB Security Key to
log in / out. Please confirm your internet connection before downloading the demo project.
Enhanced Security Mode uses Control Address LW-n + 2 as account index. With Option List
Object, account names and privileges can be displayed. Users can select whether or not to
display the account privileges and secret users in Option List. Secret users are set to be hidden
in [System Parameter Settings] » [Security] » [Enhanced Security Mode]; their account names
will be hidden in Option List if [Secret user] check box is not selected. If the control address is
set to LW-0, the monitor address for index of Option List is designated to LW-2.
Settings in the Security tab allow users to configure conditions so that the object is operable
when the condition is met. The sound emitted when operating the object can be selected.
Setting Description
Min. press Press and hold the object for longer than the [Min. press
time (sec) time] set here to activate the object.
Display After pressing the object, a dialog appears for operation
confirmation confirmation. If the response to this dialog comes later
request than the set [Max. waiting time (sec)], this dialog
disappears automatically and the operation will be
canceled.
10.5.2. Enable/Disable
When [Use register status/value] or [Use control token] is selected, whether the object is
operable is determined by the status of the designated address or acquisition the control token,
respectively. As shown in the following figure, only when LB-0 is in OFF state and “2: Control
Token” is acquired will this object be operable.
The following table describes the action this object will take when it’s token is not acquired.
Setting Description
Do nothing When the control token is not acquired, the object is
when disabled displayed.
Hide when When the control token is not acquired, the object is
disabled hidden.
Grayed label When the control token is not acquired, the label of the
when disabled object turns gray.
When selected, the status of the designated bit/word address determines whether the object
is operable.
Setting Description
Bit The object is operable when the designated bit is in
On/Off state.
Word When [Use Register Status/Value] and [Word] are both
selected, the status of a designated word address
determines whether the object is operable.
Enable if value is: >, <, ==, <>, >=,<=
When the value in the word address reaches the
condition specified here, the object is operable.
Tolerance: This setting is available for <> and ==.
<>: The object will be operable when:
Note
Word objects supported on cMT Series include: Set Word, Numeric, ASCII, Combo Button.
Word objects supported on iE/XE/eMT/mTV Series include: Set Word, Numeric.
Contrl Token
One cMT HMI can be simultaneously controlled by multiple cMT Viewer clients. To ensure
system safety by preventing an object to be controlled by multiple clients simultaneously, a
control token can be set. Only one cMT Viewer client can acquire the control token at a time,
and only the cMT Viewer client that acquires control token can operate the object. The rest of
the clients can acquire the token one by one when the token is not occupied.
The applicable objects include: Combo Button, Numeric, ASCII, Direct Window, and Indirect
Window.
Setting Description
Control Token Select a control token for the object.
Token Library… Add/delete control token.
Control Token – Local Only
When this token is selected, only the local cMT HMI can
operate the object. (applicable models: cMT3072,
cMT3090, cMT3151, cMT-HDM…)
Idle Timeout
Setting Idle Timeout helps avoid the issue that prevents
other users from gaining operating right when the token
possessor, having finished operation, does not release
the control token. When the token possessor’s HMI
remains inactive (no touch operation) for a given time
period, the control token will be released.
The setting range allowed for Idle Timeout is 0~86400
seconds. For “Control Token- Local Only”, the Idle
Timeout can only be zero and is not adjustable.
Enable if Token is When [acquired] is selected, only the device that
obtains the control token can operate the object. When
[unacquired] is selected, only the devices that do not
obtain the control token can operate the object.
Note
When a cMT Viewer client opens a page, it obtains unacquired control tokens of all
objects. Upon leaving the page, the control tokens are released.
A cMT Viewer client can simultaneously possess multiple control tokens.
Control tokens are allocated on a first come first served basis, and a control token can be
possessed by one cMT Viewer client at a time. Attempts made for acquiring a control
token when it is unavailable will be put into a queue, and it becomes available, it will be
passed to the next one in the queue.
When changing to a new window, even if the object with the same control token appears
in both previous and new window, the control token is reacquired upon entering the new
window. If the object with the control token is placed in an overlay window or a common
window, and the same overlay window is used in both previous and new window, then
reacquiring control token will not take place.
When cMT Viewer client is disconnected from the Server, and the connection is recovered
within 30 seconds, reacquiring control token is not necessary. When the disconnection
goes longer than 30 seconds, reacquiring control token is necessary.
Control token is released when its possessor’s HMI remains untouched for a period of
time longer than Idle Timeout. Later on when HMI is operated, an attempt will be made
to acquire the control token again.
To monitor idle time countdown, use an ASCII object with system register PLW-11998.
When two or more control tokens are used, this system register will count down from
least idle time until elapsed.
In the following example, on the top, ASCII object shows idle time countdown from
PLW-11998. The bottom two objects use two different control tokens, one with a
5-second idle time and the other 15-second. When running simulation, PLW-11998 will
count down from five seconds.
After 5 seconds, the bottom left object turns grey due to expired control token, and
another object has 10 seconds left for countdown.
Setting Description
Object class “None” means any user can operate this object. Only
account “admin” can operate “Administrator” object
class.
Disable Once the permitted class of the user matches that of the
protection object, the system will stop checking the security class
permanently permanently, that means, any user can operate this
after initial object freely after it is unlocked.
activation
Display When an unauthorized user attempts to operate the
warning object, a warning dialog (Window no. 7) appears. The
message if content of the message in the dialog can be modified.
access denied
Make invisible When the user's privilege does not match the object
while class, the object will be hidden.
protected
Note
Password input: If the password is incorrect, [LB-9060] will be ON; if the password is
correct, [LB-9060] will be OFF. All user passwords (User 1 to User 12) can be obtained
from system registers [LW-9500] ~ [LW-9522], 24 words in total.
Changing password directly on HMI: When [LB-9061] is set ON, the system will read data
in [LW-9500] ~ [LW-9522] to update user password. The new password will be used in
future operations. Please note that the user operable object classes will not be changed
due to the change of password.
Before sending the project to others who may edit the project afterwards, it is recommended
to click [Editable] button in Security settings tab to open read-only mode. This mode can
protect password settings from unauthorized editing.
When [Enable read-only] is selected, a password will be required for changing security settings
in the project.
When [Mask password] is selected, passwords will be masked by asterisks (*).
Note
The protected projects cannot be decrypted since they are encrypted by users, therefore,
please remember your password.
Selecting multiple objects in a group and then selecting [Security settings] in the right-click
menu can open an Objects’ Security Properties window that allows users to change the
security settings of all the selected objects at a time.
Note
When the selected objects have different security settings pages, Objects’ Security
Properties will automatically adjust and show the settings that users are allowed to
change. The rest of the settings will be hidden or greyed out. The following is a window
that shows when selecting a Bit Lamp and a Numeric object.
11.1. Overview
EasyBuilder Pro provides Index Registers for changing addresses flexibly. With Index Registers,
user can change the object’s read/write address directly on HMI without changing its settings.
There are 32 Index Registers, divided into 16-bit and 32-bit.
The corresponding address of 16-bit Index Register 0 to 15: LW-9200 (16bit) to LW-9215 (16bit)
The maximum offset range is 65536 words.
The corresponding address of 32-bit Index Register 16 to 31: LW-9230 (32bit) to LW-9260
(32bit)
The maximum offset range is 4294967296 words.
When using [Index register], the address is designated by the following equation:
The constant set in [Address] + the value in the chosen Index Register.
Note
Index Registers work for the Word registers. For Bit registers, adding 1 to the value in the
Index Register, the offset is 16 bits.
The following explains the way to designate the register while Index Register is used.
If not selecting [Index register] check box and set address to [LW-10]. The system will directly
If select [Index register] check box and set [Index] to [INDEX 0 (16-bit)]. The system will read /
write [LW(10 + value in Index Register 0)].
If the data in [LW-9200] is “5”, the designated address is [LW(10+5)] = [LW-15].
Example 1
The following shows an example of using a Word register and select [Index register]. If the
value in [LW-0] is 0, in [LW-10] is 3, and in [LW-20] is 6, the result is:
If the value in Index 0 (LW-9200) is 10, then [LW0 + Index 0] = read [LW-10] = 3.
Example 2
The following shows an example of using a Bit register and select [Index register].
If the state of [LB-16] is ON, and the state of [LB-32] is OFF.
Since 1 Word equals to 16 Bit, adding 1 in Index Register, the offset is 16 bits.
If Index 6 (LW-9206) is set to 1, then switch [LB-0 + Index6] reads LB-16 which is in ON state.
If Index 6 (LW-9206) is set to 2, then switch [LB-0 + Index6] reads LB-32 which is in OFF state.
Note
When using Index Registers for Bit register, the offset is 16 bits. For example, if the Bit
register is LB-0, and set the value in Index Register to 1, then LB-16 will be activated. If set
the value in Index Register to 2, then LB-32 will be activated.
Click the icon to download the demo project. Please confirm your internet connection.
12.1. Overview
Numeric Input and ASCII Input objects need keyboard as an input tool. Both numeric keyboard
and ASCII keyboard are created with Function Key object. Apart from the keyboards provided
by EasyBuilder Pro, you can create the keyboard if needed.
The types of the keyboards are:
1. Create and open a window for the new keyboard. For example, set to “window no. 200”.
2. Adjust the height and width of “window no. 200” and create a variety of Function Key
objects in [ASCII/Unicode mode].
4. Select [System Parameter Settings] » [General] » [Keyboard] » [Add] to add “window no.
200”. Up to 32 keyboards can be added.
5. After the keyboard window is added, when you create Numerical Input and ASCII Input
objects, “200. Keyboard” can be found in *Data Entry+ » *Keyboard+ » *Window no.+. The
[Popup position] is for designating the display position of the keyboard on the HMI screen.
The system divides the screen into 9 areas.
6. Select “200.Keyboard”. When you press Numerical Input or ASCII Input objects on the
screen, “window no. 200” will pop up. You can press the keys on the keyboard to enter
data.
1. Create a Direct Window object and set a read address to activate it.
In [General] » [Attribute] select [No title bar] and the correct [Window No.].
2. Open the [Profile] tab to set the same size as the created keyboard window.
3. Create a Numeric Input object, and don’t select [Use a popup keypad] check box.
4. Create a Set Bit object, set address to [LB-0] and set [Set style] to [Set ON]. Overlay it on
the Numeric Input object. Pressing the Numeric Input object will open the keyboard
window.
5. Add Set Bit objects on the [Enter] and [ESC] Function Key objects respectively. Set address
to [LB-0] and [Set style] to [Set OFF]. In this way when pressing either [Enter] or [ESC] key
will close the keyboard window.
You can also place a fixed keyboard on the screen instead of popup keyboard or Direct Window.
This type of keyboard can’t be moved or closed.
1. Create a Numeric Input object, in [Data Entry] » [Keyboard] don’t select [Use a popup
keypad] check box.
2. Use Function Key objects to design the keyboard and place it on the screen.
3. Press the Numeric Input object and enter a value with Function Key objects directly.
The following steps explain how to create a Unicode keyboard with Function Key objects.
1. Place an ASCII Input object on the window and select [Use Unicode] check box.
2. Create Function Key objects as shown in the following figure, and an [Enter] key. A simple
UNICODE keyboard is created.
Note
You can group up the elements of the designed keyboard and save to Group Library for
future use.
Click the icon to download the demo project. Please confirm your internet connection before
downloading the demo project.
13. Objects
This chapter explains how to use different objects.
13.1.1. Overview
Bit Lamp object displays the state of a designated bit address. If the bit state is OFF, the State 0
shape will be displayed. If the bit state is ON, the State 1 shape will be displayed.
13.1.2. Configuration
Click [Object] » [Bit Lamp] icon on the toolbar to open a Bit Lamp object property dialog box.
Set up the properties, press OK button, and a new Bit Lamp object will be created.
General Tab
Setting Description
Comment User can describe the information of the object.
Bit Lamp / Toggle Switch
Switch between Bit Lamp and Toggle Switch features.
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the bit device that controls the [Bit
Lamp] object. Users can also set address in [General] tab while
adding a new object.
Invert signal
Reverses the display of ON / OFF states. For example, if [Invert
signal] check box is selected, when the designated bit is OFF, the
object displays ON state.
Blinking The appearance of the object may alternate between states when
the bit is ON or OFF.
Mode:
None
No blinking.
Alternating image on state 0
The appearance of the object alternates between State 0 and 1
when the bit is OFF.
Alternating image on state 1
The appearance of the object alternates between State 0 and 1
when the bit is ON.
Blinking on state 0
The State 0 appearance of the object will blink when the bit is OFF.
Blinking on state 1
The State 1 appearance of the object will blink when the bit is ON.
Hide picture/shape if no corresponding picture for current state
If selected, when there are not enough pictures to represent all the
states, hides the picture. Otherwise, displays the last state.
Note
In [Label] tab, if select [ON=OFF (use state 0)] check box, both state 0 and 1 follow the
settings of state 0.
13.2.1. Overview
Word Lamp object displays the state according to the value of a designated word register. Up to
256 states are available. When the value of the register is 0, State 0 appearance of the object is
displayed, and with the register value being 1 the object displays State 1, and so on.
13.2.2. Configuration
Click [Object] » [Word Lamp] icon on the toolbar to open a Word Lamp object property dialog
box. Set up the properties, press OK button, and a new Word Lamp object will be created.
General Tab
Setting Description
Comment User can describe the information of the object.
Word Lamp / Multi-State Switch
Switch between Word Lamp and Multi-State Switch features.
Mode / Offset Word Lamp object offers the following three modes:
Value
The state is displayed according to the value in the designated word
address and plus the [Offset].
As shown below, if the value within LW-200 is 3, since the offset is
set to 3, the shape of state 0 is displayed. (value 3 - offset 3)
LSB
Convert the value from decimal to binary. The least significant
active bit in a binary data word selects the state displayed.
Decimal Binary Displayed state
0 0000 State 0 displayed. All the bits are 0.
State 1 displayed. The least significant
1 0001 active bit is bit 0.
State 2 displayed. The least significant
2 0010 active bit is bit 1.
State 1 displayed. The least significant
3 0011 active bit is bit 0.
State 3 displayed. The least significant
4 0100 active bit is bit 2.
State 1 displayed. The least significant
5 0101 active bit is bit 0.
State 2 displayed. The least significant
6 0110 active bit is bit 1.
State 1 displayed. The least significant
7 0111 active bit is bit 0.
State 4 displayed. The least significant
8 1000
active bit is bit 3.
Bit combination
Lamp state depends on the states of bit combinations, where PLC 1
represents the least significant bit (LSB), PLC 2 represents the next
LSB, and so on. Maximum number of bit is 4, for a total of 16
states. Changing [No. of states] in Attribute group box changes the
number of read addresses.
Note
In [Label] tab, Language 1 determines the relevant settings of the font. For Language 2~8,
only the font size can be changed and other settings follow Language 1.
13.3.1. Overview
The Set Bit object provides two operation modes: manual or automatic. Manual mode can
trigger a designated bit address to change the state between ON and OFF when the object is
touched. In automatic mode, the bit is automatically activated when a pre-defined condition
occurs; touching the button will not be effective.
13.3.2. Configuration
Click [Object] » [Set Bit] icon on the toolbar to open a Set Bit object property dialog box. Set up
the properties, press OK button, and a new Set Bit object will be created.
General Tab
Setting Description
Write address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the bit device that controls the Set
Bit object. Users can also set address in [General] tab while adding
a new object.
Write after button is released
Note
In [Label] tab, if select [ON=OFF (use state 0)] check box, both state 0 and 1 follow the
settings of state 0.
Using address types other than PLB or PLW_Bit for Set Bit objects with [Periodic Toggle]
attribute is not supported by cMT-SVR.
13.4.1. Overview
The Set Word object provides two operation modes: manual or automatic. Manual mode can
change the value in a designated word address when the object is touched. In automatic mode,
the word register is automatically activated when a pre-defined condition occurs; touching the
button will not be effective.
13.4.2. Configuration
Click [Object] » [Set Word] icon on the toolbar to open a Set Word object property dialog box.
Set up the properties, press OK button, and a new Set Word object will be created.
General Tab
Setting Description
Write address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that controls the
Set Word object. Users can also set address in [General] tab while
adding a new object.
Write after button is released
If this function is selected, the action is delayed till button is
released; otherwise, the action is executed once the button is
pressed.
Notification If this check box is selected, it will notify a designated bit address
(setting ON or OFF).
Before writing / After writing
Set the state of the designated bit address before or after the
manual operation.
Attribute Set Style
Select the button action from the drop down list, see Example 2.
Dynamic limits
Set the [Bottom limit] and [Upper limit] by a designated register,
see Example 1.
Example 1
Set the [Bottom limit] and [Upper limit] by a designated register. When Dynamic Address is
LW-n, where n is an arbitrary number, the rule of setting Upper / Bottom limit is:
Content 16-bit 32-bit
Dynamic address LW-n LW-n
Bottom limit LW-n LW-n
Upper limit LW-n+1 LW-n+2
When Dynamic Address is LW-100, the rule of setting Upper / Bottom limit is:
Content 16-bit 32-bit
Dynamic address LW-100 LW-100
Bottom limit LW-100 LW-100
Upper limit LW-101 LW-102
Example 2
The available button actions are:
Write constant value
Preset a register with the value entered. Each time when the button is pressed, it writes the
[Set value] to the designated register. Data format is as set by the [Write address]; it can be
16-bit BCD, 32-bit BCD, …32-bit float. As shown below, when the button is pressed, preset the
register with 12.
Periodic JOG++
This automatic function increases the value in the register by a set amount: [Inc. value], at a set
rate: [Time interval], to the [Upper limit]. As shown below, the system will automatically
increase the value in the register by 1 every 0.5 second, till the value is 10. Then the value
returns to 0 and add 1 every 0.5 second again.
Automatic JOG++
This automatic function increases the value in the register by a set amount: [Inc. value], at a set
rate: [Time interval], to the [Upper limit].then holds this value. As shown below, the system will
automatically increase the value in the register by 1 every 0.5 second, till the value is 10, and
then stop.
Automatic JOG--
This automatic function decreases the value in the register by a set amount: [Dec. value], at a
set rate: [Time interval], to the [Bottom limit].then holds this value. As shown below, the
system will automatically increase the value in the register by 1 every 0.5 second, till the value
is 10, and then stop.
Periodic bounce
Increases the word address value to the [Upper limit] by a [Inc. value] at a set rate in [Time
interval], then decreases to the [Bottom limit] by the same value at the same rate. As shown
below, the system will increase the value in the designated register by 1 every 0.5 second, till
the value is 10, and then decrease the value by 1 every 0.5 second till the value is 0 whenever
the screen is active.
Periodic step up
Step up to the [High limit] by [Inc. value] at a set rate in [Time interval], then reset immediately
to the [Low limit]. The action repeats whenever the screen is active. As shown below, the
system will increase the value in the designated register by 1 every 0.5 second, till the value is
10, and then reset to 0 and increase again, and the action repeats.
Cyclic JOG-
Each time when the button is pressed, decrease the word address value to the [Bottom limit]
by [Dec. value] then reset to the [Upper limit]. As shown below, each time when pressing the
button, the system will decrease the value in the designated register by 1, till the value is 0,
and then reset to 10 and decrease again by pressing the button.
Cyclic JOG++
When the button is held longer than a set time in [JOG delay], it increases the value in a
register by a set amount in [Inc. value] at a set rate in [JOG speed], to the [Upper limit], then
reset to the [Bottom limit]. As shown below, when the button is held longer than 0.5 second,
increase the value in the designated register by 1 every 0.1 second, till the value is 10, and then
Cyclic JOG- -
When the button is held longer than a set time in [JOG delay], decrease the value in a register
by a set amount in [Dec. value] at a set rate in [JOG speed], to the [Bottom limit], then reset to
the [Upper limit]. As shown below, when the button is held longer than 0.5 second, decrease
the value in the designated register by 1 every 0.1 second, till the value is 0, and then reset to
10 and decrease again by holding the button.
Security Tab
Setting Description
Interlock Use interlock function
When this option is enabled and [Word] is selected, whether
the object is operable depends on the condition of a word
address specified in [Trigger if value is:]. In the settings above,
the object is operable only when the value in LW-1 is greater
than 1.
Hide when disabled
The object is hidden when the specified condition does not
occur in the specified word address.
Grayed label when disabled
The label of the object turns gray when the specified condition
does not occur in the specified word address.
Note
Using address types other than PLW for Set Word objects with automatic attributes such
as [Periodic set up], [Periodic set down], [Automatic JOG++], [Automatic JOG--], and
[Periodic JOG++]…etc, is not supported by cMT-SVR.
13.5.1. Overview
The Function Key object can be used for several tasks, such as switching between windows,
keypad design, Macro execution, screen hardcopy, and setting USB security key.
Function Keys with [Screen hardcopy] or [Import user data/Use [USB Security Key]] selected do
not work remotely on cMT Viewer.
13.5.2. Configuration
Click [Object] » [Function Key] icon on the toolbar to open a Function Key object property
dialog box. Set up the properties, press OK button, and a new Function Key object will be
created.
General Tab
Setting Description
Activate If this function is selected, the action is delayed till button is
after button released; otherwise, the action is executed once the button is
is released pressed.
Change Change full-screen window: Change to another base window.
window Change common window: Change common window.
Display popup window: A pop-up window displays in the base
window. If [Close this popup window when parent window is closed]
check box is selected, the pop up window will be closed when
change the base window to another window. Otherwise, a function
key in the pop up window is needed to close it.
The effects are shown below. Different effects may be used for Start
(window appears) and End (window disappears).
Effect Name Transition
Fade
Fly
Float
Wipe
Split
Circle
Clock
Zoom
Turn
Push
Execute Select this check box to execute one of the Macros from the drop
Macro down list that has already been configured by users.
For more information, see “18 Macro References”.
Window title Function Key defined can be used to move a pop-up window which
bar has no [window title bar] to a preferred position on screen. Select
the pop-up window and then click on a preferred position, the
window will be moved.
Acknowledge
all events
Acknowledge all events once by pressing the Function Key.
(alarms)
(cMT Series)
Import user
data / Use A Function Key can be used to import the e-mail contacts or user
[USB accounts set, also, to log in using USB Security Key.
Security Key]
Data Position
Select the external device to store data from [SD card] or [USB disk].
Account import mode
If [Overwrite] is selected, the existing accounts will be overwritten
with new accounts in the external device after importing. If [Append]
is selected, HMI will append more accounts while the old accounts
still exist.
Delete file after importing user accounts
If select this check box, the system will delete the account data saved
in the external device after importing, this can prevent the account
data from leaking out.
Notification If this selection is enabled, it will notify a designated bit address to
set ON or OFF, each time the button is pressed.
Note
[Overwrite] is the only option when importing the e-mail contacts. This means that all
existing contacts will be removed first, and then the new contacts are added.
For more information, see “6 Window Operations”, “12 Keypad Design and Usage”, “36
Administrator Tools”.
13.6.1. Overview
Toggle Switch object is a combination of Bit Lamp object and Set Bit object. The appearance of
the object is controlled by the ON / OFF state of the read bit address. As well, pressing the
button sets the value in the bit address according to the settings.
13.6.2. Configuration
Click [Object] » [Toggle Switch] icon on the toolbar to open a Toggle Switch object property
dialog. Set up the properties, press OK button, and a new Toggle Switch object will be created.
General Tab
Setting Description
Comment User can describe the information of the object.
Bit Lamp / Toggle Switch
Switch between Bit Lamp and Toggle Switch features.
Read/Write
use different Different addresses can be used to read data and write data.
addresses
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the bit device that controls the
[Toggle Switch] object. Users can also set address in [General] tab
while adding a new object.
Invert signal
Reverses the display of ON / OFF states. For example, if [Invert
signal] check box is selected, when the designated bit is OFF, the
object displays ON state.
When [Read/Write use different addresses] option is not selected,
the title of this group box will be “Read/Write address”.
Write address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the bit device that controls the
[Toggle Switch] object. Users can also set address in [General] tab
while adding a new object. The address can be the same or
different from [Read address].
Write after button is released
If this function is selected, the action is delayed till button is
released, otherwise, the action is executed once the button is
pressed. This function does not work with momentary buttons.
Attribute Set style Description
Set ON Set ON the designated bit of the device.
Set OFF Set OFF the designated bit of the device.
Toggle Alternates the bit state each time pressed.
Momentary Holds the bit ON only while button is
pressed.
Macro Toggle Switch object can trigger the start of a Macro routine when
the Macro has been created in advance.
13.7.1. Overview
Multi-state Switch object is a combination of Word Lamp object and Set Word object. The
appearance of the object is controlled by the value of the read word address. As well, pressing
the button sets the value in the word address according to the settings.
13.7.2. Configuration
Click [Object] » [Multi-State Switch] icon on the toolbar to open a Multi-State Switch object
property dialog box. Set up the properties, press OK button, and a new Multi-State Switch
object will be created.
General Tab
Setting Description
Comment User can describe the information of the object.
Word Lamp / Multi-State Switch
Switch between Word Lamp and Multi-State Switch features.
Model / Different modes can be selected: [Value], [LSB].
Offset For more information, see “13.2 Word Lamp”.
Read/Write
use different Different addresses can be used to read data and write data.
addresses
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that controls the
Multi-state Switch object. Users can also set address in [General]
tab while adding a new object.
When [Read/Write use different addresses] option is not selected,
the title of this group box will be “Read/Write address”.
Write address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that controls the
Multi-state Switch object. Users can also set address in [General]
tab while adding a new object.
Write after button is released
If this function is selected, the action is delayed till button is
released; otherwise, the action is executed once the button is
pressed.
Attribute Switch style
Select the object’s operation mode, see Example 1.
User-defined mapping
The value placed in the write register of each selection, the action
taken when an illegal value is entered, and error notification to a
designated bit address can be set.
Example 1
JOG+
Increase the value of a designated register by 1 each time when pressing the button, till the
value equals to [No. of states]. A cyclic action can be enabled. As shown below, each time
when pressing the button, the state number will add 1 start from state 0, till state 4 ([no. of
state]-1), and returns to 0 and step up again.
JOG-
Decrease the value of the designated register by 1 each time when pressing the button, till the
value equals to 0. A cyclic action can be enabled. As shown below, each time when pressing the
button, the state number will minus 1 start from state 4 ([no. of state]-1), till state 0, and
returns to state 4 and step down again.
13.8. Slider
13.8.1. Overview
Slider object is used to change the value in a designated word register address by moving the
slide on the screen.
13.8.2. Configuration
Click [Object] » [Slider] icon on the toolbar to open a Slider object property dialog box. Set up
the properties, press OK button, and a new Slider object will be created.
General Tab
cMT
Setting Description
Attribute Direction
Select the direction of the slider. (Right, Up, Left, Down)
Resolution
Sets the value change in the word register for each step of the
Slider. For example, if set to 10, the register value changes by 10
points for each increment or decrement on the Slider.
Constant
Sets the range of the Slider. For example, If set [Low limit] to 5, and
[High limit] to 100, the Slider will enter values between 5 and 100.
Address
Set the [Low/High limit] by a designated register, see Example 1.
Coarse increment
Apart from moving the roller to change the value as in [Resolution],
Example 1
Set the low or high limit by a designated register. When write address is LW-n, where n is an
arbitrary number, the rule of setting limits is:
Outline Tab
cMT Seires
Setting Description
Slider button Select slider button type, by default, a picture selected from the
type (cMT) Picture Library can be the slider button.
Slider button Four default styles are offered, and the width and color of the
type (eMT, iE, Frame, Background, Slot can be set.
XE, mTV)
cMT Series HMI support combo setting for Slider, which allows setting of multiple related
objects at a time. Slider can be set with Background and Dynamic Scale.
Background
Setting Description
Margin Specify the space between the background edge and
the objects.
Color/Style Customize
Dynamic Scale
Setting Description
Style The scale style will follow the Slider.
Alignment The position of the scale bar along the Slider.
Tick Mark Configure the number of tick marks for main and
sub scales, and the color of tick marks.
Scale Label Configure the font, font color, font size and other
attributes of scale label.
In Slider settings if [Address] is selected for
Low/High limit, then Scale Label’s [Dynamic limits]
will be set automatically.
In Slider settings if [Left] is selected for Direction,
then Scale Label’s [Reverse (Left/Right)] will be set
automatically.
13.9. Numeric
13.9.1. Overview
Numeric object can be used to input or display the value of a designated word register.
13.9.2. Configuration
Click [Object] » [Numeric] icon on the toolbar to open a Numeric object property dialog box.
Set up the properties, press OK button, and a new Numeric object will be created.
General Tab
Setting Description
Allow input If selected, the input features and relevant settings are enabled.
Read / Write
use different Different addresses can be used to read data and write data.
address
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that displays the
value. Users can also select a tag defined in Address Tag Library.
When [Read/Write use different addresses] option is not selected,
the title of this group box will be “Read/Write address”.
Write address Select the [PLC name], [Device type], [Address] of the word device
that system writes to.
Notification If this check box is selected, it will notify a designated bit address
(setting ON or OFF).
Before writing / After writing
Set the state of the designated bit address before or after the
manual operation.
Notification If an illegal value is entered, automatically set the state of a
on invalid
input designated register.
Setting Description
Mode Touch
Used when data entry is initiated by touching the screen object.
Bit control
LW-1
LW-2
Group1
2. When finish entering data in the last object, to end data entry of all objects, please select
[Stop sequential input function after input] check box.
Setting Description
Display Data Format
Set the data format of a designated word register. The selections
include: BCD, HEX, Binary, Unsigned, Signed, Float. 16-bit uses 1
word where 32-bit uses two words.
Mask
If selected, any values entered will be hidden by displaying them as
****.
Number of Left of decimal Pt.
digits The number of digits before the decimal point.
Right of decimal Pt.
The number of digits after the decimal point.
Display Each “*” sign represents each digit that will be displayed in the
format Numeric object. Apart from “*” signs, extra texts can be entered in
the [Format] field, for example: kg. The available alignment options
are: [Left], [Center], [Right], [Leading zero].
The numeric value represented by “*” sign will be displayed from
the highest digit to the lowest in the Numeric object.
Truncated digits
Specify the number of digits to be truncated, from the lowest digit
to the highest.
The number of “*” signs = [Left of decimal Pt.]-[Truncated digits]
Please see the following examples:
When leading zero is not used, the text enclosed in two “*” signs
will not show, for example:
[Left of decimal Pt.] = 5, [Truncated digits] = 0, and Display Format
is “Total=**kg***g”
If the data read is 255, the result would be: "Total=255g"
If the data read is 1000, the result would be: "Total=1kg000g"
Scaling Interpolation
If this check box is selected, [Engineering low] and [Engineering
high] boxes appear. Values entered in these boxes correspond to
the display range required. The setting also requires [Input low]
and [Input high] in the limits section. See Example 2.
Test: Preview the result of Interpolation. See Example 2.
Dynamic scales: Set the [Engineering low] and [Engineering high]
by a designated register. See Example 4.
Macro subroutine
The value read from or written to the register can be computed by
Actions executed before/after writing can be classified into action groups. The groups are put
in sequence. The actions within the same group are executed at the same time. When all the
actions within the same group are completed, the actions in the next group are then executed.
Compared to the Notification actions selected in General tab, Trigger Action Setting offers
more flexible combination of actions. For more details about these settings, please also see
Action Trigger in Chapter 13.
Setting Description
Actions The predefined action groups will be executed once the write
before writing operation starts, and will not wait for it to be completed.
Actions after The predefined action groups will be executed when the write
writing operation is completed.
Use the Macro data type that corresponds to the object’s data format.
The mapping is as follows:
For example, if the data format of the numeric object is 16-bit Unsigned, only the
corresponding Macro data type: unsigned short, is available.
Examples:
sub char test(unsigned short a) // (Correct)
sub char test(char a) // (Incorrect)
Example 2
If [Interpolation] is selected, the scaling equation is as the following:
If A indicates the original data and B indicates the displayed data:
B = [Engineering low] + (A - [PLC low]) × Ratio
where, Ratio = ([Engineering high] - [Engineering low]) / ([PLC high] - [PLC low])
As shown below, the original data is 15, after conversion, 40 will be displayed.
Click [Test] button to preview the result of Interpolation. Enter a value in [PLC] field as shown in
the following figure, for example, enter value 15, and the result, which is 40, will be displayed.
Example 3
If the numeric format selected is not Float and decimal point is used, the decimal place of the
converted result will not be adjusted automatically, please adjust [Engineering high] to
correctly place the decimal point of the result gained in [Interpolation] mode. Please see the
illustration below.
1. Create two Numeric objects, set [Right of decimal Pt.] to 1 and select [Interpolation]
method for one of the objects as shown in the following figure.
2. Enter value “123”, the object set to [Interpolation] displays “246.0” instead of “24.6”.
3. To move the decimal point one place to the left, adjust [Engineering high] as shown in the
following figure.
Example 4
If [Interpolation] is selected, set the [Engineering low] and [Engineering high] by a designated
register. When Dynamic Address is LW-n, where n is an arbitrary number, the rule of setting
[Engineering low] and [Engineering high] is:
Example 5
Set the limits by a designated register. When [Address] is LW-n, where n is an arbitrary number,
the rule of setting limits is:
Content 16-bit 32-bit
Address LW-n LW-n
Low limit LW-n LW-n
High limit LW-n+1 LW-n+2
1. Create two Numeric objects: NE_0 and NE_1 and use the same control address. Select
[Macro subroutine] for NE_1.
2. Enter 0 in NE_0 then NE_1 will execute [Read conversion]. The value gained will be 10.
3. Enter 80 in NE_1, [Write conversion] is executed and the value gained will be 70. NE_0
displays 70.
Note
If executing [Read conversion] and [Write conversion] by the same numeric object, the
value entered in this object is computed by the Macro subroutine of [Write conversion]
first, and then the result is computed by the Macro subroutine of [Read conversion]. In
Example 5, if the subroutine of [Write conversion] is set to b=a-20, then entering 80 in
NE_1 will get 60 after [Write conversion] and then the object displays 70 after [Read
conversion].
Security Tab
Setting Description
Interlock Use interlock function
When this option is enabled and [Word] is selected, whether
the object is operable depends on the condition of a word
address specified in [Trigger if value is:]. In the settings above,
the object is operable only when the value in LW-1 is greater
than 1.
Hide when disabled
The object is hidden when the specified condition does not
occur in the specified word address.
Grayed label when disabled
The value in the object turns gray when the specified
Font Tab
Setting Description
Color When the value is within the limits, display digits using color set in
this tab.
Align Left: Align the number to the left.
13.10. ASCII
13.10.1. Overview
ASCII object can be used to input or display ASCII or UNICODE characters held in designated
word registers.
13.10.2. Configuration
Click [Object] » [ASCII] icon on the toolbar to open an ASCII object property dialog box. Set up
the properties, press OK button, and a new ASCII object will be created.
General Tab
Setting Description
Allow input If selected, the input features and relevant settings are enabled.
Multi-line If selected, the ASCII object can display multi-lined text. If a line
display feed character LF (0xA) is used in the string, a newline will be
created.
Vertical When [Multi-line display] is enabled, the method to vertically align
alignment multiple lines of text can be selected.
Mask If selected, any values entered will be masked by asterisks (*)..
Use UNICODE Select this check box to display data in UNICODE format. If not
selected, the characters are displayed in ASCII format. This feature
can be used with the [Function Key] object that uses
[ASCII/UNICODE].
Reverse Normally an ASCII code is displayed in “high byte”, “low byte”
high/low byte order. Reverse selection makes the system display ASCII characters
in “low byte”, “high byte” order.
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that displays
characters. Users can select a defined address tag from Address Tag
Library, or set address in [General] tab while adding a new object.
No. of words
Select the maximum number of words to be displayed.
Note
An UNICODE character uses 1 word, and an ASCII character uses 1 byte. Therefore 1 word
can be used as 1 UNICODE character or 2 ASCII characters. (1 word equals to 2 bytes)
Font Tab
Setting Description
Attribute The font, size, color, and alignment can be set.
Align
Left: Align the text to the left.
Center: Align the text to the center.
Right: Align the text to the right.
13.11.1. Overview
Indirect Window object opens or closes a pop-up window assigned by a designated word
register. There are two ways to use Indirect Window object: The first is to use the profile of
Indirect Window object, and let the pop-up window be resized and displayed in the defined
profile; the second is to automatically resize the window according to the size of the pop-up
window to be displayed. To close the pop-up window, assign 0 to the designated word register.
The difference between Direct Window and Indirect Window is that Direct Window is
controlled by a bit register, while Indirect Window is controlled by a word register.
13.11.2. Configuration
Click [Object] » [Embed Window] » [Indirect Window] icon on the toolbar to open the object
property dialog box. Set up the properties, press OK button, and a new Indirect Window object
will be created.
General Tab
Setting Description
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the word device that controls the
pop-up window. Users can also set address in [General] tab while
Animation Effect
(cMT Series) Different effects may be used for Start (window appears) and End
(window disappears).
Effect Name Transition
Fade
Fly
Float
Wipe
Split
Circle
Clock
Zoom
Turn
Push
Duration
Specifies how many milliseconds (ms) a transition effect takes to
complete.
Direction
The direction of the transition.
Use window Sets the offset of the window number for selecting the pop-up
no. offset window. The window number of the pop-up window is calculated
by the value in the word register added to the offset. For example,
assume the value in the register is 20 and offset is 5, the pop-up
window number will be 25.
Auto. adjust Automatically resizes the Indirect Window and align the pop-up
window size window to the preset region.
Alignment
Sets a reference point of the pop-up window from one of the five
positions on the screen. For example, if the lower-right region is
selected, the lower-right corner of the pop-up window is aligned to
the lower-right region of the Indirect Window. See Example 1.
Example 1
Here is an example of using Indirect Window. The setting is shown in the following figure, set
the address to LW-0 which assigns the window number. Create window no. 11 and 12 first.
1. Create an Indirect Window object, set address to LW-0, and select [Auto. adjust window
size].
2. Select the region where the window is to be displayed.
3. Enter value 11 in LW-0, the pop-up window displayed is window no. 11.
4. Enter value 12 in LW-0, the pop-up window displayed is window no. 12.
5. Enter value 0 in LW-0, the pop-up window is closed.
To close the pop-up window, apart from entering 0 in the designated word register, another
way is to place a Function Key object in the pop-up window, and set the key to [Close window].
Note
At most 24 windows can be displayed simultaneously at run time.
The system does not allow opening the same window with two Direct (or Indirect)
windows in one base window.
If the pop up window has monopoly property enabled, then when the window pops up,
all background windows may not be operated until the monopolizing window has been
closed.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
13.12.1. Overview
Direct Window object opens or closes a pop-up window assigned by a designated bit register.
When the state of the bit register changes, the pop-up window appears at the predefined
location. The display area for the pop-up window is limited by the size of predefined location.
Returning the state of the bit register closes the pop-up window. The difference between
Direct Window and Indirect Window is that Direct Window is controlled by a bit register, while
Indirect Window is controlled by a word register.
13.12.2. Configuration
Click [Object] » [Embed Window] » [Direct Window] icon on the toolbar to open a Direct
Window object property dialog box. Set up the properties, press OK button, and a new Direct
Window object will be created.
General Tab
Setting Description
Read address Click [Setting] to select the [PLC name], [Address], [Device type],
[System tag], [Index register] of the bit device that controls the
pop-up window. Users can also set address in [General] tab while
Window no.
Set the pop-up window number.
Animation Effect
Different effects may be used for Start (window appears) and End
(window disappears).
Effect Name Transition
Fade
Fly
Float
Wipe
Split
Circle
Clock
Zoom
Turn
Push
Duration
Specifies how many milliseconds (ms) a transition effect takes to
complete.
Direction
The direction of the transition.
Auto. adjust Automatically resizes the Direct Window and align the pop-up
window size window to the preset region.
Alignment
Sets a reference point of the pop-up window from one of the five
positions on the screen. For example, if the lower-right region is
selected, the lower-right corner of the pop-up window is aligned to
the lower-right region of the Direct Window. See Example 1.
Example 1
Create window no. 11 which can be controlled by a Toggle Switch with address LB-0.
1. Create a Direct Window object and set read address to LB-0.
2. In this example, the reference point for alignment is set to the lower-right region.
Note
A screen can simultaneously display up to 24 pop-up windows including System Message
Window, Direct Window and Indirect Window.
The system does not allow opening the same window with two Direct (or Indirect) Windows
in one base window.
If the pop up window has monopoly property enabled, then when the window pops up, all
background windows may not be operated until the monopolizing window has been closed.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
13.13.1. Overview
Moving Shape object defines the states and moving distance of an object. The state and the
location of the object depend on consecutive registers.
13.13.2. Configuration
Click [Object] » [Animation] » [Moving Shape] icon on the toolbar to create a Moving Shape
object. Set up the properties, press OK button, and a new Moving Shape object will be created.
General Tab
Setting Description
Read address Click [Setting] to configure the [PLC name], [Device type],
[Address], [System tag], or [Index register] of the word devices that
control the display of object’s state and moving distance. Users can
also set the address in [General] tab while adding a new object.
Attribute Select the object’s movement mode and range. See “13.13.2.1
Illustration of Modes” in the following part.
Display ratio The size of shape in different states can be set individually as
shown in the following figure.
Limit address The object’s moving range can be set by adjusting the data in the
designated register, see Example 1.
Example 1
Supposed that the object’s moving range is limited by register LW-n, the addresses in the
following table are used to limit the moving range.
Data format 16-bit 32-bit
[Min. X] address LW-n LW-n
[Max. X] address LW-n+1 LW-n+2
[Min. Y] address LW-n+2 LW-n+4
[Max. Y] address LW-n+3 LW-n+6
X axis w/ scaling
The object moves in X-axis only with scaling. Suppose that the value of the designated register
is DATA, the system uses the following equation to calculate the moving distance on the X-axis.
[Scaling high]-[Scaling low]
Displacement=(Data-[Input low])×
[Input high]-[Input low]
13.14. Animation
13.14.1. Overview
Animation object is defined by a pre-defined point set and states. Animation object will then
move to a given point in a given state defined by designated registers. The object state and
position depend on current value of two consecutive registers. The first register controls the
state of the object and the second register controls the position along the predefined path.
13.14.2. Configuration
Click [Object] » [Animation] » [Animation] icon on the toolbar. First, create the pre-defined
path. Move the mouse to each moving position, and click the left button to define positions
one by one. When it is done, right click on the screen, set up the properties, press OK button,
and a new Animation object will be created.
To change the object’s attributes, double click on the object to open Animation Object’s
Properties dialog box.
General Tab
Setting Description
Attribute No. of states
Configure the number of states for this object.
Controlled by register
Use the designated registers to control the object’s state and
position. See Example 1.
Based upon time interval
The object’s state and position will change from time to time. [Time
interval attributes] is used to set the time interval for states and
positions.
Example 1
The object’s state and position are determined by the registers, and the addresses must be
configured correctly, as in the following table:
Data format 16-bit 32-bit
Object state LW-n LW-n
Object position LW-n+1 LW-n+2
For example, if the designated register is LW-100 and the data format is [16-bit Unsigned], then
LW-100 represents object’s state, LW-101 represents position. In the picture below, LW-100 = 2,
LW-101 = 3, so the object’s state is 2 and position is 3.
Profile Tab
Setting Description
Shape rectangle size Set the size of the shape.
Trajectory Set the position of each point on the moving path.
Note
Since multiple pictures might be used by an [Animation] object, [Set to original dimension]
will not return all pictures to the original size.
13.15.1. Overview
13.15.2. Configuration
Click [Object] » [Chart] » [Bar Graph] icon on the toolbar to open Bar Graph dialog box. Select
properties, click OK button, a new Bar Graph object is created.
General Tab
cMT
Setting Description
Read address Click [Setting] to Select the [PLC name], [Device type], [Address],
[System tag], and [Index register] of the word devices that controls
how the bar graph displays.
Outline Tab
cMT
Setting Description
Type Choose either [Bar] or [Circular].
Attribute Mode
Choose either [Normal] or [Offset]. If [Offset] is selected, an
original value [Origin] must be entered for reference.
Direction / Degree
Bar: Determine the bar graph direction. Available options are [Up],
[Down], [Right], and [Left].
Circular: Determine the circular bar graph direction. Available
options are [Clockwise] and [Counter clockwise].
Color/Style Set the bar’s frame and background color, bar style, and bar color.
See the picture below.
Range Tab
Setting Description
Zero / Span The percentage of filling can be calculated by the formula, see
Example 1.
Target When the register value meets the condition, the color of filled
indicator area will change to the target color, see Example 2.
Alarm If the register value is larger than [High limit], the color of filled
indicators area will change to [High color]. If the register value is smaller than
[Low limit], the color will change to [Low color].
Dynamic When [Enable] is selected, the [Low limit] and [High limit] of [Alarm
taget/alarm indicator] and the [Target Value] of [Target indicator] will use
/zero(span) designated registers, which is shown in their respective fields see
Example 3.
Example 1
The percentage of filling can be calculated by the following formula:
Register value − [Zero]
Percentage of filling = × 100%
[Span] − [Zero]
Assume [Offset] is selected. If (Register value – [Zero]) is greater than 0, the bar will fill up from
[Origin]. If (Register value – Zero) is less than 0, the bar will be drawn below [Origin].
Example 2
When the register value meets the following condition, the color of filled area will change to
the target color.
[Target Value] - *Tolerance+ ≤ Register value ≤ *Target Value+ + [Tolerance]
Assume [Target Value] is 5 and [Tolerance] is 1. As shown below, if the register value is equal to
or larger than 4 (=5-1) and equal to or less than 6 (=5+1), the filled area’s color of the bar will
change to the target color.
Example 3
If [Dynamic target/alarm] is enabled, [Low limit] and [High limit] of [Alarm indicator] are
defined by designated registers as shown in the following table. Furthermore, if [Dynamic
zero/span] is used, [Zero], [Span] and [Origin] will be defined by designated registers. Assume
the address is LW-n, the limits are:
Data format 16-bit 32-bit
Alarm Low Limit LW-n LW-n
cMT Series HMI support combo setting for Bar Graph, which allows setting of multiple related
objects at a time. Bar Graph can be set with Background and Dynamic Scale.
Background
Setting Description
Margin Specify the space between the background edge and
the objects.
Color/Style Customize
Dynamic Scale
Setting Description
Style The scale style will follow the bar type.
Tick Mark Configure the number of tick marks for main and
sub scales. If the style is circular, the radius and tick
mark length can be specified.
Scale Label Configure the font, font color, font size and other
attributes of scale label.
13.16.1. Overview
Meter Display object displays the value of word register with a meter.
13.16.2. Configuration
Click [Object] » [Chart] » [Meter Display] icon on the toolbar to open the Meter Display dialog
box. Set the object’s attributes and then click OK to create a new Meter Display object.
General Tab
Setting Description
Read address Click [Setting] to select the [PLC name], [Device type], [Address],
[System tag], and [Index register] of the word devices that controls
the Meter Display object.
Outline Tab
Setting Description
Degree Set the pointer to go around the meter clockwise or
counterclockwise.
Sets the object’s start degree and end degree measured clockwise
from the 12 o’clock position. The angle range is 0 to 360 degrees.
The following shows meters of different settings.
Transparent
When selected, the object will not display the background and profile
color.
Tick marks Configures the number of tick mark and color.
Pointer Configures pointer’s style, length, width, and color.
Pin point Configures the style, radius, and color of the pin point.
Limits Tab
Setting Description
Value Sets the object’s display range. Meter Display object will use the
value of [Zero] and [Span] and the value of register to calculate the
pointer’s position. See Example 1.
Range limits Configures the values of [Low limit], [High limit], their
corresponding display colors, and the width.
Dynamic Limits
The low limit and high limit are set by registers. See Example 2.
Scale label Select the attribute of scale label on Meter Display.
General Tab
Setting Description
Style Three options are available: [Custom], [Style 1], and [Style 2]. Click
on the text to configure the properties. If [Custom] is selected, set
the properties such as [Pointer], [Pin point], [Background picture],
etc.
Setting Click the button of [Style 1] or [Style 2] to set the style of meter.
Outline
The following is the outline of Style 1 when [Full circle], [Half
circle], or [Quarter circle] is selected.
Rotation
Rotates the background picture clockwise according to the angles
set.
Color
Sets the color of the background picture of meter.
Angle Sets the range to label the scale, 0∘to 360∘clockwise or
counterclockwise from the twelve o’clock position.
Full circle
If selected, the full circle is drawn according to the selected
direction and the start angle. The limits are determined by the
value set in [Minimum] and [Maximum] field under [Value].
Enable If selected, the pointer slides to the designated position when the
animation read value changes; if not selected, the pointer directly points to
the designated position when the read value changes.
Value Sets the lower and upper limits of the meter.
Read address Displays the value in meter according to the value in the designated
word register.
Indicator Sets the style of pointer and pin point. If [Custom] is selected, the
direction of the pointer must points upward to correctly display.
13.17.1. Overview
Trend display objects draw curves of the data recorded by Data Sampling object.
13.17.2. Configuration
Click [Data/History] » [Trend Display] icon on the toolbar to open a Trend Display object
property dialog box. Set up the properties, press OK button, and a new Trend Display object
will be created.
General Tab
Button Description
Go to the earliest sampling data.
Go to the previous time interval.
Click to stop auto-scrolling. When the new sampling data is
generated, the display does not scroll, nor is the new data outside
the display range displayed.
Click to start auto-scrolling. The display scrolls as the new sampling
data is generated.
Go to the next time interval.
Go to the latest sampling data.
Setting Description
Data
Sampling Select a Data Sampling object as the source data.
Object index
Refresh data In history mode, when this option is selected, Trend Display will be
automatically automatically refreshed every 10 seconds. If this option is not
selected, Trend Display can only be refreshed by changing window.
No line When HMI time is adjusted to an earlier time, and data sampling
connection keeps going on, selecting this option can prevent the system from
between
records if the drawing a line to connect the gap between current trend curve
next record is (earlier in time axis) and former trend curve (later in time axis). This
earlier can slow down refresh speed.
Trend type Select the mode of data source, either [Real-time] or [History].
Real-time
In this mode, the display object shows all sampled data since the
HMI started. The maximum number of records that can be sampled
is set in [Max.data records] (Real-time mode) of the Data Sampling
object. When the sampling data exceed this setting, the earlier
data will be deleted.To show older data, use [History] mode.
[Hold control]: Suspends the update of Trend Display. However, It
Time [Distance] is used to set the X-axis in unit of time, as shown in the
following figure.
Select [Time] for [X axis time range] and go to [Trend] » [Grid] and
enable [Time scale]. Please refer to [Time scale] in the later section.
Dynamic Designate a 32-bit word register for adjusting the distance between
distance
between data two sampling points (select Pixel), or the time unit represented by
samples/ X-axis (select Time). If no value is entered, the default value will be
Dynamic X
axis time used.
range
Click the icon to download the demo project. Please confirm
your internet connection before downloading the demo project.
Refresh data If selected, every time when opening the window on which the
automatically
Trend Display object in history mode is placed, the display is
automatically refreshed once per second. Please note that:
The refresh status can be observed from the control button of
Trend Display object.
Showing button: The automatic refresh feature is
enabled.
Showing button: The automatic refresh feature is
disabled.
When scrolling to the previous data, the automatic refresh
feature is disabled, the button is shown.
If [Refresh data automatically] check box is selected, when
change back to the window, the display is refreshed, ignoring
the control buttons. For example, select [Refresh data
automatically], and scroll to the previous data, the automatic
refresh feature is disabled. In this case, changing to another
window and then change back will still refresh the display.
If [Refresh data automatically] check box is not selected when
building the project, the feature can still be enabled by
pressing button on HMI. In this case, the automatic
refresh feature is disabled, that is, even when change back to
the current window, the display will not be refreshed.
Hold control When the register is set ON, suspend the update of Trend Display. It
does not stop the sampling process of Data Sampling object. This
setting is available only in Real-time mode.
Watch line Use the *Watch line+ function to display a “watch line” when user
touches the Trend Display object. It will also export the sampling
data at the position of watch line to the designated word device
and use Numeric objects to display the results, as shown in the
following figure.
[Watch line] can also export sampling data with multiple channels.
The system will consecutively write each channel to the specified
address and the following addresses, in the same order as in [Data
Sampling] object. The address assigned to [Watch line] is the start
address, and sampling data for each channel will be exported to
the word devices starting from “start address.” If the data format of
each channel is different, the corresponding address of each
channel is arranged from the first to the last. If the watch register is
LW-300, watch function will export each channel’s data to the
following addresses:
Register Channel Data format
LW-300 0 16-bit Unsigned (1 word)
LW-301 1 32-bit Unsigned (2 words)
LW-303 2 32-bit float (2 words)
LW-305 3 16-bit Signed (1 word)
Click the icon to download the demo project. Please confirm
your internet connection before downloading the demo project.
Time stamp Time stamp output
output Suppose the address is set to LW-n, then:
If enabled, the system will use the time of the first sampling data as
“time origin”, and write the time stamp of the most recent sampled
Trend Tab
Setting Description
Transparent /
Frame / Select the color of frame and background.
Background
Show scroll Enable or disable the scroll control as shown in the following figure.
controls
Grid Set the number of dividing lines and the line color. The number of
divisions depends on the setting in General tab » [Distance
The time of the latest sampling data will be marked on the top left
corner of the object. This group box is used to set the time / date
display format and font color.
Channel Tab
Setting Description
Y scale Set Y-axis to be Main Axis or Aux. Axis. See “Y Scale Tab” for more
information.
Selected
The low limit and the high limit are read from the designated word
devices, as shown below. When address is LW-n , the register’s
address:
Data Format 16-bit 32-bit
Low limit LW-n LW-n
High Limit LW-n+1 LW-n+2
For example, if LW-100 is used here, the low limit and the high limit
will be read from:
Data Format 16-bit 32-bit
Low limit LW-100 LW-100
High Limit LW-101 LW-102
A typical usage of this is to zoom in and zoom out of Trend Display.
(Not available for cMT Series). See Example 1.
Click the icon to download the demo project. Please confirm
your internet connection before downloading the demo project.
Channel If [Enable] is selected, the bits of the assigned word register will be
visibility used to show/hide each channel. The first bit controls the first
control channel, and the second bit controls the second channel, and so
on. For example, suppose there are 5 channels and LW-0 is used,
channels which will be shown given the states of the control bits
are:
Channel Control Bit State Displayed
1 LW_bit-000 OFF YES
2 LW_bit-001 ON NO
3 LW_bit-002 ON NO
4 LW_bit-003 OFF YES
5 LW_bit-004 OFF YES
Note on using this feature: Each control bits are not reserved for
the channel. If a particular channel is not displayed, the control bit
is assigned to the next displayed channel. For example, if the third
channel of the 5 channels is not displayed, only 4 channels will be
displayed in Trend Display, and the used control bits will only be:
LW_bit-000~003.
Click the icon to download the demo project. Please confirm
your internet connection before downloading the demo project.
Y Scale Tab
Setting Description
Y scale Show whether Y-axis is Main Axis or Aux. Axis.
Y-axis will not be displayed when [none] is selected for Y scale in
Data Sampling Object group box. At most 32 Y axes can be
displayed, including one main axis and multiple aux. axes.
Scale font Select the font, font color, and font size of the scale.
Dynamic To show or hide Y-scale. If the control address is LW-50, then the
Y-scale first axis is controlled by LW_Bit 5000, and the second axis is
visibility
controlled by LW_Bit 5001, and so on.
Dynamic To change the main axis. If writing 1 into LW-80, the main axis will
main axis be Channel 1; if writing 2 into LW-80, the main axis will be Channel,
and so on.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
General Tab
The Trend Display on cMT Series combines Real-time mode and History mode. Drag left to
scroll the Trend Display to view history data and drag right to view the latest sampling data.
Pinch two fingers together to zoom out Trend Display or spread them apart to zoom in.
Setting Description
Data
Sampling Select a [Data Sampling] object as the source data.
Object index
Millimeter Same as eMT, iE, XE mTV Series.
Time Same as eMT, iE, XE mTV Series.
Watch line Same as eMT, iE, XE mTV Series.
Disable Y-axis
With this option selected, dragging the object with your finger will
scrolling with
only scroll X-axis range while Y-axis remains being placed in the
swiping
middle of the object even if it is zoomed in/out.
up/down
Disable zoom With this option selected, Trend Display cannot be zoomed in/out.
Tapping the icon on the upper right corner of Trend Display
object will not be able to zoom in /out the object, but this can
move the object back to its original place.
Show custom This option appears when [Customized file handling] is selected in
file name Data Sampling. With this option selected, the customized file name
is shown as caption in History Data Display.
Trend Tab
Setting Description
Transparent /
Frame / Select the color of frame and background.
Background
Grid Set the number of dividing lines and the line color. The number of
divisions depends on the setting in General tab » [Distance
between data samples] / [X axis time range].
X-axis interval
The number of vertical grid lines.
Select [Distance between data samples] in General tab:
Select how many sampling point will be included between two
vertical grid lines.
Select [X axis time range] in General tab:
Select the time range between two vertical grid lines.
X-axis division
The number of vertical grid lines.
Y-axis division
Channel Tab
Setting Description
Y scale Set Y-axis to be Main Axis or Aux. Axis. See “Y Scale Tab” for more
information. At most 32 Y axes can be displayed, including one
main axis and multiple aux. axes.
Y Scale Tab
The scale along the Y axis of a specific channel can be displayed. To enable Y Scale, [Grid]
should first be enabled in [Trend] tab. Y Scale can be configured on the in cMT Viewer as
shown in the following steps.
1. Tap the button on the upper right corner of Trend Display object.
2. Tap [Trend Display Setting] » [Y Scale].
Example 1
The example explains how to zoom in or zoom out Trend Display. The feature described is not
available for cMT Series.
In Channel tab select [Dynamic limits] check box. If the [Address] is set to LW-n, then LW-n
controls the low limit where LW-n+1 controls the high limit.
Set [Address] to LW-0 and create two Numeric objects for entering the low / high limit. The
address that controls the low limit is LW-0; the address that controls the high limit is LW-1.
Let’s suppose the data is between 0 and 30; set the [Low limit] to 0 and the [High limit] to 30,
the trend curve is displayed as shown in the following figure.
To zoom out the Trend Display, enter a value greater than 30 in [High limit] as shown in the
following figure.
To zoom in the Trend Display, enter a value less than 30 in [High limit] as shown in the following
figure.
Click the icon to download the demo project. Please confirm your internet connection
13.18.1. Overview
History Data Display object displays data stored by Data Sampling object. It differs from Trend
Display in that History Data Display object uses a table to display data. The following is an
example of a history data display object.
13.18.2. Configuration
Click [Data/History] » [History Data Display] icon on the toolbar to open a History Data Display
object property dialog box. Set up the properties, press OK button, and a new History Data
Display object will be created.
General Tab
Setting Description
Data
Sampling Select a Data Sampling object as the source data.
object index
Refresh Data The system will refresh data every 10 seconds. When this option is
Automatically not selected, data can be freshed only by changing windows.
Style Select History Data Display object’s style.
Shows grids between rows and columns.
Color
Change the color of grids.
Column interval
Change the width of each column. The figures below are the
examples.
Grid
Profile color Change the color of frame and background. Use [Transparent] to
Note
When using cMT-SVR, use the filter icon in the upper-right corner of History Data Display
object on iPad to select the date and display the data.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Setting Description
Channel Each History Data Display object can display up to 64 channels.
Check [Display] to select the channels to be shown on the screen.
In the figure above, there are 4 channels (channel 1 to channel 4) in
the Data Sampling object, and only Ch.1 and Ch.4 are selected. The
data formats are shown next to channel name. The data format of
each channel is decided by the corresponding Data Sampling
objects. The result is shown below:
Title Tab
Setting Description
Use title Enable or disable title, which is marked as shown below:
Show custom This option appears when [Customized file handling] is selected in
file name
(cMT) Data Sampling. With this option selected, the customized file name
is shown as caption in History Data Display.
Background Transparent
When selected, hide the background for title area.
Color
Set the background color of title.
Setting Defines the text to be shown on the title.
The text can be edited in Label Tag Library. Build the Label Tag
Library first, and in History Data Display settings dialog select the
checkbox in the Label Library column, and then select the label tag.
Note
After running simulation on PC, to run simulation again using the same project that
contains some changed data, please find the HMI_memory, SD_card, or usb1 folder in
EasyBuilder Pro installation, and then delete the old data sampling records in it, to prevent
the system from reading old data in the second simulation.
Edit Tab
Setting Description
Control When set to 1, the data in Data Address will overwrite the data in
address
data log.
When set to 2, the selected data log will be deleted.
Data address The system will start reading row by row from the selected one in
History Data Display, and change the data log accordingly.
Please note that the settings in this address must be identical to
that in Data Sampling.
Select By changing the value in Select Address, the corresponding row in
address
History Data Display can be selected.
Please note that:
1. When the value in Select Address is 0, no row will be selected,
and the value in Data Address will stay the same as that of the
previously selected row number.
2. When the value in Select Address exceeds the total number of
rows in History Data Display, the last row (the one with largest
row number) will be selected.
Note
When an external device is used to save data log, removing the external device will make
Edit function ineffective. Editing can keep on when the external device is inserted again
and the system starts reading historical data.
13.19.1. Overview
Data Block is a combination of several word devices with continuous address, where the X axis
of Data Block Display object represents the address and the numbers on the Y axis represent
the data values in the corresponding address. Data Block Display object can display multiple
data blocks. For example, it can display two data blocks LW-12~LW-15 and RW-12~RW-15 in
trend curves simultaneously. It is very useful to observe and compare the difference of trend
curves.
13.19.2. Configuration
Click the [Object] » [Chart] » [Data Block Display] icon on the toolbar to open the property
dialog box. Set up the properties, press OK button, and a new Data Block Display object will be
created.
General Tab
Setting Description
Comment Description of the object.
No. of Set the no of channel for this object. Each channel represents one
channel data block. The maximal number of channels is 12.
Watch Line If enabled, when user touches the [Data Block Display] object, it
will display a vertical cursor line on it, and store the data on the line
to the designated registers. See Example 1.
Allow input (cMT Series)
With this checkbox selected, entering a value in the specified
address for watch line can move the verticle watch line to the
desired position.
Channel Select the channel to be configured.
Control Specify the control address also the data source.
address Control address is used to control and clear the drawn curve. After
executing the operation below, the system will reset the control
word to zero.
Enter “0” = No action (default)
Enter “1” = Draw (Without clear first)
Enter “2” = Clear
Enter “3” = Redraw
Note
The system can draw at most N curves, where N = 32 divided by the number of channel.
Example 1
How to use watch (Cursor Line) feature
Use “Watch” function to check the value of any point of the curve. When the user touches
[Data Block] object, it will display a “cursor line”, and the system will write the index and value
of that data on the cursor line to the designated address.
Data Format Index Value Channel 1 Value Channel 2 Value
16-bit Address Address + 1 Address + 2
32-bit Address Address + 2 Address + 4
When watch address is set to LW-n, the value written into LW-n represents the channel index
number to be called up. (Start form 0)
Note
[Data Index] is a 16 bit unsigned integer. When the designated register of cursor line is 32
bit device, it will be stored in the bit 0-15.
If the channel to be viewed has no data, “0” will be displayed, as shown below. In the
example, there is no data in channel 1, when the cursor points at Data 4, “0” will be
Example 2
How to show a data block
1. Write the number of data to *No. of data address+, i.e. “Control address+1”
2. Store the data consecutively beginning at [Data storage start address].
3. Write “1” to [Control address] to draw the curve without cleaning the plot. All previous
curves will not be erased.
4. The system will write “0” to *Control address+ after marking the plot.
Note
Do not change the content of [Control address], [No. of data address] and [Data storage
start address] between step 3 and step 4 above as doing so might cause error for the
trend curve plot.
Example 3
How to clear the graph
1. Write “2” to *Control address+, all the trend curves will be cleared.
2. The system will write “0” to [Control address] after the trend curve is cleared.
Example 4
How to clear the previous trend curve and display new one
1. Write the number of data to *No. of data address+, i.e. “control address+1”
2. Store the data consecutively beginning at [Data storage start address].
3. Write “3” to *Control address+, the previous trend curves will be cleared and the new
content in data block will be plotted on the screen.
4. The system will write “0” to *Control address+ after the trend curve has been plotted.
Example 5
How to use offset mode
If [Offset to start address] is selected, [Control address], [No. of data address], and [Offset
value storage address] will use 3 consecutive addresses.
For example, assume the total number of channels is 3 (start from 0 to 2), and the [Control
address] are LW-0, LW-100, and LW-200, respectively. Then, the other addresses will be set as
follows: (In the example, format 16-bit Unsigned is used and [Offset value storage address] are
all m).
The following figure on the left shows the result when offset mode is not used while the figure
on the right shows the result when offset mode is used.
Note
When [Control address] is set to LW-n, [No. of data address] and [Offset value storage
address] are as follows:
Data Type 16-bit 32-bit
Control address LW-n LW-n
No. of data address LW-n+1 LW-n+2
Offset value storage address LW-n+2 LW-n+4
If the control registers are 32-bit devices, only bit 0-15 will be used for control purpose, bit
16-31 will be ignored. (as illustrated below)
When the value in [Control address] is not zero, the system will read [No. on data address]
and [Offset value storage address].
It is recommended to use [Offset to start address] for data block display with multiple
channels and the same device type. As shown in the following figure, The control words of
channel 1 is located from LW-n, the control words of channel 2 is located from LW-n+3,
and so on.
Display Area
Setting Description
Description Data samples
Configure the maximal number of data samples (points) to be
displayed.
Samples to scroll
Configure the number of data samples being scrolled.
Enable scroll switch
13.20. XY Plot
13.20.1. Overview
XY Plot object is used to display values for two variables (x,y) for a set of data, where the data
comes from word registers. Up to 32 channels can be displayed simultaneously. This object
facilitates data observation and analysis. Additionally, negative numbers can be displayed as
well.
13.20.2. Configuration
Click [Object] » [Chart] » [XY Plot] icon on the toolbar to open a [XY Plot] object property dialog
box.
General Tab
Setting Description
Direction There are four selections, right, left, up or down.
No. of
Set the number of channels for observation.
channels
Control Controls the operation of all channels simultaneously. When the
address [Control address] is LW-n, assigning values to LW-n will issue
commands to XY plot according to the table below. Meanwhile,
LW-n+1 l controls the number of data points plotted. After
operation, the [Control address] will be reset to 0.
Control Value Result
address
LW-n 1 Plots point on XY curve.
(The plotted points are kept.)
2 Clears all XY curves.
3 Clears then plots new XY curve.
LW-n+1 Any
Controls the number of data points plotted.
number
No. of data address
Controls the number of data points. Each channel can plot up to
1023 points.
Channel Select a channel to configure.
Read Address PLC name
Select a PLC which will be the source of [X data] and [Y data] and
designate a read address.
The format of the data register blocks used for the display channels
depends on whether [Separated address for X and Y data] and/or
[Dynamic limits] has been selected. See Example 1.
Dynamic When not selected (See Example 2)
limits The Low and High limits can be set by entering constants. The Low
and High limits are used for calculating X and Y range in
percentage.
When selected (See Example 3)
A zoom effect can be created by changing the Low / High Limits.
Example 1
The format of the data register blocks used for the display channels depends on whether
[Separated address for X and Y data] has been selected, and if [Dynamic limits] has been
selected. The following explains the situations where 16-bit register is used:
If [Separated address for X and Y data] is not selected, and set [Read address] to LW-n:
Select [Dynamic limits] Not select [Dynamic limits]
X data Y data X data Y data
Low Limit LW-n LW-n+2 Constant Constant
High Limit LW-n+1 LW-n+3 Constant Constant
st
1 data LW-n+4 LW-n+5 LW-n+0 LW-n+1
nd
2 data LW-n+6 LW-n+7 LW-n+2 LW-n+3
3rd data LW-n+8 LW-n+9 LW-n+4 LW-n+5
th
4 data LW-n+10 LW-n+11 LW-n+6 LW-n+7
If [Separated address for X and Y data] is selected, and set [X data] to LW-m, [Y data] to
LW-n:
Select [Dynamic limits] Not select [Dynamic limits]
X data Y data X data Y data
Low Limit LW-m+0 LW-n+0 Constant Constant
High Limit LW-m+1 LW-n+1 Constant Constant
st
1 data LW-m+2 LW-n+2 LW-m+0 LW-n+0
2nd data LW-m+3 LW-n+3 LW-m+1 LW-n+1
rd
3 data LW-m+4 LW-n+4 LW-m+2 LW-n+2
th
4 data LW-m+5 LW-n+5 LW-m+3 LW-n+3
Example 2
When [Dynamic limits] is not selected, the Low and High limits can be set. The Low and High
limits are used for calculating X and Y range in percentage.
Read Address Value − Low Limit
Scale (%) =
High Limit − Low Lmit
If [Separated address for X and Y data] is not selected and the address is LW-n, the
corresponding limits are retrieved from the addresses as shown in the following table.
Data format 16-bit 32-bit
X axis low limit LW-n LW-n
X axis high limit LW-n+1 LW-n+2
Y axis low limit LW-n+2 LW-n+4
Y axis high limit LW-n+3 LW-n+6
Example 3
If [Dynamic limits] is selected, a zoom effect can be created by changing the setting of Low /
High Limits.
In the following example, XL=X low limit, XH=X high limit, YL=Y low limit, YH=Y high limit, and
XY, XY1, XY2 are three XY data. When changing the high limits of X and Y axis, the result is
shown below:
Original
Change the high limit of Y axis to 25. Change the high limit of Y axis to
(zoom in) 100 (zoom out)
Note
For cMT Series, on the screen of the visualization device directly pinch two fingers together
to zoom out or spread them apart to zoom in.
X and Y data can be set to different formats. For example: If X data uses 16-bit unsigned, Y
data uses 32-bit signed, please note the address setting.
When using a Tag PLC, such as AB tag PLC, X and Y must be in the same format. When using
different formats a warning will be shown.
Setting Description
Profile color Select the color of the frame and the background, or select
[Transparent] check box to hide the frame and background.
Curve For each channel select the properties of color, width, and line
style.
Maker There are four different types of XY plot. The result is shown below:
See Example 4.
Reference line Up to 4 horizontal reference lines can be shown on the graph. Fill in
high, low limits and Y axis percentage values. Different colors can
be selected for each reference line.
If [Limit from PLC] is selected, designate a register to be the read
address of reference line.
Example 4
The curve shown in the following figure is drawn with 7 points numbered from P0 to P6.
The steps the system draws the X-axis Projection are:
1. Calculates the two points in X-axis – (X0, 0) and (X6, 0).
2. Link all the points in the order of (X0, 0), P0… P6, (X6, 0) and returns to (X0, 0) at last.
3. Fill out all enclosed areas.
Note
XY Plot can be drawn repeatedly up to 32 times:
1 channel32 times
2 channels16 times
The way to calculate: 32 divided by the number of channels.
13.21.1. Overview
Alarm Bar and Alarm Display objects are used to display alarm messages which are defined in
Event (Alarm) Log objects. When the trigger conditions are met, events or alarms will be
displayed as they occur in chronological order in Alarm Bar or Alarm Display object.
Alarm Bar scrolls all alarm messages in one single display line, whereas Alarm Display shows
alarm messages in multiple lines.
13.21.2. Configuration
Click [Data/History] » [Alarm Display] or [Alarm Bar] icon on the toolbar to open the object
property dialog box. Set up the properties, press OK button, and a new object will be created.
General Tab
The difference between these two objects is that Alarm Display allows an [Acknowledge
address] and a [Scrolling control address] to be set.
Setting Description
Enable If selected, the [Acknowledge value] selected for the associated
acknowledge event, specified in Alarm (Event) Log » Message tab will be written to
function the [Acknowledge address] designated in Alarm Display. For more
information, see “7 Event Log”.
Scrolling If enabled, the value in the designated control address indicates the
control number of lines to be scrolled down. The minimal value is 0, which
address indicates the first line. Please note that with this address enabled,
the horizontal and vertical scroll bars will not be available on the
object; please make sure that the width of the object is enough for
completely showing the content.
Note
When using cMT-SVR, press and hold the event on the screen to acknowledge an event;
drag a finger on the screen to scroll.
Alarm Tab
Alarm Display object has extra settings compared to Alarm Bar object: [Occurrence count] and
[Elapsed time]. The table below introduces the settings shared between these two objects.
Setting Description
Include Events in the selected category will be displayed. The categories are
categories set in Event (Alarm) Log object.
For example, if the category is set to “2 to 4” here, only events in
categories 2, 3, 4 will be displayed. For more information, see “7
Event Log”.
Scroll speed This selection is only available for Alarm Bar. Select one of the
speed settings at which the messages scroll.
Move When this option is selected, the message will move along the
smoothly alarm bar more smoothly. Please note that enabling this may lead
to high CPU loading.
Format Time ascending
Latest alarm is placed last in the list (the bottom).
Time descending
Latest alarm is placed first in the list (the top).
Display order
Select the items to be displayed and use the up and down arrow
buttons to adjust the display order of the alarms.
Date
Displays the date tag with each alarm message. The four formats of
date tag:
MM/DD/YY、DD/MM/YY、DD/MM/YY、YY/MM/DD
Time
Displays the time tag with each alarm message. The four formats of
time tag:
HH:MM:SS、HH:MM、DD:HH:MM、HH
Security Tab
Setting Description
Interlock When [Use interlock function] check box is selected,
whether the object is operable is determined by the
state of a designated Bit address. As shown in the above
settings, if LB-0 is ON, the object is operable.
Font Tab
The font, color, and content of the alarm messages displayed in Alarm Bar and Alarm Display
objects are set in Alarm (Event) Log object:
Click the icon to download the demo project. Please confirm your internet connection
13.22.1. Overview
Event Display object is used to display event messages which are defined in Event (Alarm) Log
and have met a trigger condition. The triggered events are displayed in the chronological order.
Event Display object displays: the date and time the event occurs, the time the event is
acknowledged, the time the event returns to normal, the event message, the occurrence count,
and the elapsed time. Multi-lined messages can also be displayed.
13.22.2. Configuration
Click [Data/History] »[ Event Display] icon on the toolbar to open an Event Display object
property dialog box. Set up the properties, press OK button, and a new Event Display object
will be created.
General Tab
Setting Description
Mode The available modes are: [Real-time] and [History].
Real-time
All the events triggered since HMI starts up are displayed.
History
The system reads the event log in HMI memory and displays
them. The content can be updated by changing window. In case
when the trend display shows history data from today, the
display will refresh once per second.
Acknowledge When in Real-time mode, and an event is acknowledged by touching
address an active display line, the [Acknowledge value] specified in Event
(Alarm) Log object, Message tab, is output to the [Acknowledge
address] of Event Display object. For more information, see “7 Event
Log”.
record to start, and the value in [LW-n+1] marks the index value of
the record to end. If LW-n = 1, and LW-n+1 = 3, the data displayed
will include data No.1, No.2, No.3.
Please note that the value in [LW-n+1] must be greater than the
value in [LW-n], to form a valid range.
The maximum size of data that can be displayed is 4MB; the
exceeding part will be ignored.
The following shows how data will be stored when the data size is
too big.
5 history data, each 0.5MB Data displayed: 8 x 0.5MB
5 history data, each 1MB Data displayed: 4 x 1MB
5 history data, each 1.5MB Data displayed:
2 x 1.5MB+1 x 1MB (partial)
Click the icon to download the demo project. Please confirm
your internet connection before downloading the demo project.
Control Enable event management
address If this check box is selected, writing a specific value into register
LW-n and LW-n+1, where n is an arbitrary number, will control [Event
Display] object with different commands as shown below:
Address Value Command
LW-n 0 Display all events.
1 Hide [Confirmed] events.
2 Hide [Recovered] events.
3 Hide [Confirmed] or [Recovered] events.
4 Hide [Confirmed] and [Recovered] events.
LW-n+1 1 Delete a single selected event.
Scrolling If enabled, the value in the designated control address indicates the
control number of lines to be scrolled down. The minimal value is 0, which
address indicates the first line.
In the following figure, there are 10 events recorded in the object,
and value 3 is set at the control address. The upper event object
displays the events in time ascending order, and begins at the 4 th
event; on the other hand, the lower one displays the events in time
descending order, and begins at the 7th event.
For cMT Series, all the events occur are displayed and updated in real-time.
Press the filter icon in the upper-right corner of the object and set the start and end date. If the
dates are not set, all the events are displayed.
Setting Description
Include Events in the selected category will be displayed. The categories are
categories set in Event (Alarm) Log object.
For example, if the category is set to 2 to 4 here, only events in
categories 2, 3, 4 will be displayed. For more information, see “7
Event Log”.
Acknowledge Select [Click] or [Double Click] to acknowledge each single event.
style (eMT, iE, When an event occurs the user can tap the event line once or twice
XE, mTV to acknowledge the new event.
When acknowledged, the text color of the event will change to the
Series)
selected color, and the acknowledge value associated with that
event will be sent to the register designated in [Acknowledge
address]. If the address is set to LW-100, and the acknowledge
value is set to 31, when user acknowledges the event, value 31 is
written to LW-100.
This can be used in conjunction with Indirect Window object so
that when an event is acknowledged, the corresponding message
window is displayed.
Max. event The maximum number of events to be displayed in this Event
no. (eMT, iE, Display object. When the number of the displayed events equals to
XE, mTV the set maximum number, the new coming event will overwrite the
Series) latest event.
Color Different colors indicate different event states, such as
acknowledged, returns to normal, or selected. The system draws a
highlight box around the latest selected event.
Grid Displays a grid of rows and columns in the object. The color of the
grid lines can be selected.
Auto fit short column (cMT Series Default style)
The column width automatically adjusts to the size of the content.
Caption (cMT Available styles are: Default, Crystal, and Flat.
Series) With [Use caption] enabled, the font size, color, and name of the
caption can be specified for Recipt View object.
Sort Tab
Setting Description
Sort Time ascending
Latest event is placed last in the list (the bottom).
Time descending
Latest event is placed first in the list (the top).
Order & Select the items to be displayed and use the up and down arrow
Characters buttons to adjust the display order of the events.
Date Displays the date tag with each event message. The four formats of
date tag: MM/DD/YY、DD/MM/YY、DD/MM/YY、YY/MM/DD
Time Displays the time tag with each event message. The four formats of
time tag: HH:MM:SS、HH:MM、DD:HH:MM、HH
Security Tab
Setting Description
Interlock When [Use interlock function] check box is selected,
whether the object is operable is determined by the
state of a designated Bit address. As shown in the above
settings, if LB-0 is ON, the object is operable.
Hide when disabled
When the designated Bit is OFF, the object will be
hidden.
User Set the security class of the object to be operated by an
restriction authorized user.
Object class
“None” means any user can operate this object. Only
account “admin” can operate “Administrator” object
class.
Make invisible while protected
When the user's privilege does not match the object
class, the object will be hidden.
Font Tab
In Real-time mode: Users may select Italic font and set the font size. The font is displayed
according to the setting in Event Log object.
In History mode: Users may select Italic font and set the font size, font and color, or tick the
[Font from label library] check box.
Empty Warning
When [Use empty warning] is enabled, the text displayed when no event has occurred can be
specified.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.23.1. Overview
Data Transfer (Trigger-based) object can transfer values from the source register to the
destination register. The data transfer operation can be activated by changing the state of the
designated bit register, or by manually pressing the object.
For cMT Series, only touch trigger mode is available.
13.23.2. Configuration
Click [Object] » [Data Transfer] » [Data Transfer (Trigger-based)] icon on the toolbar to open the
property dialog box. Set up the properties, press OK button, and a new Data Transfer
(Trigger-based) object will be created.
General Tab
Setting Description
Source
Data Transfer object reads the data from [Source Address].
address
Destination
Data Transfer object writes the data to [Destination Address].
address
Attribute No. of words
The number of words to be transferred from [Source Address] to
[Destination Address]. The unit is word.
Mode
Touch trigger
Press the object to activate data transfer operation.
External trigger
The data transfer operation is activated when the state of the
designated bit address changes.
There is a further selection to make of whether the data transfer
operation is activated after Off to ON, ON to OFF transition, or at
both of the changes of state.
Trigger
Specify a bit address for [External trigger] mode.
address
Notification When enabled, the system will set the designated address ON or
OFF when it’s ready for data transfer.
Follow
The notification bit will reset to its original state once the system
starts data transfer.
Note
When using Data Transfer Trigger Based object, place the control bit addresses in the
same window in order to trigger Data Transfer. If the Data Transfer Trigger Based object is
placed in the common window, when the state of the control bit addresses placed in any
window changes, Data Transfer is triggered.
13.24. Backup
13.24.1. Overview
Backup (Trigger-based) object and Backup (Global) object can transmit recipe data (RW, RW_A),
event log, recipe database, sampling data, and operation log to an external device (SD card,
USB disk), in a specified time range or format. For example, when the event log is saved in a SD
card, a USB disk can be inserted when HMI power is still ON, and use Backup object to copy the
data into USB disk from SD card, and then remove USB disk without turning off HMI power. The
data saved in USB disk can be used on PC for analyzing. When the system is backing up, the
state of system register [LB-9039] is set ON. With [e-Mail] option, information can be sent to
configured email contacts.
Backup (Trigger-based) object is triggered by pressing the object on the screen while Backup
(Global) object runs in the background regardless of screens being viewed. Backup (Global)
object is available only on cMT Series models.
13.24.2. Configuration
On the toolbar click [Object] » [File Operation] to find [Backup (Trigger-based)] and [Backup
(Global) objects.
Open [Backup (Trigger-based)] object property dialog box, set up the properties, press OK
button, and a new Backup (Trigger-based) object will be created.
When using a cMT Series model, [Backup (Global)] object is available. Open [Backup (Global)]
object managing dialog box, click [New] to open the object property dialog box, set up the
properties, press OK button, and a new Backup (Global) object will be created.
General Tab
Backup (Trigger-based)
cMT Series eMT, iE, XE, mTV Series
Setting Description
Source [RW], [RW_A], [Recipe database], [Historical event log],
[Historical data sampling], [Operation log]
Select one from the above for the source. When backing up
[Historical data log], use [Data Sampling object index] to select the
one to back up.
Options other than RW, RW_A will be available only when they are
used in the project file.
Backup Select the destination where the source files will be saved to.
position SD card / USB disk
The external device connected to HMI.
If using cMT series, SD card and USB disk can only save [RW],
[RW_A], and [Recipe database].
Remote printer/backup server (eMT, iE, XE, mTV Series)
To select this, enable MT remote printer/backup server at: [Menu]
» [Edit] » [System Parameters] » [Printer/Backup Server].
Please note that [Operation log] backup can only be saved to
Remote printer/backup server. To save into a SD card or USB drive,
please use the control address of Operation Log object.
For more information, see “26 EasyPrinter”.
E-mail
To use e-mail, go to [System Parameters] » [e-Mail] tab to configure
first. And then go to Backup object » [e-Mail] tab to configure the
recipient address, subject, and message.
Save format Select the desired format to back up the file.
eMT, iE, XE, mTV Series:
HMI Event Log File (.evt) / HMI Data Log File (.dtl)
Comma Separated Values (.csv)
The [Event] column is included in the backup file to indicate the
type of the event.
0 = Event is triggered
1 = Event is acknowledged
2 = Event returns to normal
Note
All history files should have been saved in memory, either HMI memory, USB disk or SD
card. Otherwise, the Backup object will not work.
The maximum number of days for backup is 90 days. (Not including cMT Series)
When saving files to USB disk or SD card, the capacity of a FAT32 folder depends on the
length of the file names. Fewer files can be saved when the file names are longer.
For cMT Series, see “7 Event Log” and “8 Data Sampling” that explain the mechanism of
Setting Description
Serial number If enabled, when backing up history files, a user-defined, 5-digit
serial number can be appended to the end of the file name of the
history data backup.
The serial number is determined by the value in the designated
source address. After backup, the value of this LW address will
automatically increment by 1.
The range of the serial number is 0~65535
For example, if the serial number is 123, the appended 5 digits will
be 00123.
A data sampling file -20140407.dtl will be backed up as
2014040700123.dtl.
An event log file -20140407.evt will be backed up as
2014040700123.evt.
Options Remove old files after backup
If selected, the old history files will be removed after backup.
Note
cMT Series does not support Advance settings.
e-Mail Tab
Setting Description
Add .txt
extension to If selected, when sending backup data as an email attachment, the
the filename filename extension .txt will be added to the file name. This
to skip the prevents the mail server or anti-virus software from blocking
anti-virus emails.
detection
Recipients,
Back up the email address of the recipients, the subject of the
Subject,
email, and the message content.
Message
13.25.1. Overview
At the first time using Media Player object in the project, download the project to HMI via
Ethernet. EasyBuilder Pro installs Media Player driver automatically.
Media Player object plays video files with controls such as seek, zoom, and volume adjustment
to provide maintenance instructions or procedures on video so as to enable on-site operators
to perform tasks efficiently.
This object does not work remotely on cMT Viewer.
13.25.2. Configuration
Click [Object] » [Media Player] icon on the toolbar to open a Media Player object property
dialog box. Set up the properties, press OK button, and a new Media Player object will be
created.
General Tab
Setting Description
Use UI control Use media control provided by user interface.
Resume previous playback / Resume after restart
Resume Media Player when changing from another window to the
window where Media Player is.
Control Selected
address Designate a word register to control the object operations.
Not selected
No manual control. Video will be played automatically when the
designated window opens.
Command (control address + 0)
Enter a value in the Command register to designate which action is
executed.
Parameter 1 (control address + 1)
Enter a value in Parameter 1 associated with each command action.
Parameter 2 (control address + 2)
Enter a value in Parameter 2 associated with each command action.
Status (control address + 3)
Indicates the status or errors.
File index (control address + 4)
The file number in the designated folder. It is recommended to file
the video name with a number.
Start time (control address + 5)
The start time of the video (second). 0, normally.
End time (control address + 6)
The end time of the video (second). (The time length of the video)
Update video playing time
If enabled, the elapsed playing time of video will be written into
[Playing time] register at a rate set by [Update period] in seconds.
Update period
Update period of [Playing time], range from 1 to 60 (second).
Playing time (control address + 7)
The elapsed playing time of video (Second). Normally between
start time and end time.
Ext. device Play video files in SD card / USB disk.
Folder name
The folder name of video files stored in SD card or USB disk. Files
must be stored in root directory. Subdirectories won’t be accepted.
(For example, “example\ex” is an invalid directory.)
[Folder name] cannot be empty, must be alpha-numeric, and all in
ASCII character.
Attribute Auto. repeat
When finish playing all the video files, replay from the first file.
Ex: Video 1 > Video 2 > Video 1 > Video 2
Background
The background color of the object.
Note
The data format for control address is 16-bit Unsigned or 16-bit Signed. If using 32-bit
Unsigned or 32-bit Signed, only the previous 16 bits will be effective.
Control command
Note
Files are stored with file names in ascending order.
If the file cannot be found, [Status] bit 8 is set ON.
Please stop the playing video before switching to another.
Note
If [File index] is zero, the same file is replayed.
If the file cannot be found, [Status] bit 8 is set ON.
Note
Parameter 1 (target time) must be less than the ending of time or it plays the last second.
Forward
[Command] = 7
[Parameter 1] = target time (second)
[Parameter 2] = ignore (set 0)
Note
Going forward to the designated second in [Parameter 1]. If the video is paused, the
forwarding action will be started by playing.
When the designed time is later than the end time, it plays the last second.
Backward
[Command] = 8
[Parameter 1] = target time (second)
[Parameter 2] = ignore (set 0)
Note
Going Backward to the designated second in [Parameter 1], if the video is paused, the
backward action will be started by playing.
When the designed time is earlier than the beginning time, it plays from beginning.
Adjust volume
[Command] = 9
[Parameter 1] = volume (0 ~ 128)
[Parameter 2] = ignore (set 0)
Note
Default volume is 128.
Set video display size
[Command] = 10
[Parameter 1] = display size (0 ~ 16)
[Parameter 2] = ignore (set 0)
Note
[Parameter 1 = 0]:Fit video image to object size.
[Parameter 1 = 1 ~ 16]:Magnification from 25% ~ 400% in 25% increments where 1 = 25%,
2 = 50%, 3 = 75% and so on.
Note
The figure shows the status value associated with each state:
Stop = 0, Pause = 1, Playing = 3
[Command], [Parameter 1], and [Parameter 2] are write addresses. All others are read
only.
Preview Tab
Users can test whether the video format is supported by using the preview function.
Setting Description
Forward << /
Go forward or backward of the video. (in minutes)
Backward >>
Play / Pause Select to start playing video or pausing.
Stop Stop playing and close the video file. To test another video, please
stop playing the current video first.
Load Select a video to preview.
Note
Only one video file can be played at one time.
If [control address] is not enabled and [Auto. repeat] is not selected, after finish playing
the first file, the system will stop playing and close the video file.
If [control address] is not enabled, the system will find the first file in the designated
folder and start to play (in ascending order of the file name).
If the file can be previewed, the format is supported. If the video image quality is poor,
please adjust the resolution.
The supported formats: mpeg4, xvid, flv…etc.
Click the icon to download the demo project. Please confirm your internet connection
13.26.1. Overview
Data Transfer (Time-based) object has similar function compared to Data Transfer
(Trigger-based) object. They transfer the data from source to destination register. The
difference is that Data Transfer (Time-based) object transfers data based on time schedule, and
is able to transfer data in bits.
When using cMT Series, Data Transfer (Time-based) object is divided into two modes:
[Time-based] and [Bit trigger]. In these two modes, the system automatically detects the state
of the designated bit register and executes data transfer. [Time-based] mode is the same as
described earlier, where [Bit trigger] mode transfers data when the state of the designated bit
register changes. For the detail of [Bit trigger] mode, see “13.26.2.2 Data Transfer Bit Trigger”.
13.26.2. Configuration
Click [Object] » [Data Transfer] » [Data Transfer (Time-based)] icon on the toolbar to open the
Data Transfer management dialog box. Click [New] and configure the properties. All the
defined Data Transfer can be viewed from the dialog box as shown in the following figure.
cMT Series
General Tab
Click the [New] button in the Data Transfer management dialog box.
Setting Description
Attribute Address type
Select the data type, either [Bit] or [Word].
No. of bits /No. of words
When [Bit] is selected in [Address type], set the number of bits
transferred each time when data transfer is triggered.
When [Word] is selected in [Address type], set the number of
words transferred each time when data transfer is triggered.
Interval
Select the time interval of data transfer, for example, when 3
seconds is set, the system will transfer data every 3 seconds.
Specifying a short time interval or a big number of data to transfer
may cause an overall performance of system decrease. Therefore, it
is recommended that users choose a longer time interval and a
smaller amount of data to transfer.
When a short interval is inevitable, be aware of the interval must
be longer than the data transfer operation. For example, if the data
transfer operation takes 2 seconds, set the interval longer than 2
seconds.
Activate only
when
Data Transfer object transfers data only when the designated
designated
window is opened.
window
opened
Source
Data Transfer object reads the data from [Source Address].
address
Destination
Data Transfer object writes the data to [Destination Address].
address
Notification When enabled, the system will set the designated address ON or
OFF when it’s ready for data transfer.
Follow
The notification bit will reset to its original state once the system
starts data transfer.
General Tab
Click the [New] button in the Data Transfer management dialog box, and open [Bit trigger] tab.
Setting Description
Source
Data Transfer object reads the data from [Source Address].
address
Destination
Data Transfer object writes the data to [Destination Address].
address
No. of word Set the number of words transferred each time when data transfer
is triggered.
Trigger Set the register that controls data transfer and select the trigger
address mode.
Trigger mode
Trigger data transfer when the state of the designated register
changes from Off to ON, ON to OFF, or at both of the changes of
state.
Notification When enabled, the system will set the designated address ON or
OFF when it’s ready for data transfer.
Follow
The notification bit will reset to its original state once the system
starts data transfer.
13.27.1. Overview
13.27.2. Configuration
Click [Object] » [PLC Control] icon on the toolbar to open the PLC Control Object management
dialog box. To add a PLC Control object, click [New], set up the properties, press OK button and
a new PLC Control object will be created.
Click [New] and the following dialog box appears. See “13.27.2.1 Type of Control”.
Note
The [General PLC Control] option is not available for cMT Series.
Triggering [Screen hardcopy] in cMT Viewer will result in files being saved into the USB
disk / SD card connected to the cMT HMI. Likewise, the [Back light control] option in cMT
Viewer will control the backlight of the HMI itself.
Selecting [Change window] or [General PLC Control] as [Type of control] will require more
than one trigger word (consecutive). Using a user-defined tag PLC will require declaring an
array datatype.
Change window
Setting Description
Active only when
designated Allow this operation only if a particular screen is displayed.
window opened
Turn on back light The backlight is turned ON when the window is changed.
Clear data after Reset the value at trigger address to zero when the window
window changed object is changed. If [Use window no. offset] is selected, this
option will only show when a negative offset is used.
Use window no. Select the check box and select a window offset, the new
offset window no. to change to will be the value in [Trigger address]
plus the offset. For example, if [Trigger address] is LW-0 and
offset is set to -10. When the value in LW-0 is 25, the system
will change to window no. 15 (25-10=15). The range of the
offset is -1024 to 1024.
Note
If [LB-9017] is set ON, the write-back function will be disabled, the new window number is
not written back into a designated address.
Place a valid window number in the designated trigger address to change the base screen to
the new window number. The new window number is written back into the designated
address.
For example, if current window is window no. 10, and [Trigger address] is set to LW-0,
When LW-0 is changed to 11, the system will change the current window to window no. 11,
and then write 11 to LW-1.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
When the window is changed, the new window number is written back into the address that is
calculated by [Trigger address] and the data format, as shown in following table.
Data Format Trigger address Write address
16-bit BCD Address Address + 1
32-bit BCD Address Address + 2
16-bit Unsigned Address Address + 1
16-bit Signed Address Address + 1
32-bit Unsigned Address Address + 2
32-bit Signed Address Address + 2
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Write data to PLC (current base window)
Each time the base window is changed, the new window number will be written into the
[Trigger address]. If [Use window no. offset] is selected, the window number of the base
window plus the window number offset will be written into the [Trigger address].
General PLC Control (eMT, iE, XE, mTV)
Transfer word data blocks from PLC to HMI, and vise-versa, and the transfer direction is
controlled by the value in the [Trigger address].
Value in Action
[Trigger address]
1 Transfer data from PLC register HMI RW register
2 Transfer data from PLC register HMI LW register
3 Transfer data from HMI RW register PLC register
4 Transfer data from HMI LW register PLC register
Four consecutive word registers are used as described in the following table:
Address Purpose Description
[Trigger Determine the The valid values are listed in the
address] direction of data above table. When a new control
Example 1
To use PLC Control object to transfer 16 words data in OMRON PLC, starting from address
DM-100, to the HMI address, starting from RW-200. The setting is shown below:
1. Firstly, create a PLC Control object, set [Type of control] to [General PLC control], and set
[Trigger address] to DM-10, that is, to use the four sequential registers start from DM-10
to control data transfer.
2. Confirm the data size and the offset addresses.
Set DM-11 to 16, since the number of words to transfer is 16 words.
Set DM-12 to 86, which indicates the address of data source is DM-100 (100=10+4+86).
Set DM-13 to 200, which indicates the destination address is RW-200.
3. Set DM-10 according to the direction of data transfer.
If set DM-10 to 1, the data will be transferred from PLC to HMI RW register,
If set DM-10 to 3, the data will be transferred from HMI RW register to PLC.
When the state of the designated [Trigger address] changes, print the selected screen. If select
[SD card] or [USB disk] as [Printer], a “hardcopy” folder will be generated in the selected
external device for saving the printed screen in JPG format. The name of the JPG files starts
from yyyymmdd_0000.
To print the screen using a printer, go to System Parameter Settings » Model tab and set the
printer.
To print the screen using a remote printer, go to System Parameter Settings » Printer/Backup
Server tab and configure the parameters.
There are three options to specify the source window for hardcopy:
Current base window
Print the base window currently opened.
Window no. from register
Print the window designated by the value in a designated word address.
Designate window no.
Directly select a window to be printed.
Customized File Handling
This feature can be used to customize naming of the folders and the JPG files.
Setting Description
Folder name The folder name can be an alphanumeric name, and
certain half-width symbols are allowed:
!@#$%^&()_+{}`-=;',.
The folder name can also be specified by a naming syntax.
Dynamic format
The folder names can be set by a designated word
address, or by a naming syntax indicating the current
system time. The syntax can be specified by selecting
time buttons or entering the syntax in Format field. The
length limit is from 1 to 25.
Note: Up to 10 layers of folders can be created. The
exceeding layers will be ignored.
File name The way to specify a file name is similar to specifying a
folder name.
Note: If the file name already exists, the system will add
“_0001” to the file name as a serial number. The numbers
of the later files add up until “_9999”. The files after
“_9999” will be ignored.
For example, if the three file names exist: “A.jpg”,
“A_0001.jpg”,“A_0003.jpg”. When trigger screen
hardcopy with the same file name, the coming files will
be named in this order: “A_0002.jpg”, “A_0004.jpg”,
Note
A background printing procedure is performed when the printed window is not the
current base window.
If the hard-copied window is a background window, its [Direct Window] and [Indirect
Window] objects will not be printed.
When using a dynamic format name, the system will use a “_” sign as a substitute for
invalid symbols.
When using a dynamic format name, if screen hardcopy is triggered without specifying
the format first, the system will save the file in the default directory, which is:
hardcopy\yymmdd_0000.JPG
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.28. Scheduler
13.28.1. Overview
Scheduler object turns bits ON/OFF, or writes values to word registers at designated start times.
It works on a weekly basis.
13.28.2. Configuration
Click [Object] » [Time-related] » [Scheduler] icon on the toolbar to open the Scheduler
management dialog box, click [New] to open the Scheduler property setting dialog box.
4. Enter [Start] time as 9:00:00 and select Monday to Friday. Do not select [Setting on
individual day].
5. Enter [End] time as 18:00:00 and select [Enable termination action] check box.
6. Click [OK], a new Scheduler object will be created on the [Scheduler] list.
Example 2
A thermal heater is scheduled to heat up to 90°C at 08:00 and cool down to 30°C at 17:00,
Monday to Friday. LW-100 is used to store the set point value.
1. Click the Scheduler icon on the toolbar to open the Scheduler management dialog box,
click [New].
2. In [General] tab, select [Word write] in [Action mode] and set [Action address] to LW-100.
3. Select [Constant] for [Word write value settings] and enter 90 in [Start value].
General Tab
Setting Description
Power ON Execute the defined action when the HMI is powered ON.
start/end Enabled
action When HMI is powered ON within the scheduled time range, the
start action will be performed automatically. When HMI is powered
ON outside the scheduled time range, the termination action will
be executed.
Disabled
When the HMI is powered ON at a time later than the start time,
the start action will not be performed, but the termination action
will be performed. When the termination action is not defined, the
scheduled range is not recognized and no action is performed.
Bit OFF
At the start time, set the designated bit OFF. At the end time, set
the designated bit ON.
Example: Start time : 09:00:00 End time : 17:00:00
Word write
The [Write start value] entered here is transferred to the
designated [Action address] word register at the start time. At end
time, the [Write end value] entered here is written to the [Action
address]. The valued can be entered manually or be set by using
[Address] mode. In [Address] mode, the value in the specified
address is the start value where the value in [Address + 1] is the
end value.
Example: Device address: LW-100
Start time: 09:00:00 End time: 17:00:00
Write start value: 10 Write end value: 0
Use register: If control address is LW-n, then enter 10 in LW-n and
enter 0 in LW-(n+1).
Note
Only is an [End time] is set in the [Time set] tab will the [Write end value] box appear.
Time Set
Specify start time and end time. [Constant] allows specifying a date or period and time.
[Address] allows controlling the time by the designated address.
Constant
Setting on individual day
If [Setting on individual day] is selected
The same start time and end time can be assigned to different days of the week.
Note
Start and end time must be entered.
Start and end time must be on a different time, or same time but different day.
If [Setting on individual day] is not selected
Start time and end time entered must start and end within 24-hours.
Note
Start time and end time must be on a different time, different day.
If an end time is earlier than a start time, the end action will occur in the next day.
Address
The scheduler object retrieves the start/end time and day of week information from word
registers, enabling all parameters to be set and changed under PLC or user control.
Designated as the top address in a block of 11 sequential registers which are used to store time
setting data.
The format of the 11 word registers should normally be 16-unsigned integer. If a 32-bit word
address is chosen, only bits 0-15 are effective, and bits 16-31 should be written as zero.
The following describes each register.
Control (Time setting address + 0)
When [Control] bit is ON, the HMI will read and update [Action mode], [Start time], and [End
time] values.
Note
HMI will not regularly read the data from [Action mode] (address + 2) to [End time]
(address + 10). Please turn [Control] ON when the settings are changed.
Status (Time setting address + 1)
When the read operation is completed, Bit00 of this register turns ON. If time data read is out
of range or incorrect in any way Bit01 turns ON.
Note
After the scheduler reads the data and the status is turned ON (The value in [Address + 1]
= 01), the control bit must be turned OFF (address = 0). The status bit and error bit will be
turned OFF (10) at the same time.
Note
If [Enable termination action] is OFF, all 11 registers are still read but end time is ignored.
If [Setting on individual day] is ON, make sure that all start end times are entered. If more
than one start / end day bit is ON, and error will occur.
Start/End Day (Start Day: Time setting address + 3, End Day: Time setting address + 7)
Designates which day of week is used to trigger the start or end action.
Start/End Time (Start Time: Time setting address + 4 to + 6, End Time: Time setting address +
8 to + 10)
Hour: 0 – 23 Minute: 0 – 59 Second: 0 - 59
Values outside these ranges will cause error.
Note
16-bit unsigned integer format must be used; BCD format is not supported here.
In [Address] mode, [Control] bit should be set after HMI reboots to update scheduler
time.
When using RW address, [Control] bit should be set after HMI reboots to update
scheduler time. Placing a Set Bit object with [Set ON when window opens] selected in the
common window is recommended, this can retain last settings after HMI reboots.
End time depends on [Action mode] (address + 2). [Enable termination action] (Bit 00)
and [Setting individual day] (Bit 01) are related:
Prohibit tab
Before the scheduled action is performed, the HMI will read the specified bit state. If it is ON,
the scheduled start/end action will be skipped. Otherwise, it will be performed normally.
Note
The maximum number of Scheduler objects in a project is 64.
A time schedule applies one action only when the start time is reached.
[Write start/end value] and [Prohibit] bit is read only once before start action. After that,
even to change the state of [Prohibit] bit or [Write start/end value], the end action and
the value written will not be affected. Also, to read data of [Write start/end value] and
[Prohibit] bit, there is a delay of start action due to the communication.
Each time RTC data is changed, scheduler list entries that possess both start and end
times will be checked for in-range or out-range conditions. For in-range, the start action
will occur. If the end action is not set, the new range is not recognized, the action will not
occur.
If several Scheduler objects are set to the same start time or end time, the action is
performed in ascending order of the schedule number.
In [Time Set] » [Address] mode, the system will read [Control] word regularly. The length
of the period depends on the system.
In [Time Set] » [Address] mode, when start time and end time is out- range, error occurs
in the set action time. (Note: BCD is not an acceptable format)
In [Time Set] » [Address] mode, the action will not start up until the first time the time
data is successfully updated.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.29.1. Overview
Option List object displays a list of items that the user can view and select. Once the user
selects an item, the corresponding data will be written to a word register.
There are two forms of this object – [List box] and [Drop-down list]. The [List box] lists all items
and highlights the selected one. The [Drop-down list] normally displays only the selected item.
Once the object is pressed, the system will display a list (which is similar to list box) as shown in
the following figure.
13.29.2. Configuration
Click [Object] » [Option List] icon on the toolbar to open an Option List object property dialog
box. Set up the properties, press OK button, and a new Option List object will be created.
General Tab
Setting Description
Attribute Mode: The list style, either [List box] or [Drop-down list].
Style: This option is available only when the selected mode is
[Drop-down list]. Available styles are: [Standard] and [Classic]. The
appearance of the obejects will be shown in cMT Style when
[Standard] is selected, and shown in iE/eMT/XE style when [Classic]
is selected. When the project is converted from iE/eMT/XE to cMT,
the default style will be [Classic].
Item no.: Set the number of items for the object. Each item
represents a state displayed in the list and the corresponding value
will be written to the [Monitor address].
Background: Set background color.
Selection: Set background color for the selected item.
Source of item data: There are 4 sources available: [Predefine],
[Dates of historical data], [Item address], and [User account]. See
13.29.2.1..
Monitor The corresponding value of the selected item will be written to
address [Monitor address].
Write when button is released
If this check box is selected, the selected item value will be written
to [Monitor address] after the button is released.
Send
notification Set On/Off the designated bit address after successfully writing
after writing data to PLC.
successfully
Note
For cMT Series, the [Dates of historical data] and the [write when button is released]
selections are not available.
Predefine
The list is manually defined in [Mapping] tab.
The number of items can be adjusted by [Item no.], and each item represents one state. Each
item has a corresponding value which will be written to [Monitor address].
Option List object can be used with historical data display objects, such as Trend Display object,
History Data Display object and Event Display object to control which history file should be
shown. The figure below is an example of Option List used with Trend Display.
Setting Description
Type Two options are available: [Event (Alarm) log] and [Data sampling].
Date Set the date format. YYYY means a four digits year (EX: 2012), YY
means a two digits year (EX: 12), MM means month and DD means
day.
Data Select which Data Sampling object is displayed when [Type] is [Data
Sampling Sampling], and it should be the same as the [Data sampling object
object index] configured in [Trend Display] or [History Data Display].
Enable
[delete If selected, a control address can be set. Writing “1” to this address
history data] will delete the history data of the specified date.
function
Note
In [Dates of historical data] mode, since the system automatically reads the historical data
and finds the date information, it is not necessary to configure in the [Mapping] tab.
The error message displayed in Option List can be modified in [Mapping] tab.
Item address
The list will be read from the given [Item address] and controlled by [Control address]. The
following options will be available:
Setting Description
Control [Address]: If the value at this address is changed to 1, the option
address list would be replaced by items defined at [Item address]. After
updating, the value will be restored to 0.
[Address + 1]: Define the number of items in [Item address].
Note
The UNICODE characters used here should be used by Text object, so that EasyBuilder Pro
will compile the needed fonts and download these fonts to HMI, then the UNICODE
letters can be correctly displayed.
[The number of items] multiplied by [The Length of each item] must be less than 1024
words.
The system automatically disables [Mapping] tab in [Item address] mode.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
User account
If [Enhanced Security] mode is enabled, [User account] would appear in the [Source of item
data] and it lists the names of users.
Setting Description
Sort Select the sorting method from [Ascending] of [Descending].
Display If [Privilege] is selected, the privileges for each user will be
displayed in option list.
If [Secret user] is selected, even though it is defined to be hidden in
[System parameter settings] » [Security] » [Enhanced Security], the
users will still be displayed in [Option List].
Note
The address that controls user index is [Control Address +2 (LW-n+2)] which is set in
[System Parameters] » [Security] » [Enhanced Security].
Mapping Tab
This table displays all available states/items, their item data and values. To change the number
of available items, please go to [Option list tab] » [Attribute] » [Item no.].
Setting Description
Item The system lists all available items. Each item represents a state
that will be displayed in the list. This field is read-only.
Value Here user can assign value for each item, basing on the following
two criteria:
For reading: If the value in [Monitor address] is changed, the object
selects the first-matched item. If no item is matched, the status
goes to error state and signals the notification bit register (if
requested).
For writing: The system writes this value to [Monitor address] when
user selects an item.
Item data Text displayed for each item. The Option List object displays the
text of all items in the list for users to review and select.
Import item This feature is enabled when select [Recipe-Selection] as [Monitor
data from address]. Click [Import item data from recipe record] to open the
recipe record [Records of Recipe Database] setting dialog box. Select [Item data
source], the data belonging to the selected column will all be
imported to Option List object.
13.30. Timer
13.30.1. Overview
Timer object is a switch that can be used to control the mode to count time. The modes are
explained later. Timer object uses the following 6 variables:
Timer Variable Type Description
Input bit (IN) Bit The main switch of Timer.
Measurement bit (TI) Bit Turns ON when the Timer begins
counting time.
Output bit (Q) Bit Activated when the Timer finishes
counting time.
Preset time (PT) Word Presets a time before the Timer
begins counting time.
Elapsed time (ET) Word Displays the elapsed time.
Reset bit (R) Bit Resets the elapsed time (ET) to 0.
13.30.2. Configuration
Click [Object] » [Time-related] » [Timer] icon on the toolbar to open the property dialog box as
shown in the following figure.
Note
[Constant preset time] is only available for cMT series.
If use cMT Series, clicking the Timer icon on the toolbar will open the Timer managing window,
click [New] to configure.
On delay
Mode Register
Input bit (IN): The main switch of Timer.
Measurement bit (TI): Turns ON when the Timer
begins counting time.
Output bit (Q): Turns ON when the Timer finishes
counting time.
Preset time (PT): Presets a time before the Timer
begins counting time.
Elapsed time (ET): Displays the elapsed time.
Description
Period 1: When the IN turns ON, TI turns ON and the ET starts counting. The Q remains OFF.
Period 2: When the ET equals to the PT, the TI turns OFF and the Q turns ON.
Period 3: When the IN turns OFF, the Q turns OFF and the ET is reset to 0.
Period 4: When the IN turns ON, the TI turns ON and the ET starts counting. The Q remains
OFF.
Period 5: Turns IN OFF before the ET reaches the PT, the TI turns OFF, and the ET is reset to 0.
Since the ET doesn’t reach the PT, the Q remains OFF.
Off delay
Mode Register
Input bit (IN): The main switch of Timer.
Measurement bit (TI): Turns ON when the Timer
begins counting time.
Output bit (Q): Turns OFF when the Timer finishes
counting time.
Preset time (PT): Presets a time before the Timer
begins counting time.
Elapsed time (ET): Displays the elapsed time.
Description
Period 1: When the IN turns ON, the TI remains OFF and the Q turns ON, the ET is reset to 0.
Period 2: When the IN turns OFF, the TI turns ON and the Q remains ON, the ET starts
counting.
Period 3: When the ET equals to the PT, the Q and TI turn OFF.
Period 4: When the IN turns ON, the TI remains OFF and the Q turns ON, the ET is reset to 0.
Period 5: When the IN turns OFF, the TI turns ON and the Q remains ON, the ET starts
counting.
Period 6: Turns the IN to ON before the ET reaches the PT, the TI turns OFF, the Q remains
ON, and the ET is reset to 0,.
Pulse
Mode Register
Input bit (IN): The main switch of Timer.
Measurement bit (TI): Turns ON when the Timer
begins counting time.
Output bit (Q): Turns ON when the Timer begins
counting time and turns OFF when the Timer
finishes counting time.
Preset time (PT): Presets a time before the Timer
begins counting time.
Elapsed time (ET): Displays the elapsed time.
Description
Period 1: When the IN turns ON, the TI and Q turn ON simultaneously, and the ET starts
counting.
Period 2: When the ET equals to PT, the TI and Q turn OFF simultaneously. Since IN is turned
OFF when counting time, the ET is reset to 0.
Period 3: When the IN turns ON, the TI and Q turn ON simultaneously, and the ET starts
counting.
Period 4: When the ET equals the PT, the TI and Q turn OFF simultaneously.
Accumulated ON delay
Mode Register
Input bit (IN): The main switch of Timer.
Measurement bit (TI): Turns ON when the Timer
begins counting time.
Output bit (Q): Turns ON when the Timer finishes
counting time.
Preset time (PT): Presets a time before the Timer
begins counting time.
Elapsed time (ET): Displays the elapsed time.
Reset bit (R): Resets ET to 0
Description
Period 1: When the IN turns ON, the TI turns ON and the elapsed time ET starts counting, the
Q remains OFF.
Period 2: When the IN turns OFF, if the ET doesn’t reach the PT, the TI turns OFF, and at the
same time the Q remains OFF. The ET is in the retentive state.
Period 3: When the IN turns ON, the TI turns ON. The timer measurement starts again and
the ET starts counting from the kept value. The Q remains OFF.
Period 4: When the ET reaches the PT, the TI turns OFF and the Q turns ON.
Period 5: When the IN turns OFF, the Q turns OFF. Turning ON the reset bit R will reset the ET
to 0, and then the reset bit turns OFF.
Accumulated OFF delay
Mode Register
Input bit (IN): The main switch of Timer.
Measurement bit (TI): Turns ON when the Timer
begins counting time.
Output bit (Q): Turns OFF when the Timer finishes
counting time.
Preset time (PT): Presets a time before the Timer
begins counting.
Elapsed time (ET): Displays the elapsed time.
Reset bit (R): Resets ET to 0
Description
Period 1: When the IN turns ON, the TI remains OFF and the Q turns ON.
Period 2: When the IN turns OFF, the TI turns ON and the Q remains ON. The ET starts
counting.
Period 3: When the IN turns ON, the TI and Q remain ON, and the ET is in the retentive state.
Period 4: When the IN turns OFF again, the ET starts counting from the kept value.
Period 5: When the ET equals to the PT, the TI and Q turn OFF simultaneously. Turning ON
the reset bit R will reset the ET to 0, and then the reset bit turns OFF.
Click the icon to download the demo project. Please confirm your internet connection
13.31. Video In
13.31.1. Overview
The eMT, XE, and mTV Series HMI models provide the Video Input feature. By installing a
surveillance camera, user can monitor the site on HMI. The video images can be stored in
external devices and then analyzed on PC. This feature can be utilized in different places for
monitoring, such as vehicles or buildings.
eMT, XE, and mTV Series: Support USB camera video input.
eMT, XE Series: Support IP camera video input.
cMT Series: Supports video recording but does not support capturing images.
eMT3120A/eMT3150A: Not only support USB camera video input but also NTSC and PAL
analog video systems. For hardware, HMI provides 2 channels for Video Input. User can freely
switch the channel, and capture real-time images even when Video Input is paused.
This object does not work remotely on cMT Viewer.
13.31.2. Configuration
Click the Video In icon on the toolbar to open the property dialog box. Set up the properties,
press OK button, and a new Video In object will be created.
General Tab
IP Camera
Setting Description
Input channel Select the Video Input channel from channel 1 or channel 2.
(Analog video systems)
Encode
Select the format from NTSC or PAL. (Analog video systems)
format
RTSP Enter the IP camera’s RTSP address.
When account and password are required for accessing the IP
Camera, an RTSP address with credentials embedded can be used.
For example:
admin:admin@192.168.1.119:554/cam/realmonitor?channel=1&subtype=0
Streaming over TCP
Select this check box to stream video over TCP.
Capture Select [Use capture function] check box and configure the settings.
address Capture address
Designate the address that triggers image capturing.
Storage medium
Designate the storage device.
System Storage Device
Analog video Select SD card or USB disk to save the captured
system images. The images of channel 1 will be saved in
“VIP1” folder in the chosen storage and so on.
USB Only saves the captured images in SD card.
Camera
IP Camera XE Series: Captured images can be saved in USB
drive.
eMT Series: Captured images can be saved in SD
card.
Record time
Set a period of time to capture the images.
System Method
Analog video The longest period can be set from 10
system seconds before triggering [Capture address]
to 10 seconds after triggering.
The time interval of image capturing is once
every second.
The captured .jpg file will be named in the
following format:
Note
About analog video systems:
Only one channel can be opened at a time.
Real-time images can still be captured when Video In is paused.
Recommended analog video systems and resolutions:
1:1 50%
NTSC 720 x 480 360 x 240
PAL 720 x 576 360 x 288
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
About USB Camera:
When the USB Camera is disconnected during video playing, video will not resume when
camera is connected again. If [Control address] is used in the project, please use the
control address to stop and restart video. If [Control address] is not used, switch to
another screen and then return, or restart HMI in order to resume the video.
The maximum size of Video In object of eMT3070A is 340*240, as for eMT3105P,
eMT3120A, eMT3150A, XE, and mTV Series, the maximum size of Video in object is
640*480.
When using a USB Camera, the display resolution of the run-time video is determined by
the resolution supported by the USB Camera that is closest to the size of the object. The
resolution supported by the USB Camera may not be identical to the size of the object.
Therefore, it is good practice to adjust the size of object according to the actual resolution
of the video.
When using a USB Camera, the right and bottom edge of the Video In object will keep a
distance of 50 pixels away from the window edge to prevent the run-time video from
exceeding the window.
When using a USB Camera, the background color of Video In object is black. If the
resolution of the run-time video is smaller than the object, the empty area is colored
black. Therefore, it is good practice to adjust the size of object according to the actual
resolution of the video. The tested and available USB Cameras are: Logitech C170,
Logitech C310, Logitech C910, LifeCam VX-2000.
The OS versions that support USB Camera:
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
About IP Camera:
A RTSP address is required for using IP camera. The RTSP address can be found in the
configuration tool of the IP camera, or possibly from an online repository.
When the IP Camera is disconnected during video streaming, video will not resume when
the camera is connected again. If [Control address] is used in the project, please use the
control address to stop and restart video. If [Control address] is not used, switch to
another screen and then return, or restart HMI in order to resume the video.
When using an IP camera, the display resolution of the run-time video will be same as
that of the object drawn in the EasyBuilder Pro project. If the actual video resolution is
different from the size of the object, the resolution will be adjusted to fit the object,
which may cause distortion of video image. Therefore, it is good practice to adjust the size
of object according to the actual resolution of the video.
Use the IP cameras that comply with ONVIF standard, and use RTSP for video streaming.
To ensure the quality and smoothness of the video, and not to affect HMI’s general
performance, adjust the settings of IP camera when video lags or high CPU loading is
observed. As the project complexity and hardware specs vary from one case to another,
please fine-tune the video parameters accordingly.
Recommended video specification:
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
13.32.1. Overview
If objects use [Display confirmation request] or [local HMI supports monitor function only] is
turned on/off, the corresponding messages configured here will be displayed in pop-up
message boxes.
13.32.2. Configuration
Click the System Message icon on the toolbar to open the setting dialog box.
System Message
Setting Description
Dialog Size Select the size for pop-up window and texts.
Confirmation If an object uses [Display confirmation request], this message
required would pop up when the object is used. [Message] shown on
confirmation dialog box, and the text label of the 2 buttons, [OK]
and [Cancel], can be set. Please use the same font for the labels of
[Message], [OK] and [Cancel]. Additionally, only when selecting
[Label Library] for [Message], the use of Label Library for [OK] and
[Cancel] buttons can be enabled.
Deny Displays when system tag LB-9196 (local HMI supports monitor
write-command function only) is turned ON.
Allow Displays when system tag LB-9196 (local HMI supports monitor
write-command function only) is turned OFF.
Note
cMT Series does not support adjusting dialog size and using system tag LB-9196.
13.33.1. Overview
Recipe View object can be used to display a specific recipe. All items and values of the recipe
can be viewed by using this object.
13.33.2. Configuration
Click the Recipe View icon on the toolbar to open a Recipe View object property dialog box. Set
up the properties, press OK button, and a new Recipe View object will be created.
General Tab
The name of each part of the Recipe View object is shown in the following figure.
Setting Description
Refresh data When selected, the system will automatically refresh Recipe View
automatically when recipe is changed; otherwise, Recipe View will be refreshed
after window change.
Recipe table Choose the recipe name or look for other recipes from the
drop-down list.
Style
Available styles are: Default, Crystal, and Flat.
(cMT Series only)
Caption With [Use caption] enabled, the text, font size, color, and name of
(cMT Series only) the caption can be specified. (Use caption is only available when
the selected style is Crystal or Flat.)
Title The item name assigned in [System Parameter Setting] » [Recipe].
Transparent
If selected, the title row has no shading; the color selection is not
available.
Profile The frame and background color of the object can be set.
Transparent
Select to hide the background, the color selection is not available.
Grid The dividing lines between columns and rows.
Enable
Select to show the grid.
Auto fit short column (cMT Series Default style)
The column width automatically adjusts to the size of the content.
Selection
Control Change the shading color of the selected row.
(N/A for cMT)
Default sort Configure how the items are sorted. [Ascending] and [Descending]
method can be selected.
Note
There are 4 system registers that can be used to view/update/add/delete recipe database:
Selection
Current selection of record in Recipe View object, and it is numbered from zero. If the first
record is chosen, the value of Selection will be 0. When the value of Selection is changed,
the corresponding values will be updated, such as “No”, “Timer_1”, “Timer_2”, as shown
in the following figure.
Count
Show the number of records in current recipe.
Command
Enter certain value will send command to the selected record.
Enter “1”: Add a new recipe record.
Enter “2”: Update the selected recipe record.
Enter “3”: Delete the selected recipe record.
Enter “4”: Delete all recipe records.
Result
View the result of executing commands.
Displays “1”: Command successfully executed.
Displays “2”: The selected record does not exist.
Displays “4”: Unknown command.
Displays “8”: Records reach limit (10000 records), no new records can be added.
Please go to [System Parameter Settings] » [Recipe Database] tab to create the recipe
data before using Recipe View object. See “5 System Parameter Settings”.
About creating recipes, see “24 Recipe Editor”.
Example 1
In this example, a recipe database is created to be displayed by Recipe View object. When you
select a recipe record on Recipe View object, the value of [Selection] and the corresponding
values will change accordingly. When finish designing, you can modify the recipe database by
entering a value in [Command].
2. Use Records of Recipe Database to create a number of records as shown in the following
figure.
3. Create a Recipe View object and use the recipe database created in the preceding steps.
4. Create 4 Numeric objects using registers “Selection”, “Count”, “Command”, and “Result”.
5. Create corresponding input objects for “No”, “Name”, “Timer_1”, …, “Timer_4”, “Speed”.
For example, “Name” is an ASCII item with size “10”. Create an ASCII object and set device
type to “RECIPE” » “Name”.
Example 2
In this example, [RECIPE_Bit] can be used to read / write individual bits of Recipe data.
Although BOOL type items cannot be added to Recipe Database, individual bit access of 16bit /
32bit data is possible.
As shown in the following figure, select [RECIPE_Bit] for the read address of Bit object and
point to the target item, and then the available Bit selections will be displayed. In this manner,
Recipe Database can be used to record, read, and write bit data.
13.34.1. Overview
Flow Block object displays the flow status of the blocks in the pipe or the status of the
transportation lines. Unlike Moving Shape object which requires a precise measurement
between two points when drawing a straight line provided by users, the blocks flow at a fixed
interval in a horizontal or vertical straight line.
The features of Flow Block:
Each section of the Flow Block must be a horizontal or vertical straight line and the blocks
flow at a fixed interval within it.
Dynamic speed and direction adjustment (Speed and direction can be controlled by a
designated register.
Security mechanism (Interlock), which hides Flow Block when the status of designated bit
is invalid.
13.34.2. Configuration
Click on the Flow Block icon on the toolbar or select [Objects] » [Animation] » [Flow Block] to
create object.
General Tab
Setting Description
Reverse The blocks flow in the direction the object is drawn (the blue
direction arrow). If select this check box, the blocks flow in the opposite
direction.
Outline Tab
For setting the outline property of Flow Block. The following illustration shows each item.
Setting Description
Pipe Sets the properties of the pipe within which the blocks flow. The
background color, border width and color can be set. When the
[Border] check box is selected, the background color must be set.
Block Sets the properties of blocks. Style, width, length, interval and color
can be set.
Available styles are Rectangle and Arrow. The direction in which the
arrows point to indicates the direction of the flow block.
Rectange: Arrow:
Dynamic Allows dynamic color change. Nine customized colors, numbered
color from 0 to 8, are allowed. The color is selected by entering a value in
the designated register. Entering a value greater than the largest
color number changes the Flow Block to the last color in the list.
Note
If both [Reverse direction] and [Dynamic speed] check boxes are selected in [General] tab,
when entering a negative value in the designated register of dynamic speed, the blocks
To prevent the flow block from overlapping itself, when the distance between two lines is
shorter (Section A), the valid range is restricted. When the distance is longer (Section B),
the adjustment range will be larger.
Example 1
The demonstration below shows how to use [Dynamic speed] to control the direction and
2. Create a Numeric object, set [Address] to LW-0. The high limit is 25, and the low limit is
-25. The format is 16-bit Signed.
3. Execute simulation or download the project to HMI. When entering a positive value in
LW-0, the blocks flow in the direction the section is drawn. A larger value indicates a faster
speed. When a negative value is entered, the blocks flow in a reversed direction, and the
smaller value indicates a faster speed. When 0 is entered, it stops flowing.
Click the icon to download the demo project. Please confirm your internet connection.
13.35.1.1. Overview
Operation Log records user’s operation steps and displays the record in real-time. When an
error occurs, use operation log to analyze the problem. The backup tables can be used to
review the process in order to resolve the errors.
13.35.1.2. Configuration
Select the objects to be recorded. Click [Data/History] » [Operation Log Setting], and then
select [Enable operation log function] check box.
Setting Description
Object When Operation Log is enabled, the objects that can be recorded
are listed in the setting dialog box sorted by window numbers.
[Filter]: By clicking icon, all recordable objects are listed. Users
can use the filter to more easily locate the desired objects.
Enable The selected objects are recorded by Operation Log.
Comment The description of the object as shown in the following figure.
Select all Selects all the listed objects. If [Filter] is used, clicking [Select all]
only selects the objects in the list.
Discard all Discards all the selected objects. If [Filter] is used, clicking [Discard
all] only discards the objects in the list.
Storage Sets the way the records are stored.
settings Maximum record no. in HMI memory
Sets the maximum number of records that can be stored in HMI
memory.
External devices for synchronization / backup
Stores backup data to SD card or USB disk. Backup data can be
synchronized to database (cMT Series).
Behavior when HMI space is insufficient
When HMI memory space is insufficient, two options are provided:
[Stop saving operation log]: Stops saving new records in order to
keep the earlier records.
[Synchronize to external device]: Stores the Operation Log to the
external device. When the device does not exist, the HMI clears the
oldest records in its memory.
Control Entering different values in the control address sends
address corresponding commands to Operation Log and returns the result
of executing the command.
If control address is LW-n (where n is an arbitrary number), the
address that returns the result of executing the command is
LW-n+1.
Control address (LW-n):
(1): Clear all records.
(2): Copy the records to the USB disk.
(3): Copy the records to the SD card.
(4): Copy the records to the USB disk and clear the records in HMI
memory.
(5): Copy the records to the SD card and clear the records in HMI
memory.
(6): Enable Operation Log.
(7): Disable Operation Log.
(8): Use history data stored in USB disck after changing HMI.
(9): Use history data stored in SD card after changing HMI.
(10): Copy the records to the database server. (cMT Series)
(11): Copy the records to the database server and clear the records
Note
Operation Log can only record the operation of the objects that are manually triggered.
Objects that cannot be manually triggered are not recorded, such as Time Based Data
Transfer object.
When running off-line or on-line simulation, Operation Log is stored under EasyBuilder
installation directory: HMI_memory\operationlog\operationlog.db
Triggering Macro with a Set Bit object generates two records, the triggering of bit and the
triggering of Macro.
13.35.2.1. Overview
13.35.2.2. Configuration
Before using Operation Log View, please follow the steps described in the preceding
part to finish Operation Log Settings. Click [Data/History], and then click [Operation
Log View].
General Tab
Title
Selection
Control
Profile
Frame &
Background
Grid
Setting Description
Style The style of Operation Log View object can be selected
from Default, Crystal, and Flat.
Title/Profile/Grid/ These attributes can be configured when the chosen style
Selection control is Default.
Font Sets the color, font, and font size of the text displayed in
Operation Log View object.
Title Tab
Setting Description
Title Sets the title displayed in Operation Log View object.
Sort Sorts the records in time ascending or descending order.
Display order Sets the order of the displayed item. If [Display chars.] is 0, all
characters are displayed.
Date / Time Sets the format of date and time displayed in Operation Log View
object.
13.35.3.1. Overview
Operation Log Printing can generate an Operation Log sheet by printing out using a printer or
by saving as JPEG file into an external device. Before using this function, please go to Operation
Log Settings to finish the settings.
Operation Logs printed using cMT Viewer will be saved to the USB disk / SD card connected to
the cMT HMI.
13.35.3.2. Configuration
Select “Enable [Operation Log] printing” check box and click [Settings] button to open the
Operation Log Printing dialog box.
General Tab
Setting Description
Printer Select the device to save the Operation Log sheet. If a printer is
selected, the paper size should be A4. If an external device is
selected, the Operation Log sheet is saved as a JPEG file. The
Layout Tab
Content Tab
Setting Description
Title Sets the title displayed.
Sort Time ascending
The latest record is placed at the bottom.
Time descending
The latest record is placed at the top.
Date/Time Sets the format of date and time displayed.
13.35.3.3. Demonstration
Example 1
The following demonstration explains how to create an Operation Log project.
1. Create a Toggle Switch object and a Numeric object on window number 10.
2. Go to Operation Log Settings; enable the Toggle Switch object and Numeric object on
window number 10.
Click the icon to download the demo project. Please confirm your internet connection.
Example 2
Upload Operation Log to PC by using Utility Manager or use Backup object to send the file by
email.
Upload by Utility Manager
1. Open Utility Manager, click [Upload].
2. Select [Operation log], enter file name and HMI IP, and then click [Upload].
For more information about e-Mail settings, see “5 System Parameter Settings”.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.36.1. Overview
Combo Button can execute multiple commands. The former way was to overlay multiple
objects in the same position, and the commands are executed in the order of the layer of the
objects. This takes time to test the order when planning the project. Combo Button allows
users to easily set multiple commands with one object, and freely adjust the order of executing
commands.
The following are the features of Combo Button:
Executes multiple commands.
Allows adjusting the order of executing multiple commands.
Displays the state in Bit or Word Lamp.
13.36.2. Configuration
Click on the Combo Button icon on the toolbar or select [Objects] » [Combo Button] to create
object. Configure object properties, click OK, a new Combo Button object will be created.
General Tab
Setting Description
Lamp The mode to display the state of a designated bit or word register.
None: Not using lamps to show states.
Bit Lamp
Displays the state of a designated bit address.
[Invert Signal] Reverses the display of ON / OFF states. For example,
if [Invert signal] check box is selected, when the designated bit is
OFF, the object displays ON state.
Word Lamp
Displays the state according to the value of a designated word
register.
[No. of state]: The number of states used by the object. The state is
numbered from 0, so the number of states minus 1 will be the state
number. If the value in the word register is ≥ *No. of states+ defined
Add Delay
Delays the action for a few milliseconds. A combo button can set
one [Delay] action only.
Set Bit
Sets the designated bit ON or OFF.
Set style Description
Set ON Set ON the designated bit of the device.
Set OFF Set OFF the designated bit of the device.
Toggle Alternates the bit state each time pressed.
Set Word
Sets the value in the designated register.
Set style Description
Write Writes a constant value to the designated
Constant register.
Value
JOG+ Increases value in register by a set amount in
[Inc. value] each time when the button is
pressed, to the [Upper limit].
JOG- Decreases value in register by a set amount in
[Dec. value] each time when the button is
pressed, to the [Bottom limit].
Dynamic Sets the Upper / Bottom limit by a designated
limits register.
When Dynamic Address is LW-n, where n is an
arbitrary number, set upper limit when using
[JOG+], and bottom limit when using [JOG-].
Change Window
Switch to the designated window.
General
Bit/Word Lamps, Set Bit, Set Word, and Toggle are common actions explained in 13.36.2.1 eMT,
iE, XE, mTV.
For cMT Series, actions can be classified into action groups, whichs are put in sequence.
Actions within a group are executed at the same time, and after the actions in the current
group have been all triggered, the actions in the next group will then be triggered. Please see
Ch13.53 Action Trigger for more information on the notes about action groups.
Setting Description
Down actions Execute action when the button is pressed.
Up actions Execute action after the button is pressed and released.
Set Bit Momentary is a two-step action where pressing the button (Down
action) will set the bit on and then releasing the button (Up action)
will set the bit off.
Change Switches to the designated window.
window Change full-screen window: Changes to another base window.
Screen
Saves current screen as a hard copy file into a SD card or USB disk.
Hardcopy
Acknowledge
all events Acknowledges all events once.
(Alarms)
Import Data Imports e-mail contacts or user accounts, or is used as USB Security
Key login.
Data Position:
[SD card] or [USB disk].
Account import mode:
If [Overwrite] is selected, the existing accounts will be overwritten
by new accounts. If [Append] is selected, accounts are appended.
Delete file after importing user accounts:
The system will delete the account data saved in the external
device after importing; this can prevent the account data from
leaking out.
Wait Until The next group will be executed only when the condition set for a
designated bit or word address is met.
Data Transfer
Sends the value in the designated address to another address.
(Global)
Note
One Combo Button can only do one of these window actions, and only once: [Change
Window], [Popup Window], and [Close Window].
At most 20 groups can be created in a Combo Button, and at most 20 actions can be
added into a group.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.37.1. Overview
Circular Trend Display object draws the trend curve of Data Sampling in a polar coordinate
system, where y-axis represents the radial coordinate and the x-axis represents the angular
coordinate. The way to use this object is similar to using Trend Display object.
13.37.2. Configureation
Click the Circular Trend Display icon on the toolbar to open the property dialog box. Set up the
properties, press OK button, and a new Circular Trend Display object will be created.
General Tab
Setting Description
Data Sampling Selects the data source for drawing the trend curve.
Type Selects the type of the trend from [Real-time] or [History].
Real-time
In this mode, it displays a fixed number of sampling data
from the moment HMI starts to present. The number of
sampling data is determined by the [Max. data records
(real-time mode)] setting of Data Sampling object. If the
number of sampling data exceeds this number, the earlier
data will not be displayed. To display earlier data or the
data in other days, please select [History] mode.
[Hold control] address can be used to pause refreshing the
display. This only stops displaying new data in the Circular
Trend Display object, and the data is still being sampled by
Distance Defines the time length that the circle represents, the unit
is hour, the range is 1 to 24 (hours).
Start position The position from where to start drawing the trend curve.
(Up) (Right)
(Down) (Left)
Trend Tab
Setting Description
Profile Frame
Sets the color of the frame of the object.
Background
Sets the color of the background of the object.
Show scroll controls
The scroll controls are displayed for scrolling to view
the sampling data of other time range. The
minimum scrolling unit is determined by the setting
of [Distance] in General tab. If [Show scroll controls]
check box is not selected, the earlier data cannot be
viewed when exceeding the specified [Distance].
For example: Set [Distance] to 1 (hour.), then
sampling data earlier than one hour is not displayed.
Grid Sets the number and the color of the dividing lines.
Y-axis
Sets the number of divisions on Y axis.
Font size
Sets the size of the font which labels the time scale
or channel scale.
Time scale
If enabled, displays the time scale. When the time
length is longer than 1 hour, the scale division is 1
hour. When the time length is set to 1 hour, the scale
division is 15 minutes.
Channel scale
If enabled, displays the channel scale. The color of
the font which labels the channel scale corresponds
to the setting of the trend curve of each channel.
Time / Date Time
Sets the display format of time.
Date
Sets the display format of date.
Channel Tab
Setting Description
Channel Sets the style and the color of the trend curve, and
the upper and lower limit of data that can be drawn
on the trend curve. Up to 8 channels are supported
simultaneously.
13.38.1. Overview
Picture View object plays slideshow of picture files saved in an external device such as a USB
drive or SD card.
This object does not work remotely on cMT Viewer.
13.38.2. Configuration
Click the Picture View icon on the toolbar to open the property dialog box. Set up the
properties, press OK button, and a new Picture View object will be created.
General Tab
Setting Description
Outline Sets the toolbar position, background color, and text font
of the Picture View object.
Hide delete button
If selected, the delete button will not be displayed on the
Picture View object toolbar. The delete button is used to
delete the picture currently viewed.
Display with original size when a picture size is smaller
than the object size.
If selected, when the size of the picture is smaller than the
Picture View object, this setting helps to prevent distortion
caused by enlarging the picture.
File position Select the file source of the picture files from [SD card] or
[USB disk].
Directory The directory where the picture files are saved.
Dynamic folder path
Designate folder path by a local address.
File selection Automatically display the newly generated image
When a new image is generated in the folder path, Picture
View object will automatically display the new image.
Send notification when switching to a new picture
When [Automatically display the newly generated image]
is selected, the state of the designated address changes to
On/Off when the new picture is displayed on HMI.
Specify file from address (hide toolbar)
When enabled, the displayed picture is designated by a file
name in a local address, and the toolbar will be hidden.
Note
The file name must be all in ASCII characters, and the Unicode characters are not
supported.
The supported picture formats are: .jpg, .bmp, .gif, .png.
Outline Tab
Setting Description
Outline Specify the position, background color, and font of Picture
View object.
Hide delete button
When selected, the delete button for deleting the viewed
picture will be hidden in the Picture view object.
Display with original size when a picture size is smaller
than the object size.
When selected, the picture will be displayed in its original
size if it is smaller than the Picture View object. This can
avoid distortion caused by enlarging the picture.
Click the icon to download the demo project. Please confirm your internet connection
13.39.1. Overview
File Browser object can display files and folders saved in the SD card or USB disk. Apart from
browsing for the files in the external devices, the name of the file and the file path selected in
File Browser object can be written to the designated address.
This object does not work remotely on cMT Viewer.
13.39.2. Configuration
Click the File Browser icon on the toolbar, or select [Object] » [File Browser] to open a File
Brower object property dialog box and set up the properties.
General Tab
Setting Description
Folder path address Current directory.
File name address The file name of the currently selected file.
Full (folder + file The full directory and file name of the currently
name) address selected file.
Control address Designate the control address used for deleting a
file or changing file name in File Browser.
Command: Control Address
0: None
1: Delete
2: Rename
Result: Control Address+1
0: Success
1 or more: Error
New File Name: Control Address +2
Outline Tab
Setting Description
Folder position Select the position of the file from SD card or USB
disk.
File type Select all files or only CSV file to be displayed.
Font / Background
Set the attributes and font of the object.
/ Color
Note
The file name and the directory of the selected file will be written to the designated
address, but changing the contents of the designated address will not change the selected
file in the File Browser.
The system will read the folder path address and file name address when the HMI is
restarted or when an external device is inserted to the unit. If valid data is can be read
from the designated address, the system will then automatically navigate to the
appropriate directory and highlight the file according to the data read. If [Folder path
address] is not enabled, the data at Full (folder + file name) address will be read.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
13.40. Import/Export
13.40.1. Overview
With Import/Export object, Recipe Database or String Table can be imported or exported.
13.40.2. Configuration
Click the Import/Export icon on the toolbar to open the Import/Export Object management
dialog box. To add an Import/Export object, click [New], set up the properties, press OK button
and a new Import/Export object will be created.
General Tab
Setting Description
Type Select the file source from Recipe Database or
String Table.
File position Select the position of the file to be imported /
exported from SD card, USB disk, or Remote HMI
(cMT Series). When Remote HMI is selected, please
note that only files in cMT Series models can be
imported.
Recipe Select the recipe. This option is hidden when select
String Table.
Control address Designate the control address used for performing
import/export, or displaying the result.
Control: Control Address
Recipe Database:
0: None
1: Import
2: Export (no overwrite)
3: Export
String Table:
0: None
1: Delete
2: Import
4: Export (no overwrite)
5: Export
Status: Control Address+1
0: Idle
1: Busy
Result: Control Address +2
1: Success
4: The file already exists, no overwriting.
Other: Error
File name address The name of the imported/exported file. If [Include
folder path] is selected, the full directory and file
name will be included at this address.
Folder path address The directory of the imported/exported file.
Remote HMI address When the file position is [Remote HMI (cMT
Series) ], please enter the remote HMI’s IP address
in this field.
Example 1
The following is an example on recipe export/import settings.
Field Setting
File position USB disk
Recipe Recipe_A (or other recipe)
Control address LW-100
File name address LW-200
Folder path address LW-250
1. Create two ASCII Input objects. Set address to LW-200 and LW-250 respectively.
2. Enter the file name in LW-200: 2015_recipe.csv.
3. Enter the folder path in LW-250: Setting.
4. Use a Set Word object to write value 3 to LW-100. Then, Recipe_A will be exported to the
USB disk, in the “Setting/2015_recipe.csv” file.
Note
When performing “Export (no overwrite)” command, if the target file already exists, the
export operation will be canceled, and the result value will be set to “4”.
The following lists the result values and the information.
Result (HEX) Information
0x1 Success.
0x4 File already existed and will not overwrite.
0x10 Invalid command.
0x100 Data contains non-numeric data.
0x101 Path contains invalid string “..”.
0x102 Communication error while updating Recipe DB.
0x103 Error while reading Recipe DB information from
project file.
0x200 General exception.
0x201 General status error.
0x202 Import to unknown database type.
0x203 Error while validating Recipe DB table definition.
0x204 Error while validating Recipe DB table data.
0x205 Error while writing Recipe DB table definition.
0x206 Error while writing Recipe DB table data.
0x300 File error: Unknown error.
0x301 File error: Empty file name.
0x302 File error: The external device does not exist.
0x303 File error: Invalid file name (directory or special
files), or a folder with the same name already exits.
0x304 File error: Unable to remove file.
0x305 File error: Open file stream error.
0x306 File error: Unhandled BOM.
0x307 File error: Error while parsing CSV file (incorrect
formats).
0x308 File error: Insufficient space on the external device.
0x309 File error: Unable to find the file.
0x30A File error: The CSV file contains over 10000 data
rows.
0x400 Database general exception.
Click the icon to watch the demonstration film. Please confirm your internet connection before
playing the film.
Click the icon to download the demo project. Please confirm your internet connection before
downloading the demo project.
13.41.1. Overview
The Pie Chart object draws a pie chart that is divided into slices to illustrate numerical
proportion, according to the value of the designated read address.
13.41.2. Configuration
Click the Pie Chart icon on the toolbar to open the property dialog box. Set up the properties,
press OK button, and a new Pie Chart object will be created.
General Tab
Setting Description
Angle Set the [Start degree] of the chart. Choose the Chart
to be [Clockwise] or [Counter clockwise].
If [Full circle] isn’t selected, then [End degree] must
be set.
Hole Set the size of the hollow circle in the center of Pie
Chart.
cMT Series HMI support combo setting for Pic Chart, which allows setting of multiple related
objects at a time. Pic chart can be set with Background and Legend.
Background
Setting Description
Margin Specify the space between the background edge and
the objects.
Color/Style Customize
Legend
Setting Description
Title Set whether to use a title for Pic Chart, and set the
font size / font color of the title. The title can be
selected from Label Library.
Channel Set the channel label. When using Label Library, the
number of the channels should be the same as the
number of states in the library.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.42. Barcode
13.42.1.1. Overview
The 2D Barcode Display object transfers the information from the read address into QR Code or
Aztec Code.
13.42.1.2. Configuration
Click the 2D Barcode Display icon on the toolbar to open the property dialog box. Set up the
properties, press OK button, and a new 2D Barcode Display object will be created.
General Tab
Setting Description
Mode Supports QR code and Aztec code.
Correction level 2D barcodes have error correction capability to restore data
if the barcode is dirty or damaged.
QR code
Four correction levels are available: L, M, Q, and H. The data
restoration rate is listed below. (The data restoration rate for
total codewords. Codeword is a unit that constructs the data
area.)
Correction Level
L 7%
M 15%
Q 25%
H 30%
Aztec code
Aztec code supports error correction levels from 5% to 95%.
13.42.2.1. Overview
WeChat Barcode Display object displays the QR code needed for EasyAccess 2.0 push
notification via WeChat.
13.42.2.2. Configuration
Click the [Object] » [Barcodes] » [WeChat Barcode Display] to open the property dialog box.
Set up the properties, press OK button, and a new WeChat Barcode Display object will be
created.
General Tab
Setting Description
Mode Supports QR code and Aztec code.
Correction level 2D barcodes have error correction capability to restore data
if the barcode is dirty or damaged.
QR code
Four correction levels are available: L, M, Q, and H. The data
restoration rate is listed below. (The data restoration rate for
total codewords. Codeword is a unit that constructs the data
area.)
Correction Level
L 7%
M 15%
Q 25%
H 30%
Aztec code
Aztec code supports error correction levels from 5% to 95%.
Specifying a higher correction value results in a larger printed
symbol and increases accuracy.
Color Set the 2D barcode color.
UNICODE By default, the 2D barcode is generated via ASCII encoding. If
this check box is selected, the 2D barcode is generated via
UNICODE encoding.
For characters that are not ASCII defined English alphabets or
numbers, for example, Chinese or Korean characters, please
select the Unicode check box.
Read address The 2D Barcode Display object will display the 2D barcode
generated from the information entered by the read address.
The word length limit: 1 ~ 1024.
Setting Description
EasyAccess WeChat push notification feature is only supported by servers
Server located in China.
WeChat Settings
After downloading the project file to HMI, the QR code will be shown on HMI screen, please
scan this QR code using WeChat application to subscribe to push notifications.
1. Open WeChat application and scan the QR code displayed on HMI.
2. Configure after scanning. (At the first time using WeChat, the system will ask for
permission.)
3. The HMI should follow EasyAccess 2.0 public account before it can be binded.
5. After following EasyAccess 2.0 public account, do step 1 and step 2 again to bind the HMI.
6. Enter EA2.0 platform and tap the button shown below to log in with your account.
7. Push notification from HMI can now be received using WeChat, tap the button shown
below to open HMI management interface.
8. In HMI management interface, the online HMI will have a green point near its name, while
an offline HMI has a grey point. HMI can be unbinded by selecting it and then tapping the
trash bin button to delete it from the list. Tapping the gear button will open push
notification settings.
9. Tapping the trash bin button will open the following page where HMI can be unbinded.
10. Tapping the gear button can open push notification settings for selecting the events to be
pushed.
Note
Only an online HMI with EasyAccess 2.0 activated by a server located in China can send
push notification. Scanning QR Code on an HMI that is not activated will open the
following window.
Scanning the QR code on an HMI that is already binded to WeChat account will open the
following window.
EasyAccess 2.0 push notification via WeChat is only supported by servers located in China,
when scanning QR code on HMIs activated by a global server, the following page will open:
https://weintek.zendesk.com/
13.42.3.1. Overview
13.42.3.2. Configuration
Click the Barcode Scanner icon on the toolbar or click [Objects] » [Barcodes] and then select
[Barcode Scanner]. Configure the parameters and click OK; a Barcode Scanner object will be
created.
General Tab
Setting Description
Control address Control address: Gives Command to Barcode
Scanner.
0: None
1: Start and Clear
2: Stop
3: Clear
Control address + 1: Shows Execution Status.
0: None
1: Success
2 or more: Error Code
Control address + 2: Shows data length scanned.
Status address Status address: Shows camera status is On / Off.
0: Off
1: On
Status address + 1: Shows whether scanning is
ready.
0: Stopped
1: Ready for scanning
Barcode address The address that stores the data read, UNICODE is
allowed.
Read byte limit If the data read exceeds this setting, the execution
status turns to 2 (error code).
Security Tab
Setting Description
Sound If Enable is selected, when data is read, a sound is
emitted. The supported sound file format is .wav.
Note
Barcode Scanner is currently supported on cMT-SVR and cMT3151 models. Barcode
Scanner cannot be opened using simulation mode or cMT Viewer.
Supports: EAN/UPC, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
On the device, if other applications are also using the camera, or the camera is locked,
cMT Viewer may not operate properly.
In the project, when multiple cMT Viewer devices are connected, since the same address
is shared between the devices, the devices will simultaneously scan if they are displaying
the same window with Barcode Scanner.
Example 1
The following demo project shows how to scan QR code using a tablet.
1. At the beginning, the display is dark.
2. Tap Start button, the status of Scanning turns ON, the display turns bright, and is ready for
scanning.
3. When a QR code is read, the Execute Status turns 1, and the QR code is captured, its
content will be displayed in Barcode Address group box. Unicode is also supported.
4. If the size of the data read exceeds the maximum allowable size set in Read Byte Limit (10
bytes in this project), the Execution Status turns to 2 (error code). The exceeding part will
still be displayed in the ASCII objects in Barcode Address group box, since the data length
displayed depends on the ASCII object settings (20 words in this project).
5. After changing to another page, Scanning turns OFF, the parameters are reserved. The
parameters will be cleared when next time Start button is tapped, or Clear button is
tapped.
Click the icon to download the demo project. Please confirm your internet connection before
downloading the demo project.
13.43.1. Overview
By pre-configuring the texts and their corresponding numbers in the String Table, the text can
be changed dynamically on HMI. String Table can also be used in a multi-language
environment.
13.43.2. Configuration
Click [Project] » [String] to open the property dialog box. Set up the properties, press OK
button, and a new String Table object will be created.
Setting Description
Section A list of all the existing String Tables.
[New Section] Add a new String Table.
[Delete Section] Delete the selected String Table.
New Add a new string in the table.
Settings Set the content of the selected string.
Export CSV File… Export all the existing String Tables as a *.csv file.
Import CSV File… Import *.csv file into the String Table.
Export EXCEL File… Export all the existing String Tables as a *.xls file.
Import EXCEL File… Import *.xls file into the String Table.
Note
The font of each language in the String Table must be specified in Label Text Library.
13.44. Database
13.44.1.1. Overview
Database Server object enables connection with MySQL or MS SQL database server, allowing
users to send data log or event log to the database, or use SQL Query to access data from the
database.
13.44.1.2. Configuration
Click the Database Server icon on the toolbar to create a Database Server object. Or, click
[Data/History] » [Database Server] in the menu.
General Tab
Setting Description
Server system Supported server systems: MySQL, MS SQL Server
IP Enter the IP address of the database.
Use domain name
Status/Control Tab
Setting Description
Status address LW-n: Displays the connection status of Database
Server.
Value Description
0 Not attempting to connect to
database.
1 Failed to connect to database.
2 Connection succeeded.
When synchronizing event log, the three tables generated in the database are listed as
the following table, and the event log is saved in *_event table.
Table Description
<HMI NAME>_event Saves event log
<HMI NAME>_event_log System folder
<HMI NAME>_event_update_time System folder
If the content of data sampling / event log, such as data format or event message, is
changed and downloaded to HMI, please delete the tables listed above first, and then the
new content will thus be effective.
Example 1
1. Create a Database Server object, set Status Address to LW-0, and Control Address to
LW-10.
2. Create a Data Sampling object, in [Sync. to database] group box select [Enable], and set
Control Address to LW-80, to update or clear HMI historical data.
3. If the database is successfully connected, the status indicator LW-0 displays 2 (connection
succeeded), and the error indicator LW-10 displays 0 (no error).
4. Write 2 in LW-80 (sync. data). Open SQL database, the data can be found in table <HMI
NAME>_<DATALOG NAME>_data.
Click the icon to watch the demonstration film. Please confirm your internet connection before
playing the film.
Click the icon to download the demo project. Please confirm your internet connection before
downloading the demo project.
13.44.2.1. Overview
SQL Query can exchange data with SQL database. Before enabling SQL Query, please configure
Database Server.
13.44.2.2. Configuration
Click [Data/History] » [SQL Query] to open the settings dialog box. Configure the parameters
and click OK; a SQL Query will be created.
General Tab
Setting Description
Advanced Mode Without [Advanced Mode] selected:
Note
A Primary Key should contain only numeric values.
In MySQL, Auto Increment must be enabled for Primary Key.
Command Tab
Setting Description
Control address Designate five consecutive registers to execute
commands and show results. When importing the
table from database, four commands will exist by
default in the Command table: Create, Read,
Update, and Delete.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
In the Command table in Advanced Mode, [No. of arguments], [No. of outputs], and [Action]
columns can be found.
Query Tab
Setting Description
Command ID Specify the ID number used to give this command.
Description Enter the description of this command.
Argument Tab
If argument is used in the syntax of a command in [Query] tab, the system will refer to the
address specified in this tab according to the argument number enclosed in ${argument no.}.
Output Tab
After reading database, the result will be stored in the addresses specified in this tab.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.44.2.4. Status
Value Meaning
0 Normal
1 Query result exceeds 1000 records. Using LIMIT clause can
constrain the number of rows in one page.
Converting datatype as shown in the following table will take place after reading MySQL
database. If conversion cannot run properly, error code 5 will show. For example, when
converting MySQL’s INT into EasyBuilder Pro’s 16-bit Unsigned, if the value exceeds the limit of
16-bit Unsigned, error code 5 will show.
MySQL data format EasyBuilder Pro datatype
TINYINT 16/32-bit BCD
SMALLINT 16/32-bit HEX
MEDIUMINT 16/32-bit Binary
INT 16/32-bit Signed
BIGINT 16/32-bit Unsigned
BIT
FLOAT 32-bit Float
DOUBLE
DECIMAL
DATETIME String
CHAR, BINARY
VARCHAR, VARBINARY
TINYBLOB, TINYTEXT
BLOB, TEXT
MEDIUMBLOB, MEDIUMTEXT
LONGBLOB, LONGTEXT
13.44.3.1. Overview
SQL Query Result Viewer shows the results obtained by running SQL Query.
13.44.3.2. Configuration
Click on [Data/History] » [SQL Query Result Viewer] to open the settings dialog box. Configure
the parameters and click OK; a SQL Query Result Viewer will be created.
General Tab
Setting Description
Comment User’s comment about this result viewer.
SQL Query Select an existing SQL Query to show its result.
Style/ Style Color Select a style and a color for this result viewer.
Text Set the font, font size, and font color for the texts
shown in this result viewer.
Caption Set the font size and font color for the caption of this
result viewer.
Table This group box opens when selecting Default as
style. The attributes of the result query table can be
configured.
Filter enabled With this checkbox selected, entering keywords in
SQL Query Result Viewer to search for specific text is
possible.
13.45.1. Overview
Dynamic Scale offers customizable tick marks and scale labels and can be used together with
objects such as Trend Display, Bar Graph…, etc.
13.45.2. Configuration
Click the Dynamic Scale icon on the toolbar to open a Dynamic Scale object property dialog box.
Set up the properties, press OK button, and a new Dynamic Scale object will be created.
General Tab
Setting Description
Style Select the style from [Circular], [Horizontal], or [Vertical]. If select
[Circular], set the [Direction] and [Degree].
Direction
Select from [Clockwise] or [Counterclockwise].
Degree
If [Full circle] is selected, set the start degree.
If [Full circle] is not selected, set the start and end degree.
Tick Mark Select the color of the tick mark, and set the number of ticks for the
main and sub scale (major and minor tick mark).
For [Circular] style, the length of the major and minor tick mark, and
the radius of the circular tick mark can be set.
Scale Label Displays major tick labels.
Circular
Set the font, font color, font size, and decimal point of the scale
label.
Set the radius start from the center of the object to the position to
place the scale label.
Virtical / Horizontal
Set the font, font color, font size, and decimal point of the scale
label.
Set the position to display the scale label.
The Max. and Min. limits of the scale label can be specified. If
[Dynamic limits] is selected, the Max. and Min. limits can be set by
the designated word addresses.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.46.1. Overview
Dynamic Drawing object enables drawing a shape in a specified region on HMI screen at run
time. The shape can be a line, a rectangle, a circle, or a dot. By setting the Attributes Addresses,
the style and the color of the shape can be customized.
13.46.2. Configuration
Click the Dynamic Drawing icon on the toolbar to open a Dynamic Drawing object property
dialog box. Set up the properties, press OK button, and a new Dynamic Drawing object will be
created.
General Tab
Setting Description
Clear Address Clears the drawing.
Entering different values in different Attributes Addresses brings different effects, as shown in
the following table.
Move Origin 21
Default 0
axis axis
Ellipse from
6 Left-top point X Left-top point Y Width Height
Rectangle
Arc 7 Center point X Center point Y Radius Start degree End degree
Pie 8 Center point X Center point Y Radius Start degree End degree
The values in [Attributes Address+2] represent different Line or Pattern styles, as shown in the
following table.
Color Tab
Setting Description
New Adds a color to be used in the drawing.
Delete Deletes the selected color.
Example 1
The following demo project demonstrates how to dynamically draw an arrow or a circle on HMI
screen. To build the project, follow these steps:
1. Create a Dynamic Drawing object, set Clear Address to LB-0, and Attributes Address to
LW-0.
2. Create a Toggle Switch object, set address to LB-0, and select Toggle as switch style, for
clearing the drawing.
3. Create 10 Numeric objects, set addresses to LW-0~LW-9, for specifying the attributes in the
drawing.
4. Run simulation or download the project to HMI to see the result. By entering 1 in LW-0, a
line is drawn, and entering different values in LW-1~9 can change the style, the color, and
the position of the line.
5. Press Clear Pattern button, and enter 3 in LW-0, a circle is drawn, and entering different
values in LW-1~9 can change the style, the color, and the position of the circle.
Note
Before using Attributes Address, please define [Attributes Address + 1] ~ [Attributes
Address + 9]. The system will reset the Attributes Address, after it is used.
If the drawing is not cleared, the new drawing will overlap the previous one, and the
maximum acceptable number of drawings in a Dynamic Drawing object is 1000.
The maximum number of line styles is 19, which means the maximum thickness of a solid
line is 16. The style numbers that exceed 19 will be displayed as 19.
Find the color number in Color tab.
The range of the start and end degree for Arc and Pie is 0 to 360 degrees.
Origin position is relative to left-top corner (0,0). Giving “move origin” command will
make (x1, y1) the new origin, and x1, y1 will keep on accumulating until being reset to (0,0)
by clearing the drawing.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.47.1. Overview
13.47.2. Configuration
Click the PDF Reader icon on the toolbar to create a PDF Reader object. Or, click [Object] »
[Media] » [PDF Reader] in the menu.
General Tab
Setting Description
File position Select the position where the PDF file is stored.
Path The directory of the PDF file stored in the external
device.
Page Control Change the displayed page by entering its page
number.
Note
PDF Reader cannot be opened using simulation mode or cMT Viewer.
The PDF files protected by passwords or restrictions cannot be read using PDF Reader.
CPU loading may rise when multiple PDF Reader objects are opened simultaneously.
When entering a page number in the Page Control register under multi-page view mode,
the specified page will be opened in single-page view.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
13.48. Table
13.48.1. Overview
Table object allows users to draw a table in the editing window, and customize the border, grid,
and pattern of the table.
13.48.2. Configuration
Click the Table icon on the toolbar to create a Table object. Or, click [Object] » [Table] in the
menu.
General Tab
Setting Description
Preview Window Displays the settings result.
Vertical Sets the number of columns in the table. Range:
1~255
Horizontal Sets the number of rows in the table. Range: 1~255
Spacing The available options are [Equal] and [Free]. When
[Free] is selected, the user can manually adjust the
column width or row height in the editing window.
Border Sets the type, width, and color of the border. [Line
width] setting is available only when Solid line type
is selected. The range of width is 0~8. The line will
become invisible when the width is set to 0.
Grid Sets the type, width, and color of the grid. [Line
width] setting is available only when Solid line type
is selected. The range of width is 0~8. The line will
become invisible when the width is set to 0.
Fill Sets the pattern style and color.
Alignment By dragging the objects into the cells in the Table,
the objects can align to the preset position. Different
alignments can be set for each cell in the Table, by
default the objects are center-aligned, and nine
different alignments can be selected as shown in the
screenshot of the settings window.
13.49.1. Overview
VNC Viewer can run on HMI to control a PC or a device remotely. VNC server must be installed
on the remote device to be connected. On HMI the user can monitor and control the remote
device.
13.49.2. Configuration
Click on the VNC Viewer icon on the toolbar or select [Objects] » [VNC Viewer] to open the
settings dialog box. Configure the parameters and click OK; a VNC Viewer object will be
created.
General Tab
Setting Description
IP Enter the IP address of the remote device to be
connected.
Port Enter the port number of the remote device to be
connected.
Default Password Enter the VNC password to log in the VNC server of
the remote device. If Default Password is enabled,
when connecting the remote device, VNC Viewer
will automatically use the password specified here
to log in, and the user doesn’t need to enter the
password.
Color level Select from four color levels: Full (all available
colors), Medium (256 colors), Low (64 colors), Very
low (8 colors).
Auto select (not all servers support this function)
Allow VNC Viewer to automatically detect and select
the color level supported by the server used.
Enable run-time modification in [Control] function
Select color level or decide whether to enable [Auto
select] in HMI runtime using the control addresses
that can be specified in the Control tab in the VNC
Viewer settings dialog box.
Title bar Enable
When [Enable] is selected, a field shows for entering
the caption in the title bar. The caption is limited to
ASCII characters, and the font cannot be customized.
The caption can be selected from Label Tag Library.
Only when the title bar is enabled can the VNC
Viewer window be moved or resized by dragging.
Note
eMT/iE/XE/mTV: VNC Viewer is supported for OS version 20160418 or later.
cMT Series: VNC Viewer is supported only on cMT series HMI screen accessed locally, and
for OS version 20180928 or later.
VNC Viewer cannot be simulated in on-line simulation mode.
When [Default password] is selected, HMI’s Virtual Keyboard can only be called out
manually. If [Default password] is not selected, the Virtual Keyboard can pop up
automatically.
Control Tab
Setting Description
IP A set of word addresses can be specified to control
VNC Viewer as well to display the connection status.
Control address: Shows the connection status
0: Stopped
1: Running
2: Failed to connect
3: Authentication error
4: Server disconnection error
5: Security error
Control address + 1: Command
0: None
1: Start
2: Stop
Control address+2~+5: IP
Control address+6: Port Number
Note
The allowable value range that can be entered in Control Address+6 is 0~99. The actual
Port Number will be the value entered in Control Address+6 plus 5900. For example, if the
user enters 1 in Control Address+6, the actual Port Number will be 5901. However, if the
user enters 100 in Control Address+6, the value will not be added by 5900, and the actual
Port Number will be 100.
In VNC Viewer, to use the HMI built-in Virtual Keyboard, please tap the Focus button on
the Virtual Keyboard first, and then tap VNC Viewer screen. This will change the input
target.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
13.50.1. Overview
Contacts Editor enables users to dynamically add / modify / delete email contacts on HMI.
13.50.2. Configuration
Click the Contacts Editor icon on the toolbar to create a Contacts Editor object. Or, click
[Objects] » [Contacts Editor] in the menu.
General Tab
Setting Description
Control Address A set of word addresses can be specified to change
contact list or to show results.
Control address: Gives commands.
Value Command
0 None
1 Add a contact to contacts list
2 Delete a contact from contacts list
3 Update mail address
4 Add a contact to group
5 Remove a contact from group
6 Remove all contacts from group
7 Display contacts in group
8 Display contacts with no group
9 Display all contacts
Control address + 1: Shows execution result.
Value Result
1 Success
2 Invalid command
3 Contact not found
4 Contact already exists
5 Too many contacts
6 Invalid name
7 Invalid mail address
8 Invalid group (equal to zero)
9 Invalid group (exceed boundary)
Control address + 2: Group(s), uses bits to
represent groups.
Value Commands
0 Group A
1 Group B
2 Group C
3~15 Group D ~ Group P
Control address + 3: Name (32 word(s)), contact
name
Control address + 35: e-Mail (32 word(s)), e-mail
address
Note
General tab cannot be found when the model used is a cMT model.
Contact names do not support Unicode.
The number of groups is specified in [System Parameter Settings] » [e-Mail] » [Recipients].
Please note that the number of groups cannot be dynamically changed on HMI.
Outline
Setting Description
Font & Color Select Contacts Editor object’s font and color.
Title
Setting Description
Title The title shown in Contacts Editor.
Display chars The displayable data length of each title in Contacts
Editor. Range: 1~60
13.51.1. Overview
Event Bar Chart is a type of easy-to-use bar chart that can comprehensively illustrate project
schedule. Using Event Bar Chart to illustrate HMI events or alarms can help users to clearly
understand the time at which an event or alarm occurs, and its duration. Before drawing an
Event Bar Chart, please configure Event Log object first.
This feature is only supported on cMT Series models (excluding cMT-Gateway).
13.51.2. Configuration
Click [Data/History] » [Event Log] in the menu to configure several event logs. This section
describes the Event Bar Chart related settings that can be found in the Event Log settings dialog
box.
Setting Description
Edit category name
Event Bar Chart will show the name of each category.
mapping
Setting Description
Category Event Bar Chart will illustrate the duration of all events in
one category, please select correct category in this field.
Setting Description
Text Enter the name of the event log.
Color Select the color for the bar shown in Event Bar Chart
that illustrates this event log.
Click [Data/History] » [Event Bar Chart] in the menu to draw an Event Bar Chart.
General Tab
Setting Description
Include categories Select the categories that will be shown in Event
BarChart.
Appearance Tab
Setting Description
Display timespan Specify the time interval that is measured as a number of
Date only:
Time only:
Watch line A watch line shows at the point in the Event Bar Chart
that is touched. The time represented by the touched
point will show at the top of the watch line.
Number of Division The number of divisions on X axis.
Time label Format The format in which the time label is displayed.
HMI Settings
On cMT HMI or cMT Viewer, tap the icon in the upper-right corner of the object to open
Setting Description
Begin Date and Time Specify the begin date and time at which Event Bar
Chart displays data. By default this setting is disabled,
and Event Bar Chart displays from the begin date and
time of the stored data.
End Date and Time Specify the end date and time at which Event Bar Chart
displays data. By default this setting is disabled, and
Event Bar Chart ends at the end date and time of the
stored data.
Event Filter Keyword
Events can be filtered by entering a keyword.
Match case
Use case-sensitive search when searching for events in
English.
Display Timespan Dynamically change the time range (1~96 hours.)
(hr.) shown in Event Bar Chart. Select all to display all
existing events.
Note
When HMI power is off, the HMI will not be able to obtain the alarm states; therefore, the
alarm states during the power off period will not be illustrated in Event Bar Chart, not
even after the power turns on.
13.52.1. Overview
The Action Trigger object can classify actions into action groups. The groups are put in
sequence. The actions within the same group are executed at the same time. When all the
actions within the same group are completed, the actions in the next group are then executed..
This object is only available for cMT Series.
13.52.2. Configuration
Click [Object] » [Action Trigger] icon on the toolbar to open an Action Trigger object property
dialog box. Clicking [New] can add a new Action Trigger.
General Tab
Setting Description
Mode: Idle If the screen is left untouched for more than the specified time limit
Timeout configured in [Idle Timeout], Action Trigger will start executing.
Range: 1~43200 seconds
Mode: Value When the state of the designated register meets the preset
Changed condition, Action Trigger will start executing.
Check condition recursively when actions ended
When all actions are completed, the trigger condition will be checked
again; and if the condition is met, the actions will be triggered again.
Dynamic condition value
This option is available when [Word] is selected as Type. Selecting
this option opens the [Read/Condition use different addresses]
option. When [Read/Condition use different addresses] is not
selected, the condition value is read from the next contiguous
register of [Value address].
Action Group Actions are classified into groups. Actions in the same group will
simultaneously be triggered, and only after the actions in the
previous group have been all triggered, the actions in the next group
will then be triggered.
Delay Delays the action for the specified time period (milliseconds).
Set Bit Sets the designated bit address ON or OFF.
Set ON
Sets ON the designated bit.
Set OFF
Sets OFF the designated bit.
Toggle
Alternates the bit state.
Set Word Changes the value in the designated word address.
Write constant value
Sets a register with the constant value entered.
Increment value (JOG+)
Increases value in register by a set amount in [Inc. value], up to the
[Upper limit].
Decrement Value (JOG-)
Decreases value in register by a set amount in [Dec. value], down to
the [Bottom limit].
Dynamic Limits (JOG+, JOG-)
Sets the [Bottom limit] and [Upper limit] by a designated register.
When JOG+ is used, the designated register sets the upper limit.
When JOG- is used, the designated register sets the bottom limit.
Change Switches to the designated window. Change full-screen window can
window only be the last action in the last group in an Action Trigger.
Change full-screen window: Changes to another base window.
Change common window: Changes common window.
Return to previous window: Changes from current screen to the
previous one displayed. For example, when window no. 10 is
changed to window no. 20, this function can be used to return to
window no. 10. This function is only available for base window.
Animation Setting:
The effects are: Fade, Fly, Float, Wipe, Split, Circle, Clock, Zoom, Turn,
Push. Different effects may be used for Start (window appears) and
End (window disappears).
[Duration] specifies how many milliseconds (ms) a transition effect
takes to complete.
[Direction] The direction of the transition.
Execute Executes one of the Macros from the drop down list that has already
Macro been configured by users. Running a macro may take a while to
complete; therefore, when [Execute Macro] is put into an action
group, it is seen as completed when it is triggered. The system will
not wait for the macro to complete running before moving on to the
next action group.
Popup
Pops-up a designated window.
Window
Keyboard Inputs characters/control signals, as often used with [Numeric] or
Input [ASCII] objects.
Enter: Same as the keyboard’s “Enter” function.
Backspace: Same as the keyboard’s “Backspace” function.
Clear: Clear the value in the word register.
Esc: Same as the [Close window] function; it is used to close the
keyboard window.
Delete: Same as the keyboard’s “Delete” function, deletes the
number or character on the right side of the text cursor.
Left: Same as the keyboard’s “←” key moves the text cursor to the
left side of the previous number or character.
Right: Same as the keyboard’s “→” key moves the text cursor to the
left side of the next number or character.
Note
At most 1000 Action Triggers can be created in a project.
At most 20 groups can be created in an Action Trigger, and at most 20 actions can be
added into a group.
13.53. Calendar
13.53.1. Overview
13.53.2. Configuration
Click [Object] » [Time-related] » [Calendar] icon on the toolbar to open a Calendar object
property dialog box. Set up the properties, press OK button, and a new Calendar object will be
created.
General Tab
Setting Description
Appearance Navigation bar Set the background color and text color of the
navigation bar.
Day of week Set the background color and text color of the days of
week.
Day Set the background color, grid color, and text color of the days.
Today Set the background color and text color to show today.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
14.1. Overview
EasyBuilder Pro provides Shape Library and Picture Library for visual effects on objects.
Picture Manager provides two modes: [Project] and [Library]. Pictures in [Project] mode will be
stored in .emtp project file. Pictures in [Library] mode will be stored in EasyBuilder Pro libraries,
or the user-defined directory.
Each Shape or Picture includes up to 256 states. This chapter explains how to build Shape
Library and Picture Library.
For more information about using libraries while creating an object, see “9 Object General
Properties”.
Shapes are vector graphics constructed by lines, curves or polygons. A Shape can have more
than one state, and each state includes two parts: frame and inner, as shown in the following
figure.
State 0 State 1
Frame
Inner
An object can use frame, inner or both. Click [Project] » [Shape], and the [Shape manager]
dialog box appears.
Setting Description
Project The Shape edited here will be saved in .emtp. Up to
1000 Shapes can be added.
Library The Shape edited here will be saved to the library
directory on PC and will not be saved to .emtp
project file.
Include existing .plb shape library files or create a
New library
new one. To create an empty library, enter a new
file name and click [Open]. Up to 40 library files can
be added.
[Pattern].
Move the Shape to the previous / next state.
Note
The color of [Inner] and [Frame] can be selected in Shape Library. The selection of [Pattern
Style] is only available in System Frame / System Button Library.
The following explains how to create a new Shape Library and add a Shape with two states into
the library.
1. Click [New library] and enter the name of the new Shape Library, for example, “new_lib”.
2. Click [Open], a popup dialog appears; click [Yes] to create the file.
3. A new Shape Library [new_lib] is added in [Shape manager], and its directory is shown
below the name. This library is empty now as shown in the following figure.
4. Add a state to the selected Shape. First, use the drawing tools to draw a frame and inner
in the window and select the frame to add to the Shape Library.
5. Click [Project] » [Shape] » [Save to shape] button in the toolbar, select [new_lib], and
select a number in this library. The selected number is highlighted yellow.
6. Save the Shape as [Frame], select [Insert], and click [Save].
Setting Description
Inner Displays the inner of the Shape.
Frame Displays the frame of the Shape.
Save to library Save as Frame
Saves the Shape as a frame.
Save as Inner
Saves the Shape as inner.
Insert
Inserts the Shape to be a new state.
Replace
Replaces a state with this Shape.
Save Saves the settings above.
7. The following shows that a state of the Shape is added, and is defined as a frame.
8. Create the shape to be saved as inner. Select the shape drawn in the window.
9. Click [Save to Shape Library] button in the toolbar, select [new_lib], and select the same
number as in creating the frame in this library. The selected number is highlighted yellow.
10. Save the Shape as [Inner], select [Replace], and click [Save].
11. A state of a Shape can include [Inner], [Frame], or both. The state 0 of the Shape shown in
the following figure includes both frame and inner. Click [OK], the state 0 of the Shape is
created.
12. Follow the steps of creating state 0 and insert a new state set to state 1 as shown in the
following figure. The Shape now has two states, click [OK] to finish setting.
Click [Project] » [Picture] button in the toolbar and the [Picture manager] dialog box appears.
Setting Description
Project The Picture edited here will be saved in .emtp. Up
to 1000 Pictures can be added.
Library The Picture edited here will be saved to the library
directory on PC and will not be saved to .emtp
project file.
Add the existing .flbx and .flb picture library files.
New library
To add a new library that does not exist, enter a
new file name and click [Open], an empty library
file is created. Up to 40 library files can be added.
Browse libraries Search for path and view the pictures in the path.
Insert
Insert a blank state after the selected state.
transparent state
New Add a new Picture.
Delete Delete the selected Picture.
Clean Delete all the Pictures listed here.
OK Confirm to save the edited Shape.
Cancel Cancel the editing event.
Help Open help files.
Note
The supported picture formats are .bmp, .jpg, .gif, .dpd, .svg and .png. When adding a gif
animation file in Picture Library, the loop times of this animated Picture can be set.
The following example explains how to create a new Picture Library and add a Picture with
two states into the library.
1. Click [New library] and enter the name of the new Picture Library.
2. Click [Open], a popup dialog appears; click [Yes] to create the file.
3. A new Picture Library [new_lib] is added in [Picture manager]. This library is empty as
shown in the following figure.
4. Draw the two pictures below to represent state 0 and state 1 respectively.
5. Select [new_lib], and select a number in this library. The selected number is highlighted
yellow.
8. The Picture of state 0 is created. Follow the steps of creating state 0 to create state 1 by
clicking [New] as shown in the following figure.
9. When finished, a complete Picture is created, click [OK]. In [Picture manager] dialog box it
shows that the newly added Picture Number 0 is a bitmap picture with two states.
The following example explains how to import a Picture into the library by pasting the picture
from the clipboard.
1. Copy the following picture to the clipboard.
Pasting a picture directly from the clipboard into the project editing window is possible.
1. If the picture below is already in the clipboard.
2. Pressing Ctrl+V key in the editing window will open the following dialog box.
3. The picture will be pasted into the editing window after clicking OK.
4. Double clicking the picture and open Picture Library, the picture can be found in the
Note
Transparent color can only be set for .bmp, .dpd, and .jpg picture files.
Shape Library / Picture Library settings windows are opened in the editing window. The user
can immediately change the picture used by an object or multiple objects, and certain libraries
support immediate color change.
The [Color] drop-down list appears when the selected library supports immediate color
change.
In the settings window, dragging the slider leftward or rightward can make the thumbnail
of the pictures smaller or bigger.
Users can drag the Shape / Picture Library window to a desired destination position. When
dragging the window, a semi-transparent outline of the window shows where the window will
be docked when releasing the mouse cursor at that point.
15.1. Overview
The Label Tag Library feature enables a multi-language environment. When multiple languages
are required, users can create the Label Tag Library and then select a suitable label in the
project. The project will display the corresponding language in runtime based on the settings.
EasyBuilder Pro supports up to 24 different languages simultaneously. This chapter will explain
how to create and use the Label Tag Library.
Click [Project] » [Label] on the toolbar and the [Label Tag Library] dialog box appears.
Setting Description
State no. Indicates the current state. Each Label has a maximum
of 256 states (state no. 0 ~ 255). The state no. is
determined by [Language no.]. If less than 3 languages
are used, the maximum state no. is 256. If more than
4 languages are used, divide 768 by the language
number to get the maximum state no..
For example, the number of languages is 24, then
there are only 768/24 = 32 states.
New Adds a new Label.
Settings Sets the selected Label.
Save Label File Saves all Labels in .lbl format.
Load Label File Loads the existing .lbl file to the Label Library.
Export EXCEL File Saves all Labels in .csv, .xls, or .xlsx format.
Import EXCEL file Loads the existing .csv, .xls, or .xlsx file to the Label
Library.
Note
Unicode is not supported when importing and exporting an Excel file.
2. Click [OK] and a new label is added to the Label Tag Library. Select the label and click
[Settings] to edit its content.
When there are defined labels in the Label Library, the labels can be found in the object’s
[Label] tab. Select [Use label library] check box, and select the label from the pull-down list
[Label tag].
When a tag is selected, the content of the selected tag is shown in the [Content] field in its
corresponding font style. Please note that from Language 2 to Language 24 can only be set the
Font [Size], the others such as [Color], [Align], [Blink], etc. will follow the settings of Language
1.
15.5.1. Language
Click [Project] » [Language & Font] on the toolbar and the [Language & Font] dialog box
appears.
Setting Description
Language no. Specifies the number of languages used in a project.
Font Shows language names and the fonts used for each
language . A font description can be entered.
[Language Code] allows changing the language used
for push notification about the events in EasyAccess
2.0, when [Push notification (EasyAccess 2.0)] is
enabled in Event Log.
Click the icon to watch the demonstration film.
Please confirm your internet connection before
playing the film.
Parameters in [Non-ASCII Fonts] tab determine the non-ASCII fonts. The non-ASCII fonts used
are listed here. When using non-ascii characters or double byte characters (including Simplified
or Traditional Chinese, Japanese, or Korean) which are not listed in [Fonts for non-ascii strings]
table, EasyBuilder Pro will select a font from the list to substitute for it automatically.
Setting Description
Add All Non-ascii The non-ascii fonts in Windows can be added to the
Fonts [Fonts for non-ascii strings] table.
Line spacing
Set the space between multiple text lines.
Default font for EasyBuilder will use the selected font as default font
non-ascii strings for non-ascii strings.
Support Arabic, Select this check box to correctly display these
Persian, Hebrew, alphabets.
and Thai,…
alphabets
Setting Description
Current used fonts This table shows all the fonts used in this project and
the file position of its font file.
Copy Files To Copy the font file to the specified position.
Replace font in all Change font at a time for all the objects using that
objects font.
This tab lists the fonts used in Windows / cMT3000 and the mapping fonts in iOS / cMT-iV5 /
Android devices.
Setting Description
Object’s font When the checkbox is selected, the fonts in iOS /
selection includes cMT-iV5 / Android that map to the select font in
iOS / object property settings will be shown.
cMT-iV5/Android
font information
When displaying the texts in multiple languages, the system register “*LW-9134]: language
mode” should be used too.
The value of [LW-9134: language mode] is ranged from 0 to 23. Different values correspond to
different languages.
If not all languages are selected to compile and download, [LW-9134] will work differently.
For example, user defines 5 different languages in the Label Tag Library:
1: English, 2: Traditional Chinese, 3: Simplified Chinese, 4: French, 5: Korean
If only Language 1, Language 3, and Language 5 are selected to compile then the
corresponding values of [LW-9134] are:
2. Create a Numeric Input Object and use the system register [LW-9134].
4. The simulation is shown as followed: If the value of [LW-9134] is changed, the content of
the Text object will be changed.
Note
When using cMT-SVR, system register [LW-9134] is used to change the language mode in
server, while [PLW-9134] is used to change the language mode on a portable tablet
device.
Click the icon to download the demo project that illustrates how to use the Option List
object to switch between multiple languages. Please confirm your internet connection before
downloading the demo project.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
16.1. Overview
Generally it is recommended to define the commonly used addresses in Address Tag Library
when starting to build a project. It not only avoids accidental reuse of addresses but also
improves project readability.
Click [Library] » [Address] on the toolbar and the [Address Tag Library] dialog box appears.
Setting Description
User-defined tags Displays user-defined address tags.
System tags Displays system registers. The registers listed cannot
be deleted or changed.
Classification With this checkbox selected, the system tags can be
classified into categories according to their function.
Users may customize classification by editing the
system_tag.xml file, found under EasyBuilder Pro
installation directory.
Search A key word may be entered in the provided field to
search for a specific tag.
New Adds a new address tag. Please see the steps next
page.
Settings Sets the selected address tag.
Delete All Deletes all existing address tags.
Setting Description
Comment The information of the address tag.
Name The name of the address tag.
Device As defined in [System Parameter Settings] » [Device list].
Address mode The tag address type; select [Bit] or [Word].
Address type The available address types depend on [Device] and
[Address mode].
Address Address of the tag.
Address format If select [Word] in [Address type], the data format can be
specified.
Conversion/Calculation When enabled, the data format that the address tag will
(Use macro be converted into can be specified. Macro subroutines can
subroutine) be selected to do read/write conversion.
Read / Write Select the macro subroutine to do read/write conversion.
convertion The macro subroutine can only be selected when the data
format is identical to the one in the macro subroutine.
2. Click [OK], a newly added tag can be found in the [User-defined tags] library.
7. When finished, the window tree will show the address tag name used by the object.
Note
The name of the used tags will be written in red font in Address Tag Library.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
17.1. Overview
Recipe Data refers to the data stored in RW and RW_A addresses. The way of reading and
writing these addresses is the same as operating a word register. The difference is that recipe
data is stored in flash memory, when restarting HMI, the latest data records in RW and RW_A
are kept.
The size of recipe data a RW address can store is 512K words, and RW_A is 64K words. Users
can update recipe data with SD card, USB disk, USB cable or Ethernet and use the data to
update PLC data. Recipe Data can also be uploaded to PC; furthermore, PLC data can be saved
in recipe data. The following explains the ways of transferring recipe data.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
1. Open UtilityManagerEx and click [Publish] » [Build Download Data for SD/USB Disk].
2. Insert a SD card or USB disk into PC.
3. Click [Browse] to designate the file path.
4. Click [Build], EasyBuilder Pro will save the data in SD card or USB disk.
Note
When download data is successfully built, two folders can be found: history and emt3000.
emt3000 is for storing project file; history is for storing recipe data and data sampling /
event log records.
Please manually reboot HMI to update recipe data.
Use [Data Transfer (Trigger-based) Object] to transfer recipe data to a specific address, or save
the data of this address in [RW] and [RW_A].
Setting Description
Source address Sets the source of the data.
Destination address Sets the destination of the data to transfer to.
Attribute Sets the number of words to transfer from source
to destination.
In order to prolong the life span of HMI flash memory, the system will automatically save the
recipe data to HMI every minute. To avoid losing data when turning HMI off during the interval
of saving data, system register [LB-9029: Save all recipe data to machine (set ON)] is provided.
Set ON LB-9029 will make the system save recipe data once. Set ON [LB-9028: Reset all recipe
data (set ON)], the system will clear all recipe data.
18.1. Overview
Macros provide the additional functionality your application may need. Macros are automated
sequences of commands that are executed at run-time. Macros allow you to perform tasks
such as complex scaling operations, string handling, and user interactions with your projects.
This chapter describes syntax, usage, and programming methods of macro commands.
The instructions in the following part show you how to use these functions.
1. Open the macro editor; you’ll see the line numbers displayed on the left-hand side of the
edit area.
2. Right click on the edit area to open the pop-up menu as shown in the following figure.
Disabled operations are colored grey, which indicates that it is not possible to use that
function in the current status of the editor. For example, you should select some text to
enable the copy function, otherwise it will be disabled. Keyboard shortcuts are also
shown.
3. The toolbar provides [Undo], [Redo], [Cut], [Copy], [Paste], [Toggle Bookmark], [Next
Bookmark], [Previous Bookmark] and [Clear All Bookmarks] buttons.
4. Any modification will enable the [Undo] function. [Redo] function will be enabled after
the undo action is used. To perform the undo/redo, right click to select the item or use the
keyboard shortcuts. (Undo: Ctrl+Z, Redo: Ctrl+Y).
5. Select a word in the editor to enable the [Cut] and [Copy] function. After [Cut] or [Copy] is
performed, [Paste] function is enabled.
6. Use [Select All] to include all the content in the edit area.
7. If the macro is too long, use bookmarks to manage and read the code with ease. The
following illustration shows how it works.
Move your cursor to the position in the edit area where to insert a bookmark. Right click,
select [Toggle Bookmark]. There will be a blue little square that represents a bookmark on
the left hand side of edit area.
If there is already a bookmark where the cursor is placed, select [Toggle Bookmark] to
close it, otherwise to open it.
Right click and select [Next Bookmark], the cursor will move to where the next bookmark
locates. Selecting [Previous Bookmark] will move the cursor to the previous bookmark.
9. Right click to select [Toggle All Outlining] to open all folded macro code blocks.
10. Sometimes the outlining might be incorrect since that the keywords are misjudged as
shown in the following figure. To solve this problem, right click and select [Update All
Outlining].
11. The statements enclosed in the following keywords are called a “block” of the macro
code:
Function block: sub – end sub
Iterative statements:
i. for – next
ii. while – wend
Logical statements:
i. if – end if
Selective statements: select case – end select
12. The macro editor is not a monopoly window. Returning to the main screen and editing the
project with the Work Space window open is allowed.
14. When [Periodical execution] is checked, this macro will be triggered periodically.
15. Select [Security] » [Use execution condition] » [Settings] to enable security settings:
[Disable when Bit is ON]: When Bit is ON, this macro is disabled.
[Disable when Bit is OFF]: When Bit is OFF, this macro is disabled.
16. Select [Execute one time when HMI starts], this macro will be executed once when HMI
starts up.
18.3. Configuration
A macro contains statements. The statements contain constants, variables and operations. The
statements are put in a specific order to create the desired output.
A macro has the following structure:
Macro must have one and only one main function which is the execution start point of macro.
The format is:
macro_command main()
end macro_command
Local variables are used within the main macro function or in a defined function block. Its
value remains valid only within the specific block.
Global variables are declared before any function blocks and are valid for all functions in the
macro. When local variables and global variables have the same declaration of name, only the
local variables are valid.
The following example shows a simple macro which includes a variable declaration and a
function call.
macro_command main()
short pressure = 10 // local variable declaration
SetData(pressure, "Allen-Bradley DF1", N7, 0, 1) // function calling
end macro_command
18.4. Syntax
18.4.1.1. Constants
Constants are fixed values and can be directly written into statements. The formats are:
18.4.1.2. Variables
Variables are names that represent information. The information can be changed as the
variable is modified by statements.
Declaring Variables
Variables must be declared before being used. To declare a variable, specify the type before
the variable name.
Example:
int a
short b, switch
float pressure
unsigned short c
Declaring Arrays
The minimum array index is 0 and the maximum is (array size – 1).
Example:
char data [100] // array size is 100
In this case, the minimum of array index is 0 and maximum of array index is 99 (=100-1)
Example:
float data[4] = {11, 22, 33, 44} // now data*0+ is 11, data*1+ is 22….
18.4.2. Operators
Reserved Keywords
The following keywords are reserved for system. These keywords cannot be used as variable,
array, or function names.
+, -, *, /, %, >=, >, <=, <, <>, ==, and, or, xor, not, <<, >>,=, &, |, ^, ~
exit, macro_command, for, to, down, step, next, return, bool, short, int, char, float, void, if,
then, else, break, continue, set, sub, end, while, wend, true, false
SQRT, CUBERT, LOG, LOG10, SIN, COS, TAN, COT, SEC, CSC, ASIN, ACOS, ATAN, BIN2BCD,
BCD2BIN, DEC2ASCII, FLOAT2ASCII, HEX2ASCII, ASCII2DEC, ASCII2FLOAT, ASCII2HEX, FILL, RAND,
DELAY, SWAPB, SWAPW, LOBYTE, HIBYTE, LOWORD, HIWORD, GETBIT, SETBITON, SETBITOFF,
INVBIT, ADDSUM, XORSUM, CRC, INPORT, OUTPORT, POW, GetCnvTagArrayIndex, GetError,
GetData, GetDataEx, SetData, SetDataEx, SetRTS, GetCTS, Beep, SYNC_TRIG_MACRO,
18.5. Statement
This covers the declaration of variables and arrays. The formal construction is as follows:
type name
type name[constant]
This defines an array variable called “name” with size as “constant” and type as “type”.
Example:
int B[10] // where define a variable B as a one-dimensional array of size 10
Assignment statements use the assignment operator to move data from the expression on the
right side of the operator to the variable on the left side. An expression is the combination of
variables, constants and operators to yield a value.
VariableName Expression
Example
A=2 where a variable A is assigned to 2
Single-Line Format
If <Condition> then
[Statements]
else
[Statements]
end if
Example:
if a == 2 then
b=1
else
b=2
end if
Block Format
If <Condition> then
[Statements]
else if <Condition-n> then
[Statements]
else
[Statements]
end if
Example:
if a == 2 then
b=1
else if a == 3 then
b=2
else
b=3
end if
Syntax description
if Must be used to begin the statement.
<Condition> Required. This is the controlling statement. It is FALSE when the
<Condition> evaluates to 0 and TRUE when it evaluates to non- zero.
then Must precede the statements to execute if the <Condition> evaluates to
TRUE.
[Statements] It is optional in block format but necessary in single-line format without
else. The statement will be executed when the <Condition> is TRUE.
else if Optional. The else if statement will be executed when the relative
<Condition-n> is TRUE.
<Condition-n> Optional. see <Condition>
else Optional. The else statement will be executed when <Condition> and
<Condition-n> are both FALSE.
end if Must be used to end an if-then statement.
The select-case construction can be used like multiple if-else statements and perform selected
actions depending on the value of the given variable. When the matched value is found, all the
actions below will be executed until a break statement is met. The syntax is as follows:
Format without a Default Case
Example:
Select Case A
Case 1
b=1
break
end Select
end Select
Example:
Select Case A
Case 1
b=1
break
Case else
b=0
break
end Select
end Select
Example:
Select Case A
Case 1
break
Case 2
b=2
break
Case 3
b=3
break
end Select
Syntax description
Select Case Must be used to begin the statement.
[variable] Required. The value of this variable will be compared to the value of
each case.
Case else Optional. It represents the default case. If none of the cases above are
matched, the statements under default case will be executed. When a
default case is absent, it will skip directly to the end of the select-case
statements if there is no matched case.
break Optional. The statements under the matched case will be executed until
the break command is reached. If a break command is absent, it simply
keeps on executing next statement until the end command is reached.
end Select Indicates the end of the select-case statements.
Iterative statements control loops and repetitive tasks depending on condition. There are two
types of iterative statements.
The for-next statement runs for a fixed number of iterations. A variable is used as a counter to
track the progress and test for ending conditions. Use this for fixed execution counts. The
syntax is as follows:
Or
Example:
for a = 0 to 10 step 2
b=a
next a
Syntax description
for Must be used to begin the statement
[Counter] Required. This is the controlling statement. The result of evaluating the
variable is used as a test of comparison.
<StartValue> Required. The initial value of [Counter]
to/down Required. This determines if the <step> increments or decrements the
<Counter>.
“to” increments <Counter> by <StepValue>.
“down” decrements <Counter> by <StepValue>.
<EndValue> Required. The test point. If the <Counter> is greater than this value, the
macro exits the loop.
step Optional. Specifies that a <StepValue> other than one is to be used.
[StepValue] Optional. The increment/decrement step of <Counter>. It can be
omitted when the value is 1 If [step <StepValue>] are omitted the step
value defaults to 1.
[Statements] Optional. Statements to execute when the evaluation is TRUE.
“for-next” loops may be nested.
next Required.
[Counter] Optional. This is used when nesting for-next loops.
The while-wend statement runs for an unknown number of iterations. A variable is used to test
for ending conditions. When the condition is TRUE, the statements inside are executed
repetitively until the condition becomes FALSE. The syntax is as follows.
while <Condition>
[Statements]
wend
Example:
while a < 10
a = a + 10
wend
Syntax description
while Must be used to begin the statement.
continue Required. This is the controlling statement. When it is TRUE, the loop
begins execution. When it is FALSE, the loop terminates.
return [value] Statements to execute when the evaluation is TRUE.
wend Indicates the end of the while-end statements.
break Used in for-next and while-wend. It skips immediately to the end of the
iterative statement.
continue Used in for-next and while-wend. It ends the current iteration of a loop
and starts the next one.
return The return command inside the main block can force the macro to stop
anywhere. It skips immediately to the end of the main block.
Function blocks are useful for reducing repetitive codes. It must be defined before use and
supports any variable and statement type. A function block could be called by putting its name
followed by parameters in parenthesis. After the function block is executed, it returns the value
to the caller function where it is used as an assignment value or as a condition. A return type is
not required in function definition, which means that a function block does not have to return
a value. The parameters can also be ignored in function definition while the function has no
need to take any parameters from the caller. The syntax is as follows:
Function definition with return type
Example:
sub int Add(int x, int y)
int result
result = x +y
return result
end sub
macro_command main()
int a = 10, b = 20, sum
sum = Add(a, b)
end macro_command
or:
sub int Add()
int result, x=10, y=20
result = x +y
return result
end sub
macro_command main()
int sum
sum = Add()
end macro_command
Example:
sub Add(int x, int y)
int result
result = x +y
end sub
macro_command main()
int a = 10, b = 20
Add(a, b)
end macro_command
or:
sub Add()
int result, x=10, y=20
result = x +y
end sub
macro_command main()
Add()
end macro_command
Syntax description
sub Must be used to begin the function block
type Optional. This is the data type of value that the function returns. A
function block is not always necessary to return a value.
(parameters) Optional. The parameters hold values that are passed to the function.
The passed parameters must have their type declared in the parameter
field and assigned a variable name.
For example: sub int MyFunction(int x, int y). x and y would be integers
passed to the function. This function is called by a statement that looks
similar to this: ret = MyFunction(456, pressure) where “pressure” must
be integer according to the definition of function.
Notice that the calling statement can pass hard coded values or
variables to the function. After this function is executed, an integer
values is return to ‘ret’.
Local variable Variables that are used in the function block must be declared first.
declaration This is in addition to passed parameters. In the above example x and y
are variables that the function can used. Global variables are also
available for use in function block.
[Statements] Statements to execute
[return [value]] Optional. Used to return a value to the calling statement. The value can
be a constant or a variable. Return also ends function block execution.
A function block is not always necessary to return a value, but, when
the return type is defined in the beginning of the definition of function,
the return command is needed.
end sub Must be used to end a function block.
EasyBuilder Pro has many built-in functions for retrieving and transferring data to the PLC, data
management and mathematical functions.
18.7.1. PLC
Name GetData
Syntax GetData(read_data[start], device_name, device_type, address_offset,
data_count)
or
GetData(read_data, device_name, device_type, address_offset, 1)
Description Receives data from the PLC. Data is stored into read_data[start]~
read_data[start + data_count - 1].
data_count is the amount of received data. In general, read_data is an array,
but if data_count is 1, read_data can be an array or an ordinary variable. Below
are two methods to read one word data from PLC.
macro_command main()
short read_data_1[2], read_data_2
GetData(read_data_1[0], "FATEK KB Series", RT, 5, 1)
GetData(read_data_2, "FATEK KB Series", RT, 5, 1)
end macro_command
Device_name is the PLC name enclosed in the double quotation marks (“) and
this name has been defined in the device list of system parameters as follows
(see FATEK KB Series):
Device_type is the device type and encoding method (binary or BCD) of the PLC
data. For example, if device_type is LW_BIN, it means the register is LW and the
encoding method is binary. If use BIN encoding method, "_BIN" can be ignored.
If device_type is LW_BCD, it means the register is LW and the encoding method
is BCD.
Address_offset is the address offset in the PLC.
For example, GetData(read_data_1[0], "FATEK KB Series", RT, 5, 1) represents
that the address offset is 5.
If address_offset uses the format –"N#AAAAA", N indicates that PLC’s station
number is N. AAAAA represents the address offset. This format is used while
multiple PLCs or controllers are connected to a single serial port. For example,
GetData(read_data_1[0], "FATEK KB Series", RT, 2#5, 1) represents that the
PLC’s station number is 2. If GetData() uses the default station number defined
in the device list as follows, it is not necessary to define station number in
address_offset.
The number of registers actually read from depends on both the type of the
read_data variable and the value of the number of data_count.
actual number of
type of read_data data_count
16-bit register read
char (8-bit) 1 1
char (8-bit) 2 1
bool (8-bit) 1 1
bool (8-bit) 2 1
short (16-bit) 1 1
short (16-bit) 2 2
int (32-bit) 1 2
int (32-bit) 2 4
float (32-bit) 1 2
float (32-bit) 2 4
When a GetData() is executed using a 32-bit data type (int or float), the
function will automatically convert the data. For example,
macro_command main()
float f
GetData(f, "MODBUS", 6x, 2, 1) // f will contain a floating point value
end macro_command
Example macro_command main()
bool a
bool b_array[30]
char c
char c_array[20]
short s
short s_array[50]
int i
int i_array[10]
float f
float f_array[15]double g[10]
// get 20 words (10 integer values) from LW-0 ~ LW-19 to variables i_array[0]
~ i_array[9], note that type of i_array[10] is int.
GetData(i_array[0], "Local HMI", LW, 0, 10)
// get 30 words (15 float variables) from LW-0 ~ LW-29 to variables f_array[0]
~ f_array[14], note that type of f_array[15] is float.
// note that float occupies 2 words (32-bit)
GetData(f_array[0], "Local HMI", LW, 0, 15)
end macro_command
Name GetDataEx
Syntax GetDataEx(read_data[start], device_name, device_type, address_offset,
data_count)
or
GetDataEx(read_data, device_name, device_type, address_offset, 1)
Description Receives data from the PLC and continue executing next command even if no
response from this device.
Descriptions of read_data, device_name, device_type, address_offset and
data_count are the same as GetData.
// get 20 words (10 integer values) from LW-0 ~ LW-19 to variables i_array[0]
~ i_array[9], note that type of i_array[10] is int.
GetDataEX(i_array[0], "Local HMI", LW, 0, 10)
// get 30 words (15 float variables) from LW-0 ~ LW-29 to variables f_array[0]
~ f_array[14], note that type of f_array[15] is float.
// note that float occupies 2 words (32-bit)
GetDataEX(f_array[0], "Local HMI", LW, 0, 15)
end macro_command
Name GetError
Syntax GetError (err)
Description Get an error code.
Example macro_command main()
short err
char byData[10]
end macro_command
Name SetData
Syntax SetData(send_data[start], device_name, device_type, address_offset,
data_count)
or
SetData(send_data, device_name, device_type, address_offset, 1)
Description Send data to the PLC. Data is defined in send_data[start]~ send_data[start +
data_count - 1].
data_count is the amount of sent data. In general, send_data is an array, but if
data_count is 1, send_data can be an array or an ordinary variable. Below are
two methods to send one word data.
macro_command main()
short send_data_1[2] = { 5, 6}, send_data_2 = 5
SetData(send_data_1[0], "FATEK KB Series", RT, 5, 1)
SetData(send_data_2, "FATEK KB Series", RT, 5, 1)
end macro_command
device_name is the PLC name enclosed in the double quotation marks (") and
this name has been defined in the device list of system parameters.
device_type is the device type and encoding method (binary or BCD) of the PLC
data. For example, if device_type is LW_BIN, it means the register is LW and the
encoding method is binary. If use BIN encoding method, "_BIN" can be ignored.
If device_type is LW_BCD, it means the register is LW and the encoding method
is BCD.
address_offset is the address offset in the PLC.
For example, SetData(read_data_1[0], "FATEK KB Series", RT, 5, 1) represents
that the address offset is 5.
If address_offset uses the format –"N#AAAAA", N indicates that PLC’s station
number is N. AAAAA represents the address offset. This format is used while
multiple PLCs or controllers are connected to a single serial port. For example,
SetData(read_data_1[0], "FATEK KB Series", RT, 2#5, 1) represents that the
PLC’s station number is 2. If SetData () uses the default station number defined
in the device list, it is not necessary to define station number in address_offset.
The number of registers actually sends to depends on both the type of the
send_data variable and the value of the number of data_count.
actual number of
type of read_data data_count
16-bit register send
char (8-bit) 1 1
char (8-bit) 2 1
bool (8-bit) 1 1
bool (8-bit) 2 1
short (16-bit) 1 1
short (16-bit) 2 2
int (32-bit) 1 2
int (32-bit) 2 4
float (32-bit) 1 2
float (32-bit) 2 4
When a SetData() is executed using a 32-bit data type (int or float), the function
will automatically send int-format or float-format data to the device. For
example,
macro_command main()
float f = 2.6
SetData(f, "MODBUS", 6x, 2, 1) // will send a floating point value to the
device
end macro_command
Example macro_command main()
int i
bool a = true
bool b[30]
short c = false
short d[50]
int e = 5
int f[10]
for i = 0 to 29
b[i] = true
next i
for i = 0 to 49
d[i] = i * 2
next i
for i = 0 to 9
f [i] = i * 3
next i
// set the values of LW-6 ~ LW-7, note that the type of e is int
SetData(e, "Local HMI", LW, 6, 1)
end macro_command
Name SetDataEx
Syntax SetDataEx (send_data[start], device_name, device_type, address_offset,
data_count)
or
SetDataEx (send_data, device_name, device_type, address_offset, 1)
Description Send data to the PLC and continue executing next command even if no
response from this device.
Descriptions of send_data, device_name, device_type, address_offset and
data_count are the same as SetData.
for i = 0 to 29
b[i] = true
next i
for i = 0 to 49
d[i] = i * 2
next i
for i = 0 to 9
f [i] = i * 3
next i
// set the values of LW-6 ~ LW-7, note that the type of e is int
SetDataEx (e, "Local HMI", LW, 6, 1)
end macro_command
Name GetCTS
Syntax GetCTS(com_port, result)
Description Get CTS state for RS232.
com_port refers to the COM port number. It can be either a variable or a
constant. result is used for receiving the CTS signal. It must be a variable.
This command receives CTS signal and stores the received data in the result
variable. When the CTS signal is pulled high, it writes 1 to result, otherwise, it
writes 0.
Example macro_command main()
char com_port=1
char result
end macro_command
Name INPORT
Syntax INPORT(read_data[start], device_name, read_count, return_value)
Description Reads data from a COM port or the ethernet. These data is stored to
read_data[start]~ read_data[start + read_count - 1].
device_name is the name of a device defined in the device table and the device
must be a “Free Protocol”-type device.
address = 0
HIBYTE(address, command[2])
LOBYTE(address, command[3])
CRC(command[0], checksum, 6)
LOBYTE(checksum, command[6])
HIBYTE(checksum, command[7])
end macro_command
Name INPORT2
Syntax INPORT2(response[start], device_name, receive_len, wait_time)
Description Read data from a communication port (COM Port or Ethernet Port). The data
read will be saved in response. The description of device_name is the same as
OUTPORT.
receive_len stores the length of the data received, this must be a variable.
receive_len total length can’t exceed the size of response.
wait_time (in millisecond) can be a constant or variable. After the data is read,
if there's no upcoming data during the designated time interval, the function
returns.
Example macro_command main()
end macro_command
Name INPORT3
Syntax INPORT3(response[start], device_name, read_count, receive_len)
Description Read data from a communication port (COM Port or Ethernet Port). The data
read will be saved in response.
The amount of data to be read can be specified. The data that is not read yet
will be stored in HMI buffer memory for the next read operation, in order to
prevent losing data. The description of device_name is the same as OUTPORT.
read_count stores the length of the data read each time.
receive_len stores the length of the data received, this must be a variable.
receive_len total length can’t exceed the size of response.
Example macro_command main()
end if
end macro_command
Name OUTPORT
Syntax OUTPORT(source[start], device_name, data_count)
Description Sends out the specified data from source[start] to source[start + data_count -1]
to PLC via a COM port or the ethernet.
device_name is the name of a device defined in the device table and the device
must be a “Free Protocol”-type device.
data_count is the amount of sent data and can be a constant or a variable.
Example To use an OUTPORT function, a “Free Protocol” device must be created first as
follows:
The device is named ”MODBUS RTU Device”. The port attribute depends on the
setting of this device. (the current setting is “19200,E, 8, 1”)
macro_command main()
char command[32]
short address, checksum
address = 0
HIBYTE(address, command[2])
LOBYTE(address, command[3])
CRC(command[0], checksum, 6)
LOBYTE(checksum, command[6])
HIBYTE(checksum, command[7])
end macro_command
Name PURGE
Syntax PURGE (com_port)
Description com_port refers to the COM port number which ranges from 1 to 3. It can be
either a variable or a constant. This function is used to clear the input and
output buffers associated with the COM port.
Example macro_command main()
int com_port=3
PURGE (com_port)
PURGE (1)
end macro_command
Name SetRTS
Syntax SetRTS(com_port, source)
Description Set RTS state for RS232.
com_port refers to the COM port number. It can be either a variable or a
constant. source can be either a variable or a constant.
This command raise RTS signal while the value of source is greater than 0 and
lower RTS signal while the value of source equals to 0.
Example macro_command main()
char com_port=1
char value=1
end macro_command
Name ASYNC_TRIG_MACRO
Syntax ASYNC_TRIG_MACRO (macro_id or name)
Description Trigger the execution of a macro asynchronously (use macro_id or macro name
to designate this macro) in a running macro.
The current macro will continue executing the following instructions after
triggering the designated macro; in other words, the two macros will be active
simultaneously.
macro_id can be a constant or a variable.
Example macro_command main()
char ON = 1, OFF = 0
end macro_command
Name DELAY
Syntax DELAY(time)
Description Suspends the execution of the current macro for at least the specified interval
(time). The unit of time is millisecond.
time can be a constant or a variable.
Example macro_command main()
int time == 500
end macro_command
Name SYNC_TRIG_MACRO
Syntax SYNC_TRIG_MACRO(macro_id or name)
Description Trigger the execution of a macro synchronously (use macro_id or macro name
to designate this macro) in a running macro.
The current macro will pause until the end of execution of this called macro.
macro_id can be a constant or a variable.
Example macro_command main()
char ON = 1, OFF = 0
end macro_command
Name FILL
Syntax FILL(source[start], preset, count)
Description Sets the first count elements of an array (source) to a specified value (preset).
source and start must be a variable, and preset can be a constant or variable.
Example macro_command main()
char result[4]
char preset
FILL(result[0], 0x30, 4)
// result[0] is 0x30, result[1] is 0x30, , result[2] is 0x30, , result[3] is 0x30
preset = 0x31
FILL(result[0], preset, 2) // result[0] is 0x31, result[1] is 0x31
end macro_command
Name SWAPB
Syntax SWAPB(source, result)
Description Exchanges the high-byte and low-byte data of a 16-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
short source, result
source = 0x123
SWAPB(source, result)// result is 0x2301
end macro_command
Name SWAPW
Syntax SWAPW(source, result)
Description Exchanges the high-word and low-word data of a 32-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
int source, result
source = 0x12345
SWAPW (source, result)// result is 0x23450001
end macro_command
Name LOBYTE
Syntax LOBYTE(source, result)
Description Retrieves the low byte of a 16-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
short source, result
source = 0x123
LOBYTE(source, result)// result is 0x23
end macro_command
Name HIBYTE
Syntax HIBYTE(source, result)
Description Retrieves the high byte of a 16-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
short source, result
source = 0x123
HIBYTE(source, result)// result is 0x01
end macro_command
Name LOWORD
Syntax LOWORD(source, result)
Description Retrieves the low word of a 32-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
int source, result
source = 0x12345
LOWORD(source, result)// result is 0x2345
end macro_command
Name HIWORD
Syntax HIWORD(source, result)
Description Retrieves the high word of a 32-bit source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
int source, result
source = 0x12345
HIWORD(source, result)// result is 0x0001
end macro_command
Name INVBIT
Syntax INVBIT(source, result, bit_pos)
Description Inverts the state of designated bit position of a data (source), and put changed
data into result.
source and bit_pos can be a constant or a variable. result must be a variable.
Example macro_command main()
int source, result
short bit_pos
source = 6
bit_pos = 1
INVBIT(source, result, bit_pos)// result = 4
end macro_command
Name SETBITON
Syntax SETBITON(source, result, bit_pos)
Description Changes the state of designated bit position of a data (source) to 1, and put
changed data into result.
source and bit_pos can be a constant or a variable.
result must be a variable.
Example macro_command main()
int source, result
short bit_pos
source = 0
bit_pos = 2
SETBITON (source, result, bit_pos)// result is 4
end macro_command
Name SETBITOFF
Syntax SETBITOFF(source, result, bit_pos)
Description Changes the state of designated bit position of a data (source) to 0, and put in
changed data into result.
source and bit_pos can be a constant or a variable.
result must be a variable.
Example macro_command main()
int source, result
short bit_pos
source = 4
bit_pos = 2
SETBITOFF(source, result, bit_pos)// result is 0
end macro_command
Name GETBIT
Syntax GETBIT(source, result, bit_pos)
Description Gets the state of designated bit position of a data (source) into result.
result value will be 0 or 1.
source and bit_pos can be a constant or a variable.
result must be a variable.
Example macro_command main()
int source, result
short bit_pos
source = 4
bit_pos = 2
GETBIT(source, result, bit_pos)// result is 1
end macro_command
Name ASCII2DEC
Syntax ASCII2DEC(source[start], result, len)
Description Transforms a string (source) into a decimal value saved to a variable (result).
The length of the string is len. The first character of the string is source[start].
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
char source[4]
short result
source[0] = '5'
source[1] = '6'
source[2] = '7'
source[3] = '8'
end macro_command
Name ASCII2FLOAT
Syntax ASCII2FLOAT(source[start], result, len)
Description Transforms a string (source) into a float value saved to a variable (result).
The length of the string is len. The first character of the string is source[start].
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
char source[4]
float result
source[0] = '5'
source[1] = '6'
source[2] = '.'
source[3] = '8'
end macro_command
Name ASCII2HEX
Syntax ASCII2HEX (source[start], result, len)
Description Transforms a string (source) into a hexadecimal value saved to a variable
(result).
The length of the string is len. The first character of the string is source[start].
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
char source[4]
short result
source[0] = '5'
source[1] = '6'
source[2] = '7'
source[3] = '8'
end macro_command
Name BIN2BCD
Syntax BIN2BCD(source, result)
Description Transforms a binary-type value (source) into a BCD-type value (result).
source can be a constant or a variable. result must be a variable.
Example macro_command main()
source = 5678
BIN2BCD(source, result)// result is 0x5678
end macro_command
Name BCD2BIN
Syntax BCD2BIN(source, result)
Description Transforms a BCD-type value (source) into a binary-type value (result).
source can be a constant or a variable. result must be a variable.
Example macro_command main()
source = 0x5678
BCD2BIN(source, result)// result is 5678
end macro_command
Name DEC2ASCII
Syntax DEC2ASCII(source, result[start], len)
Description Transforms a decimal value (source) into an ASCII string and save it to an array
(result).
len represents the length of the string and the unit of length depends on
result’s type., i.e. if result’s type is “char” (the size is byte), the length of the
string is (byte * len). If result’s type is “short” (the size is word), the length of
the string is (word * len), and so on.
The first character is put into result[start], the second character is put into
result[start + 1], and the last character is put into result[start + (len -1)].
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
short source
char result1[4]
short result2[4]
char result3[6]
source = 5678
DEC2ASCII(source, result1[0], 4)
// result1[0] is '5', result1[1] is '6', result1[2] is '7', result1[3] is '8'
// the length of the string (result1) is 4 bytes( = 1 * 4)
DEC2ASCII(source, result2[0], 4)
// result2[0] is '5', result2[1] is '6', result2[2] is '7', result2[3] is '8'
// the length of the string (result2) is 8 bytes( = 2 * 4)
source=-123
DEC2ASCII(source, result3[0], 6)
// result1[0] is '-', result1[1] is '0', result1[2] is '0', result1[3] is '1'
// result1[4] is '2', result1[5] is '3'
// the length of the string (result1) is 6 bytes( = 1 * 6)
end macro_command
Name FLOAT2ASCII
Syntax FLOAT2ASCII(source, result[start], len)
Description Transforms a floating value (source) into ASCII string saved to an array (result).
len represents the length of the string and the unit of length depends on
result’s type., i.e. if result’s type is “char” (the size is byte), the length of the
string is (byte * len). If result’s type is “short” (the size is word), the length of
the string is (word * len), and so on.
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
float source
char result[4]
source = 56.8
FLOAT2ASCII (source, result[0], 4)
// result[0] is '5', result[1] is '6', result[2] is '.', result[3] is '8'
end macro_command
Name HEX2ASCII
Syntax HEX2ASCII(source, result[start], len)
Description Transforms a hexadecimal value (source) into ASCII string saved to an array
(result).
len represents the length of the string and the unit of length depends on
result’s type., i.e. if result’s type is “char” (the size is byte), the length of the
string is (byte * len). If result’s type is “short” (the size is word), the length of
the string is (word * len), and so on.
source and len can be a constant or a variable. result must be a variable. start
must be a constant.
Example macro_command main()
short source
char result[4]
source = 0x5678
HEX2ASCII (source, result[0], 4)
// result[0] is '5', result[1] is '6', result[2] is '7', result[3] is '8'
end macro_command
Name StringDecAsc2Bin
Syntax success = StringDecAsc2Bin(source[start], destination)
or
success = StringDecAsc2Bin("source", destination)
Description This function converts a decimal string to an integer. It converts the decimal
string in source parameter into an integer, and stores it in the destination
variable.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
Destination must be a variable, to store the result of conversion.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. The string
can only contain these characters: +, -, and 0 to 9. If the string contains other
characters, it returns false.
The success field is optional.
Example macro_command main()
char src1[5]="12345"
int result1
bool success1
success1 = StringDecAsc2Bin(src1[0], result1)
// success1=true, result1 is 12345
char result3
bool success3
success3 = StringDecAsc2Bin("32768", result3)
// success3=true, but the result exceeds the data range of result3
char src4[2]="4b"
char result4
bool success4
success4 = StringDecAsc2Bin (src4[0], result4)
// success4=false, because src4 contains characters other than ‘+’ or ‘-’ and ‘0’
to ‘9’
end macro_command
Name StringBin2DecAsc
Syntax success = StringBin2DecAsc (source, destination[start])
Description This function converts an integer to a decimal string. It converts the integer in
source parameter into a decimal string, and stores it in the destination buffer.
Source can be either a constant or a variable.
Destination must be an one-dimensional char array, to store the result of
conversion.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of decimal string after conversion exceeds the size of destination buffer,
it returns false.
The success field is optional.
Example macro_command main()
int src1 = 2147483647
char dest1[20]
bool success1
success1 = StringBin2DecAsc(src1, dest1[0])
// success1=true, dest1="2147483647"
end macro_command
Name StringDecAsc2Float
Syntax success = StringDecAsc2Float (source[start], destination)
or
success = StringDecAsc2Float ("source", destination)
Description This function converts a decimal string to floats. It converts the decimal string
in source parameter into float, and stores it in the destination variable.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
Destination must be a variable, to store the result of conversion.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
source string contains characters other than ‘0’ to ‘9’ or ‘.’, it returns false.
The success field is optional.
Example macro_command main()
char src1[10]="12.345"
float result1
bool success1
success1 = StringDecAsc2Float(src1[0], result1)
// success1=true, result1 is 12.345
float result2
bool success2
success2 = StringDecAsc2Float("1.234567890", result2)
// success2=true, but the result exceeds the data range of result2, which
// might result in loss of precision
char src3[2]="4b"
float result3
bool success3
success3 = StringDecAsc2Float(src3[0], result3)
// success3=false, because src3 contains characters other than ‘0’ to ‘9’ or
// ‘.’
end macro_command
Name StringFloat2DecAsc
Syntax success = StringFloat2DecAsc(source, destination[start])
Description This function converts a float to a decimal string. It converts the float in
source parameter into a decimal string, and stores it in the destination buffer.
Source can be either a constant or a variable.
Destination must be an one-dimensional char array, to store the result of
conversion.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of decimal string after conversion exceeds the size of destination
buffer, it returns false.
The success field is optional.
Example macro_command main()
float src1 = 1.2345
char dest1[20]
bool success1
success1 = StringFloat2DecAsc(src1, dest1[0])
// success1=true, dest1="1.2345"
end macro_command
Name StringHexAsc2Bin
Syntax success = StringHexAsc2Bin (source[start], destination)
or
success = StringHexAsc2Bin ("source", destination)
Description This function converts a hexadecimal string to binary data. It converts the
hexadecimal string in source parameter into binary data, and stores it in the
destination variable.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
short result2
bool success2
success2 = StringDecAsc2Bin("1a2b3c4d", result2)
// success2=true, result2=3c4d.The result exceeds the data range of
// result2
char src3[2]="4g"
char result3
bool success3
success3 = StringDecAsc2Bin (src3[0], result3)
// success3=false, because src3 contains characters other than ‘0’ to ‘9’
// , ‘a’ to ‘f’ or ‘A’ to ‘F’
end macro_command
Name StringBin2HexAsc
Syntax success = StringBin2HexAsc (source, destination[start])
Description This function converts binary data to a hexadecimal string. It converts the
binary data in source parameter into a hexadecimal string, and stores it in
the destination buffer.
Source can be either a constant or a variable.
Destination must be an one-dimensional char array, to store the result of
conversion.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of hexadecimal string after conversion exceeds the size of destination
buffer, it returns false.
The success field is optional.
Please note that this function cannot convert negative values.
Example macro_command main()
int src1 = 20
char dest1[20]
bool success1
success1 = StringBin2HexAsc(src1, dest1[0])
// success1=true, dest1="14"
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name String2Unicode
Syntax result = String2Unicode("source", destination[start])
Description Convert all the characters in the source string to Unicode and store the result
in the destination buffer. The length of result string after conversion will be
stored to result.
Source must be a constant but not a variable.
Example macro_command main()
char dest[20]
int result
result = String2Unicode("abcde", dest[0]) // "result" will be set to 10.
result = String2Unicode("abcdefghijklmno", dest[0]) // "result" will be set to
20.
// "result" will be the length of converted Unicode string
end macro_command
Name StringCat
Syntax success = StringCat (source[start], destination[start])
or
success = StringCat ("source", destination[start])
Description This function appends source string to destination string. It adds the contents
of source string to the last of the contents of destination string.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
Destination must be an one-dimensional char array.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of result string after concatenation exceeds the max. size of destination
buffer, it returns false.
The success field is optional.
Example macro_command main()
char src1[20]="abcdefghij"
char dest1[20]="1234567890"
bool success1
success1= StringCat(src1[0], dest1[0])
// success1=true, dest1="123456790abcdefghij"
char src3[20]="abcdefghij"
char dest3[20]
bool success3
success3= StringCat(src3[0], dest3[15])
// success3=false, dest3 remains the same.
end macro_command
Name StringCompare
Syntax ret = StringCompare (str1[start], str2[start])
ret = StringCompare ("string1", str2[start])
ret = StringCompare (str1[start], "string2")
ret = StringCompare ("string1", "string2")
Description Do a case-sensitive comparison of two strings.
The two string parameters accept both static string (in the form: "string1") and
char array (in the form: str1[start]).
This function returns a Boolean indicating the result of comparison. If two
strings are identical, it returns true. Otherwise it returns false.
The ret field is optional.
Example macro_command main()
char a1[20]="abcde"
char b1[20]="ABCDE"
bool ret1
ret1= StringCompare(a1[0], b1[0])
// ret1=false
char a2[20]="abcde"
char b2[20]="abcde"
bool ret2
ret2= StringCompare(a2[0], b2[0])
// ret2=true
char a3 [20]="abcde"
char b3[20]="abcdefg"
bool ret3
ret3= StringCompare(a3[0], b3[0])
// ret3=false
end macro_command
Name StringCompareNoCase
Syntax ret = StringCompareNoCase(str1[start], str2[start])
ret = StringCompareNoCase("string1", str2[start])
ret = StringCompareNoCase(str1[start], "string2")
ret = StringCompareNoCase("string1", "string2")
Description Do a case-insensitive comparison of two strings.
The two string parameters accept both static string (in the form: "string1") and
char array (in the form: str1[start]).
This function returns a Boolean indicating the result of comparison. If two
strings are identical, it returns true. Otherwise it returns false.
The ret field is optional.
Example macro_command main()
char a1[20]="abcde"
char b1[20]="ABCDE"
bool ret1
ret1= StringCompareNoCase(a1[0], b1[0])
// ret1=true
char a2[20]="abcde"
char b2[20]="abcde"
bool ret2
ret2= StringCompareNoCase(a2[0], b2[0])
// ret2=true
char a3 [20]="abcde"
char b3[20]="abcdefg"
bool ret3
ret3= StringCompareNoCase(a3[0], b3[0])
// ret3=false
end macro_command
Name StringCopy
Syntax success = StringCopy ("source", destination[start])
or
success = StringCopy (source[start], destination[start])
Description Copy one string to another. This function copies a static string (which is
enclosed in quotes) or a string that is stored in an array to the destination
buffer.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
destination[start] must be an one-dimensional char array.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of source string exceeds the max. size of destination buffer, it returns
false and the content of destination remains the same.
The success field is optional.
Example macro_command main()
char src1[5]="abcde"
char dest1[5]
bool success1
success1 = StringCopy(src1[0], dest1[0])
// success1=true, dest1="abcde"
char dest2[5]
bool success2
success2 = StringCopy("12345", dest2[0])
// success2=true, dest2="12345"
char src3[10]="abcdefghij"
char dest3[5]
bool success3
success3 = StringCopy(src3[0], dest3[0])
// success3=false, dest3 remains the same.
char src4[10]="abcdefghij"
char dest4[5]
bool success4
success4 = StringCopy(src4[5], dest4[0])
// success4=true, dest4="fghij"
end macro_command
Name StringExcluding
Syntax success = StringExcluding (source[start], set[start], destination[start])
char src2[20]="cabbage"
char dest2[20]
bool success2
success2 = StringExcluding(src2[0], "abc", dest2[0])
// success2=true, dest2=""
char set3[20]="ge"
char dest3[4]
bool success3
success3 = StringExcluding("cabbage", set3[0], dest3[0])
// success3=false, dest3 remains the same.
end macro_command
Name StringFind
Syntax position = StringFind (source[start], target[start])
position = StringFind ("source", target[start])
position = StringFind (source[start], "target")
position = StringFind ("source", "target")
Description Return the position of the first occurrence of target string in the source string.
The two string parameters accept both static string (in the form: “source”) and
char array (in the form: source[start]).
This function returns the zero-based index of the first character of substring in
the source string that matches the target string. Notice that the entire
sequence of characters to find must be matched. If there is no matched
char target2[20]="ce"
short pos2
pos2= StringFind("abcde", target2[0])
// pos2=-1
char src3[20]="abcde"
short pos3
pos3= StringFind(src3[3], "cd")
// pos3=-1
end macro_command
Name StringFindOneOf
Syntax position = StringFindOneOf (source[start], target[start])
position = StringFindOneOf ("source", target[start])
position = StringFindOneOf (source[start], "target")
position = StringFindOneOf ("source", "target")
Description Return the position of the first character in the source string that matches any
character contained in the target string.
The two string parameters accept both static string (in the form: "source") and
char array (in the form: source[start]).
This function returns the zero-based index of the first character in the source
string that is also in the target string. If there is no match, it returns -1.
char src2[20]="abcdeabcde"
short pos2
pos2= StringFindOneOf(src2[1], "agi")
// pos2=4
end macro_command
Name StringGet
Syntax StringGet(read_data[start], device_name, device_type, address_offset,
data_count)
Description Receives data from the PLC. The String data is stored into read_data[start]~
read_data[start + data_count - 1]. read_data must be a one-dimensional char
array.
Data_count is the number of received characters, it can be either a constant or
a variable.
Device_name is the PLC name enclosed in the double quotation marks (") and
this name has been defined in the device list of system parameters as follows
(see FATEK KB Series):
Device_type is the device type and encoding method (binary or BCD) of the PLC
data. For example, if device_type is LW_BIN, it means the register is LW and the
encoding method is binary. If use BIN encoding method, "_BIN" can be ignored.
If device_type is LW_BCD, it means the register is LW and the encoding method
is BCD.
Address_offset is the address offset in the PLC.
For example, StringGet(read_data_1[0], "FATEK KB Series", RT, 5, 1) represents
The number of registers actually read from depends on the value of the
number of data_count since that the read_data is restricted to char array.
type of read_data data_count actual number of
16-bit register read
char (8-bit) 1 1
char (8-bit) 2 1
1 WORD register(16-bit) equals to the size of 2 ASCII characters. According to
the above table, reading 2 ASCII characters is actually reading the content of
one 16-bit register.
Example macro_command main()
char str1[20]
end macro_command
Name StringGetEx
Syntax StringGetEx (read_data[start], device_name, device_type, address_offset,
data_count)
Description Receives data from the PLC and continue executing next command even if no
response from this device.
Descriptions of read_data, device_name, device_type, address_offset and
data_count are the same as GetData.
Example macro_command main()
char str1[20]
short test=0
// macro will not continue executing test = 2 until MODBUS device responds
StringGet(str1[0], "MODBUS RTU", 4x, 0, 20)
test = 2
end macro_command
Name StringIncluding
Syntax success = StringIncluding (source[start], set[start], destination[start])
success = StringIncluding ("source", set[start], destination[start])
success = StringIncluding (source[start], "set", destination[start])
success = StringIncluding ("source", "set", destination[start])
Description Retrieve a substring of the source string that contains characters in the set
string, beginning with the first character in the source string and ending when a
character is found in the source string that is not in the target string.
The source string and set string parameters accept both static string (in the
form: "source") and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of retrieved substring exceeds the size of destination buffer, it returns
false.
char src2[20]="gecabba"
char dest2[20]
bool success2
success2 = StringIncluding(src2[0], "abc", dest2[0])
// success2=true, dest2=""
char set3[20]="abc"
char dest3[4]
bool success3
success3 = StringIncluding("cabbage", set3[0], dest3[0])
// success3=false, dest3 remains the same.
end macro_command
Name StringInsert
Syntax success = StringInsert (pos, insert[start], destination[start])
success = StringInsert (pos, "insert", destination[start])
success = StringInsert (pos, insert[start], length, destination[start])
success = StringInsert (pos, "insert", length, destination[start])
Description Insert a string in a specific location within the destination string content. The
insert location is specified by the pos parameter.
The insert string parameter accepts both static string (in the form: “source”)
and char array (in the form: source[start]).
The number of characters to insert can be specified by the length parameter.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of string after insertion exceeds the size of destination buffer, it
returns false.
end macro_command
Name StringLength
Syntax length = StringLength (source[start])
or
length = StringLength ("source")
Description Obtain the length of a string. It returns the length of source string and stores it
in the length field on the left-hand side of ‘=’ operator.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
The return value of this function indicates the length of the source string.
Example macro_command main()
char src1[20]="abcde"
int length1
length1= StringLength(src1[0])
// length1=5
char src3[20]="abcdefghij"
int length3
length3= StringLength(src3 [2])
// length3=8
end macro_command
Name StringMid
Syntax success = StringMid (source[start], count, destination[start])
or
success = StringMid ("string", start, count, destination[start])
Description Retrieve a character sequence from the specified offset of the source string and
store it in the destination buffer.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]). For source[start], the start offset of
the substring is specified by the index value. For static source string(“source”),
the second parameter(start) specifies the start offset of the substring.
The count parameter specifies the length of substring being retrieved.
Destination must be an one-dimensional char array, to store the retrieved
substring.
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of retrieved substring exceeds the size of destination buffer, it returns
false.
The success field is optional.
Example macro_command main()
char src1[20]="abcdefghijklmnopqrst"
char dest1[20]
bool success1
success1 = StringMid(src1[5], 6, dest1[0])
// success1=true, dest1="fghijk"
char src2[20]="abcdefghijklmnopqrst"
char dest2[5]
bool success2
success2 = StringMid(src2[5], 6, dest2[0])
// success2=false, dest2 remains the same.
char dest3[20]="12345678901234567890"
bool success3
success3 = StringMid("abcdefghijklmnopqrst", 5, 5, dest3[15])
// success3= true, dest3="123456789012345fghij"
end macro_command
Name StringReverseFind
Syntax position = StringReverseFind (source[start], target[start])
position = StringReverseFind ("source", target[start])
position = StringReverseFind (source[start], "target")
position = StringReverseFind ("source", "target")
Description Return the position of the last occurrence of target string in the source string.
The two string parameters accept both static string (in the form: "source") and
char target2[20]="ce"
short pos2
pos2= StringReverseFind("abcdeabcde", target2[0])
// pos2=-1
char src3[20]="abcdeabcde"
short pos3
pos3= StringReverseFind(src3[6], "ab")
// pos3=-1
end macro_command
Name StringSet
Syntax StringSet(send_data[start], device_name, device_type, address_offset,
data_count)
Description Send data to the PLC. Data is defined in send_data[start]~ send_data[start +
data_count - 1]. send_data must be a one-dimensional char array.
data_count is the number of sent characters, it can be either a constant or a
variable.
device_name is the PLC name enclosed in the double quotation marks (") and
this name has been defined in the device list of system parameters.
device_type is the device type and encoding method (binary or BCD) of the PLC
data. For example, if device_type is LW_BIN, it means the register is LW and the
encoding method is binary. If use BIN encoding method, "_BIN" can be ignored.
If device_type is LW_BCD, it means the register is LW and the encoding method
is BCD.
address_offset is the address offset in the PLC.
For example, StringSet(read_data_1[0], "FATEK KB Series", RT, 5, 1) represents
that the address offset is 5.
If address_offset uses the format –"N#AAAAA", N indicates that PLC’s station
number is N. AAAAA represents the address offset. This format is used while
multiple PLCs or controllers are connected to a single serial port. For example,
The number of registers actually sends to depends on the value of the number
of data_count, since that send_data is restricted to char array.
macro_command main()
char src1[10]="abcde"
StringSet(src1[0], "Local HMI", LW, 0, 5)
end macro_command
macro_command main()
char src1[10]="abcde"
StringSet(src1[0], "Local HMI", LW, 0, 6)
end macro_command
char str1[10]="abcde"
// Even though the value of data_count is larger than the length of string
// , the function will automatically stop.
StringSet(str1[0], "Local HMI", LW, 0, 10)
end macro_command
Name StringSetEx
Syntax StringSetEx (send_data[start], device_name, device_type, address_offset,
data_count)
Description Send data to the PLC and continue executing next command even if no
response from this device.
Descriptions of send_data, device_name, device_type, address_offset and
data_count are the same as StringSet.
Example macro_command main()
char str1[20]="abcde"
short test=0
// macro will not continue executing test = 2 until MODBUS device responds
StringSet(str1[0], "MODBUS RTU", 4x, 0, 20)
test = 2
end macro_command
Name StringToUpper
Syntax success = StringToUpper (source[start], destination[start])
success = StringToUpper ("source", destination[start])
Description Convert all the characters in the source string to uppercase characters and
store the result in the destination buffer.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of result string after conversion exceeds the size of destination buffer, it
returns false.
char dest2[4]
bool success2
success2 = StringToUpper("aBcDe", dest2[0])
// success2=false, dest2 remains the same.
end macro_command
Name StringToLower
Syntax success = StringToLower (source[start], destination[start])
success = StringToLower ("source", destination[start])
Description Convert all the characters in the source string to lowercase characters and store
the result in the destination buffer.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of result string after conversion exceeds the size of destination buffer, it
returns false.
Example macro_command main()
char src1[20]="aBcDe"
char dest1[20]
bool success1
success1 = StringToLower(src1[0], dest1[0])
// success1=true, dest1="abcde"
char dest2[4]
bool success2
success2 = StringToLower("aBcDe", dest2[0])
// success2=false, dest2 remains the same.
end macro_command
Name StringToReverse
Syntax success = StringToReverse (source[start], destination[start])
success = StringToReverse ("source", destination[start])
Description Reverse the characters in the source string and store it in the destination buffer.
The source string parameter accepts both static string (in the form: "source")
and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of reversed string exceeds the size of destination buffer, it returns false.
Example macro_command main()
char src1[20]="abcde"
char dest1[20]
bool success1
success1 = StringToReverse(src1[0], dest1[0])
// success1=true, dest1="edcba"
char dest2[4]
bool success2
success2 = StringToReverse("abcde", dest2[0])
// success2=false, dest2 remains the same.
end macro_command
Name StringTrimLeft
Syntax success = StringTrimLeft (source[start], set[start], destination[start])
success = StringTrimLeft ("source", set[start], destination[start])
success = StringTrimLeft (source[start], "set", destination[start])
success = StringTrimLeft ("source", "set", destination[start])
Description Trim the leading specified characters in the set buffer from the source string.
The source string and set string parameters accept both static string (in the
form: "source") and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of trimmed string exceeds the size of destination buffer, it returns false.
Example macro_command main()
char src1[20]= "# *a*#bc"
char set1[20]="# *"
char dest1[20]
bool success1
success1 = StringTrimLeft (src1[0], set1[0], dest1[0])
// success1=true, dest1="a*#bc"
char dest3[20]
bool success3
success3 = StringTrimLeft (src3[0], "# *", dest3[0])
// success3=true, dest3="abc *#"
end macro_command
Name StringTrimRight
Syntax success = StringTrimRight (source[start], set[start], destination[start])
success = StringTrimRight ("source", set[start], destination[start])
success = StringTrimRight (source[start], "set", destination[start])
success = StringTrimRight ("source", "set", destination[start])
Description Trim the trailing specified characters in the set buffer from the source string.
The source string and set string parameters accept both static string (in the
form: "source") and char array (in the form: source[start]).
This function returns a Boolean indicating whether the process is successfully
done or not. If successful, it returns true, otherwise it returns false. If the
length of trimmed string exceeds the size of destination buffer, it returns false.
Example macro_command main()
char src1[20]= "# *a*#bc# * "
char set1[20]="# *"
char dest1[20]
bool success1
success1 = StringTrimRight(src1[0], set1[0], dest1[0])
// success1=true, dest1="# *a*#bc"
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
18.7.7. Mathematics
Name SQRT
Syntax SQRT(source, result)
Description Calculate the square root of source and store the result into result.
source can be a constant or a variable. result must be a variable.
source must be a nonnegative value.
Example macro_command main()
float source, result
SQRT(15, result)
source = 9.0
SQRT(source, result)// result is 3.0
end macro_command
Name CUBERT
Syntax CUBERT(source, result)
Description Calculate the cube root of source and store the result into result.
source can be a constant or a variable. result must be a variable.
source must be a nonnegative value.
Example macro_command main()
float source, result
source = 27.0
CUBERT(source, result)// result is 3.0
end macro_command
Name POW
Syntax POW(source1, source2, result)
Description Calculate source1 to the power of source2.
source1 and source2 can be a constant or a variable.
result must be a variable.
source1 and source2 must be a nonnegative value.
Example macro_command main()
float y, result
y = 0.5
POW (25, y, result) // result = 5
end macro_command
Name SIN
Syntax SIN(source, result)
Description Calculate the sine of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 30
SIN(source, result)// result is 0.5
end macro_command
Name COS
Syntax COS(source, result)
Description Calculate the cosine of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 60
COS(source, result)// result is 0.5
end macro_command
Name TAN
Syntax TAN(source, result)
Description Calculate the tangent of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 60
TAN(source, result)// result is 1.732
end macro_command
Name COT
Syntax COT(source, result)
Description Calculate the cotangent of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 60
COT(source, result)// result is 0.5774
end macro_command
Name SEC
Syntax SEC(source, result)
Description Calculate the secant of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 60
SEC(source, result)// if source is 60, result is 2
end macro_command
Name CSC
Syntax CSC(source, result)
Description Calculate the cosecant of source (degree) into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 30
CSC(source, result)// result is 2
end macro_command
Name ASIN
Syntax ASIN(source, result)
Description Calculate the arc sine of source into result (degree).
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 0.5
ASIN(source, result)// result is 30
end macro_command
Name ACOS
Syntax ACOS(source, result)
Description Calculate the arc cosine of source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 0.5
ACOS(source, result)// result is 60
end macro_command
Name ATAN
Syntax ATAN(source, result)
Description Calculate the arc tangent of source into result.
source can be a constant or a variable. result must be a variable.
Example macro_command main()
float source, result
source = 1.732
ATAN(source, result)// result is 60
end macro_command
Name LOG
Syntax LOG (source, result)
Description Calculates the natural logarithm of a number and saves into result.
source can be either a variable or a constant. result must be a variable.
Example macro_command main()
float source = 100, result
end macro_command
Name LOG10
Syntax LOG10(source, result)
Description Calculates the base-10 logarithm of a number and saves into result.
source can be either a variable or a constant. result must be a variable.
Example macro_command main()
float source = 100, result
end macro_command
Name RAND
Syntax RAND(result)
Description Calculates a random integer and save into result. (Range: 0 ~ 32767)
result must be a variable.
Example macro_command main()
short result
RAND (result) //result is not a fixed value when executes macro every time
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
18.7.8. Statistics
Name AVERAGE
Syntax AVERAGE(source[start], result, count)
Description Get the average value from array.
Example int data[5] = {1, 2, 3, 4, 5}
float result
Name HARMEAN
Syntax HARMEAN(source[start], result, count)
Description Get the harmonic mean value from array.
Example int data[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
float result
Name MAX
Syntax MAX(source[start], result, count)
Description Get the maximum value from array.
Example int data[5] = {1, 2, 3, 4, 5}
int result
Name MEDIAN
Syntax MEDIAN(source[start], result, count)
Description Get the median value from array.
Example int data[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
float result
Name MIN
Syntax MIN(source[start], result, count)
Description Get the minimium value from array.
Example int data[5] = {1, 2, 3, 4, 5}
int result
Name STDEVP
Syntax STDEVP(source[start], result, count)
Description Get the standard deviation value from array.
Example int data[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
float result
Name STDEVS
Syntax STDEVS(source[start], result, count)
Description Get the sample standard deviation value from array.
Example int data[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
float result
Name RecipeGetData
Syntax RecipeGetData(destination, recipe_address, record_ID)
Description Get Recipe Data. The gained data will be stored in destination, and must be a
variable. recipe_address consists of recipe name and item name:
"recipe_name.item_name". record_ID specifies the ID number of the record in
recipe being gained.
Example macro_command main()
int data=0
char str[20]
int recordID
bool result
recordID = 0
result = RecipeGetData(data, "TypeA.item_weight", recordID)
// From recipe "TypeA" get the data of the item "item_weight" in record 0.
recordID = 1
result = RecipeGetData(str[0], "TypeB.item_name", recordID)
// From recipe "TypeB" get the data of the item "item_name" in record 1.
end macro_command
Name RecipeQuery
Syntax RecipeQuery (SQL_command, destination)
Description Use SQL statement to query recipe data. The number of records of query result
will be stored in the destination. This must be a variable. SQL command can be
static string or char array. Example:
RecipeQuery("SELECT * FROM TypeA", destination)
or
RecipeQuery(sql[0], destination)
SQL statement must start with "SELECT * FROM" followed by recipe name and
query condition.
Example macro_command main()
int total_row=0
char sql[100]="SELECT * FROM TypeB"
short var
bool result
end macro_command
Name RecipeQueryGetData
Syntax RecipeQueryGetData (destination, recipe_address, result_row_no)
Description Get the data in the query result obtained by RecipeQuery. This function must
be called after calling RecipeQuery, and specify the same recipe name in
recipe_address as RecipeQuery.
result_row_no specifies the sequence row number in query result
Example macro_command main()
int data=0
int total_row=0
int row_number=0
bool result_query
bool result_data
end macro_command
Name RecipeQueryGetRecordID
Syntax RecipeQueryGetRecordID (destination, result_row_no)
Description Get the record ID numbers of those records gained by RecipeQuery. This
function must be called after calling RecipeQuery.
result_row_no specifies the sequence row number in query result, and write
int recordID=0
int total_row=0
int row_number=0
bool result_query
bool result_id
end macro_command
Name RecipeSetData
Syntax RecipeSetData(source, recipe address, record_ID)
Description Write data to recipe. If success, returns true, else, returns false.
recipe_address consists of recipe name and item name:
"recipe_name.item_name".
record_ID specifies the ID number of the record in recipe being modified.
Example macro_command main()
int data=99
char str[20]="abc"
int recordID
bool result
recordID = 0
result = RecipeSetData(data, "TypeA.item_weight", recordID)
// set data to recipe "TypeA", where item name is "item_weight" and the
record ID is 0.
recordID = 1
result = RecipeSetData(str[0], "TypeB.item_name", recordID)
// set data to recipe "TypeB", where item name is "item_name" and the record
ID is 1.
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name FindDataSamplingDate
Syntax return_value = FindDataSamplingDate (data_log_number, index, year, month,
day)
or
FindDataSamplingDate (data_log_number, index, year, month, day)
Description A query function for finding the date of specified data sampling file according to
the data sampling no. and the file index. The date is stored into year, month and
day respectively in the format of YYYY, MM and DD.
// if there exists a data sampling file named 20101230.dtl, with data sampling //
number 1 and file index 2.
// the result after execution: success == 1, year == 2010, month == 12 and //day
== 30
success = FindDataSamplingDate(data_log_number, index, year, month, day)
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name FindDataSamplingIndex
Syntax return_value = FindDataSamplingIndex (data_log_number, year, month, day,
index)
or
FindDataSamplingIndex (data_log_number, year, month, day, index)
Description A query function for finding the file index of specified data sampling file
according to the data sampling no. and the date. The file index is stored into
index. year, month and day are in the format of YYYY, MM and DD respectively.
// if there exists a data sampling file named 20101210.dtl, with data sampling //
number 1 and file index 2.
// the result after execution: success == 1 and index == 2
success = FindDataSamplingIndex (data_log_number, year, month, day, index)
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name FindEventLogDate
Syntax return_value = FindEventLogDate (index, year, month, day)
or
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name FindEventLogIndex
Syntax return_value = FindEventLogIndex (year, month, day, index)
or
FindEventLogIndex (year, month, day, index)
Description A query function for finding the file index of specified event log file according
to date. The file index is stored into index. year, month and day are in the
format of YYYY, MM and DD respectively.
The event log files stored in the designated position (such as HMI memory
storage or external memory device) are sorted according to the file name and
are indexed starting from 0. The most recently saved file has the smallest file
index number. For example, if there are four event log files as follows:
EL_20101210.evt
EL_20101230.evt
EL_20110110.evt
EL_20110111.evt
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
18.7.11. Checksum
Name ADDSUM
Syntax ADDSUM(source[start], result, data_count)
Description Adds up the elements of an array (source) from source[start] to source[start +
data_count - 1] to generate a checksum. Puts in the checksum into result.
result must be a variable. data_count is the amount of the accumulated
elements and can be a constant or a variable.
Example macro_command main()
char data[5]
short checksum
data[0] = 0x1
data[1] = 0x2
data[2] = 0x3
data[3] = 0x4
data[4] = 0x5
end macro_command
Name XORSUM
Syntax XORSUM(source[start], result, data_count)
Description Uses XOR to calculate the checksum from source[start] to source[start +
data_count - 1]. Puts the checksum into result. result must be a variable.
data_count is the amount of the calculated elements of the array and can be a
constant or a variable.
Example macro_command main()
char data[5] = {0x1, 0x2, 0x3, 0x4, 0x5}
short checksum
end macro_command
Name BCC
Syntax BCC(source[start], result, data_count)
Description Same as XORSUM.
Example macro_command main()
char data[5] = {0x1, 0x2, 0x3, 0x4, 0x5}
char checksum
end macro_command
Name CRC
Syntax CRC(source[start], result, data_count)
Description Calculates 16-bit CRC of the variables from source[start] to source[start +
data_count - 1]. Puts in the 16-bit CRC into result. result must be a variable.
data_count is the amount of the calculated elements of the array and can be a
constant or a variable.
Example macro_command main()
char data[5] = {0x1, 0x2, 0x3, 0x4, 0x5}
short checksum
end macro_command
18.7.12. Miscellaneous
Name Beep
Syntax Beep ()
Description Plays beep sound.
This command plays a beep sound with frequency of 800 hertz and duration of
30 milliseconds.
Example macro_command main()
Beep()
end macro_command
Name Buzzer
Syntax Buzzer ()
Description Turn ON / OFF the buzzer.
Example macro_command main()
char on = 1, off = 0
Buzzer(on) // turn on the buzzer
end macro_command
Name TRACE
Syntax TRACE(format, argument)
Description Use this function to send specified string to the EasyDiagnoser. Users can print
out the current value of variables during run-time of macro for debugging.
When TRACE encounters the first format specification (if any), it converts the
value of the first argument after format and outputs it accordingly.
format refers to the format control of output string. A format specification,
which consists of optional (in [ ]) and required fields (in bold), has the following
form:
%[flags] [width] [.precision] type
Each field of the format specification is described as below:
flags (optional):
-
+
width (optional):
A nonnegative decimal integer controlling the minimum
number of characters printed.
precision (optional):
A nonnegative decimal integer which specifies the precision and
the number of characters to be printed.
type:
C or c : specifies a single-byte character.
d : signed decimal integer.
i : signed decimal integer.
o : unsigned octal integer.
u : unsigned decimal integer.
X or x : unsigned hexadecimal integer.
E or e : Signed value having the form. [ – ]d.dddd e [sign]ddd where d
is a single decimal digit, dddd is one or more decimal digits, ddd is exactly
three decimal digits, and sign is + or –.
f : Signed value having the form [ – ]dddd.dddd, where dddd is
The length of output string is limited to 256 characters. The extra characters
will be ignored.
The argument part is optional. One format specification converts exactly one
argument.
Example macro_command main()
char c1 = 'a'
short s1 = 32767
float f1 = 1.234567
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Name GetCnvTagArrayIndex
Syntax GetCnvTagArrayIndex(array_index)
Description When an user-defined conversion tag uses array, the GetCnvTagArrayIndex()
function of [Read conversion] subroutine can get the relative array index
before doing conversion.
Example Sub short newfun(short param)
Int index
GetCnvTagArrayIndex(index)
If index is 2, the third data record in the array will be converted.
return param
end sub
In Macro Manager, all macros compiled successfully are displayed in “Macro list”, and all
macros under development or cannot be compiled are displayed in “Macro under
development”. The following is a description of the various buttons.
Setting Description
New Opens a blank “WorkSpace” editor for creating a
new macro.
Delete Deletes the selected macro.
Edit Opens the “WorkSpace” editor, and loads the
selected macro.
Copy Copies the selected macro into the clipboard.
Paste Pastes the macro in the clipboard into the list, and
creates a new name for the macro.
Export Save the selected macro as *.edm file.
Import Import an *.edm file to the project.
Library Open Macro Function Library managing dialog.
2. Press the [New] button to create an empty macro and open the macro editor. Every macro
has a unique number defined at [Macro ID], and must have a macro name, otherwise an
error will appear while compiling.
3. Design your macro. To use built-in functions (like SetData() or Getdata()), press [Get/Set
FN…] button to open API dialog box and select the function and set essential parameters.
4. After the completion of a new macro, press [Compile] button to compile the macro.
5. If there is no error, press [Exit] button and a new macro “macro_test” will be in “Macro
list”.
When editing Macro, to save time of defining functions, user may search for the needed from
built-in Macro Function Library. However, certain functions, though frequently used, may not
be found there. In this case, user may define the needed function and save it for future use.
Next time when the same function is required, the saved functions can be called from [Macro
Function Library] for easier editing. Additionally, [Macro Function Library] greatly enhances the
portability of user-defined functions. Before building a function please check the built-in
functions or online function library to see if it exists.
Open a project in HMI programming software, the default Function Library File will be read
automatically and the function information will be loaded in. At this moment if a user-defined
function is called, the relevant .mlb file must be imported first.
1. Default Function Library File Name: MacroLibrary (without filename extension)
2. Function Library Directory: HMI programming software installation directory\library
(folder)
3. \library (folder) contains two types of function library files:
Without filename extension: MacroLibrary, the Default Function Library for HMI
programming software to read at the beginning.
With filename extension (.mlb): Such as ”math.mlb”. The files to be read / written when
users import / export. These files are portable and can be called from the folder when
needed.
4. When opening HMI programming software, only the functions in Default Function Library
will be loaded in, to use functions in .mlb files, please import them first.
3. At least check one from [Library] or [Build-in] and select the function to be used.
4. The description displayed in API dialog box is the same as written in Function Editor.
5. Select the function to be used, fill in the corresponding variables according to the data
type.
6. Upon completion of the steps above, user-defined functions can be used freely without
defining the same functions repeatedly.
1. Open macro management dialog, click [Library] to open [Macro Function Library] dialog
box.
2. A list of functions is shown. When the project is opened, the software will load all the
functions in the Macro Function Library.
return_type indicates the type of the return value. If this value does not exist, this column
will be omitted. function_name indicates the name of the function. “N” in
parameter_typeN stands for the number of parameter types. If this function does not
4. Macro function can be embedded in the project file. Select the function and then click
[Copy To Project], then you can find this function in [Project] tab. When opening the
project on another computer, this function can still be used. When compiling the project,
the .exob file will included the functions that are used. Please note that decompiling the
project will only produce the macro commands that are used.
3. Edit the function description to describe what the specification is, how to use … etc.
4. After editing, click [Compile] and [Save] to save this function to the Library. Otherwise, a
warning is shown.
Note
The total size of data type can be declared in a function is 4096 bytes.
Function name must only contain alphanumeric characters, and cannot start with a
number.
2. Click [Yes] to confirm, [No] to cancel the deletion. Click [Yes] to delete MAX_SHORT
function.
3. Double click the function to be modified can also enter Function Editor.
2. For example, import a function library “math.mlb” which contains a function “test1”. Click
[Open].
3. When importing a function which already exists in the Library, a confirmation pop-up will
be shown. The buttons are:
1. Export the function from Function Library and save as .mlb file. Click [Export].
3. A “math.mlb” file can be found under export directory. This file contains 4 functions: ADD,
SUBS, MUL, and DIV.
4. The exported .mlb file can be imported on another PC. Open HMI programming software,
import, then the functions in this file can be used.
1. The maximum storage space of local variables in a macro is 4K bytes. So the maximum
array size of different variable types are as follows:
char a[4096]
bool b[4096]
short c[2048]
int d[1024]
float e[1024]
2. A maximum of 255 macros are allowed in an EasyBuilder Pro project.
3. A macro may cause the HMI unresponsive. Possible reasons are:
A macro contains an infinite loop with no PLC communication.
The size of an array exceeds the storage space in a macro.
4. The PLC communication speed affects the running time for the macro to execute. Also,
too many macros may slow down the communication between HMI and PLC.
If EasyBuilder Pro does not provide a driver for a specific device, users can use OUTPORT and
INPORT built-in functions to control the device. The data sent by OUTPORT and INPORT must
follow the communication protocol of the device. The following example explains how to use
these two functions to control a MODBUS RTU device.
1. First, create a new device in the device table. The device type of the new device is set to
“Free Protocol” and named with “MODBUS RTU device” as follows:
2. The interface of the device (PLC I/F) uses [RS-232]. If a MODBUS TCP/IP device is
connected, the interface should be [Ethernet] with correct IP and port number as follows:
Suppose that the HMI will read the data of 4x_1 and 4x_2 on the device. First, utilize OUTPORT
to send out a read request to the device. The format of OUTPORT is:
OUTPORT(command[start], device_name, cmd_count)
Since “MODBUS RTU device” is a MODBUS RTU device, the read request must follow MODBUS
RTU protocol. The request uses”Reading Holding Registers (0x03)” command to read data. The
following picture displays the content of the command. (The items of the station number (byte
0) and the last two bytes (CRC) are ignored).
Depending on the protocol, the content of a read command as follows (The total is 8 bytes):
command[0]: station number (BYTE 0)
command[1]: function code (BYTE 1)
command[2]: high byte of starting address (BYTE 2)
command[3]: low byte of starting address (BYTE 3)
command[4]: high byte of quantity of registers (BYTE 4)
command[5]: low byte of quantity of registers (BYTE 5)
command[6]: low byte of 16-bit CRC (BYTE 6)
command[7]: high byte of 16-bit CRC (BYTE 7)
So a read request is designed as follows:
char command[32]
short address, checksum
LOBYTE(checksum, command[6])
HIBYTE(checksum, command[7])
After sending out the request, use INPORT to get the response from PLC. Depending on the
protocol, the content of the response is as follows (the total byte is 9):
Where the real read count is restored to the variable return_value (unit is byte). If return_value
is 0, it means reading fails in executing INPORT.
According to the MODBUS RTU protocol specification, the correct response[1] must be equal to
0x03. After getting correct response, calculate the data of 4x_1 and 4x_2 and put in the data
into LW-100 and LW-101 of HMI.
address = 0
address = 0// starting address (4x_1) is 0
HIBYTE(address, command[2])
LOBYTE(address, command[3])
LOBYTE(checksum, command[6])
HIBYTE(checksum, command[7])
end macro_command
The following example explains how to design a request to set the status of 0x_1. The request
uses ”Write Single Coil(0x5)” command.
address = 0
HIBYTE(address, command[2])
LOBYTE(address, command[3])
CRC(command[0], checksum, 6)
LOBYTE(checksum, command[6])
HIBYTE(checksum, command[7])
end macro_command
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Error Description
(C1) syntax error:’identifier’
There are many possibilities to cause compiler error.
For example:
macro_command main()
char i, 123xyz // this is an unsupported variable name
end macro_command
For example:
macro_command main()
char i
int g[i] // i must be a numeric constant
end macro_command
For example:
macro_command main()
int g[10],g // error
end macro_command
For example:
sub int if() // error
end if
Any format other than this format will cause a compile error.
next [variable]
Any format other than this format will cause a compile error.
wend
Any format other than this format will cause a compile error.
For example :
macro_command main( )
int a, b
for a = 0 to 2
b = 4 + xyz // illegal : xyz is undefined
next a
end macro_command
For example::
sub int pow(int exp)
…….
end sub
(C40) execution syntax should not exist before variable declaration or constant definition
For example :
macro_command main( )
int a, b
for a = 0 To 2
b=4+a
int h , k // illegal – definitions must occur before any statements or expressions
// for example, b = 4 + a
next a
end macro_command
For example :
SetData(bits[0] , "PLC 1", LB , 300#123, 100)
// illegal : 300#123 means the station number is 300, but the maximum is 255
For example :
SetData(bits[0] , "PLC 1", LB , 300#123, 100)
"PLC 1" is connected with the remote HMI ,so it cannot work.
“for” statement and other expressions (arithmetic, bitwise shift, logic and comparison)
macro_command main()
int a[10], b[10], i
b[9] = 409
for i = 0 to 4 step 1
if (a[0] == 400) then
GetData(a[0], "Device 1", 4x, 0,9)
GetData(b[0+,”Device 1", 4x, 11,10)
end If
next i
end macro_command
return y
end Sub
macro_command main()
int a, b, i
a=2
b=3
i = fun(a, b)
SetData(i, "Local HMI", LB, 16, 1)
end macro_command
“if” statement
macro_command main()
int k[10], j
for j = 0 to 10
k[j] = j
next j
if k[0] == 0 then
SetData(k[1], "Device 1", 4x, 0, 1)
end if
if k[0] == 0 then
SetData(k[1], "Device 1", 4x, 0, 1)
else
SetData(k[2], "Device 1", 4x, 0, 1)
end if
if k[0] == 0 then
SetData(k[1], "Device 1", 4x, 1, 1)
else if k[2] == 1 then
SetData(k[3], "Device 1", 4x, 2, 1)
end If
if k[0] == 0 then
SetData(k[1], "Device 1", 4x, 3, 1)
else if k[2] == 2 then
SetData(k[3], "Device 1", 4x, 4, 1)
else
SetData(k[4], "Device 1", 4x, 5, 1)
end If
end macro_command
b[0] = 13
while b[0]
a[i] = 20 + i * 10
i=i+1
wend
b[0] = 13
while b[0]
a[i] = 20 + i * 10
i=i+1
if c == 200 then
SetData(c, "Device 1", 4x, 2, 1)
break
end if
wend
end macro_command
Array
macro_command main()
int a[25], b[25], i
b[0] = 13
Syntax for placing quotation marks in a string applies to variable declaration and
function’s argument.
macro_command main()
char data[40]= "\"Note\" "
TRACE function can be used with EasyDiagnoser to show the current content of the variables.
The following example illustrates how TRACE function could be used in macro.
1. First of all, add a new macro “macro_0” in the project, and in “macro_0” add TRACE (“LW
= %d”, a). “%d” indicates display current value of LW in decimal format. The content of
“macro_0” is as follows:
2. Secondly, add a Numeric Display object and a Function Key object in window no. 10 of the
project. The Function Key object is used to execute macro_0.
3. Lastly, compile the project and execute [Off-line simulation] or [On-line simulation].
4. When processing simulation on PC, right click and select “Run EasyDiagnoser” in the
pop-up menu.
When EasyDiagnoser is not able to connect with HMI, [Logger] window displays content
as shown in the following figure:
6. The possible reason of not being able to get connection with HMI can be failure in
executing simulation on PC. Another reason is that the Port No. used in project for
simulation on PC is incorrect (or occupied by system). Please change Port No. as shown,
compile project then do simulation again.
7. In EasyDiagnoser, the Port No. should be set the same as the Port No. in the project.
The three consecutive ports of the project port no. are preserved for HMI communication.
In the setting above as an example, Port No. is set as 8005. Port 8005, 8006 and 8007
should be reserved. In this case when executing simulation on PC, please make sure that
these ports are not occupied by other programs.
TRACE Syntax List
Name TRACE
Syntax TRACE(format, argument)
Description Use this function to send specified string to the EasyDiagnoser. Users can print
out the current value of variables during run-time of macro for debugging.
When TRACE encounters the first format specification (if any), it converts the
value of the first argument after format and outputs it accordingly.
format refers to the format control of output string. A format specification,
which consists of optional (in [ ]) and required fields (in bold), has the following
form:
%[flags] [width] [.precision] type
Each field of the format specification is described as below:
flags (optional):
-
+
width (optional):
A nonnegative decimal integer controlling the minimum
number of characters printed.
precision (optional):
A nonnegative decimal integer which specifies the precision and the
number of characters to be printed.
type:
C or c : specifies a single-byte character.
d : signed decimal integer.
i : signed decimal integer.
o : unsigned octal integer.
u : unsigned decimal integer.
X or x : unsigned hexadecimal integer.
E or e : Signed value having the form. [ – ]d.dddd e [sign]ddd where d
is a single decimal digit, dddd is one or more decimal digits, ddd i exactly
three decimal digits, and sign is + or –.
f : Signed value having the form [ – ]dddd.dddd, where dddd is
one or more decimal digits.
end macro_command
8. Use LB-9059 to disable MACRO TRACE function (when ON). When set ON, the output
message of TRACE won't be sent to EasyDiagnoser.
9. Users can directly execute EasyDiagnoser.exe from Utility Manager. In Utility Manager,
current HMI on line will be listed; users can simply select the HMI to be watched. Please
note that Project Port should be the same as Port No. used in project file.
10. Download the project to HMI and start the project. If EasyDiagnoser is unable to get
connection with the HMI to be watched, it is possible that HMI power is not ON, or Port
No. is incorrect. This may cause EasyDiagnoser to connect then disconnect with HMI
continuously. Please check the Port No. in EasyDiagnoser settings.
11. When EasyDiagnoser succeeds in connecting with HMI, simply execute macro_0, [Output]
window will then display the output of the TRACE function.
String operation functions are added to macro to provide a convenient way to operate strings.
The term “string” means a sequence of ASCII characters, and each of them occupies 1 byte.
The sequence of characters can be stored into 16-bit registers with least significant byte first.
For example, create an ASCII Input object and setup as follows:
The string “abcdef” is stored in LW-0~LW-2 as follows (LB represents low byte and HB
represents high byte):
The ASCII Input object reads 1 word (2 bytes) at a time as described in the previous chapter.
Suppose an ASCII Input object is set to read 3 words as shown in the above example, it can
actually read at most 6 ASCII characters since that one ASCII character occupies 1 byte.
The functionality of each string operation function is described in the following table:
For more detailed information of the above string operation functions, please check out the
“Built-In Function Block” section. In order to demonstrate the powerful usage of string
operation functions, the following examples will show you step by step how to create
executable project files using the new functions; starts from creating a macro, ends in
executing simulation.
1. To read (or write) a string from a device:
Create a new macro:
The first function “StringGet” is used to read a string from LW-0~LW-19, and store it into the str
array. The second function “StringSet” is used to output the content of str array.
Add one ASCII Input object and one Function Key object in window 10 of the project.
The settings of these objects are shown as below. Function Key object is used to execute
macro_0.
Lastly, use [Compile] to compile the project and execute [Off-line simulation] or
[On-line simulation]. Follow the steps below to operate the executing project:
Step 1. Input string.
Step 2. Press “GO” button.
2. Initialization of a string.
Create a new macro and edit the content:
The data enclosed in double quotation mark (" ") is viewed as a string. str1 is initialized as
a string while str2 is initialized as a char array. The following snapshot of simulation shows
the difference between str1 and str2 using two ASCII Input objects.
Macro compiler will add a terminating null character (‘\0’) at the end of a string. The
function “StringSet” will send each character of str1 to registers until a null character is
reached. The extra characters following the null character will be ignored even if the data
count is set to a larger value than the length of string.
On the contrary, macro compiler will not add a terminating null character (‘\0’) at the end
of a char array. The actual number of characters of str2 being sent to registers depends on
the value of data count that is passed to the “StringSet” function.
3. A simple login page.
Create a new macro and edit the content, for example, Macro [ID:001] macro_1.
The first two “StringGet” functions will read the strings input by users and store them into
arrays named name_input and password_input separately. Use the function
“StringCompare” to check if the input account name and password are matched. If the
account name is matched, name_match is set true; if the password is matched,
password_match is set true. If both name_match and password_match are true, output
the string “Success! Access Accepted.”. Otherwise, output the string “Fail! Access Denied.”.
Add ASCII Input and Function Key objects in window 10 of the project. The
settings of these objects are shown as below. Function Key object is used to execute
macro_1.
Object 2
Object 3
Object 1
Object 4
Lastly, use [Compile] to compile the project and execute [Off-line simulation] or
[On-line simulation]. Follow the steps below to operate the executing project:
A password can be set to protect all the macros in the list, or an individual macro.
Protecting all macros:
In Macro Manager window there’s the *Password Protect…+ button, click it and then click
[Enable] to set a password less than or equals to 10 characters (support ASCII character only,
e.g. "a$#*hFds").
After setting the password, users will have to enter correct password when opening Macro
Manager.
EasyBuilder Pro should be rebooted for typing the password again after 3 incorrect attempts.
When macro is password protected, de-compilation of EXOB file will not be able to restore
macro contents. The macro content will be shown as below:
[Encrypted]
Encrypt the macro content. Entering macro editing window will require password.
EasyBuilder Pro should be rebooted for typing the password again after 3 incorrect attempts
opening the same macro.
(The number of allowable incorrect attempts may vary between macros.)
[Read-only]
The user can only view the content of the macro and will not be able to edit it.
With this mode selected, macro editing window can be opened directly from Macro Manager;
however, a password is required after clicking [Password Protect…] button.
EasyBuilder Pro should be rebooted for typing the password again after 3 incorrect attempts.
In the macro list, the selected mode for each macro is shown.
In “CAN Bus 2.0A/2.0B General and SAE J1939” driver, two device types can be found: DATA
and DATA_Bit, and the formats of these device types are shown in the following window.
Examples:
Variable is used:
short f
unsigned int address = 0x4e55108
GetData(f, “CAN Device”, DATA, address, 1)
address = address + 0x10000// == 0x4e65108
GetData(f, “CAN Device”, DATA, address, 1)
19.1. Overview
Once the HMI is configured as a MODBUS device, the data of HMI can be read or written via
MODBUS protocol.
As shown in the following figure, the HMI is configured as a MODBUS device (also called
MODBUS Server). The HMI, PC or other devices can use MODBUS protocol to read or write
HMI data via Ethernet or RS-232 / RS-485 interface.
1. To configure the HMI as a MODBUS device, add a new device to the device list in [System
Parameters] first. Click [PLC type] drop-down box and select “MODBUS Server” driver.
[PLC I/F] includes: RS-232 / RS-485 2W / RS-485 4W / Ethernet / USB / CAN BUS. Choose
the PLC interface appropriate for your PLC model.
2. If [PLC I/F] is set to [RS-232] or [RS-485], please select [COM] (COM 1 ~ COM 3) and set
correct communication parameters as shown in the following figure. MODBUS Server
[Station no.] is set to 1. Click [Settings], the maximum LW address range read / written by
Modbus Client can be set. When the object in the project uses a LW register, the Modbus
Client will not be able to read or write an address that is not within the specified range.
The [Port no.] of MODBUS Server and HMI must be the same. To change the port number,
please set in the [System Parameters] » [Model] tab.
3. When finished, MODBUS Server is listed in [Device] tab. The configuration of MODBUS
device is completed. Compile the .emtp file and download the compiled .exob file to the
HMI, then HMI data can be read or written by using MODBUS protocol.
Note
For cMT Series models, if [Ethernet] PLC interface is chosen, port number can be specifed.
Two HMIs can be configured as one MODBUS client and one MODBUS server to communicate
and exchange data.
1. Add a new device in client’s device list. If the client chooses [Ethernet] PLC interface, set
[PLC type] to “MODBUS TCP/IP” and fill in the correct *IP address] (the IP of MODBUS
Server), [Port no.], and [Station no.].
If the client chooses [RS-232] or [RS-485] PLC interface, the [PLC type] must be set to
“MODBUS RTU”, and its communication parameters also must be configured correctly.
2. When finished, click [OK], then a new device “MODBUS RTU” is listed in the [Device] tab.
3. In the setting page of each object, select “MODBUS RTU” in *PLC name+, and set the
address of MODBUS RTU.
Since the server is an HMI, the corresponding read and write addresses are listed below:
EasyBuilder Pro provides the following system registers to change MODBUS Server station
number online.
LW-9541 MODBUS/ASCII server station no. (COM 1)
LW-9542 MODBUS/ASCII server station no. (COM 2)
LW-9543 MODBUS/ASCII server station no. (COM 3)
LW-9544 MODBUS/ASCII server station no. (Ethernet)
In the EasyBuilder Pro, the address types of MODBUS protocol are 0x, 1x, 3x, 4x, 5x, 6x, 3x_bit
and 4x_bit. MODBUS RTU function codes are listed below:
0x: A read and write device type. When reading a bit
Coils with this device type, the function code is 01H.
When writing a bit, the function code is 05H. When
writing multiple bits, the function code is 0fH.
1x: A read only device type. When reading a bit the
Discrete Inputs function code is 02H.
3x: A read only device type. When reading data, the
Input Registers function code is 04H.
4x: A read and write device type. When reading data,
Holding Register the function code is 03H. When writing data, the
function code is 10H.
5x The function code is the same as 4x. The difference
is that 5x makes double word swap when the format
is 32-bit unsigned. If the data read by 4x is 0x1234,
the data read by 5x is 0x3412.
6x A read and write device type. When reading data,
the function code is 03H. The difference from 4x is
that when writing data, the function code is 06H,
meaning to write a single register.
3x_bit The function code is the same as 3x. The difference
is that 3x_bit reads a single bit in the data.
4x_bit The function code is the same as 4x. The difference
is that 4x_bit reads a single bit in the data.
6x_bit The function code is the same as 6x. The difference
is that 6x_bit reads a single bit in the data.
For more information, see “37 MODBUS TCP/IP Gateway”.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
20.1. Overview
HMI can connect with barcode reader via the following interfaces:
USB
COM port
To connect a barcode reader, please add a new device by the following steps.
1. In EasyBuilder Pro click [System Parameters] » [Device list] and add a new device.
Setting Description
Timeout When select [Barcode device], if the device reads
slowly, a longer timeout is suggested to read data
completely.
When select [Keyboard], a time range can be set for
keyboard entries. The system starts counting time from
the first entry.
COM When using COM port, please set the communication
Baud rate
Data bits parameters correctly.
Parity When using USB, there is no need to set the
Stop bits
parameters.
Read byte limit If this check box is selected, the number of bytes a
barcode reader reads is restricted in order to prevent
overloading. The range is 10 to 512.
Please note that the data cannot be read if it exceeds
the limit.
Use a start code If this check box is selected, the data is only valid when
the first data is identical to the start code, otherwise
the data will be ignored. The start code will not be
stored in the address of barcode reader.
For example: if the start code is 255 (0xff), and the data
read is:
0xff 0x34 0x39 0x31 0x32 0x30 0x30 0x34 0x37
The data saved in the designated barcode reader
address will be:
0x34 0x39 0x31 0x32 0x30 0x30 0x34 0x37
Terminator Terminator means the end of data. When a terminator
is detected, it stands for the end of data stream.
CR/LF 0x0a or 0x0d stands for the end of data stream.
STX/ETX 0x02 or 0x03 stands for the end of data stream.
Other Users can set the terminator.
None If this check box is selected, HMI will save all the data to
the designated address of barcode reader.
In the example the data stored in the barcode reader address is listed in the following table:
Note
HMI can only connect with one USB barcode reader. When the device list in the project
includes this kind of device, the system register LB-9064: [enable USB barcode device
(disable keyboard) (when ON)] is set ON. To enable USB keyboard again and stop using
USB barcode reader, please set LB-9064 OFF.
Click the icon to download the demo project. Please confirm your internet connection.
21.1. Overview
Use RJ45 crossover cable and without hub, but this is limited to point-to-point connection
(HMI to HMI or PC to HMI).
Through Ethernet network, the system provides the following methods for data transmission:
HMI to HMI communication.
PC to HMI communication.
Operating the PLC connected to another HMI.
To exchange data between one HMI and another HMI, add a new remote HMI device in
[System Parameter Settings]. If there are 2 HMIs (HMI A and HMI B), in order to use a Set Bit
object on HMI A to control [LB-0] on HMI B, the setting of the project of HMI A is explained in
the following part.
1. Set the IP address of the two HMIs, for example, HMI A: 192.168.1.1, HMI B: 192.168.1.2.
3. Create a Set Bit Object, select “HMI B” in [PLC name] to control the address of the remote
HMI.
Note
One HMI can handle requests from a maximum of 64 HMIs simultaneously.
One cMT Series model can handle requests from a maximum of 32 HMIs simultaneously.
With On-line Simulation, PC can collect data from HMI through Ethernet network and save the
data files to PC. To connect PC with two HMIs (HMI A and HMI B), the setting of the project on
PC is explained in the following part.
1. Set the IP address of the two HMIs, for example, HMI A: 192.168.1.1, HMI B: 192.168.1.2.
2. In [System Parameter Settings] » [Device list], add a remote HMI A (IP: 192.168.1.1) & HMI
B (IP: 192.168.1.2).
3. Create a Set Bit Object, select “HMI A” in [PLC name] to control the address of the remote
HMI A. Same for the HMI B.
Note
A PC can control at most 64 HMIs simultaneously.
As shown above, HMI can also control PC. PC can be seen as another HMI, that is, adding
a remote HMI in the project of HMI A / HMI B, and the IP of the remote HMI is set to the
IP of PC.
Through Ethernet network, PC or HMI can operate the PLC that is connected to another HMI. If
PLC is connected to COM 1of HMI B, when using PC or HMI A to read PLC data, the setting of
the project of PC or HMI A is explained in the following part.
2. In [System Parameter Settings] » [Device list], add a remote PLC, and set [Name] to “PLC
on HMI B”. Set correct parameters. Since this PLC is connected to remote HMI B, set the IP
address to HMI B (IP: 192.168.1.2).
3. Create a Set Bit Object, select “PLC on HMI B” in [PLC name] to control the PLC connected
with the remote HMI B.
3. In the project of HMI B, go to [System Parameter Settings] » [Device list], click [New PLC],
set [Name] to “PLC on HMI B”. Set correct parameters.
4. When finished, a remote PLC can be found under Remote HMI 1. Local HMI 1 stands for
HMI A, Remote HMI 1 stands for HMI B, and Remote PLC 1 is connected with HMI B.
5. Create a Set Bit Object, select “PLC on HMI B” in [PLC name] to control the PLC connected
with the remote HMI B.
Note
When the remote HMI in a cMT Series project is an eMT/iE/XE/mTV model, please select
[Support iE/XE/eMT/mTV HMI communication protocol and EasyWatch] check box in the
[Model] tab in [System Parameters]. Similarly, when the remote HMI in a non-cMT project
is a cMT Series model, please select [Support cMT communication protocol] to establish
communication between cMT and non-cMT models.
22.1. Overview
Some Word and Bit addresses are reserved in EasyBuilder Pro. These registers are reserved for
different functions. This chapter introduces different types of registers.
The “C” letter in the register tables stands for “Control”, which means that this register not
only allows write operation, but also can be controlled by Macro or a remote HMI.
When using a cMT Series model, the PLW and PLB registers can be selected. LW/LB are local
registers whereas PLW/PLB are client registers. The client device can be: cMT-iV5, iPad,
Android device…etc. When connecting a cMT Series model with one or multiple client devices,
the PLW/PLB registers can be set on the client devices.
Please note that the supported system tags may vary between models. After launching
EasyBuilder Pro and selecting a model, the available system tags for the particular model can
be found in Address Tag Library.
22.2.1. Bits
22.2.2. Words
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-11958 time setting error (when ON) *Note 3 R R R
LW-9010 (16bit-BCD) : local second R/W R/C R/C
LW-9011 (16bit-BCD) : local minute R/W R/C R/C
LW-9012 (16bit-BCD) : local hour R/W R/C R/C
LW-9013 (16bit-BCD) : local day R/W R/C R/C
LW-9014 (16bit-BCD) : local month R/W R/C R/C
LW-9015 (16bit-BCD) : local year R/W R/C R/C
LW-9016 (16bit-BCD) : local week R R R
LW-9017 (16bit) : local second R/W R/C R/C
LW-9018 (16bit) : local minute R/W R/C R/C
LW-9019 (16bit) : local hour R/W R/C R/C
LW-9020 (16bit) : local day R/W R/C R/C
LW-9021 (16bit) : local month R/W R/C R/C
LW-9022 (16bit) : local year *Note 1 R/W R/C R/C
LW-9023 (16bit) : local week *Note 2 R R R
LW-9030 (32bit) : system time (unit : 0.1 second) R R R
LW-9048 (16bit) : time (0 : AM, 1 : PM) R/W R/C R/C
LW-9049 (16bit) : local hour (12-hour format) R/W R/C R/C
Note
1. Value range: 2000 ~ 2035.
2. Value range: 0 ~ 6, stand for Sunday ~ Saturday.
3. When use LW-9010 to LW-9023 to update RTC time, the system will check if RTC time is
successfully updated. If the system still fails to update RTC time, the system register
[LB-11958: time setting error] will be set ON, and restore to the time before update.
Updating time on PC during simulation by using LW-9010 to LW-9023 is ineffective.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9018 disable(set ON)/enable (set OFF) mouse cursor R/W R/C R/C
LB-9019 disable(set ON)/enable (set OFF) buzzer R/W R/C R/C
LB-9020 show (set ON)/ hide (set OFF) system setting bar R/W R/C R/C
LB-9033 disable(when on)/enable (when off) HMI upload function
R/W R/C R
*Note 1
LB-9040 backlight up (set ON) *Note 2 W C C
LB-9041 backlight down (set ON) *Note 2 W C C
LB-9047 reboot HMI (set ON when LB-9048 is on) W C C
LB-9048 reboot-HMI protection R/W R/C R/C
LB-9062 open hardware setting dialog (set ON) W C C
LB-9063 disable(set ON)/enable(set OFF) popuping information
R/W R/C R/C
dialog while finding an USB disk
LB-9064 enable USB barcode device (disable keyboard) (when ON)
R/W R/C R
*Note 5
LB-11959 LED indicator control *Note 4 R/W R/C R/C
LB-12042 open/close [System information] dialog (set ON/set OFF) R/W R/C R/C
LB-12051 buzzer status (active when ON) R/W R/C R/C
LB-12360 CPU loading alarm (> 95%) *Note 6 R R R
LB-12364 show (set ON)/hide (set OFF) [Reset HMI to default] button
R/W R/C R/C
in calibration mode
LW-9007 (16bit) : hardware index R R R
LW-9008 (32bit-float) : battery voltage *Note 3 R R R
LW-9025 (16bit) : CPU loading (x 100%) R R R
LW-9026 (16bit) : OS version (year) R R R
LW-9027 (16bit) : OS version (month) R R R
LW-9028 (16bit) : OS version (day) R R R
LW-9040 (16bit) : backlight index *Note 2 R R R
LW-9051 (16bit) : audio volume (0 ~100) R/W R/C R/C
LW-9054 (32bit) : HMI model ID R R R
LW-9080 (16bit) : backlight saver time (unit : minute) R/W R/C R/C
LW-9081 (16bit) : screen saver time (unit : minute) R/W R/C R/C
LW-9141 (16bit) : HMI station no. R/W R/C R/C
LW-9199 (16bit) : external keyboard layout : 0 (QWERTY), 1 (AZERTY) R/W R/C R/C
LW-9350 (16bit) : pending command no. in local HMI R R R
LW-10884 (16 words) : HMI name R/W R/C R/C
Note
1. After changing the settings, please reboot HMI for the updates to take effect.
2. Use LW-9040 together with LB-9040 ~ LB-9041 to adjust the backlight brightness, range: 0
~ 31.
3. Only supported by eMT Series. When the battery voltage level, indicated by LW-9008,
drops below 2.8V, battery replacement is recommended.
4. When multiple mTV or cMT-SVR/cMT-HDM/cMT-FHD devices are used, this register can
be triggered to make the LED indicator blink for identifying the device.
5. LB-9064: Enable USB barcode device (disable keyboard).
Click the icon to download the demo project. Please confirm your internet connection.
6. This register will be set to ON if CPU loading remains over 95% for 30 seconds.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9041 (16bit) : touch status word(bit 0 on = user is touching the
R R R
screen)
LW-9042 (16bit) : touch x position R R R
LW-9043 (16bit) : touch y position R R R
LW-9044 (16bit) : leave x position R R R
LW-9045 (16bit) : leave y position R R R
Click the icon to download the demo project that explains how to how to trigger relevant
registers to change page with finger slide. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12041 refresh HMI ethernet information (DHCP, gateway,
R/W R/C R/C
netmask, IP) (set ON)
LB-12094 update ethernet 1 setting (IP, netmask, gateway) (set ON) R/W R/C R/C
LB-12095 update ethernet 2 setting (IP, netmask) (set ON) R/W R/C R/C
LW-9125 (16bit) : HMI ethernet 1 gateway 0 (machine used only) R/W R/C R/C
LW-9126 (16bit) : HMI ethernet 1 gateway 1 (machine used only) R/W R/C R/C
LW-9127 (16bit) : HMI ethernet 1 gateway 2 (machine used only) R/W R/C R/C
LW-9128 (16bit) : HMI ethernet 1 gateway 3 (machine used only) R/W R/C R/C
LW-9129 (16bit) : HMI ethernet 1 IP 0 (machine used only) R/W R/C R/C
LW-9130 (16bit) : HMI ethernet 1 IP 1 (machine used only) R/W R/C R/C
LW-9131 (16bit) : HMI ethernet 1 IP 2 (machine used only) R/W R/C R/C
LW-9132 (16bit) : HMI ethernet 1 IP 3 (machine used only) R/W R/C R/C
LW-9133 (16bit) : ethernet port no. R R R
LW-9135 (16bit) : HMI media access control (MAC) address 0 R R R
LW-9136 (16bit) : HMI media access control (MAC) address 1 R R R
LW-9137 (16bit) : HMI media access control (MAC) address 2 R R R
LW-9138 (16bit) : HMI media access control (MAC) address 3 R R R
LW-9139 (16bit) : HMI media access control (MAC) address 4 R R R
LW-9140 (16bit) : HMI media access control (MAC) address 5 R R R
LW-10750 (16bit) : HMI ethernet 1 Mask 0 (machine used only) R/W R/C R/C
LW-10751 (16bit) : HMI ethernet 1 Mask 1 (machine used only) R/W R/C R/C
LW-10752 (16bit) : HMI ethernet 1 Mask 2 (machine used only) R/W R/C R/C
LW-10753 (16bit) : HMI ethernet 1 Mask 3 (machine used only) R/W R/C R/C
LW-10786 (16bit) : HMI ethernet 2 IP 0 (machine used only) R/W R/C R/C
LW-10787 (16bit) : HMI ethernet 2 IP 1 (machine used only) R/W R/C R/C
LW-10788 (16bit) : HMI ethernet 2 IP 2 (machine used only) R/W R/C R/C
LW-10789 (16bit) : HMI ethernet 2 IP 3 (machine used only) R/W R/C R/C
LW-10790 (16bit) : HMI ethernet 2 netmask 0 (machine used only) R/W R/C R/C
LW-10791 (16bit) : HMI ethernet 2 netmask 1 (machine used only) R/W R/C R/C
LW-10792 (16bit) : HMI ethernet 2 netmask 2 (machine used only) R/W R/C R/C
LW-10793 (16bit) : HMI ethernet 2 netmask 3 (machine used only) R/W R/C R/C
LW-10794 (16bit) : HMI ethernet 2 gateway 0 (machine used only) R/W R/C R/C
LW-10795 (16bit) : HMI ethernet 2 gateway 1 (machine used only) R/W R/C R/C
LW-10796 (16bit) : HMI ethernet 2 gateway 2 (machine used only) R/W R/C R/C
LW-10797 (16bit) : HMI ethernet 2 gateway 3 (machine used only) R/W R/C R/C
LW-10798 (16bit) : ethernet 2 media access control (MAC) address 0 R R R
LW-10799 (16bit) : ethernet 2 media access control (MAC) address 1 R R R
LW-10800 (16bit) : ethernet 2 media access control (MAC) address 2 R R R
LW-10801 (16bit) : ethernet 2 media access control (MAC) address 3 R R R
LW-10802 (16bit) : ethernet 2 media access control (MAC) address 4 R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9100 (16bit) : project name (16 words) R R R
LW-9116 (32bit) : project size in bytes R R R
LW-9118 (32bit) : project size in K bytes R R R
LW-9120 (32bit) : compiler version R R R
LW-9122 (16bit) : project compiled date [year] R R R
LW-9123 (16bit) : project compiled date [month] R R R
LW-9124 (16bit) : project compiled date [day] R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9035 HMI free space insufficiency alarm (when ON) R R R
LB-9036 SD card free space insufficiency alarm (when ON) R R R
LB-9037 USB disk 1 free space insufficiency alarm (when ON) R R R
LB-9038 USB disk 2 free space insufficiency alarm (when ON) *Note
R R R
1
LB-12048 USB disk 1 status (exists when ON) R R R
LB-12049 USB disk 2 status (exists when ON) *Note 1 R R R
LB-12050 SD card status (exists when ON) R R R
LW-9070 (16bit) : free space insufficiency warning (Mega bytes) R R R
LW-9071 (16bit) : reserved free space size (Mega bytes) R R R
LW-9072 (32bit) : HMI current free space (K bytes) R R R
LW-9074 (32bit) : SD current free space (K bytes) R R R
LW-9076 (32bit) : USB disk 1 current free space (K bytes) R R R
LW-9078 (32bit) : USB disk 2 current free space (K bytes) *Note 1 R R R
LW-11458 (32bit) : HMI total space for history data (K bytes) R R R
LW-11460 (32bit) : HMI current free space for history data (K bytes) R R R
Note
1. The registers relating to USB disk 2 are only supported on iP / iE Series models.
Click the icon to download the demo project that explains how to use LW-9072 ~ LW-9076
with Backup Object. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9028 reset all recipe data (set ON) W C C
LB-9029 save all recipe data to machine (set ON) W C C
LB-9460 EM0's storage device (SD card) does not exist (when ON) R R R
LB-9461 EM1's storage device (SD card) does not exist (when ON) R R R
LB-9462 EM2's storage device (SD card) does not exist (when ON) R R R
LB-9463 EM3's storage device (SD card) does not exist (when ON) R R R
LB-9464 EM4's storage device (SD card) does not exist (when ON) R R R
LB-9465 EM5's storage device (SD card) does not exist (when ON) R R R
LB-9466 EM6's storage device (SD card) does not exist (when ON) R R R
LB-9467 EM7's storage device (SD card) does not exist (when ON) R R R
LB-9468 EM8's storage device (SD card) does not exist (when ON) R R R
LB-9469 EM9's storage device (SD card) does not exist (when ON) R R R
LB-9470 EM0's storage device (USB disk) does not exist (when ON) R R R
LB-9471 EM1's storage device (USB disk) does not exist (when ON) R R R
LB-9472 EM2's storage device (USB disk) does not exist (when ON) R R R
LB-9473 EM3's storage device (USB disk) does not exist (when ON) R R R
LB-9474 EM4's storage device (USB disk) does not exist (when ON) R R R
LB-9475 EM5's storage device (USB disk) does not exist (when ON) R R R
LB-9476 EM6's storage device (USB disk) does not exist (when ON) R R R
LB-9477 EM7's storage device (USB disk) does not exist (when ON) R R R
LB-9478 EM8's storage device (USB disk) does not exist (when ON) R R R
LB-9479 EM9's storage device (USB disk) does not exist (when ON) R R R
LB-12363 Prohibit recipe database update from remote HMI (set ON) R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9025 delete the earliest data sampling file on HMI memory (set
W C C
ON)
LB-9026 delete all data sampling files on HMI memory (set ON) W C C
LB-9027 refresh data sampling information on HMI memory (set ON) W C C
LB-9034 save event/data sampling to HMI, USB disk, SD card (set
W C C
ON) *Note 1
LB-11949 delete the earliest data sampling file on SD card (set ON) W C C
LB-11950 delete all data sampling files on SD card (set ON) W C C
LB-11951 refresh data sampling information on SD card (set ON) W C C
LB-11952 delete the earliest data sampling file on USB disk 1 (set ON) W C C
LB-11953 delete all data sampling files on USB disk 1 (set ON) W C C
LB-11954 refresh data sampling information on USB disk 1 (set ON) W C C
LB-11955 delete the earliest data sampling file on USB disk 2 (set ON)
W C C
*Note 3
LB-11956 delete all data sampling files on USB disk 2 (set ON) *Note 3 W C C
LB-11957 refresh data sampling information on USB disk 2 (set ON)
W C C
*Note 3
LW-9063 (16bit) : no. of data sampling files on HMI memory R R R
LW-9064 (32bit) : size of data sampling files on HMI memory (bytes) R R R
LW-10489 (16bit) : no. of data sampling files on SD card R R R
LW-10490 (32bit) : size of data sampling files on SD card (bytes) R R R
LW-10492 (16bit) : no. of data sampling files on USB disk 1 R R R
LW-10493 (32bit) : size of data sampling files on USB disk 1 (bytes) R R R
LW-10495 (16bit) : no. of data sampling files on USB disk 2 *Note 3 R R R
LW-10496 (32bit) : size of data sampling files on USB disk 2 (bytes)
R R R
*Note 3
Note
1. The shortest interval between two successful executions is 2 seconds.
2. The registers for deleting or updating data samplings do not work during simulation on
PC.
3. The registers relating to USB disk 2 are only supported on iP / iE Series models.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9021 reset current event log (OFF->ON) W C C
LB-9022 delete the earliest event log file on HMI memory (set ON) W C C
LB-9023 delete all event log files on HMI memory (set ON) W C C
LB-9024 refresh event log information on HMI memory (set ON) W C C
LB-9034 save event/data sampling to HMI, USB disk, SD card (set
W C C
ON) *Note 2
LB-9042 acknowledge all alarm events (set ON) W C C
LB-9043 unacknowledged events exist (when ON) R R R
LB-11940 delete the earliest event log file on SD card (set ON) W C C
LB-11941 delete all event log files on SD card (set ON) W C C
LB-11942 refresh event log information on SD card (set ON) W C C
LB-11943 delete the earliest event log file on USB disk 1 (set ON) W C C
LB-11944 delete all event log files on USB disk 1 (set ON) W C C
Note
1. If LW-9450 ~ LW-9455 are used to get Event Log time, please enable in [system
parameters] » [General].
Click the icon to download the demo project that explains how to use the system
registers LW-9450 to LW-9455 to be the time tag of event log. Please confirm your
internet connection.
2. The shortest interval between two successful executions is 2 seconds.
3. The registers for deleting or updating event logs do not work during simulation on PC.
4. The registers relating to USB disk 2 are only supported on iP / iE Series models.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-10000 (16bit) : var0 - station no variable (usage : var0#address) R/W R/C R/C
LW-10001 (16bit) : var1 - station no variable (usage : var1#address) R/W R/C R/C
LW-10002 (16bit) : var2 - station no variable (usage : var2#address) R/W R/C R/C
LW-10003 (16bit) : var3 - station no variable (usage : var3#address) R/W R/C R/C
LW-10004 (16bit) : var4 - station no variable (usage : var4#address) R/W R/C R/C
LW-10005 (16bit) : var5 - station no variable (usage : var5#address) R/W R/C R/C
LW-10006 (16bit) : var6 - station no variable (usage : var6#address) R/W R/C R/C
LW-10007 (16bit) : var7 - station no variable (usage : var7#address) R/W R/C R/C
LW-10008 (16bit) : var8 - station no variable (usage : var8#address) R/W R/C R/C
LW-10009 (16bit) : var9 - station no variable (usage : var9#address) R/W R/C R/C
LW-10010 (16bit) : var10 - station no variable (usage :
R/W R/C R/C
var10#address)
LW-10011 (16bit) : var11 - station no variable (usage :
R/W R/C R/C
var11#address)
LW-10012 (16bit) : var12 - station no variable (usage :
R/W R/C R/C
var12#address)
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9200 (16bit) : address index 0 R/W R/C R/C
LW-9201 (16bit) : address index 1 R/W R/C R/C
LW-9202 (16bit) : address index 2 R/W R/C R/C
LW-9203 (16bit) : address index 3 R/W R/C R/C
LW-9204 (16bit) : address index 4 R/W R/C R/C
LW-9205 (16bit) : address index 5 R/W R/C R/C
LW-9206 (16bit) : address index 6 R/W R/C R/C
LW-9207 (16bit) : address index 7 R/W R/C R/C
LW-9208 (16bit) : address index 8 R/W R/C R/C
LW-9209 (16bit) : address index 9 R/W R/C R/C
LW-9210 (16bit) : address index 10 R/W R/C R/C
LW-9211 (16bit) : address index 11 R/W R/C R/C
LW-9212 (16bit) : address index 12 R/W R/C R/C
LW-9213 (16bit) : address index 13 R/W R/C R/C
LW-9214 (16bit) : address index 14 R/W R/C R/C
LW-9215 (16bit) : address index 15 R/W R/C R/C
LW-9230 (32bit) : address index 16 R/W R/C R/C
LW-9232 (32bit) : address index 17 R/W R/C R/C
LW-9234 (32bit) : address index 18 R/W R/C R/C
LW-9236 (32bit) : address index 19 R/W R/C R/C
LW-9238 (32bit) : address index 20 R/W R/C R/C
LW-9240 (32bit) : address index 21 R/W R/C R/C
LW-9242 (32bit) : address index 22 R/W R/C R/C
LW-9244 (32bit) : address index 23 R/W R/C R/C
LW-9246 (32bit) : address index 24 R/W R/C R/C
LW-9248 (32bit) : address index 25 R/W R/C R/C
LW-9250 (32bit) : address index 26 R/W R/C R/C
LW-9252 (32bit) : address index 27 R/W R/C R/C
LW-9254 (32bit) : address index 28 R/W R/C R/C
LW-9256 (32bit) : address index 29 R/W R/C R/C
LW-9258 (32bit) : address index 30 R/W R/C R/C
LW-9260 (32bit) : address index 31 R/W R/C R/C
PLW-9200 (16bit) : private address index 0 R/W R/C R/C
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9055 MODBUS server (COM 1) receives a request (when ON) R R R
LB-9056 MODBUS server (COM 2) receives a request (when ON) R R R
LB-9057 MODBUS server (COM 3) receives a request (when ON) R R R
LB-9058 MODBUS server (ethernet) receives a request (when ON) R R R
LB-12052 MODBUS server status (disabled when ON) R/W R/C R/C
LW-9270 (16bit) : request's function code - MODBUS server (COM 1) R R R
LW-9271 (16bit) : request's starting address - MODBUS server (COM
R R R
1)
LW-9272 (16bit) : request's quantity of registers - MODBUS server
R R R
(COM 1)
LW-9275 (16bit) : request's function code - MODBUS server (COM 2) R R R
LW-9276 (16bit) : request's starting address - MODBUS server (COM
R R R
2)
LW-9277 (16bit) : request's quantity of registers - MODBUS server
R R R
(COM 2)
LW-9280 (16bit) : request's function code - MODBUS server (COM 3) R R R
LW-9281 (16bit) : request's starting address - MODBUS server (COM
R R R
3)
LW-9282 (16bit) : request's quantity of registers - MODBUS server
R R R
(COM 3)
LW-9285 (16bit) : request's function code - MODBUS server
R R R
(ethernet)
LW-9286 (16bit) : request's starting address - MODBUS server
R R R
(ethernet)
LW-9287 (16bit) : request's quantity of registers - MODBUS server
R R R
(ethernet)
LW-9288 (16bit) : last error code - MODBUS server (ethernet) R R R
LW-9541 (16bit) : MODBUS/ASCII server station no. (COM 1) R/W R/C R/C
LW-9542 (16bit) : MODBUS/ASCII server station no. (COM 2) R/W R/C R/C
LW-9543 (16bit) : MODBUS/ASCII server station no. (COM 3) R/W R/C R/C
LW-9544 (16bit) : MODBUS/ASCII server station no. (ethernet) R/W R/C R/C
LW-9570 (32bit) : received data count (bytes) (COM 1 MODBUS
R R R
server)
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9030 activate COM 1 new communication settings
R/W R/C R/C
(LW-9550~9554) (set ON)
LB-9031 activate COM 2 new communication settings
R/W R/C R/C
(LW-9555~9559) (set ON)
LB-9032 activate COM 3 new communication settings
R/W R/C R/C
(LW-9560~9564) (set ON)
LB-9065 disable/enable COM 1 broadcast station no. R/W R/C R/C
LB-9066 disable/enable COM 2 broadcast station no. R/W R/C R/C
LB-9067 disable/enable COM 3 broadcast station no. R/W R/C R/C
LW-9550 (16bit) : COM 1 mode (0:RS232,1:RS485 2W,2:RS485 4W)
R/W R/C R/C
(use LB-9030 to activate all communication settings)
LW-9551 (16bit) : COM 1 baud rate
(7:1200,8:2400,0:4800,1:9600,10:14400, R/W R/C R/C
2:19200,11:28800,3:38400,4:57600,..) *Note 1
LW-9552 (16bit) : COM 1 databits (7 : 7 bits, 8 : 8 bits) R/W R/C R/C
LW-9553 (16bit) : COM 1 parity (0:none, 1:even, 2:odd, 3:mark,
R/W R/C R/C
4:space)
LW-9554 (16bit) : COM 1 stop bits (1 : 1 bit, 2 : 2 bits) R/W R/C R/C
LW-9555 (16bit) : COM 2 mode (0:RS232,1:RS485 2W,2:RS485 4W)
R/W R/C R/C
(use LB-9031 to activate all communication settings)
LW-9556 (16bit) : COM 2 baud rate
(7:1200,8:2400,0:4800,1:9600,10:14400, R/W R/C R/C
2:19200,11:28800,3:38400,4:57600,..) *Note 1
LW-9557 (16bit) : COM 2 databits (7 : 7 bits, 8 : 8 bits) R/W R/C R/C
LW-9558 (16bit) : COM 2 parity (0:none, 1:even, 2:odd, 3:mark,
R/W R/C R/C
4:space)
LW-9559 (16bit) : COM 2 stop bits (1 : 1 bit, 2 : 2 bits) R/W R/C R/C
LW-9560 (16bit) : COM 3 mode (0:RS232,1:RS485 2W) (use LB-9032
R/W R/C R/C
to activate all communication settings)
LW-9561 (16bit) : COM 3 baud rate
(7:1200,8:2400,0:4800,1:9600,10:14400, R/W R/C R/C
2:19200,11:28800,3:38400,4:57600,..) *Note 1
LW-9562 (16bit) : COM 3 databits (7 : 7 bits, 8 : 8 bits) R/W R/C R/C
LW-9563 (16bit) : COM 3 parity (0:none, 1:even, 2:odd, 3:mark,
R/W R/C R/C
4:space)
LW-9564 (16bit) : COM 3 stop bits (1 : 1 bit, 2 : 2 bits) R/W R/C R/C
LW-9565 (16bit) : COM 1 broadcast station no. R/W R/C R/C
LW-9566 (16bit) : COM 2 broadcast station no. R/W R/C R/C
LW-9567 (16bit) : COM 3 broadcast station no. R/W R/C R/C
LW-10500 (16bit) : PLC 1 timeout (unit : 100ms, 0 : 50ms) R/W R/C R/C
LW-10501 (16bit) : PLC 1 turn around delay (unit : ms) R/W R/C R/C
LW-10502 (16bit) : PLC 1 send ACK delay (unit : ms) R/W R/C R/C
LW-10503 (16bit) : PLC 1 parameter 1 R/W R/C R/C
LW-10504 (16bit) : PLC 1 parameter 2 R/W R/C R/C
LW-10505 (16bit) : PLC 2 timeout (unit : 100ms, 0 : 50ms) R/W R/C R/C
LW-10506 (16bit) : PLC 2 turn around delay (unit : ms) R/W R/C R/C
LW-10507 (16bit) : PLC 2 send ACK delay (unit : ms) R/W R/C R/C
LW-10508 (16bit) : PLC 2 parameter 1 R/W R/C R/C
LW-10509 (16bit) : PLC 2 parameter 2 R/W R/C R/C
LW-10510 (16bit) : PLC 3 timeout (unit : 100ms, 0 : 50ms) R/W R/C R/C
LW-10511 (16bit) : PLC 3 turn around delay (unit : ms) R/W R/C R/C
LW-10512 (16bit) : PLC 3 send ACK delay (unit : ms) R/W R/C R/C
LW-10513 (16bit) : PLC 3 parameter 1 R/W R/C R/C
LW-10514 (16bit) : PLC 3 parameter 2 R/W R/C R/C
LW-10515 (16bit) : PLC 4 timeout (unit : 100ms) R/W R/C R/C
LW-10516 (16bit) : PLC 4 turn around delay (unit : ms) R/W R/C R/C
LW-10517 (16bit) : PLC 4 send ACK delay (unit : ms) (SIEMENS S7/400
R/W R/C R/C
Link type)
LW-10518 (16bit) : PLC 4 parameter 1 (SIEMENS S7/400 rack) R/W R/C R/C
LW-10519 (16bit) : PLC 4 parameter 2 (SIEMENS S7/400 CPU slot) R/W R/C R/C
LW-10520 (16bit) : PLC 5 timeout (unit : 100ms) R/W R/C R/C
LW-10521 (16bit) : PLC 5 turn around delay (unit : ms) R/W R/C R/C
LW-10522 (16bit) : PLC 5 send ACK delay (unit : ms) (SIEMENS S7/400 R/W R/C R/C
Link type)
LW-10523 (16bit) : PLC 5 parameter 1 (SIEMENS S7/400 rack) R/W R/C R/C
LW-10524 (16bit) : PLC 5 parameter 2 (SIEMENS S7/400 CPU slot) R/W R/C R/C
LW-10525 (16bit) : PLC 6 timeout (unit : 100ms) R/W R/C R/C
LW-10526 (16bit) : PLC 6 turn around delay (unit : ms) R/W R/C R/C
LW-10527 (16bit) : PLC 6 send ACK delay (unit : ms) (SIEMENS S7/400
R/W R/C R/C
Link type)
LW-10528 (16bit) : PLC 6 parameter 1 (SIEMENS S7/400 rack) R/W R/C R/C
LW-10529 (16bit) : PLC 6 parameter 2 (SIEMENS S7/400 CPU slot) R/W R/C R/C
LW-10530 (16bit) : PLC 7 timeout (unit : 100ms) R/W R/C R/C
LW-10531 (16bit) : PLC 7 turn around delay (unit : ms) R/W R/C R/C
LW-10532 (16bit) : PLC 7 send ACK delay (unit : ms) (SIEMENS S7/400
R/W R/C R/C
Link type)
LW-10533 (16bit) : PLC 7 parameter 1 (SIEMENS S7/400 rack) R/W R/C R/C
LW-10534 (16bit) : PLC 7 parameter 2 (SIEMENS S7/400 CPU slot) R/W R/C R/C
LW-10535 (16bit) : PLC 8 timeout (unit : 100ms) R/W R/C R/C
LW-10536 (16bit) : PLC 8 turn around delay (unit : ms) R/W R/C R/C
LW-10537 (16bit) : PLC 8 send ACK delay (unit : ms) (SIEMENS S7/400
R/W R/C R/C
Link type)
LW-10538 (16bit) : PLC 8 parameter 1 (SIEMENS S7/400 rack) R/W R/C R/C
LW-10539 (16bit) : PLC 8 parameter 2 (SIEMENS S7/400 CPU slot) R/W R/C R/C
LW-10655 (16bit) : PLC 32 timeout (unit : 100ms) R/W R/C R/C
LW-10656 (16bit) : PLC 32 turn around delay (unit : ms) R/W R/C R/C
LW-10657 (16bit) : PLC 32 send ACK delay (unit : ms) R/W R/C R/C
LW-10658 (16bit) : PLC 32 parameter 1 R/W R/C R/C
LW-10659 (16bit) : PLC 32 parameter 2 R/W R/C R/C
Note
1. The Baud Rates are: 0:4800, 1:9600, 2:19200, 3:38400, 4:57600, 5:115200, 6:187.5K,
7:1200, 8:2400, 10:14400, 11:28800, 12:76800
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9150 auto. connection for PLC 1 (COM 1) (when ON) R/W R/C R/C
LB-9151 auto. connection for PLC 2 (COM 2) (when ON) R/W R/C R/C
LB-9152 auto. connection for PLC 3 (COM 3) (when ON) R/W R/C R/C
LB-9200 PLC 1 status (SN0, COM 1), set on to retry connection. R/W R/C R/C
LB-9201 PLC 1 status (SN1, COM 1), set on to retry connection R/W R/C R/C
LB-9202 PLC 1 status (SN2, COM 1), set on to retry connection R/W R/C R/C
LB-9203 PLC 1 status (SN3, COM 1), set on to retry connection R/W R/C R/C
LB-9204 PLC 1 status (SN4, COM 1), set on to retry connection R/W R/C R/C
LB-9205 PLC 1 status (SN5, COM 1), set on to retry connection R/W R/C R/C
LB-9206 PLC 1 status (SN6, COM 1), set on to retry connection R/W R/C R/C
LB-9207 PLC 1 status (SN7, COM 1), set on to retry connection R/W R/C R/C
LB-9455 PLC 1 status (SN255, COM 1), set on to retry connection R/W R/C R/C
LB-9500 PLC 2 status (SN0, COM 2), set on to retry connection. R/W R/C R/C
LB-9501 PLC 2 status (SN1, COM 2), set on to retry connection R/W R/C R/C
LB-9502 PLC 2 status (SN2, COM 2), set on to retry connection R/W R/C R/C
LB-9503 PLC 2 status (SN3, COM 2), set on to retry connection R/W R/C R/C
LB-9504 PLC 2 status (SN4, COM 2), set on to retry connection R/W R/C R/C
LB-9505 PLC 2 status (SN5, COM 2), set on to retry connection R/W R/C R/C
LB-9506 PLC 2 status (SN6, COM 2), set on to retry connection R/W R/C R/C
LB-9507 PLC 2 status (SN7, COM 2), set on to retry connection R/W R/C R/C
LB-9755 PLC 2 status (SN255, COM 2), set on to retry connection R/W R/C R/C
LB-9800 PLC 3 status (SN0, COM 3), set on to retry connection R/W R/C R/C
LB-9801 PLC 3 status (SN1, COM 3), set on to retry connection R/W R/C R/C
LB-9802 PLC 3 status (SN2, COM 3), set on to retry connection R/W R/C R/C
LB-9803 PLC 3 status (SN3, COM 3), set on to retry connection R/W R/C R/C
LB-9804 PLC 3 status (SN4, COM 3), set on to retry connection R/W R/C R/C
LB-9805 PLC 3 status (SN5, COM 3), set on to retry connection R/W R/C R/C
LB-9806 PLC 3 status (SN6, COM 3), set on to retry connection R/W R/C R/C
LB-9807 PLC 3 status (SN7, COM 3), set on to retry connection R/W R/C R/C
LB-10055 PLC 3 status (SN255, COM 3), set on to retry connection R/W R/C R/C
LB-12030 COM 1 status (OFF : normal, ON : open failed) *Note 1 R R R
LB-12031 COM 2 status (OFF : normal, ON : open failed) R R R
LB-12032 COM 3 status (OFF : normal, ON : open failed) R R R
Note
1. The ON state of COM is for checking if COM is occupied by other program during
simulation on PC.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9153 auto. connection for PLC 4 (ethernet) (when ON) R/W R/C R/C
LB-9154 auto. connection for PLC 5 (ethernet) (when ON) R/W R/C R/C
LB-9155 auto. connection for PLC 6 (ethernet) (when ON) R/W R/C R/C
LB-9156 auto. connection for PLC 7 (ethernet) (when ON) R/W R/C R/C
LB-9157 auto. connection for PLC 8 (ethernet) (when ON) R/W R/C R/C
LB-9158 auto. connection for PLC 9 (ethernet) (when ON) R/W R/C R/C
LB-9189 auto. connection for PLC 40 (ethernet) (when ON) R/W R/C R/C
LB-10070 forced to reconnect PLC 4 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10071 forced to reconnect PLC 5 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10072 forced to reconnect PLC 6 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10073 forced to reconnect PLC 7 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10074 forced to reconnect PLC 8 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10075 forced to reconnect PLC 9 (ethernet) when IP or system
R/W R/C R/C
parameters changed on-line (set ON)
LB-10099 forced to reconnect PLC 33 (ethernet) when IP or system R/W R/C R/C
LB-11006 PLC 7 status (SN5, ethernet), set on to retry connection R/W R/C R/C
LB-11007 PLC 7 status (SN6, ethernet), set on to retry connection R/W R/C R/C
LB-11008 PLC 7 status (SN7, ethernet), set on to retry connection R/W R/C R/C
LB-11256 PLC 7 status (SN255, ethernet), set on to retry connection R/W R/C R/C
LB-11300 PLC 8 status (ethernet), set on to retry connection R/W R/C R/C
LB-11301 PLC 8 status (SN0, ethernet), set on to retry connection R/W R/C R/C
LB-11302 PLC 8 status (SN1, ethernet), set on to retry connection R/W R/C R/C
LB-11303 PLC 8 status (SN2, ethernet), set on to retry connection R/W R/C R/C
LB-11304 PLC 8 status (SN3, ethernet), set on to retry connection R/W R/C R/C
LB-11305 PLC 8 status (SN4, ethernet), set on to retry connection R/W R/C R/C
LB-11306 PLC 8 status (SN5, ethernet), set on to retry connection R/W R/C R/C
LB-11307 PLC 8 status (SN6, ethernet), set on to retry connection R/W R/C R/C
LB-11308 PLC 8 status (SN7, ethernet), set on to retry connection R/W R/C R/C
LB-11556 PLC 8 status (SN255, ethernet), set on to retry connection R/W R/C R/C
LB-11600 PLC 9 status (ethernet), set on to retry connection R/W R/C R/C
LB-11601 PLC 9 status (SN0, ethernet), set on to retry connection R/W R/C R/C
LB-11602 PLC 9 status (SN1, ethernet), set on to retry connection R/W R/C R/C
LB-11603 PLC 9 status (SN2, ethernet), set on to retry connection R/W R/C R/C
LB-11604 PLC 9 status (SN3, ethernet), set on to retry connection R/W R/C R/C
LB-11605 PLC 9 status (SN4, ethernet), set on to retry connection R/W R/C R/C
LB-11606 PLC 9 status (SN5, ethernet), set on to retry connection R/W R/C R/C
LB-11607 PLC 9 status (SN6, ethernet), set on to retry connection R/W R/C R/C
LB-11608 PLC 9 status (SN7, ethernet), set on to retry connection R/W R/C R/C
LB-11856 PLC 9 status (SN255, ethernet), set on to retry connection R/W R/C R/C
LB-11900 PLC 10 status (ethernet), set on to retry connection R/W R/C R/C
LB-11901 PLC 11 status (ethernet), set on to retry connection R/W R/C R/C
LB-11902 PLC 12 status (ethernet), set on to retry connection R/W R/C R/C
LB-11903 PLC 13 status (ethernet), set on to retry connection R/W R/C R/C
LB-11904 PLC 14 status (ethernet), set on to retry connection R/W R/C R/C
LB-11905 PLC 15 status (ethernet), set on to retry connection R/W R/C R/C
LB-11906 PLC 16 status (ethernet), set on to retry connection
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
LW-11491 (16bit) : PLC 7's ID1 (Beckhoff AMS NetId =
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
LW-11492 (16bit) : PLC 7's ID2 (Beckhoff AMS NetId =
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
LW-11493 (16bit) : PLC 7's ID3 (Beckhoff AMS NetId =
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
LW-11494 (16bit) : PLC 7's ID4 (Beckhoff AMS NetId =
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
LW-11495 (16bit) : PLC 7's ID5 (Beckhoff AMS NetId =
R/W R/C R/C
ID0:ID1:ID2:ID3:ID4:ID5)
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9190 auto. connection for PLC (USB) (when ON) R/W R/C R/C
LB-9191 PLC status (USB), set on to retry connection R/W R/C R/C
LW-9390 (16bit) : pending command no. in PLC (USB) R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12080 auto. connection for PLC (CAN Bus) (when ON) R/W R/C R/C
LB-12081 PLC status (CAN Bus) set on to retry connection R/W R/C R/C
LB-12100 pause CAN Bus device 1 communication (when ON) R/W R/C R/C
LB-12101 pause CAN Bus device 2 communication (when ON) R/W R/C R/C
LB-12102 pause CAN Bus device 3 communication (when ON) R/W R/C R/C
LB-12103 pause CAN Bus device 4 communication (when ON) R/W R/C R/C
LB-12104 pause CAN Bus device 5 communication (when ON) R/W R/C R/C
LB-12105 pause CAN Bus device 6 communication (when ON) R/W R/C R/C
LB-12106 pause CAN Bus device 7 communication (when ON) R/W R/C R/C
LB-12107 pause CAN Bus device 8 communication (when ON) R/W R/C R/C
LB-12108 pause CAN Bus device 9 communication (when ON) R/W R/C R/C
LB-12109 pause CAN Bus device 10 communication (when ON) R/W R/C R/C
LB-12354 pause CAN Bus device 255 communication (when ON) R/W R/C R/C
LW-9392 (16bit) : pending command no. in PLC (CAN Bus) R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9068 auto. connection for remote HMI 1 (when ON) R/W R/C R/C
LB-9069 auto. connection for remote HMI 2 (when ON) R/W R/C R/C
LB-9070 auto. connection for remote HMI 3 (when ON) R/W R/C R/C
LB-9071 auto. connection for remote HMI 4 (when ON) R/W R/C R/C
LB-9072 auto. connection for remote HMI 5 (when ON) R/W R/C R/C
LB-9073 auto. connection for remote HMI 6 (when ON) R/W R/C R/C
LB-9074 auto. connection for remote HMI 7 (when ON) R/W R/C R/C
LB-9075 auto. connection for remote HMI 8 (when ON) R/W R/C R/C
LB-9099 auto. connection for remote HMI 32 (when ON) R/W R/C R/C
LB-9100 remote HMI 1 status (set on to retry connection) R/W R/C R/C
LB-9101 remote HMI 2 status (set on to retry connection) R/W R/C R/C
LB-9102 remote HMI 3 status (set on to retry connection) R/W R/C R/C
LB-9103 remote HMI 4 status (set on to retry connection) R/W R/C R/C
LB-9104 remote HMI 5 status (set on to retry connection) R/W R/C R/C
LB-9105 remote HMI 6 status (set on to retry connection) R/W R/C R/C
LB-9106 remote HMI 7 status (set on to retry connection) R/W R/C R/C
LB-9107 remote HMI 8 status (set on to retry connection) R/W R/C R/C
LB-9148 remote HMI 49 status (set on to retry connection) R/W R/C R/C
LB-9149 forced to reconnect remote HMI when IP changed on-line
R/W R/C R/C
(set ON)
LW-9800 (16bit) : remote HMI 1's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9801 (16bit) : remote HMI 1's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9802 (16bit) : remote HMI 1's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9803 (16bit) : remote HMI 1's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9804 (16bit) : remote HMI 1's port no. R/W R/C R/C
LW-9805 (16bit) : remote HMI 2's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9806 (16bit) : remote HMI 2's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9807 (16bit) : remote HMI 2's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9808 (16bit) : remote HMI 2's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9809 (16bit) : remote HMI 2's port no. R/W R/C R/C
LW-9810 (16bit) : remote HMI 3's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9811 (16bit) : remote HMI 3's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9812 (16bit) : remote HMI 3's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9813 (16bit) : remote HMI 3's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9814 (16bit) : remote HMI 3's port no. R/W R/C R/C
LW-9815 (16bit) : remote HMI 4's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9816 (16bit) : remote HMI 4's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9817 (16bit) : remote HMI 4's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9818 (16bit) : remote HMI 4's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9819 (16bit) : remote HMI 4's port no. R/W R/C R/C
LW-9820 (16bit) : remote HMI 5's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9821 (16bit) : remote HMI 5's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9822 (16bit) : remote HMI 5's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9823 (16bit) : remote HMI 5's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9824 (16bit) : remote HMI 5's port no. R/W R/C R/C
LW-9825 (16bit) : remote HMI 6's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9826 (16bit) : remote HMI 6's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9827 (16bit) : remote HMI 6's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9828 (16bit) : remote HMI 6's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9829 (16bit) : remote HMI 6's port no. R/W R/C R/C
LW-9830 (16bit) : remote HMI 7's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9831 (16bit) : remote HMI 7's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9832 (16bit) : remote HMI 7's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9833 (16bit) : remote HMI 7's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9834 (16bit) : remote HMI 7's port no. R/W R/C R/C
LW-9835 (16bit) : remote HMI 8's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9836 (16bit) : remote HMI 8's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9837 (16bit) : remote HMI 8's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9838 (16bit) : remote HMI 8's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9839 (16bit) : remote HMI 8's port no. R/W R/C R/C
LW-9895 (16bit) : remote HMI 20's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9896 (16bit) : remote HMI 20's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9897 (16bit) : remote HMI 20's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9898 (16bit) : remote HMI 20's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9899 (16bit) : remote HMI 20's port no. R/W R/C R/C
LW-9905 (16bit) : remote HMI 21’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9906 (16bit) : remote HMI 21’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9907 (16bit) : remote HMI 21’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9908 (16bit) : remote HMI 21’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9909 (16bit) : remote HMI 21’s port no. R/W R/C R/C
LW-9910 (16bit) : remote HMI 22’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9911 (16bit) : remote HMI 22’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9912 (16bit) : remote HMI 22’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9913 (16bit) : remote HMI 22’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9914 (16bit) : remote HMI 22’s port no. R/W R/C R/C
LW-9915 (16bit) : remote HMI 23’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9916 (16bit) : remote HMI 23’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9917 (16bit) : remote HMI 23’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9918 (16bit) : remote HMI 23’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9919 (16bit) : remote HMI 23’s port no. R/W R/C R/C
LW-9920 (16bit) : remote HMI 24’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9921 (16bit) : remote HMI 24’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9922 (16bit) : remote HMI 24’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9923 (16bit) : remote HMI 24’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9924 (16bit) : remote HMI 24’s port no. R/W R/C R/C
LW-9925 (16bit) : remote HMI 25’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9926 (16bit) : remote HMI 25’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9927 (16bit) : remote HMI 25’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9928 (16bit) : remote HMI 25’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9929 (16bit) : remote HMI 25’s port no. R/W R/C R/C
LW-9930 (16bit) : remote HMI 26’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9931 (16bit) : remote HMI 26’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9932 (16bit) : remote HMI 26’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9933 (16bit) : remote HMI 26’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9934 (16bit) : remote HMI 26’s port no. R/W R/C R/C
LW-9935 (16bit) : remote HMI 27’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9936 (16bit) : remote HMI 27’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9937 (16bit) : remote HMI 27’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9938 (16bit) : remote HMI 27’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9939 (16bit) : remote HMI 27’s port no. R/W R/C R/C
LW-9940 (16bit) : remote HMI 28’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9941 (16bit) : remote HMI 28’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9942 (16bit) : remote HMI 28’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9943 (16bit) : remote HMI 28’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9944 (16bit) : remote HMI 28’s port no. R/W R/C R/C
LW-9945 (16bit) : remote HMI 29’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9946 (16bit) : remote HMI 29’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9947 (16bit) : remote HMI 29’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9948 (16bit) : remote HMI 29’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9949 (16bit) : remote HMI 29’s port no. R/W R/C R/C
LW-9950 (16bit) : remote HMI 30’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9951 (16bit) : remote HMI 30’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9952 (16bit) : remote HMI 30’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9953 (16bit) : remote HMI 30’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9954 (16bit) : remote HMI 30’s port no. R/W R/C R/C
LW-9955 (16bit) : remote HMI 31’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9956 (16bit) : remote HMI 31’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9957 (16bit) : remote HMI 31’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9958 (16bit) : remote HMI 31’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9959 (16bit) : remote HMI 31’s port no. R/W R/C R/C
LW-9960 (16bit) : remote HMI 32’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9961 (16bit) : remote HMI 32’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9962 (16bit) : remote HMI 32’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9963 (16bit) : remote HMI 32’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9964 (16bit) : remote HMI 32’s port no. R/W R/C R/C
LW-9995 (16bit) : remote HMI 39’s IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9996 (16bit) : remote HMI 39’s IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9997 (16bit) : remote HMI 39’s IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9998 (16bit) : remote HMI 39’s IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9999 (16bit) : remote HMI 39’s port no. R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-10050 (16bit) : IP0 of the HMI connecting to remote PLC 1 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10051 (16bit) : IP1 of the HMI connecting to remote PLC 1 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10052 (16bit) : IP2 of the HMI connecting to remote PLC 1 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10053 (16bit) : IP3 of the HMI connecting to remote PLC 1 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10054 (16bit) : port no. of the HMI connecting to remote PLC 1 R/W R/C R/C
LW-10055 (16bit) : IP0 of the HMI connecting to remote PLC 2 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10056 (16bit) : IP1 of the HMI connecting to remote PLC 2 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10057 (16bit) : IP2 of the HMI connecting to remote PLC 2 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10058 (16bit) : IP3 of the HMI connecting to remote PLC 2 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10059 (16bit) : port no. of the HMI connecting to remote PLC 2 R/W R/C R/C
LW-10060 (16bit) : IP0 of the HMI connecting to remote PLC 3 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10061 (16bit) : IP1 of the HMI connecting to remote PLC 3 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10062 (16bit) : IP2 of the HMI connecting to remote PLC 3 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10063 (16bit) : IP3 of the HMI connecting to remote PLC 3 (IP
R/W R/C R/C
address = IP0:IP1:IP2:IP3)
LW-10064 (16bit) : port no. of the HMI connecting to remote PLC 3 R/W R/C R/C
LW-10319 (16bit) : remote PLC 4's port no. R/W R/C R/C
LW-10455 (16bit) : remote PLC 32's IP0 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-10456 (16bit) : remote PLC 32's IP1 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-10457 (16bit) : remote PLC 32's IP2 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-10458 (16bit) : remote PLC 32's IP3 (IP address = IP0:IP1:IP2:IP3) R/W R/C R/C
LW-10459 (16bit) : remote PLC 32's port no. R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9044 disable remote control (when ON) R/W R/C R/C
LB-9053 prohibit password remote-read operation (when ON) R/W R/C R/C
LB-9054 prohibit password remote-write operation (when ON) R/W R/C R/C
LB-9196 local HMI supports monitor function only (when ON) R/W R/C R/C
LB-9197 support monitor function only for remote HMIs (when ON) R/W R/C R/C
LB-9198 disable local HMI to trigger a MACRO (when ON) R/W R/C R/C
LB-9199 disable remote HMI to trigger a MACRO (when ON) R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9400 (16bit) : error code for PLC 1 R R R
LW-9401 (16bit) : error code for PLC 2 R R R
LW-9402 (16bit) : error code for PLC 3 R R R
LW-9403 (16bit) : error code for PLC 4 R R R
LW-9404 (16bit) : error code for PLC 5 R R R
LW-9405 (16bit) : error code for PLC 6 R R R
LW-9406 (16bit) : error code for PLC 7 R R R
LW-9407 (16bit) : error code for PLC 8 R R R
LW-9449 (16bit) : error code for PLC 50 R R R
LW-9490 (16bit) : error code for USB PLC R R R
LW-9491 (16bit) : error code for CAN-Bus PLC R R R
Note
1. A list of the explaination of PLC communication error codes:
22.3.22. Driver ID
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9300 (16bit) : driver ID of local PLC 1 R R R
LW-9301 (16bit) : driver ID of local PLC 2 R R R
LW-9302 (16bit) : driver ID of local PLC 3 R R R
LW-9303 (16bit) : driver ID of local PLC 4 R R R
LW-9331 (16bit) : driver ID of local PLC 32 R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-10700 (4 words) : DLT_645 operator (COM 1) R/W R/C R/C
LW-10704 (4 words) : DLT_645 password (COM 1) R/W R/C R/C
LW-10708 (6 words) : DLT_645 address (COM 1) R/W R/C R/C
LW-10715 (4 words) : DLT_645 operator (COM 2) R/W R/C R/C
LW-10719 (4 words) : DLT_645 password (COM 2) R/W R/C R/C
LW-10723 (6 words) : DLT_645 address (COM 2) R/W R/C R/C
LW-10730 (4 words) : DLT_645 operator (COM 3) R/W R/C R/C
LW-10734 (4 words) : DLT_645 password (COM 3) R/W R/C R/C
LW-10738 (6 words) : DLT_645 address (COM 3) R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9192 disable USB PLC's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11960 disable PLC 1's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11961 disable PLC 2's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11962 disable PLC 3's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11963 disable PLC 4's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11964 disable PLC 5's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11965 disable PLC 6's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11966 disable PLC 7's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-11967 disable PLC 8's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-12023 disable PLC 64's "PLC No Response" dialog (when ON) R/W R/C R/C
LB-12082 disable CAN Bus device’s “PLC No Response” dialog (when
R/W R/C R/C
ON)
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9013 hide (set ON)/show (set OFF) FS window R/W R/C R/C
LB-9014 hide (set ON)/show (set OFF) FS button R/W R/C R/C
LB-9015 hide (set ON)/show (set OFF) FS window/button R/W R/C R/C
22.3.26. EasyAccess
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9051 disconnect (set OFF)/connect (set ON) EasyAccess server R/W R/C R/C
LB-9052 status of connecting to EasyAccess server R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-10820 (16bit) : disable (set 0)/enable (set 1) (EasyAccess 2.0) R/W R/C R/C
LW-10821 (5 words) : session ID (EasyAccess 2.0) R/W R/C R/C
LW-10826 (2 words) : password (EasyAccess 2.0) R/W R/C R/C
LW-10828 (16bit) : execution status (EasyAccess 2.0) R R R
LW-10829 (16bit) : the last error code (EasyAccess 2.0) R R R
LW-11170 (16bit) : Proxy Disable/Enable (0:disable, 1:enable)
R/W R/C R/C
(EasyAccess 2.0)
LW-11171 (16bit) : Proxy Type (0:HTTP, 1:SOCKSv4, 2:SOCKSv5)
R/W R/C R/C
(EasyAccess 2.0)
LW-11172 (16bit) : Proxy Server IP0 (EasyAccess 2.0) R/W R/C R/C
LW-11173 (16bit) : Proxy Server IP1 (EasyAccess 2.0) R/W R/C R/C
LW-11174 (16bit) : Proxy Server IP2 (EasyAccess 2.0) R/W R/C R/C
LW-11175 (16bit) : Proxy Server IP3 (EasyAccess 2.0) R/W R/C R/C
LW-11176 (16bit) : Proxy Server Port (EasyAccess 2.0) R/W R/C R/C
LW-11177 (16bit) : Proxy authentication (0:disable, 1:enable)
R/W R/C R/C
(EasyAccess 2.0)
LW-11178 (16 words) : Proxy username (EasyAccess 2.0) R/W R/C R/C
LW-11194 (16 words) : Proxy password (EasyAccess 2.0) R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-10069 forced to reconnect remote printer/backup server when IP
R/W R/C R/C
changed on-line (set ON)
LB-12040 remote printer/backup server disconnection alarm (when
R R R
ON)
LW-9770 (16bit) : remote printer/backup server IP0 (IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9771 (16bit) : remote printer/backup server IP1 (IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9772 (16bit) : remote printer/backup server IP2 (IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9773 (16bit) : remote printer/backup server IP3 (IP0:IP1:IP2:IP3) R/W R/C R/C
LW-9774 (6 words) : remote printer/backup server user name
R/W R/C R/C
*Note 1
LW-9780 (6 words) : remote printer/backup server password *Note 1 R/W R/C R/C
Note
1. When change settings using LW-9774 and LW-9780, please reboot HMI for the new
settings to take effect.
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9901 (16bit) : pass-through source COM port (1~3 : COM 1~COM
R/W R/C R/C
3)
LW-9902 (16bit) : pass-through destination COM port (1~3 : COM
R/W R/C R/C
1~COM 3)
LW-9903 (16bit) : pass-through control (0 : normal, 1 : pause, 2 : stop
communications between HMI and PLC when executing R/W R/C R/C
pass-through)
LW-9904 (16bit) : pass-through server port no. (2000~2100) R/W R/C R/C
For more information about Siemens pass-through feature, see “29 Pass-through”.
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12088 enable VNC monitor mode (when ON) *Note 1 R/W R/C R/C
LB-12089 VNC pass word free (when ON) *Note 1 R/W R/C R/C
Note
1. To change VNC mode, use LB-12092 to stop and then restart VNC to update the setting.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9046 project key is different from HMI key (when ON) R R R
LW-9046 (32bit) : HMI key *Note 1 R/W R/C R
Note
1. When change HMI Key using LW-9046, please reboot HMI for the new settings to take
effect.
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-11160 (16bit) : start time of USB security key - year R R R
LW-11161 (16bit) : start time of USB security key - month R R R
LW-11162 (16bit) : start time of USB security key - day R R R
LW-11163 (16bit) : start time of USB security key - hour R R R
LW-11164 (16bit) : start time of USB security key - minute R R R
LW-11165 (16bit) : expiration time of USB security key - year R R R
LW-11166 (16bit) : expiration time of USB security key - month R R R
LW-11167 (16bit) : expiration time of USB security key - day R R R
LW-11168 (16bit) : expiration time of USB security key - hour R R R
LW-11169 (16bit) : expiration time of USB security key - minute R R R
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9050 user logout W C C
LB-9060 password error R R R
LB-9061 update password (set ON) W C C
LB-12056 the user touches an unauthorized object (when ON) R R R
PLB-12056 the user touches an unauthorized object (when ON) (on
R N/A N/A
tablet)
LW-9082 (16bit) : auto logout time (unit : minute, 0 : disable the
R/W R/C R/C
function)
LW-9219 (16bit) : user no. (1~12) R/W R/C R/C
LW-9220 (32bit) : password R/W R/C R/C
LW-9222 (16bit) : object classes can be operated for current user
R R R
(bit 0:A, bit 1:B,bit 2:C, ...)
PLW-9222 (16bit) : object classes can be operated for current user
R N/A N/A
(bit 0:A, bit 1:B,bit 2:C, ...)
LW-9500 (32bit) : user 1's password R/W R/C R/C
LW-9502 (32bit) : user 2's password R/W R/C R/C
LW-9504 (32bit) : user 3's password R/W R/C R/C
LW-9506 (32bit) : user 4's password R/W R/C R/C
LW-9508 (32bit) : user 5's password R/W R/C R/C
LW-9510 (32bit) : user 6's password R/W R/C R/C
LW-9512 (32bit) : user 7's password R/W R/C R/C
LW-9514 (32bit) : user 8's password R/W R/C R/C
LW-9516 (32bit) : user 9's password R/W R/C R/C
LW-9518 (32bit) : user 10's password R/W R/C R/C
LW-9520 (32bit) : user 11's password R/W R/C R/C
LW-9522 (32bit) : user 12's password R/W R/C R/C
PLW-10754 (8 words) : current user name *Note 1 R N/A N/A
Note
1. Only for [Security] » [Enhanced security mode].
Click the icon to download the demo project. Please confirm your internet connection.
22.3.34. Macro
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9059 disable macro TRACE function (when ON) *Note1 R/W R/C R/C
LW-10900 (16bit) : macro 0 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10901 (16bit) : macro 1 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10902 (16bit) : macro 2 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10903 (16bit) : macro 3 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10904 (16bit) : macro 4 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10905 (16bit) : macro 5 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10906 (16bit) : macro 6 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10907 (16bit) : macro 7 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10908 (16bit) : macro 8 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-10909 (16bit) : macro 9 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
LW-11154 (16bit) : macro 254 status (0:ready, 3:executing, 5:waiting
response, 9:waiting sync, 17:delay, 32:abnormal end R R R
(exceed array size))
Note
1. LB-9059: Disable macro trace function.
Click the icon to download the demo project. Please confirm your internet connection.
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-9002 (32bit-float) : input high limit R R R
LW-9004 (32bit-float) : input low limit R R R
PLW-9052 (32bit-float) : the previous input value of the numeric
R N/A N/A
input object
LW-9150 (32 words) : keyboard's input data (ASCII) R R R
LW-9540 (16bit) : reserved for caps lock R/W R/C R/C
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12055 failed to execute time synchronization (when ON) R R R
LB-12355 daylight saving time period (when ON) R R R
LW-11260 (16bit) : enable/disable the daylight saving time (DST)
R/W R/C R/C
(0:disable, 1:enable)
LW-11261 (16bit) : hour of the DST bias R/W R/C R/C
LW-11262 (16bit) : minute of the DST bias R/W R/C R/C
LW-11263 (16bit) : month of the year when DST starts R/W R/C R/C
LW-11264 (16bit) : week of the month when DST starts (1~5) R/W R/C R/C
LW-11265 (16bit) : day of the week when DST starts (0~ 6) R/W R/C R/C
LW-11266 (16bit) : hour of local time when DST starts R/W R/C R/C
LW-11267 (16bit) : minute of local time when DST starts R/W R/C R/C
LW-11268 (16bit) : month of the year when DST ends R/W R/C R/C
LW-11269 (16bit) : week of the month when DST ends (1~5) R/W R/C R/C
LW-11270 (16bit) : day of the week when DST ends (0~6) R/W R/C R/C
LW-11271 (16bit) : hour of local time when DST ends R/W R/C R/C
LW-11272 (16bit) : minute of local time when DST ends R/W R/C R/C
LW-11273 (16bit) : enable/disable time synchronization via NTP
R/W R/C R/C
(Network Time Protocol) server (0:disable, 1:enable)
LW-11274 (16bit) : execute time synchronization when HMI starts
R/W R/C R/C
(0:disable, 1:enable)
LW-11275 (16bit) : server response time has been adjusted in
R/W R/C R/C
accordance with DST (0:disable, 1:enable)
LW-11276 (16bit) : HMI time zone (unit : minute) R/W R/C R/C
LW-11277 (16bit) : server response time (server time zone) (unit :
R/W R/C R/C
minute)
LW-11278 (16bit) : IP 0 of network time server 1 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11279 (16bit) : IP 1 of network time server 1 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11280 (16bit) : IP 2 of network time server 1 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11281 (16bit) : IP 3 of network time server 1 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11282 (16bit) : IP 0 of network time server 2 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11283 (16bit) : IP 1 of network time server 2 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11284 (16bit) : IP 2 of network time server 2 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11285 (16bit) : IP 3 of network time server 2 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11286 (16bit) : IP 0 of network time server 3 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11287 (16bit) : IP 1 of network time server 3 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11288 (16bit) : IP 2 of network time server 3 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11289 (16bit) : IP 3 of network time server 3 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11290 (16bit) : IP 0 of network time server 4 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11291 (16bit) : IP 1 of network time server 4 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11292 (16bit) : IP 2 of network time server 4 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11293 (16bit) : IP 3 of network time server 4 (IP address =
R/W R/C R/C
IP0:IP1:IP2:IP3)
LW-11294 (32bit) : update interval (time synchronization interval) (10
R/W R/C R/C
~ 86400, unit : second)
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-11297 (16 words) : PIN code of SIM card (cellular network) R/W R/C R/C
LW-11313 (16 words) : Access Point Name (cellular network) R/W R/C R/C
LW-11329 (16 words) : username (cellular network) R/W R/C R/C
LW-11345 (16 words) : password (cellular network) R/W R/C R/C
LW-11361 (16 words) : dial number (cellular network) R/W R/C R/C
LW-11377 (16bit) : stop (set 0)/start (set 1) connection (cellular
R/W R/C R/C
network)
LW-11378 (16bit) : last error code (0:success, 1:incorrect PIN code,
2:no SIM, 3:no device, 4:puk locked, 5:other) (cellular R R R
network)
LW-11379 (16bit) : connection status (0:no device, 1:disconnect,
R R R
2:connecting, 3:connected) (cellular network)
LW-11380 (16bit) : stop (set 0)/start (set 1) connection (USB tethering) R/W R/C R/C
LW-11381 (16bit) : connection status (0:no device, 1:disconnect,
2:connected, 3:fail, 4:OS not support, 5:HMI not support) R R R
(USB tethering)
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12365 update wifi setting (IP, netmask, gateway, DNS) (set ON) R/W R/C R/C
LW-11383 (16bit) : Wi-Fi control (1: disconnect, 2: connect, 3: popup
R/W R/C R/C
setting dialog)
LW-11384 (16bit) : Wi-Fi error code (0: no error, 1: no such device, 2.
R R R
radio is off)
LW-11385 (16bit) : Wi-Fi status (0: stopped; 1: connecting; 2:
R R R
connected)
LW-11386 (16 words) : Wi-Fi connected SSID R R R
LW-11402 (16bit) : Wi-Fi signal level (0: none, 1: weak, 2: fair, 3: good,
R R R
4: excellent) (Wi-Fi) *Note2
LW-11403 (16bit) : Wi-Fi country code *Note1 R/W R/C R/C
LW-11404 (16bit) : Wi-Fi radio (0: Off, 1: On) R/W R/C R/C
Note
1. Please enter Wi-Fi country code in ASCII for uppercase letters, the setting will take effect
after rebooting HMI. Wireless regulations vary from country to country. The country code
selection affects the list of channels of the wireless radio.
2. The signal strength is classified into four levels: 1. Weak (<-70 dBm), 2. Fair (-60 ~ -70
dBm), 3. Good (-50 ~ -60 dBm), 4. Excellent (>-50 dBm)
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LW-11435 (16bit) : OPC UA Server status (0: Stopped, 1: Started) R R R
LW-11436 (16bit) : OPC UA Server error code (0: Success, 1 or more:
R R R
Error)
LW-11437 (16bit) : OPC UA Server control command (0: None, 1: Start,
R/W R/C R/C
2: Stop)
22.3.40. e-Mail
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12053 failed to send an [Event Log] e-Mail (when ON) R R R
LB-12054 failed to send an [Backup Object] e-Mail (when ON) R R R
LW-9216 (16bit) : the result of importing email data *Note 1 R R R
LW-11444 (16bit) : failed step (e-Mail) *Note 2 R R R
LW-11445 (16bit) : error code (e-Mail) *Note 3 R R R
Note
1. 1: import succeeded, 2: import failed (file doesn’t exist) , 4: incorrect file format or file
cannot be decrypted.
2. Error codes of failed steps include:
Code Cause of Error
0 CSMTP_NO_ERROR
100 WSA_STARTUP = Unable to initialise winsock2
101 WSA_VER = Wrong version of the winsock2
102 WSA_SEND = Function send() failed
103 WSA_RECV = Function recv() failed
104 WSA_CONNECT = Function connect failed
105 WSA_GETHOSTBY_NAME_ADDR = Unable to determine remote server
106 WSA_INVALID_SOCKET = Invalid winsock2 socket
107 WSA_HOSTNAME = Function hostname() failed
108 WSA_IOCTLSOCKET = Function ioctlsocket() failed
109 WSA_SELECT
110 BAD_IPV4_ADDR = Improper IPv4 address
200 UNDEF_MSG_HEADER = Undefined message header
209 BAD_SERVER_NAME = Unable to determine server name for digest MD5 response
300 COMMAND_MAIL_FROM = Server returned error after sending MAIL FROM
301 COMMAND_EHLO = Server returned error after sending EHLO
302 COMMAND_AUTH_PLAIN = Server returned error after sending AUTH PLAIN
303 COMMAND_AUTH_LOGIN = Server returned error after sending AUTH LOGIN
304 COMMAND_AUTH_CRAMMD5 = Server returned error after sending AUTH CRAM-MD5
3. Error messages sent from mail server can be shown by designating a word address (length
adjustable) in System Parameter Settings » e-Mail tab » [Error message].
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-12656 enable Diagnoser (set ON), disable (set OFF) R/W R/C R/C
LB-12657 Diagnoser password free (when ON) R/W R/C R/C
LW-11756 (4 words) : Diagnoser password R/W R/C R/C
LW-11839 (16bit) : number of connected clients (cMT Viewer) R R R
LW-11840 (8 words) : client 1 user name R R R
LW-11848 (8 words) : client 2 user name R R R
LW-11856 (8 words) : client 3 user name R R R
LW-11864 (8 words) : client 4 user name R R R
LW-11872 (8 words) : client 5 user name R R R
LW-11880 (8 words) : client 6 user name R R R
LW-11888 (8 words) : client 7 user name R R R
LW-11896 (8 words) : client 8 user name R R R
LW-11904 (8 words) : client 9 user name R R R
LW-11912 (8 words) : client 10 user name R R R
LW-11940 (16bit) : client 1 IP0 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11941 (16bit) : client 1 IP1 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11942 (16bit) : client 1 IP2 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11943 (16bit) : client 1 IP3 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11944 (16bit) : client 2 IP0 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11945 (16bit) : client 2 IP1 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11946 (16bit) : client 2 IP2 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11947 (16bit) : client 2 IP3 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11948 (16bit) : client 3 IP0 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11949 (16bit) : client 3 IP1 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11950 (16bit) : client 3 IP2 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11951 (16bit) : client 3 IP3 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11952 (16bit) : client 4 IP0 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11953 (16bit) : client 4 IP1 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11954 (16bit) : client 4 IP2 (IP address = IP0:IP1:IP2:IP3) R R R
LW-11955 (16bit) : client 4 IP3 (IP address = IP0:IP1:IP2:IP3) R R R
22.3.42. Miscellaneous
Read(R)/Write(W)/Control(C)
Address Description Local Macro Remote
HMI HMI
LB-9000~ initialized as ON R/W R/C R/C
LB-9009
LB-9010 data-transfer write indicator R R R
LB-9011 data-transfer read indicator R R R
LB-9012 data-transfer execution indicator R R R
LB-9016 status is on when a client connects to this HMI R R R
LB-9017 disable write-back in PLC control's [change
R/W R/C R/C
window]
LB-9039 status of file backup activity (backup in process R R R
if ON)
LB-9045 memory-map communication fails (when ON) R R R
LB-9049 disable/enable watch dog (use LW-11456 set
R/W R/C R/C
watch dog timeout) *Note 1
LB-12356 enable(set on)/disable(set off) web streaming R/W R/C R/C
LB-12357 web streaming status (on: enabled / off:
R R R
disabled)
LB-12358 enable (when ON) / disable (when OFF) off-line
R/W R/C R/C
simulation on HMI *Note 5
LB-12361 status of operation log function (OFF : disabled,
R R R
ON : enabled)
LB-12664 Cache Hit (cMT-G03) R R R
LW-9006 (16bit) : connected client no. R R R
LW-9024 (16bit) : memory link system register R/W R/C R/C
LW-9032 (8 words) : folder name of backup history files
R/W R/C R/C
to SD, USB memory *Note 3
LW-9050 (16bit) : current base window ID R R R
PLW-9050 (16bit) : current base window ID (on tablet) R N/A N/A
LW-9134 (16bit) : language mode *Note 2 R/W R/C R/C
PLW-9134 (16bit) : language mode (on tablet) *Note 2 R/W N/A N/A
LW-9900 (16bit) : HMI run mode (0 : normal mode, 1-3 :
R/W R/C R/C
test mode (COM 1-COM 3)
LW-10762 (8 words) : slot1 user name R/W R/C R/C
LW-10770 (8 words) : slot2 user name R/W R/C R/C
LW-10778 (8 words) : slot3 user name R/W R/C R/C
LW-10814 (16bit) : connecting to a Weintek HMI (0:none,
R R R
1:connecting) *Note 4
LW-11456 (16bit) : watch dog timeout (3 ~ 10), unit :
R/W R/C R/C
second *Note 1
LW-11760 (16bit) : CODESYS firmware status (0:error,
R R R
1:start, 2:stop)
LW-11761 (16bit) : CODESYS application status (0:error,
R R R
1:start, 2:stop)
LW-11762 (16bit) : CODESYS login status (0:error, 1:login,
R R R
2:logout)
LW-11770 (64 words) : QR code (URL) for WeChat push
R R R
notification (EasyAccess 2.0)
PLW-11998 (8 words) : Control Token release countdown R R R
Note
1. When LB-9049 watch dog function is enabled, watch dog automatically reboots the
system after the HMI stops functioning for a specified period of time.
2. To display texts on objects in multiple languages, except for using Label Library, the system
reserved register [LW-9134: language mode] is needed. The value range in LW-9134 is 0 ~
23. The values in LW-9134 relates to the languages downloaded to HMI. LW-9134 value
and language correspondence vary according to the languages selected during project
compilation and download.
For example: If 5 languages are defined by user in Label Library as Language 1 (Traditional
Chinese), Language 2 (Simplified Chinese), Language 3 (English), Language 4 (French), and
Language 5 (Japanese). If only Language 1, 3, 5 are downloaded, the corresponding
language of the value in LW-9134 will be 0 → Language 1 (Traditional Chinese), 1 →
Language 3 (English), 2 → Language 5 (Japanese). The following demo project explains
how to switch languages using Option List Object and LW-9134.
Click the icon to download the demo project. Please confirm your internet connection.
3. The default name of the backup data folder will be the HMI name.
Click the icon to download the demo project. Please confirm your internet connection.
4. When the USB Host is connected to a Weintek HMI, the address is set to 1, for testing if
the USB Client of another Weintek HMI works normally.
5. This register allows switching to off-line mode on HMI. In off-line mode, “Device No
Response” message will not show even when HMI is not properly connected. In this case,
device related objects can still operate, however, the values are not read by / written to
the device.
Axiohm A630 Micro printer from France connects via serial port;
please configure communication parameters to
match the printer.
To connect Remote Printer Server, set the parameters in [System Parameter Settings] »
[Printer/Backup Server].
2. Start printing.
Start printing with Function Key.
Or, use PLC Control [Screen hardcopy] to start printing with a designated bit address.
Opening system setting on a cMT Series model and select [Install network printer] can install
more printers apart from the ones listed in the preceding chapters.
1. Tap to open system setting and log in, find [Printer] » [Install network printer].
2. HMI needs a few seconds to search for the network printers on the same network.
3. Select a network printer and tap [Install] to install its driver. The new printer driver will
replace the former one since only one printer can be installed at a time.
Installing the PPD file from a printer driver on a cMT Series model is also possible.
1. Go to [System Parameter Settings] » [Model] tab.
2. Select a printer type. To add a new printer, place the printer’s PPD file in the ppd folder
under EasyBuilder Pro installation directory, and then click [Refresh].
3. Use Status Address to monitor printer status, and use Control Address to dynamically
update connection parameters.
Note
Installing PPD file is not supported on cMT-SVR and cMT Gateway models.
HP printers are recommended since they may have better compatibility with cMT models.
Printers from other brands should be tested beforehand.
Please install a printer on cMT model by using [Install network printer] in the system
setting first; if this doesn’t work, installing PPD file is the second option.
24.1. Overview
Setting Description
Address range Fill in address range, the unit of which is word.
Select your data Save the specified data format for loading next time.
format The saved file name is “dataEX.fmt” under
EasyBuilder Pro’s installation directory.
Data format Edit new data format in this field.
4. Click [Add] to enter a description of the data type, and select data format. When selecting
[String], please enter the length (words) and select [ASCII] or [Unicode].
In this example, the total length of data format is 13 words. Each 13 words will be one set
of recipe data.
The first set: “product no.” = address 0, “Name” = address 1 ~ 10, “Store No.”= address 11 ,
“Category” = address 12;
The second set: “product no.” = address 13, “Name” = address 14 ~ 23, “Store No.”=
address 24, “Category” = address 25;…and so on.
Note
After editing recipe data, it can be saved as .rcp, .emi, or .csv files. The .rcp files can
be downloaded to HMI using Utility Manager or external devices (USB drive or SD
card). The .emi files can be saved directly to the external device which is inserted to
HMI as extended memory (EM).
1. Before using Records of Recipe Database, first enable it in EasyBuilder Pro [System
Parameters] » [Recipe Database]. Please see “5 System Parameter Settings” for more
detail.
2. When finished, Recipe Records can be opened in main menu » [Project] » [Records of
Recipe Database]. In the example shown below, there are MyRecipe1 and MyRecipe2.
Three items are shown on the right hand side. The names of recipe come from System
Parameter Settings.
Setting Description
Recipes: The recipes created in System Parameter Settings.
The number enclosed in brackets shows the total
number of records in the corresponding recipe.
Add Inserts records into the recipe according to the item
format.
Delete Deletes the edited content.
Up / Down Arrows Moves the selected record upward / downward.
3. To define recipes according to the specified format, click [Add] button above the record
list to insert a new record and start editing each item. When click on the item, the item
format will be shown under the record list. This helps users to fill in each item with legal
value. Click [OK] to confirm and save the records.
Note
Each recipe can hold a maximum of 10000 records.
The recipe records will be stored in the .exob file after compilation and will be
downloaded to HMI. These recipes cannot be shared with other project files. If users
need to modify the recipe contents and download them to the HMI, make sure that
[Reset recipe database] check box is selected during download. If not, the recipe
database in the HMI will not be updated.
25. EasyConverter
This Chapter explains how to use EasyConverter.
25.1. Overview
EasyConverter reads the Data Log file, Event Log file, and Operation Log file in HMI and convert
the files to Excel format.
From Utility ManagerEX click [Data Conversion] » [EasyConverter].
From EasyBuilder Pro menu select [Tool] » [Data/Event Log Converter].
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
1. If the Data Log file format is .db, and the file includes data of more than one day, the data
to be viewed can be specified by selecting a date range. (If the file format is .dtl, please
skip this step.)
2. The following is the setting dialog box, please set based on actual needs.
3. Click [OK], the Data Log layout is shown in the following figure. Click [Export to Excel]. The
file will be converted to Excel format.
Note
If the file requires over six million cells in Excel format, only partial data will be shown in
EasyConverter. (The complete data will still be exported to xls / xlsx file.)
The file will be automatically separated into different sheets in the xls / xlsx file under
these conditions:
1. Exceeds 60 thousand rows in a single sheet.
2. Exceeds 1.5 million cells in a single sheet.
1. If the Event Log file format is .db, and the file includes data of more than one day, the data
to be viewed can be specified by selecting a date range.
(If the file format is .evt, please skip this step.)
2. If the .db file of Event Log contains multiple languages, the language to be viewed can be
specified. (If the file format is .evt, please skip this step.)
3. Click [OK], the Event Log layout is shown in the following figure. Click [Export to Excel].
The file will be converted to Excel format.
Note
The "Event" column can be found. 0-> Event triggered; 1-> Event acknowledged; 2-> Event
returns to normal.
If the file requires over six million cells in Excel format, opening the file in EasyCoverter
only partially shows the data. (The complete data will be exported to xls / xlsx file.)
The file will be automatically separated into different sheets in the xls / xlsx file under
these conditions:
1. Exceeds 60 thousand rows in a single sheet.
2. Exceeds 1.5 million cells in a single sheet.
1. If the Operation Log file includes data of more than one day, the data to be viewed can be
specified by selecting a date range.
2. Click [OK], the Operation Log layout is shown in the following figure. Click [Export to Excel].
The file will be converted to Excel format.
Note
If the file requires over six million cells in Excel format, opening the file in EasyCoverter
only partially shows the data. (The complete data will be exported to xls / xlsx file.)
The file will be automatically separated into different sheets in the xls / xlsx file under
these conditions:
1. Exceeds 60 thousand rows in a single sheet.
2. Exceeds 1.5 million cells in a single sheet.
2. Click [Add File…] to add the files to be converted. If click [OK] without selecting [Combine
to a file], the files will be exported to separate Excel files.
3. If [Combine to a file] is selected, the files will be separated into different sheets of one
Excel file as shown in the following figure.
Note
The files cannot be combined when the total size of the files exceeds 32MB.
When opening a Data Log file, the scaling function can be set.
The equation of scaling new value = [(value + A) x B] + C, and users can set the values of A, B,
and C.
A -> lower limit of the value ; B -> [(scaled max) - (scaled min) / (upper limit) - (lower limit)] ; C
-> scaled min.
For example, here is a voltage data with a format of 16-bit unsigned (range: 0 ~ 4096).
To convert the data to volt, range form -5V to +5V, the new value = [(value + 0) x 0.0024] + (-5).
The settings described above can be saved as a settings file in *.lgs format, and then loaded
next time if needed.
EasyConverter command line can execute batch file (.bat), and convert .dtl or .evt files into .xls
or .csv files for export. In the batch file, the user can define the format of the exported file (ex:
ASCII, Unicode, or UTF-8), and decide whether or not to include millisecond information or
load settings file.
The following explains how to create batch file (.bat) and provides some relevant notes.
Parameters:
[/c{a,8,u}] [/t{0,1}] [/s "Format file"] ["Src file"] ["Dest file"]
Example:
EasyConverter.exe /ca /t1 /s "C:\Format.lgs" "C:\Src.dtl" "C:\Dest.csv"
EasyConverter.exe /t1 /s "C:\Format.lgs" "C:\Src.dtl" "C:\Dest.xls"
Parameter Description
/c{a,8,u} Optional, specifies encoding method, only required when exporting
a .csv file.
/ca : ASCII (Default)
/c8 : UTF-8
/cu : Unicode
/t{0,1} Optional, specifies whether or not to include millisecond
information.
Note
If the file name and path of "Dest file" is not specified in command line, the system will
export the file to the same path as "Src file".
You can also find the commands above by entering the file path of EasyConverter.exe in
Windows cmd.exe as shown in the following window.
Example: Enter “D:\EasyBuilder\EB Pro>EasyConverter.exe –h”
Example
To convert the file 20150919 stored in “D:\EasyBuilder\EB Pro\HMI_memory” from .dtl to .xls,
and then save the file to the desktop, you can use the following command lines.
Scene 1: If the .bat file is placed in the same directory as EasyConverter, then the command line
is:
EasyConverter.exe "D:\EasyBuilder\EB Pro\HMI_memory\20150919.dtl"
"C:\Users\Desktop\20150919.xls"
Scene 2: If the .bat file is placed in a different directory from EasyConverter, the directory to
store EasyConverter.exe. must be specified, and the command line will be:
"D:\EasyBuilder\EB Pro\EasyConverter.exe" "D:\EasyBuilder\EB
Pro\HMI_memory\20150919.dtl" "C:\Users\Desktop\20150919.xls"
26. EasyPrinter
This chapter explains the setup steps of EasyPrinter.
26.1. Overview
EasyPrinter is a Win32 application and can only run on MS Windows 7 / 8 / 10. It enables HMI
to output screen hardcopies to a remote PC via Ethernet. The following explains how to use
EasyPrinter.
Additionally, EasyPrinter can also be a backup server. Users can use Backup objects on HMI to
copy history files such as Data Sampling records and Event Log to a remote PC via Ethernet.
Please see the following illustration:
Users can make screen hardcopies with a Function Key object. The hardcopies will be
transferred to the Remote Printer Server via Ethernet and then printed out.
In EasyPrinter’s main menu, select [Options] » [Settings] and the following dialog box appears:
3. Under [Output settings] set appropriate values for left / top / right / bottom margins. (The
margins are all set to 15mm in the example.)
4. Under [Communication settings] fill in the [IP address] of the printer server according to
the settings in EasyPrinter. Set [Port] to “8005”, *User name+ to “admin” and *Password] to
“111111”.
5. Click [OK].
6. In EasyBuilder Pro main menu select [Objects] » [Button], select [Function Key], select
[Screen hardcopy] and set [Printer] to [MT Remote Printer/Backup Server].
7. Place the Function Key object in the common window (window no. 4) so that screen
hardcopies can be captured anytime when needed.
8. Compile and download the project to HMI. Press the Function Key object on the screen to
make a screen hardcopy.
Note
A PLC Control object can also be used to make screen hardcopies.
Alarm information cannot be printed via EasyPrinter.
EasyPrinter can only communicate with HMI via Ethernet. Please check that the HMI has
appropriate network settings.
Backup objects can upload historical data and Operation Log to remote backup server.
In EasyPrinter’s main menu, select [Objects] » [Settings] and the following dialog box will
appear:
Windows] if necessary.
3. Under [Communication settings] fill in the [IP address] of the printer server according to
the settings in EasyPrinter. Set the [Port] to “8005”, *User name+ to “admin” and
*Password+ to “111111”. (Note: These are default values.)
4. Click [OK].
1. In EasyBuilder Pro’s main menu, select [Data/History] » [Backup] and the following dialog
box appears:
2. Under [Source] select [Historical event log] (or [RW], [RW_A] if needed.)
3. Under [Backup position] select [Remote printer/backup server].
4. Under [Range] select [Today] and [All] (or other options if needed.)
5. Under [Trigger] select [Touch trigger].
6. Click [OK].
7. Place the [Backup] object in the common window (window no. 4), and users will be able
to make backups anytime when needed.
8. Compile and download the project to HMI. Press the Backup object on the screen to make
a backup of the history data.
Note
The Backup object can also be triggered by a bit address.
Users can arrange a Scheduler object, which turns a bit ON at the end of a week, to trigger
the Backup object to automatically back up all history data.
EasyPrinter main menu is divided into 5 parts as shown in the following figure:
Menu Description
File Enable Output
If selected, EasyPrinter processes the tasks one by one,
otherwise, EasyPrinter stores the tasks in memory.
Edit Edit
Edits screen hardcopy by setting [Orientation], [Scaling] and
[Margins].
Delete
Deletes the selected tasks permanently.
Select All
Selects all tasks from [Job List].
View Properties Bar
Shows or hide the Property Window.
Preview Bar
Shows or hide the Preview Window.
Download Bar
In [Download Progress] Window, the mode to display download
progress can be set by clicking the header of the [progress]
column as shown in the following figure:
Logger Bar
EasyPrinter can reserve up to 10,000 messages in Message
Window. If a new message comes in, the oldest message will be
deleted.
Options Please see the following page.
Note
EasyPrinter can only reserve up to 128 MB of task data in memory. If the memory is full,
any request coming in afterwards will be rejected. Users must either operate [Enable
Output] or delete some tasks to make room for new tasks.
Setting Description
Server Port number of the server socket
Sets the Ethernet port number to connect the HMI. Range: 1 ~
65535. Default: 8005.
User name / Password
Sets the user name and password to let only authorized HMIs send
requests to EasyPrinter.
Naming EasyPrinter uses different folders to store files (e.g. hardcopy
Convention bitmap files, backup files) from different HMI. There are two ways
for HMI to name the folders:
Folder Use IP address
EasyPrinter names the folder as [Prefix] + [IP address] after the
HMI at this IP address sends request.
In Hardcopy Tab:
Setting Description
Output Print out to
EasyPrinter prints out the hardcopy result with the specified
printers.
Save to files in
EasyPrinter converts the hardcopy result into a bitmap file and
saves it in the specified directory. The bitmap files are found at:
[Specified Path] \ [HMI Folder] \ yymmdd_hhmm.bmp
For example, when a hardcopy request is given at 17:35:00,
12/Jan/2009, the bitmap file will be named “090112_1735.bmp”.
And if there is another bitmap file generated within the same
minute, it will be named “090112_1735_01.bmp” and so on.
In Backup Tab:
Setting Description
Output Backup files in:
EasyPrinter stores the backup files to the specified
path.
The upper directory is the same:
[Specified Path] \ [HMI Name] or [IP address]
The lower directory:
For Event Log files:
\ eventlog\ EL_yyyymmdd.evt
For Data Sampling files:
\ datalog \ [File name of the Data Sampling] \
yyyymmdd.dtl
Note
System registers LW-9032 to LW-9039 can be used to specify HMI name.
When closing EasyPrinter, the following dialog will appear.
EasyPrinter provides a conversion tool to convert the uploaded Data Sampling and Event Log
history files to .csv files automatically. To do so, please select [Enable] under [Convert Batch
File] to make EasyPrinter convert the history files.
In the following illustration, the conversion is actually executed by EasyConverter. EasyPrinter
simply follows the criteria in Convert Batch File and activates EasyConverter with proper
arguments to achieve the conversion.
Note
EasyConverter is another Win32 application that converts history data into .csv or MS
Excel .xls files. Users can find it in the EasyBuilder Pro installation directory.
Users requesting this function must ensure EasyPrinter and EasyConverter are placed in
the same directory.
1: EasyConverter /c 20090112.dtl
Note
“$(Pathname)” in the second argument stands for the full path name of the file. In the
previous case, EasyPrinter replaces it with:
[Specified Path] \ [HMI Folder] \ [datalog] \ [Folder name of the Data-Sampling object] \
20090112.dtl
EasyPrinter interprets the Convert Batch File in line basis, that is, each line forms a
criterion.
Any two arguments should be separated by a comma.
Every argument should be put in double quotes.
Do not put any comma inside an argument.
Supported parameters for batch file: $(PathName), $(HmiName), and $(IP) which stand
for file path, HMI name, and HMI IP address.
When [Start EasyPrinter when I start Windows] option is selected, please add in the file
path where EasyConverter is placed, which is usually the EBPro installation directory in
EasyPrinter examines criterion in descending order every time a file is uploaded. Once the file
meets a criterion, it stops the examination and starts over for the next file. Therefore, users
should place the criterion with a wider range downward in the Convert Batch File and place the
more specific criteria upward. For example:
"evt", "EasyConverter /c $(Pathname)"
"dtl", "EasyConverter /c $(Pathname)"
"dtl", "EasyConverter /c $(Pathname)", "192.168.1.26"
"dtl", "EasyConverter /c $(Pathname)", "my_HMI_01"
"dtl", "EasyConverter /c $(Pathname)", "my_HMI_02"
"dtl", "EasyConverter /s Voltage.lgs $(Pathname)", "*", “Voltage"
27. EasySimulator
This chapter explains how to use EasySimulator.
27.1. Overview
EasySimulator allows a project to be run in the On- or Off-line simulator without having to start
the simulator from EasyBuilder Pro. To do this, please prepare the required files and follow the
steps to setup EasySimulator.
Note
The required files can be found in the EasyBuilder Pro installation directory. Please install
EasyBuilder Pro first then copy the required files to your PC.
If EasySimulator.exe is not activated, please check if the installation directory is correct.
If the “Failed to open project file: No such file or directory” dialog box appears, this
indicates that there is an error of the .exob file path, please check again.
28. EasySystemSetting
This chapter explains how to use EasySystemSetting.
28.1. EasySystemSetting
EasySystemSetting allows updating hardware system settings by using a SD card or USB drive.
EasySystemSetting can be opened by clicking EasySystemSetting.exe under EasyBuilder Pro
installation directory, or clicking [Tool] » [SystemSetting] Editor in EasyBuilder Pro. The feature
is available for HMI OS version 20131106 or later.
Setting Description
File [New] Restore default settings.
[Load] Import and edit an existing .conf file.
[Save] Export the configured data to a .conf file.
Language Change the language used in EasySystemSetting.
Help [About] Shows version information of
EasySystemSetting.
iP/iE/XE/mTV/eMT
Since the description of system settings can be found in Chapter 4, the following introduces
only the General tab.
Setting Description
Current Local Please enter the password used to log in System
Password
Parameter Settings.
General [HMI name] Enter HMI name.
[Back light] Adjust LCD backlight brightness.
[Time offset] Set the HMI RTC with offset.
For example, if the current RTC time is 15:00:00, and
the time offset is set to -3, the updated time will be
12:00:00.
[Portrait mode] Set the display mode.
cMT Series
Since the description of system settings can be found in Chapter 4, the following introduces
only the General tab.
Setting Description
Current Local Please enter the password used to log in System
Password
Parameter Settings.
General [HMI name] Enter HMI name.
[Back light] Adjust LCD backlight brightness.
[Time offset] Set the HMI RTC with offset.
For example, if the current RTC time is 15:00:00, and
the time offset is set to -3, the updated time will be
12:00:00.
[Portrait mode] Set the display mode.
[Volume] Adjust sound volume.
The following explains how to update HMI IP address by using SD card or USB drive.
iP/iE/XE/mTV/eMT Series
5. Click [Build] to generate the download file to be saved into the external device.
6. Insert the external device that stores the download file to HMI and the Download/Upload
dialog box appears.
7. Press [Load System setting] and then the [Download Config Settings] message appears.
The project file will be updated after finishing system settings.
cMT Series
5. Click [Build] to generate a compiled file and a system setting file with the same filename
(EBProject1.cxob & EBProject1.conf). Save these files in the same directory in an external
device.
6. Insert the external device to HMI and the Download/Upload dialog box appears; click
Download. Browse for the project file, enter the password, and then click Download.
Note
System setting file can be downloaded using Utility Manager or EasyBuilder Pro.
29. Pass-through
This chapter explains how to set up Pass-through mode.
29.1. Overview ..................................................................................................................... 29-2
29.2. Serial Pass Through Ethernet Mode ........................................................................... 29-2
29.3. Serial Pass-Through COM Port Mode ......................................................................... 29-7
29.4. Pass-through Control .................................................................................................. 29-9
29.5. SIEMENS S7-200 PPI and S7-300 MPI Pass-through Settings ................................... 29-10
29.6. Ethernet Pass-Through ............................................................................................. 29-15
29.1. Overview
The Pass-through feature allows PC applications to control PLC via HMI. In this case the HMI is
an adaptor.
The Serial Pass-Through feature provides two modes:
Ethernet
COM port
Click [Pass-through] in Utility Manager to open the setting dialog box.
Before using [Ethernet] mode, please check if Weintek virtual serial port driver has been
installed.
1. Open Utility Manager to check if the driver has been installed. If it shows [Please install
weintek virtual serial port driver], please click [Install].
2. If the dialog below pops up during installation asking for verification, please click
[Continue Anyway].
3. When finished, the [Virtual COM Port (PC <-> PLC)] field displays the virtual COM port
used.
2. To change to another COM Port Number, double-click Virtual Serial Port and open [Port
Settings] » [Advanced].
2. To uninstall the Virtual Serial Port, select it and click the [Uninstall] button in the Device
Manager toolbar.
2. To update virtual serial port driver software, select Virtual Serial Port and click the
[Update Driver Software] button in the Device Manager toolbar.
3. Browser for the directory of the driver, and then click [Next] to update the driver.
After installing the virtual serial port driver, follow the steps to use Ethernet mode of
pass-through feature.
1. Set the IP address of the HMI connected with PLC.
2. Set the communication port and the serial port that connects HMI with PLC.
3. Click [Apply], to apply the settings.
4. When running PC application, set COM port to the used virtual serial port. For example, in
Mitsubishi application, if the virtual serial port is COM 3, set [PC side I/F Serial setting] »
[COM port] to COM 3.
5. With the correct configurations, upon execution of PLC application on PC, HMI will be
There are two ways to enable [COM port] mode of Pass-through feature.
Using Utility Manager.
Using system registers.
LW-9901: pass-through source COM port (1 ~ 3: COM 1 ~ COM 3)
LW-9902: pass-through destination COM port (1 ~ 3: COM 1 ~ COM 3)
Setting Description
HMI IP HMI IP address.
Get HMI Communication Reads the settings of Source and Destination COM
Parameters port. Click this button to update the communication
parameters.
Source COM Port (PC->HMI) / The communication parameters of Source and
Destination COM Port Destination COM Port are displayed.
(HMI->PLC) The settings will be applied when [Start
Pass-through] is clicked.
Baud rate / Source and Destination COM Port parameters should
Data bits / be set to be same. Since [Source COM Port]
Parity / connects PC, select RS-232 mode in most situations;
Stop bits [Destination COM Port] connects PLC, so the setting
depends on the PLC type, and can be one of RS-232,
RS-485 2W, or RS-485 4W.
Note
When pass-through feature is no longer needed, click [Stop Pass-through] to stop it. HMI
will then resume communication with PLC.
Mode Description
Unknown The work mode before reading the settings of HMI.
Normal The work mode after reading the settings of HMI.
The HMI does not accept any data form the Source
COM Port.
Pass-through The work mode is “Pass-through.” the PC connected
via Source COM Port can control the PLC connected
via Destination COM Port.
Note
To stop Pass-through, change the values of LW-9901 and LW-9902 to 0.
For some models (eMT, cMT…etc), COM1 RS232 RTS/CTS share the same pins (Pin no. 7
and 8) with COM3 RS232 RX/TX. When COM3 is not used in the device list, Pin no. 7 and 8
is used for COM1 RS232. To activate Pin no. 7 and 8 for COM3 RS232 RX/TX, please add
COM3’s Master Slave driver or Free Protocol driver into the device list in System
Parameter Settings.
Generally speaking, during pass-through, HMI closes its connection with the PLC until the
pass-through mode ends. However, certain PLC drivers allow communications between HMI
and PLC in pass-through mode.
To see whether a driver supports concurrent communication, see “PLC Connection Guide”.
Pass-through control is controlled by LW-9903. The following table shows valid LW-9903 values
and their features.
LW-9903 Description
0 (Default) Normal Mode. Communications between HMI
and PLC in pass-through mode is allowed.
2 Stop Mode. No communications between HMI
and PLC in pass-through mode
Note
Due to speed limitation, users may wish to set LW-9903 to 2 to enhance the speed of
program download/upload in pass-through mode.
EasyBuilder Pro supports SIEMENS S7-200 PPI and S7-300 MPI pass-through feature.
Launch EasyBuilder Pro, go to [System Parameter Settings] » [Device list], and then add
SIEMENS S7-200 PPI or S7-300 MPI device. Click [Pass-Through Settings] and the following
dialog box appears.
Setting Description
Disable pass-through Select this check box to disable pass-through
mode. By default this check box is not selected.
Designate client IP Designate client HMI IP address used in
pass-through mode.
Confirm that the HMI used in pass-through communication is started and connected to the
network. Launch STEP 7 Micro/Win, open [Communications] dialog box, and then search for
the HMI IP address. Connect the HMI to communicate.
1. In Utility Manager run [Pass-Through], in [HMI Mode] select “MPI ISOTCP” to install virtual
serial port driver. Set the HMI IP address and the COM port that connects PLC, and then
start Pass-through.
2. In STEP 7, go to [Option] » [Set PG/PC Interface]. Confirm that the interface used is “PC
Adapter(MPI)”, and then click [Properties]. Select the same COM port as the virtual serial
port. In the example COM 4 is used.
3. When finished, STEP 7 can be used to Upload / Download PLC program via HMI.
29.5.3.2. Ethernet
1. In STEP 7 go to [Option] » [Set PG/PC Interface]. As shown in the following figure, select
“TCP/IP(Auto) -> the name of the network interface card”.
2. Go to [PLC] » [Update station to PG], in [Target Station] select [Can be reached by means
of gateway]. From left to right columns enter MPI, PLC station number, S7 Subnet ID, and
HMI IP address. When finished, S7 can upload PLC program to STEP 7 via HMI.
System registers from LW-10850 to LW-10864 are used to set or indicate pass-through status of
SIEMENS devices.
For more information see “22 System Registers”.
During pass-through mode, LW-10863 indicates errors and LW-10864 displays error code. The
following table lists the error codes, the description of each code, and the possible reason.
(The client usually refers to STEP 7 PLC program)
Error Code Description Possible Reason
0 Successfully executed
1 Prohibit client from connecting HMI is already running
HMI pass-through and won’t accept any
request from other client.
2 Prohibit client from connecting When LW-10850 is set to 1, the
HMI client IP for connecting HMI is
different from the IP specified in
LW-10858 ~ LW-10861.
3 Invalid communication Incorrect setting in LW-10853.
protocol
4 Invalid PLC station number The PLC station number specified in
LW-10852 does not exist.
5 Delayed communication PLC connection failure.
6 Busy communication PLC does not accept pass-through
request, please confirm PLC
settings.
7 Invalid pass-through request Environment setup failure.
Click the icon to download the demo project. Please confirm your internet connection before
downloading the demo project.
Ethernet Pass-through feature is available when both PLC and PC connect to HMI via Ethernet.
Ethernet Pass-through allows running the application on PC to control PLC through HMI. This
feature is only supported on cMT Series models.
1. Launch Utility Manager, select cMT Series, and then open Analysis & Testing tab in which
Ethernet Pass-through can be found.
Setting Description
HMI IP Enter HMI’s IP address.
HMI port no. Enter the port number used to connect to HMI.
By default the port number is 8000.
Passthrough IP Enter the IP address of the device to be
controlled under Ethernet Pass-through mode.
Status After filling in the communication parameters,
click [Connect] to see the connection status.
Note
One HMI can only use one Ethernet Pass-through IP.
Ethernet Pass-through feature is disabled when system register LB-9044 (disable remote
control) is ON.
30.1. Overview
The copyright of program design must be protected. This chapter discusses how to protect the
projects by settings in EasyBuilder Pro.
Note
The protected projects cannot be decrypted by the factory since they are encrypted by
users, therefore, please remember your password.
After editing a project (.emtp), users can compile the project to .exob format. The .exob file can
be downloaded to HMI. Password can be set to protect the .exob file in [EXOB password] when
compiling. (Password range: 0 ~ 4294967295)
A password will be required when attempting to decompile the .exob file back to .emtp file. If
the password is entered incorrectly for three times, please restart EasyBuilder Pro.
After a project (.emtp) is done editing, users can compile the project to .exob format. The .exob
file can be downloaded to HMI. If [Decompilation is prohibited] check box is selected when
compiling, the setting in [EXOB password] will be ignored. Furthermore, the .exob file cannot
be decompiled to .emtp file.
EasyBuilder Pro provides a system reserved register [LB-9033]. When this register is set ON,
the .exob file cannot be uploaded. If attempting to upload an .exob file with this register set
ON, the file obtained after uploading is 0 byte, and cannot be decompiled. Please reboot HMI
for the changed setting to take effect.
If the [Enable] check box is selected under [Project protection], please set the [Project key]
(password range: 0 ~ 4294901750). System registers LW-9046 ~ LW-9047 (32-bit) can be used
to set the [HMI key] for HMI. The values in LW-9046 and LW-9047 cannot be read or written by
a remote device. The .exob file obtained after compiling can only be executed on HMI when
[HMI key] and [Project key] match. If the keys don’t match, LB-9046 is set ON. To change [HMI
key], please reboot HMI.
Note
When [HMI key] and [Project key] don’t match, HMI and PLC cannot communicate.
Click the icon to download the demo project. Please confirm your internet connection.
After a project (.emtp) is done editing, a password can be set to protect the .emtp file. In
[System parameter] » [Security] tab, select [Enable] check box under [Project password] and
click [Settings] (password range: 1 ~ 4294967295).
The password will be required when attempting to open the .emtp file.
Note
When using “Window Copy” function, if the source file is protected by EMTP password,
please enter the correct password for the system to execute window copy.
31.1. Overview
Memory Map communication protocol is similar to IBM 3764R, and it is used when the
memory data transferred seldom between two devices. When setting the two devices, one is
set as Master, and another is Slave. Generally, Master and Slave do not communicate unless
the data in the assigned address has changed. Once the data is synchronized, the
communication will stop. The purpose of Memory Map is to keep the consistency of the
assigned part of data between two devices (Master and Slave).
The corresponding addresses of Master and Slave devices should have the same property as
MW (MB) address type. The size of MW (MB) in HMI is 10,000 words.
MB and MW indicate the same area of memory, for example, MB0~MBf correspond to the bits
of MW0, MB10~MB1f correspond to MW1, as shown in the following table:
Device Type Format Range
MB DDDDh DDDD:0~4095 h:0~f(hex)
MW DDDD DDDD:0~9999
When using Memory Map communication protocol, the Master and Slave must have the same
communication parameters. The wiring is shown in the following table:
(the # will be distinct depends on the type of PLC or controller.)
COM Port RS-232
Device Master Slave
Pin Mapping TX(#) RX(#)
RX(#) TX(#)
GND(#) GND(#)
Note
Flowchart 2 works for Slave but not Master.
STX: Start of Text, ACK: Acknowledge, NAK: Negative Acknowledge
The format of the commands that controls MW are listed in the following table:
MW Commands
Offset(byte) Format Description
0 0x01 The operating sign to MW
1 0x## Address (Low byte)
2 0x## Bit Address (High byte)
If the address includes 0x10, insert another 0x10
after it and all offsets after that are increased by 1.
For example: 0x10, 0x04 will become
0x10,0x10,0x04
3 0x## Number of sending bytes (To control a word, the
number of bytes must be even). If the number of
bytes is 0x10, insert another 0x10 after it and all
offsets after that are increased by 1.
4 to 4+n-1 0x##(L),0x##(H) The address that the first and second bytes
0x##(L),0x##(H) correspond to is the initial address. “n” is the
… number of bytes. If the data includes 0x10, insert
another 0x10 after it and the “Number of sending
bytes” (offset 3) remains the same, but n = n + 1.
Same thing applies to other 0x10 data.
4+n, 0x10 End sign
4+n+1 0x03
4+n+2 0x## The checksum. Calculate XOR from all above.
Example 1
If Master sets the data of MW-3 to 0x0a, Master will build communication with Slave
immediately due to the data changed, so Slave will update its MW-3 to 0x0a, the procedure is:
1. Master sends STX(0x02h).
2. Slave receives STX(0x02h) from Master, and sends ACK(0x06h) to Master.
3. Master receives ACK(0x06h) from Slave.
4. Master sends 0x01,0x03,0x00,0x02,0x0a,0x00,0x10,0x03,0x19, as shown in the following
table:
31.5. Settings
The following explains how to connect two HMIs using Memory Map protocol.
Note
If the type of these two HMIs are different, please create different project files, or, after
setting the first HMI, directly change to the type of the second HMI in [Home] » [System
Parameters] » [Model], and then compile and download the project to the second HMI.
Note
Memory Map in MT500 is divided into [Memory Map_Master] and [MemoryMap_Slave];
please refer to the relevant manual.
For eMT3000 and MT8000 Series, select [Memory Map] in the PLC type setting.
[Data bit] must set to 8 bits.
All the settings of the two HMIs must be the same.
Add two objects in window no. 10, a Toggle Switch and a Multi-state Switch:
Create a Toggle Switch Object as shown in the following steps.
1. Set the [PLC name] of read address and write address to [Memory Map].
2. Set [Address] to MB-0.
3. Set [Switch style] to [Toggle]. (The picture and label of the object can be selected).
When pressing the button in one of the HMIs, the status of another one will also be changed.
The way to connect a HMI with a controller is similar to the example above. The data in the
same addresses of the two devices are kept identical.
32.1. Overview
Apart from saving the history data from an HMI to your PC by using SD card, USB disk or
EasyPrinter, the FTP Server can also do the backup. After downloading a project to the HMI,
the FTP Server can be used to backup or update the history data and the recipe data, but not
able to delete those data. Please disconnect from FTP before removing an SD card or USB disk,
otherwise these external devices may not work when next time inserted.
2. On PC, enter the HMI IP address: ftp://192.168.1.123/ (example), then log in by the user
name: uploadhis, and enter the HMI [history upload password] (if not changed, the
default password is 111111). Or, directly enter “ftp://uploadhis:111111@192.168.1.123/”
3. After entering the IP address,the ftp address: ftp://192.168.1.123 and its folders are
shown as below:
Note
Since the recipe data is automatically saved per minute, after updating “recipe.rcp” or
“recipe_a.rcp”, the HMI must be rebooted within one minute or the saving will be failed.
The HMI can be rebooted by the system registers: [LB-9047] (reboot HMI) and [LB9048]
(reboot HMI protection). You can set [LB-9048] ON first, and then set [LB-9047] ON to
reboot the HMI.
33. EasyDiagnoser
This chapter explains how to use EasyDiagnoser.
33.1. Overview
EasyDiagnoser is a tool for detecting the error in the communication of HMI with PLC.
33.2. Configuration
Or, during On-line simulation, right click and select [Run EasyDiagnoser] to open
EasyDiagnoser. EasyDiagnoser will monitor the communication between PC and PLC.
3. When finished, click [OK], EasyDiagnoser dialog box is shown in the following figure.
Item Description
File Save As
The communication data can be saved as .xls file which can be
opened by Excel.
Exit
Exits current file.
View Device Bar displays Device window.
Package Bar displays Package window.
Logger Bar displays Logger window.
Output Bar displays Output window.
Options Toolbars displays toolbar icons of Device Bar, Package Bar,
Logger Bar, and Output Bar.
In the activity area, users can observe the communication between HMI and PLC.
Item Description
Command Read + Write
Displays Read and Write information in activity area.
Read
Displays only Read information in activity area.
Write
Displays only Write information in activity area.
Device All
Displays the information of Local HMI and PLC.
If command is set to Read + Write, the Read and Write
information of Local HMI and PLC will be displayed in the
activity area.
If command is set to Read, the Read information of Local
HMI and PLC will be displayed in the activity area.
If command is set to Write, the Write information of Local
HMI and PLC will be displayed in the activity area.
Local HMI
Displays the information of Local HMI.
If command is set to Read + Write, the Read and Write
information of Local HMI will be displayed in the activity
area.
If command is set to Read, the Read information of Local
HMI will be displayed in the activity area.
If command is set to Write, the Write information of Local
HMI will be displayed in the activity area.
PLC
Displays the information of PLC.
If command is set to Read + Write, the Read and Write
information of PLC will be displayed in the activity area.
If command is set to Read, the Read information of PLC
will be displayed in the activity area.
If command is set to Write, the Write information of PLC
will be displayed in the activity area.
Station Selects the PLC station number to be displayed.
(This function is disabled when selecting [All] in [Device]).
Address Selects all or a preferred address type to be displayed.
Type (This function is disabled when selecting [All] in [Device]).
Range Sets the range of address types.
(This function is disabled when selecting [All] in [Device]).
Capture Click to start/stop capturing the communication message.
Error Please see “33.4 Error Code”.
Item Description
Package ID Uses the Package ID to check the error of the object.
Device Displays HMI and PLC type.
Station Displays PLC station number.
Index Displays the index register numbers of the objects.
Address / Displays the device type and the size of the package (in
Length words).
Item Description
Object Check the object in the package.
Screen The window in the project where the object is placed.
ID The ID number of the object.
Address The address of the object.
Note
Click [Package ID], the device station number will be displayed in the 3rd column.
Double click [Package ID] then select [object] to display the position of the object.
For example, select [Numeric Input] and the screen no. displays 10.
This shows that this object is in window no. 10 in the project and will be marked with pink
frame on HMI as shown in the following figures
33.3.4. Devices
With Macro Trace function, the executing status of Macro can be seen.
In the illustration below, for [ID 1, Ln 7] and [ID 1, Ln 12]
ID 1 represents Macro name.
Ln 7 and Ln 12 represent that data are in the 7th and 12th line of Macro.
In the activity area, the reason of error can be found through the error codes listed below.
Error Code Cause of Communication Error
0 Normal
1 The device is busy and not yet ready to process a command.
2 Communication error due to unexpected reason.
3 The device does not exist.
4 The device using the specified station number does not exist.
5 Incorrect address format.
6 Read/Write unsupported address.
7 The driver of the device does not exist.
8 The COM port does not exist.
9 Incorrect IP address or unable to connect the device.
10 Checksum error.
11 Unidentified command.
12 Ignore
20 The USB device is improperly connected.
21 The CAN Bus device is improperly connected.
22 No reply from the device.
23 Insufficient data read from the device before timeout.
24 The Conversion Tag used by the object does not exist or the content is incorrect.
25 HMI is not accepting any commands from a remote HMI.
251 Read/Write exceeding number of words from/to the register of the MODBUS device.
252 MODBUS device replies incorrect data format.
253 MODBUS device checksum error.
When error occurs, the error message will be shaded red as shown in the following figure.
Users can drag or use the smart docking icons in editing window to place the windows to a
desired position.
Note
EasyDiagnoser doesn’t support Siemens S7/1200 (Ethernet) and Allen-Bradley Ethernet/IP
(CompactLogix/ControlLogix) – Free Tag Names since both of the PLCs use tag.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
34.1. Overview
4. In the object setting dialog, select the PLC type, and select a controller tag.
2. Enter the name of the data type. [Description] field can be left blank. To add a member,
click [Add].
3. Enter the name and the data type then click [OK].
4. After adding all members, click [OK]. The new data type will be added to the list of data
types.
5. After changing the name or description of a data type, click [OK] to update.
1. When adding a patch of members, this function allows users to add multiple data in one
step. First, click the [Paste] button.
2. Type in data name, and then enter data type, separated by Space key or Tab key. It is
recommended that data be directly copied and pasted from RSLogix5000 to avoid errors.
Users can click [Sample] for a formatting example.
3. Copy the needed Name and Data defined in RSLogix such as one shown above. Paste the
content in the editing window, as shown in the following figure.
4. Click [OK] to finish setting, and return to the main menu to check the added data.
34.6. Module-Defined
The exported CSV file will not list tags that are associated with module-defined structure.
Please define the tags manually by following the steps below.
2. In Structure Editor, right click [Module-Defined], and then click [New Data Type]. In [New
Data Type] » [Name], enter the Module-Defined name.
3. Click [Paste], and paste the data type information in the dialog box.
4. Select a member and then click [Edit]. Since the data of the modules allows bit-wise
operation, [Binary Access] should be selected, then click [OK] to return to Structure Editor.
35. EasyWatch
This chapter explains how to use EasyWatch.
35.1. Overview
EasyWatch allows users to monitor the HMI or the PLC address values via Ethernet from the PC,
or to invoke the Macro for debugging, remote monitoring, and controlling.
For example, In EasyBuilder Pro, after creating a Numeric Input Object, you can set its address
to LW-10, and set the same address in EasyWatch. The value of LW-10 will be shown in
EasyWatch when successfully connecting.
Note
When the system register [LB-9044 (disable remote control)] or [System Parameter
Settings] » [System Setting] » [Prohibit remote HMI connecting to this machine] is enabled,
the feature of monitoring in EasyWatch will be unavailable.
35.2. Configuration
Item Description
File New: Opens a new EasyWatch file.
Open: Opens an existing EasyWatch file.
Save: Saves an EasyWatch file.
Save As: Saves an EasyWatch file to .ewt format.
Item Description
Setting Description
Name Enters an object name which is an unique name.
Read Only: If an object is set to read only, its address value
can’t be edited.
1. Select a target HMI. If the target HMI does not exist, click [Open HMI Manager] and click
[Add] to search the HMI for adding.
Or, select [Use Local HMI] checkbox to use the project on PC as a monitoring device.
2. Select a target HMI or PLC. If one HMI is selected, you can directly control the local HMI.
If one PLC is selected, click [I/F Setting] and select [Com Port] to choose a COM port.
Or, click [I/F Setting] and select [Ethernet] to set the IP address.
3. Set the object address and its address type for being monitored.
4. When a Word address is selected, set the address type to [Numeric] or [String].
[Numeric]: Select the data format of the monitor address.
[String]: Select the data format from [ANSI], [UNICODE], and [High/Reversed]. Set [No. of
Word] for reading the number of WORD.
5. Set the update interval of the monitor object. The range can be set from 500ms to
5000ms.
Setting Description
Name Enters an object name which is an unique name.
HMI Selects a HMI to monitor.
Macro Type The ways to execute the Macro included Direct Active and
Cycle Active.
Macro Each Macro Object can execute multiple macros. The time
interval between the executions of two macros can be
changed.
1. Select a target HMI. If the target HMI does not exist, add a new device, see “35.3.3 Steps
to Add a New Monitor”.
2. Set Active Type under Macro Type to [Direct Active] or [Cycle Active].
[Direct Active]: Directly executes Macro once.
[Cycle Active]: Set the interval of executing Macro.
For example, if [Cycle Active] is set to 5 seconds, when executing a macro, the next time
to execute the macro object will be 5 seconds later.
[Sleep]: Set the time interval between the executions of two Macros. Click [Add] or
[Replace] to add or replace the Macros from the list.
Setting Description
Add Select a target HMI. If the target HMI does not exist, add a
new device, see “35.3.3 Steps to add a new monitor”.
Modify Modify the settings of the HMI.
Remove Remove the HMI.
Setting Description
Name Displays the object name. The small icons of the names
are for users to identify the objects.
Status Displays the status of the objects: [Connecting],
[Connected], and [Stop]. If HMI is not connected or Port
No. is incorrect, the error message “HMI Not Found” will
appear. For Monitor Objects, if the address is incorrect,
“Address Error” message will appear.
HMI / PLC Displays the information of HMI / PLC that is currently
operated by the objects.
Address For Monitor Objects, the relevant address setting is
Address Type displayed.
Update Cycle Set the update interval of the monitor object.
Value For Monitor Object, if the status shows [Connected], the
current HMI address value will be displayed. Modifying
the value is also available when the Read-Only checkbox
is unselected. For Macro Object, if set to [Direct Active],
there will be an [Active] button in this column for clicking
to directly execute a macro.
Renaming the page: Double-click on the page name and enter a new name.
Positioning the column headers: Drag and drop the column headers to the desired
location.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
36.1. Overview
Administrator Tools allows storing the data of [User Accounts], [USB Security Key], [e-Mail
SMTP Server Settings], and [e-Mail Contacts] to USB. With EasyBuilder Pro user accounts and
e-Mail function, the data built can be imported to HMI by Function Key object set to “Import
user data / Use [USB Security Key]”. The portability and convenience is greatly improved.
Launch Administrator Tools, select the check boxes in [Save] column to enable the selected
functions introduced in this chapter.
Select [User Accounts] check box and complete the relevant settings.
Settings Description
Secret Select the check box to set secret accounts.
User Name Sets User Name. *Note 1
Password Sets User Password. *Note 1
Class A to L Sets user privilege.
Add Adds a new account. *Note 2
Remove Deletes an existing account.
Import Imports user account data.
Export Exports user account data.
Effective Time If [Restrict the using terms] is not selected, it is
available to import data anytime.
If select [Restrict the using terms] check box, and set
an effective time period, the importing of data to
HMI can only be done in the time limit specified.
When time expired, data cannot be imported, please
reset the data with this tool again.
Save to USB Saves data to USB. To save to a specific folder, click
“ ” button and select “Folder”.
Note
1. Only allows letters, numbers, “-” or “_”, case-sensitive.
2. A maximum of 127 user accounts can be added.
1. Click [Add] to create a new account. Click [Remove] to delete the selected account. Select
[Secret] check box to define the account as a secret user. Type in [User name] and
[Password] and check the privilege from [Class A] to [Class L] check boxes.
2. To back up the data, click [Export]. Click [Use Password] to protect the data, next time
when click [Import] to import the backup data, a password is required.
3. If under [Effective Time], the [Restrict the using terms] check box is selected, only during
the specified time period can the users import account data to HMI. If not selected, users
4. When finished, click [Save to USB], select the location of USB and then click [Create]. If
successful, the “Generated successfully!” message is shown.
The following steps explain how to create a Function Key to import data in EasyBuilder Pro.
1. Select “Import user data/Use [USB Security Key]” in Function Key setting dialog box, and
then click [Settings].
2. Under [Function mode] select [Import user accounts]. Select the device that stores the
data in [Data position]. Select [Overwrite] under [Account import mode]; HMI will only
store the account data imported this time. Select [Append], HMI will store the accounts
imported this time and those already exist. Select [Delete file after importing user
accounts] check box to delete the source files after importing.
Click the icon to download the demo project that explains how to import user accounts by
With the predefined user login information, the USB Security Key can be used to log in directly.
Settings Description
User Name Sets User Name. *Note 1
Password Sets User Password. *Note 1
Confirm Confirms User Password.
Effective Time Logs in using USB Security Key during the specified
time period. If not specifying Effective Time, log in at
any time.
Save to USB Saves data to USB.
Note
1. Only allows letters, numbers, “-” or “_”, case-sensitive.
1. Type in the existing user name and password. Type the password again in [Confirm] field
for password confirmation.
2. Under [Effective Time] if [Restrict the using terms] check box is selected, only during the
specified time period can users log in using USB Security Key. If not selected, users can log
in using USB Security Key at any time.
3. When finished, click [Save to USB], select the location of USB and then click [Create]. If
successful, the “Generated successfully!” massage is shown.
The following steps explain how to create a Function Key to enable USB Security Key in
EasyBuilder Pro. By touching the object, the USB Security Key is enabled for login.
1. Select “Import user data/Use [USB Security Key]” in Function Key setting dialog box, and
then click [Settings].
2. Under [Function mode] select [Use USB Security Key to Login]. Select the device that
stores the data in [Data position].
Click the icon to download the demo project that explains how to enable login using USB
Security Key by using Function Key. Please confirm your internet connection.
Select [e-Mail SMTP Server Settings] check box to complete the relevant settings.
2. When finished, click [Save to USB], select the location of USB and then click [Create]. If
successful, the “Generated successfully!” massage is shown.
Settings Description
Add Adds a new contact. *Note1
Remove Removes a contact.
No. of groups The number of groups. *Note2
Current group The name of current group. *Note3
Description Group description.
Import Imports contact information.
Export Exports contact information.
Save to USB Saves data to USB.
Note
1. A maximum of 256 contacts can be added.
2. A maximum of 16 groups can be added. (Group A to Group P)
3. From Group A to P, when [No. of groups] is “1”, only Group A will exist, when added to
“2”, Group A and Group B will exist, and so on.
4. UTF-8 characters are allowed in contact names.
3. Press the up or down arrows of the spin box of [No. of groups] to add new groups. If add
to “2”, Group B can be found. Repeat step 1 and step 2 to add contacts into groups.
4. After adding all the e-mail contacts, click [Export] to back up the data for future use and
modification. Next time when needed, click [Import] to import the backup data.
5. When finished, click [Save to USB], select the location of USB and then click [Create]. If
successful, the “Generated successfully!” massage is shown.
36.5.3. Steps to Import e-Mail Settings and Contacts Using EasyBuilder Pro
The following steps explain how to create a Function Key to import e-Mail contacts.
1. Select “Import user data/Use [USB Security Key]” in Function Key setting dialog box, and
then click [Settings].
2. Under [Function mode] select [Import e-mail settings and contacts]. Select the device that
stores the data in [Data position].
Click the icon to download the demo project that explains how to import e-mail settings
and contacts by using Function Key. Please confirm your internet connection.
37.1. Overview
To access the data of the PLC connected to HMI with SCADA software (Supervisory Control and
Data Acquisition), the former way was to transfer PLC data to the HMI’s local address first, and
then use MODBUS TCP/IP protocol on PC to read HMI local address to get PLC data. Now by
using MODBUS TCP/IP Gateway provided by EasyBuilder, the mapping of MODBUS address to
PLC address can be defined first, and then one can directly use MODBUS TCP/IP protocol to
access PLC data.
3. Click [Address Mapping Tables] button and the following default tables will be displayed.
Modify the tables if needed or add new tables.
4. For example, to access the data in the 50 consecutive registers of FATEK FB Series PLC
starting from register D-0, configure the settings as shown in the following figure.
(1) Select the device type of the registers to be mapped, in the example select [Word].
(2) Select the mode to access the data in the mapped register, in the example set to
[Read/Write].
(3) Set the start address of MODBUS, in the example set to “4x-1”.
(4) Set the start address of the mapped PLC, in the example set to “D-0”.
(5) Set the range size of address mapping, in the example set to “50”.
(6) If needed, select high/low byte swap (AB->BA) or high/low word swap
(ABCD->CDAB).
The above figure shows that MODBUS Server 4x-1 ~ 4x-50 registers are mapped to FATEK
FB Series PLC D-0 ~ D-49 registers.
5. When finished, the data of FATEK FB Series PLC D-0 ~ D-49 registers are now accessible by
using MODBUS TCP/IP protocol to send read / write command to 4x-1 ~ 4x-50 registers.
UDP is not supported when using the MODBUS TCP/IP Gateway feature.
This feature is only supported by MODBUS Server (Ethernet) interface.
System register LW-9288 is used to indicate if data transfer has been correctly executed.
The following error codes represent:
Value Definition
0 Normal
1 Read or write the register that is not defined in the
Address Mapping Table.
2 Read or write a range of registers that is not within
the range defined in a single Address Mapping Table.
(Or, read / write a register that is defined in other
Address Mapping Table.)
3 The command format does not follow MODBUS
TCP/IP protocol.
4 Modify a read-only register.
5 Read a write-only register.
6 Cannot get the correct reply from PLC within the
specified time range.
7 Use a function code that is not supported by
MODBUS Server.
The defined register range must not overlap between different mapping tables.
If [MODBUS TCP/IP Gateway] is enabled, EasyBuilder will cancel the original mapping
between MODBUS Server and HMI register. That includes:
(1) 0x, 1x mapped to LB
(2) 3x, 4x mapped to LW, RW
Therefore, to access data in LB or LW register via 0x, 1x, 3x, 4x, configure the Address
Mapping Table again. The following figure is an example.
SCADA can only read / write the register defined in one Address Mapping Table at one
time, that is, the same MODBUS command cannot access the data in the registers defined
in different Address Mapping Tables.
As shown in the above figure, in Mapping Table 1 set MODBUS 4x-1 to access register
D-200, table size 99 words, and in Mapping Table 2 set MODBUS 4x-100 to access register
R-0, table size 100 words. If using SCADA to send a command to read from 4x-1 to 4x-199,
table size 199 words, since the range spans two different tables, the command will not be
accepted by HMI. Instead, access the data with two separate commands (4x-1~4x-99 and
4x-100~4x-199), each reading only from one table as shown in the following figure.
38. EasyDownload
This chapter explains how to setup EasyDownload.
38.1. Overview
EasyDownload allows downloading the project data file built in EasyBuilder Pro via Ethernet or
USB cable. In EasyBuilder Pro main menu select [Project] and then select [Build for SD
card/USB disk download] to build the data file before running EasyDownload.
38.2. Configuration
Settings Description
Download data folder Browse for the project data file to download.
RW Browse for the recipe data (.rcp) to download.
RW_A Browse for the recipe data (.rcp) to download.
Recipe database Browse for the recipe database (.db) to download.
Reboot HMI after If selected, HMI will reboot after downloading.
download
Reset recipe
Reset recipe database
Delete startup screen
Reset event log The selected files will be erased before downloading.
Reset data log
Reset Operation Log
Download the file to HMI via USB cable. Please make
USB cable
sure that the USB driver is correctly installed.
Ethernet Download the file to HMI via Ethernet.
IP Enter the target HMI IP address.
Name Enter the target HMI name.
Search Search by HMI name.
Search All Search from all the HMI names on the same network.
Add Add the selected HMI in the Search field to the
Destination field.
Add All Add all the HMI in the Search field to the Destination
field.
Destination A list of all the HMI for download.
Delete Delete the selected HMI in the Destination field.
Delete All Delete all the HMI in the Destination field.
Download Click to start download to the selected HMI in the
Destination field.
Download All Click to start download to all the HMI in the Destination
field.
Password / Port No. Enter the password and the port number of download
set in HMI system settings.
Note
Take eMT3000 Series as an example, the built download data directory has the following
structure. Please select the parent directory of the generated file when download.
39.1. Overview
Data Security allows setting restrictions on the write operations that modify local Word or Bit
register data. To do so, open [System Parameter Settings] » [Device] tab, select [Local HMI] and
then click [Security...] button.
39.2. Configuration
Setting Description
LW protection \
If selected, a remote HMI or MODBUS client
Prohibit remote-write
will not be able to write to the specified LW
operation of remote HMI
addresses.
or MODBUS client
RW protection \
If selected, a remote HMI or MODBUS client
Prohibit remote-write
will not be able to write to the specified RW
operation of remote HMI
addresses.
or MODBUS client
Click [Data Security] button to set the restrictions on the write operations that modify local
Word or Bit register data.
Setting Description
Description Enter the description or memo about this setting.
Address Mode Select [Word] to set the relevant attributes.
Min. value Set the minimum value that can be written to the
designated word address.
Max. value Set the maximum value that can be written to the
designated word address.
Disable remote-write If selected, the remote HMI will not be able to
operation write to the protected address.
Used only in If selected, the range between [Min. value] and
remote-write [Max. value] is only used to restrict the value
operation written by a remote device.
Use min. value when If selected, when the written value is less than
write value is less [Min. value], the system will write the specified
than min. value minimum value instead.
If not selected, when the written value is less
than [Min. value], the system will keep the
original value.
Use max. value when If selected, when the written value is greater than
write value is more [Max. value], the system will write the specified
than max. value maximum value instead.
As shown in the preceding figure, the remote HMI will not be able to write to LW-0, and when
the value written to the local address is greater than 10, the value 10 is written instead, and
the notification bit LB-0 will be set ON.
Setting Description
Description Enter the description or memo about this setting.
Address Mode Select [Bit] to set the relevant attributes.
Set ON only If selected, the designated bit address can only be
set ON.
Set OFF only If selected, the designated bit address can only be
set OFF.
40.1. Overview
With Web Streaming function, video from the USB camera on HMI can be streamed and
viewed in web browsers, and third party devices.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
40.2. Configuration
Instead of setting an object in EasyBuilder Pro, Web Streaming is controlled by system registers.
To enable Web Streaming, please set bit addresses or use macros to add the following system
registers into the project file.
Set LB-12356 on to start Web Streaming, and set LB-12356 off to stop Web Streaming.
LB-12357 indicates the streaming status. When LB-12357 is on, Web Streaming is enabled and
running. When LB-12357 is off, Web Streaming is stopped.
Web Streaming cannot start when the USB camera is not connected.
40.3. Operation
First, please make sure that the Web Streaming browser is enabled and running. To stream
video on a browser, enter HMI’s IP address with port 8080. For example, if the IP address is
192.168.1.100, please enter:
http://192.168.1.100:8080
Example 1
The following is a still image of video stream on iPad’s Safari of a plant monitoring application.
Note
When using EasyAccess 2.0, the HMI’s IP address is the virtual IP address obtained in the
software.
41. Energy
This chapter explains how to setup Energy Demand Settings to monitor and record energy
consumption and calculate future energy demands.
41.1.1. Overview
By monitoring the recorded energy consumption in a specified period, the Energy Demand
Setting feature can calculate future energy demands, and help saving energy.
41.1.2. Configuration
Click [Data/History] and then click [Demand Setting] to open the settings dialog box. Configure
General and Demand Threshold settings and click OK; an Energy Demand Setting object will be
created.
General Tab
Setting Description
Accumulative This address records energy consumption. The unit
energy address can be 0.1/0.01/0.001 kWh (kilowatt-hours).
Demand update The frequency to record energy consumption, the
frequency range is from 1 to 60 minutes.
Demand duration The frequency to calculate energy demand. The
range is from 1 to 60 minutes.
Note
Please note that Demand Duration (T) must be an integral multiple of Demand Update
Frequency (t).
Demand Threshold
Setting Description
Threshold When the values in the specified addresses reach
the values specified in Warning and Alarm fields, the
warning and alarm will be triggered. The threshold
limits can be dynamically changed at runtime.
Notification When the estimated energy demand reaches the
threshold limit, the status of the specified bit
address will change accordingly.
Follow If selected, when the estimated energy demand falls
less than the threshold limit, the status of the
notification bit address will return to its original
state.
Demand Output
Setting Description
Enable demand
Opens [Max. demand statistics] settings.
output
Max demand The maximum energy demand of today/yesterday,
statistics and current month/last month, can be recorded in
the corresponding addresses. The time/date format,
and the beginning day of the billing cycle, can be
specified.
41.2.1. Overview
Energy Demand Display object graphs the result from Energy Demand Setting object at
runtime.
The font, grid and watch line style can be specified, and the threshold limits can be shown in
the graph.
41.2.2. Configuration
Click [Data/History] and then click [Demand Display] to open the settings dialog box. Configure
the attributes and click OK; an Energy Demand Display object will be created.
General Tab
Setting Description
Object index Select an existing Energy Demand Setting object as
the data source of Energy Demand Display object.
Time/Date format Set Time and Date format.
Chart Set the colors of Grid, Frame, and Background.
X axis Set the number of divisions and time duration on
the X axis. Latest position ratio: The ratio represents
a position along the X axis, where 50% represents
the middle and 100% represents the right end. This
field sets the position to mark the latest data, and
the acceptable range is: 50%~100%.
Y axis Set the number of divisions, maximum and
minimum scale values on the Y axis. The limits can
be changed dynamically at runtime.
Scale text Set the font and color of the scale text.
Line Three watch lines marking Demand, Alarm, and
Warning can be shown. The type, width, and color of
the lines can be customized.
Example 1
The following example illustrates the relationship between Demand Duration (T) and Demand
Update Frequency (t) mentioned in Energy Demand Setting guide above.
1. As shown in the above figure, when t=1, the frequency to record energy consumption will
be once per minute. When T=15, each 15 minutes the sum of the energy consumption
measured every minute (t=1) will be calculated.
2. From the 1st to the 15th minute (red zone), the energy consumption measured each
minute will be added up to get the total sum. The total sum times 4 (15 minutes is a
quarter of an hour) to obtain a value (kWh) indicating the estimated energy demand.
3. From the 2nd to the 16th minute (blue zone), the energy consumption measured each
minute will be added up to get the total sum. The total sum times 4 (15 minutes is a
quarter of an hour) to obtain a value (kWh) indicating the estimated energy demand.
4. From the 3rd to the 17th minute (green zone), the energy consumption measured each
minute will be added up to get the total sum. The total sum times 4 (15 minutes is a
quarter of an hour) to obtain a value (kWh) indicating the estimated energy demand.
5. The Energy Demand Display object will graph the estimated energy demand.
6. If t=3 and T=15, the estimated energy demand will be: Sum of the latest 5 records (15/3=5)
times 4 (15 minutes is a quarter of an hour).
7. If t=5 and T=30, the estimated energy demand will be: Sum of the latest 6 records (30/5=6)
times 2 (30 minutes is half an hour).
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
42. IIoT
This chapter explains how to use IIoT protocols.
42.1. MQTT
42.1.1. Overview
MQTT object can send message to a remote server, or subscribe to topics on a remote server.
HMI can serve as a local server.
When HMI serves as a local server, the HMI will not send message to the remote server.
42.1.2. Configuration
Click [Object] » [IIoT] » [MQTT] in the menu to open the settings dialog box.
General Tab
Setting Description
Cloud service Normal
Use general publish-subscribe service.
AWS IoT
Use AWS IoT as a Broker, and use Thing Shadows service.
For more information, please find “AWS IoT User
Manual”.
Sparkplug B
Sparkplug B is a specification designed based on the
characteristic features of IoT applications. It helps define
topics and messages that are not specified by standard
MQTT, and allows non-MQTT terminal devices to transfer
data with MQTT Server through Edge of Network, which
can be HMIs in this architecture. Please see “Sparkplug B
Quick Start Guide” for more information.
Azure IoT Hub
Address Tab
Setting Description
Status address LW-n: Displays the connection status to MQTT
Server.
Value Description
0 Not attempting to connect to MQTT
Server.
1 Disconnected and can’t connect to
MQTT Server.
2 Connection succeeded.
LW-n+1: Error indicator.
Value Description
0 No error
1 Unknown error
2 Failed to connect
3 Access denied
4 Not allowed port number for built-in
MQTT server
5 Unresolvable domain name
6 Buffer overflowed
32 Incorrect client ID
48 Failed to verify certificate
256 Still connecting
Buffer usage Messages that have not been sent are stored in the
address buffer. The maximum buffer capacity is 10000
messages. The buffer capacity is measured in
percentage (%), rounded up.
LW-n: Shows buffer usage.
Control address LW-n: Controls the operation of MQTT Server.
Value Description
0 Ready
1 Start
2 Stop
3 Update
LW-n+1: Sets the IP address of MQTT Server.
LW-n+5: Sets the port number of MQTT Server.
LW-n+6: Sets the Client ID for connecting MQTT
Server.
LW-n+26: Enables / Disables authentication.
Value Description
0 Disable
1 Enable
TLS/SSL Tab
Setting Description
Enable Enable TLS/SSL authentication. TLS version can be
selected from: TLS 1.0, TLS 1.1, and TLS 1.2.
Server verification Enable
Verify whether the server certificate is signed by CA
(certificate authority) certificate. Server certificate is
System Topic
Setting Description
Topic List Enable
Selecting this checkbox puts the specified topic into
the server’s topic list, which includes topics
published by different HMIs.
At the first time the subscriber connects to the
server, the server will send the specified topic to the
subscriber. Alternatively, the subscriber can
subscribe to this topic to view the available topics in
the server.
Retain message
When this checkbox is selected, the MQTT server
will save the latest message.
Connect State Enable
Selecting this checkbox displays the connection state
Note
Please note that System Topics tab is not supported when using Sparkplug B and Azure IoT
Hub cloud services.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
Click [New] to open General and Address settings, or click [Import] / [Export] to import or
export an existing *.csv file. The maximum allowable number of topics is 255.
General Tab
Setting Description
Nickname Enter the nickname of the MQTT Topic for easier reference.
Topic Specify the format of the message topic sent to MQTT Server.
Variables can be used for Topic. Entering %(DYNAMIC) in the Topic
field opens Dyanmic String group box for designating a word address.
%(DYNAMIC) can include multiple topic levels. For example:
myhome/groundfloor.
When Azure IoT Hub is used, users can only specify the last topic level.
As shown in the above figure, when this option is not selected, ts and
address names become keys of the same level. Therefore, please
avoid using ts as an address name in this case.
QoS MQTT provides three levels of reliability, which are known as quality
of service (QoS). The reliability of the message determines the
Address Tab
The following explains the address settings for [Raw Data] and [JSON (Simple)] content
formats.
Setting Description
New Add the source of the topic. The length of each
address can be specified respectively.
Delete Delete the address.
Setting Change the name and address.
Setting Description
Remove JSON array For JSON formatted messages, selecting this option
bracket “[“ and “]” can remove bracket “[“ and “]”.
Enable number of
digits to the right When data type is Float, the number of digits after
of the decimal the decimal point can be specified.
point
Note
Maximum tag length: 255 words.
The following explains address settings for [JSON (Advanced)] content format. This is a nested
format that allows using objects or arrays, and customizing timestamp and data name. Using
this format provides a more flexible way of using MQTT.
When configure the settings as shown in the above screenshot, the received MQTT message by
the subscriber is as below.
Setting Description
New Object Add a new object. The name, type and value of each
item under the object can be configured. Items
under the object are enclosed in curly brackets { }.
New Array Add a new array. An array may contain multiple
items but the name of the item is automatically
generated and is unchangeable. Items under the
array are enclosed in square brackets [].
New Value Add a new number, string, or timestamp. When the
new value is a number or a string, fixed value can be
Note
Maximum number of nodes for a Topic is 512 (payload included). Maximum tag length is
255 words.
Click [New] to open General and Address settings, or click [Import] / [Export] to import or
export an existing *.csv file. The maximum allowable number of topics is 255.
General Tab
Setting Description
Nickname Enter the nickname of the MQTT Topic for easier
reference.
Topic Subscribe to a topic in MQTT Server. The topic name
can be dynamic.
Entering %(DYNAMIC) in the Topic field opens Dynamic
String group box for designating a word address.
%(DYNAMIC) can include multiple topic levels. For
example: myhome/groundfloor.
When Azure IoT Hub is used, users can only specify the
last topic level, and the topic level should be the same
as in MQTT Topic Publisher.
Address Tab
Setting Description
New Add the destination address of the subscribed topic.
The length of each address can be specified
respectively.
Delete Delete the address.
Setting Change the name and address.
Setting Description
Remove JSON array For JSON formatted messages, selecting this option
bracket “[“ and “]” can remove bracket “[“ and “]”.
Note
Supports Amazon Web Service (AWS) IoT Core.
Notes on AWS IoT Core:
1. The maximum number of layers in a topic is 8 (iot-2/type equals to 2 layers).
2. Authentication in General tab is not supported, please use TLS/SSL.
3. Supports only Qos 0 and Qos 1.
4. Retaining the latest message in MQTT server is not supported.
42.1.2.4. Sparkplug B
General settings and Device settings for cloud service Sparkplug B are as shown below.
General Tab
Setting Description
Group ID The group ID that identifies the group in which the
Edge of Network Nodes belong to.
Edge ID The ID that identifies a specific Edge of Network
Node.
DDATA min. time The minimum-wait-time duration before a new
DDATA (Device DATA) message is sent when data
change is detected.
QoS MQTT provides three levels of reliability, which are
known as qualities of service (QoS). The reliability of
the message determines the persistence of the
message.
0: At most once, messages are not persistent.
1: At least once.
2: Exactly once.
Device Tab
Setting Description
New Group Add a group to manage the tags.
New Tag Add the tags of this EoN node monitored by MQTT
engine. Please note that the Name field should not
be blank.
Delete Delete an existing group or tag.
Settings Configure an existing group or tag.
Click the icon to download the demo project. Please confirm your internet connection
before downloading the demo project.
42.2.1. Overview
42.2.2. Configuration
Click [Object] » [IIoT] » [OPC UA Server] in the menu to open the settings dialog box.
General Tab
Setting Description
Comment The description about the OPC UA Server.
OPC TCP The URL of the server.
Port The port number for the clients to connect with OPC
UA Server. The default port number is 4840.
Server name The server name, this field is allowed to remain
blank.
Security Policy Configure the security policy that can be used by
clients.
Setting Description
Methods Anonymous
Grant Browse, Read, Write permissions to
anonymous login by selecting the checkboxes.
User name & password
Use the same user name and password as HMI. The
permissions are granted to the security classes
specified in System Parameter Settings » Security.
Discovery Tab
When configured, OPC UA server will register to the Local Discovery Server (LDS).
OPC UA Discovery service is used to simplify server location maintenance when there are many
OPC UA servers in the network. An OPC UA client can access one LDS Server and obtain all
registered OPC UA server.
Setting Description
IP IP address of the OPC UA client.
Port Port number used by the OPC UA client.
Server Name Server name of the OPC UA client.
Comment A memo on the server and will not influence
communication.
Example 1
The following is an example showing how to set up Discovery service.
1. Install Local Discover Server (LDS) on a PC (for example, the PC name is DESKTOP-ABCD).
Download the LDS provided by OPC Foundation from the link below:
https://opcfoundation.org/developer-tools/developer-kits-unified-architecture/local-discovery-ser
ver-lds/
2. If the DNS service of router cannot resolve the HMI name to IP address, the HMI name
should be changed to the IP address of the HMI. For example: If HMI IP address is
192.168.1.100, then the HMI name should be 192.168.1.100 or 0.0.0.0.
3. On the PC with OPC UA LDS installed, please manually copy the certificate from folder
“C:\ProgramData\OPC Foundation\UA\pki\rejected\certs” (Folder for rejected certificates)
to folder “C:\ProgramData\OPC Foundation\UA\pki\trusted\certs” (Folder for trusted
certificates).
4. Launch the software of OPC UA Client, enter the name of the PC with OPC UA LDS
installed or its IP address to obtain all the registered OPC UA servers.
2. Enter HMI’s IP address in the web browser, and enter the password to log in. Open OPC
UA settings page and restart OPC UA Server. Please note that OPCUA settings tab is only
supported on cMT Gateway Series models.
Tag
Setting Description
New group
New Tag
Note
When downloading the project file to HMI, please make sure that the HMI time and
time-zone settings are correct. Otherwise, the client program may not be able to
authenticate, and the communication may fail due to authentication error caused by
incorrect certificate valid time.
Click the icon to watch the demonstration film. Please confirm your internet connection
before playing the film.
42.2.4. Limitation
Tested Environment
EBPro version: V6.02.02.242
cMT-G02 OS version: 20180917
Test uses as many as words as possible in one node
(using array) to optimize reading.
Appendix A.
Comparison of HMI Software Features
eMT Series: eMT3070B, eMT3105P, eMT3120A, eMT3150A
cMT Series: cMT-SVR-100, cMT-SVR-102, cMT-SVR-200, cMT-SVR-202, cMT-iV5, cMT3151, cMT3090, cMT3071, cMT3072, cMT3103,
cMT-HDM, cMT-FHD
cMT Series-Gateway: cMT-G01, cMT-G02, cMT-G03, cMT-G04
mTV Series: mTV-100
iE Series: MT8050iE, MT8053iE, MT6070iE, MT6071iE, MT8070iE, MT8071iE, MT8073iE, MT8100iE, MT8101iE, MT8102iE, MT8103iE
iER Series: MT8070iER1
XE Series: MT8090XE, MT8091XE, MT8092XE, MT8121XE, MT8150XE
iP Series: MT6051iP, MT8051iP, MT6071iP, MT8071iP, MT6103iP, MT8102iP
Please note that the table below is for reference only and may not include all features. Some features are version-dependent, so please
confirm again by cross-checking with the software or consulting Weintek service when in doubt.
iP/iE/eMT/mTV/XE Series
Model
Category new iP iE eMT mTV XE Note
Function
History size limit 16MB 16MB 64MB 64MB 64/120MB* 1
Project size limit 22.5MB 22.5MB 64MB 64MB 64MB
6051iP
EasyBuilder 6070iE 8121XE
USB Cable Download 6071iP Y N/A
6071iE 8151XE
6103iP
USB Disk Download Y Y Y Y Y
3G/4G Dongle N/A N/A N/A N/A N/A 2
Function Audio (cMT Viewer) N/A N/A N/A N/A N/A
Control Token N/A N/A N/A N/A N/A
Notes
No. Function Note
1 History Size Limit MT8121/8150XE: 64MB,
MT8090/8091/8092XE: 120MB
cMT Series: Max. data sampling entries: 40
OS Support
No Function OS Version
2 3G/4G Dongle cMT-SVR: 20151127
cMT3072/3090/3103/3151: 20180723
cMT-HDM/FHD: 20190130 or later
3 USB Tethering iE Type A: 20160707
iE Type B: 20160325
eMT: 20160601
mTV: 20160527
XE: 20160503
cMT-SVR: 20160518
cMT3090/3103/3151/HDM: 20160412 or later
4 VNC Server cMT3090/3151: 20160412 or later
When running simulation on PC, the historical data is stored in their respective destination
folder that is placed under EasyBuilder Pro installation directory:
HMI_memory: when the designated destination is HMI memory.
SD_card: when the designated destination is SD card.
usb1: when the designated destination is USB Disk.
usb2: when the designated destination is USB Disk2. (Applicable only for models that
support two USB disks.)
eMT/iE/XE/mTV Series
Video In: USB Camera
Video In: IP Camera
Video In: Video Input (analog)
VNC Viewer