NB Series NB-Designer Operation Manual
NB Series NB-Designer Operation Manual
Cat.No. V106-E1-01
Declaration
(1) Copying, reprinting or reproducing of this manual in whole or in part without permission is prohibited.
(2) Specifications etc contained in this manual are subject to change without any notice for the
product improvement and so on.
z About the pixel displayed not well:
Although the LCD panel is made by using state-of-the-art technology, there are some pixels
displayed not well, i.e. some are displayed incompletely or as bright dots (always bright). This is
the specific phenomena of LCD, and it is not a failure. Although we have been exerting ourselves
to implement the strict management to minimize such phenomena, which is impossible to be
eliminated by the current technical conditions. Sorry for inconvenience to you, we shall appreciate
for your understanding.
z Display devices are subject to change without any notice for the product improvement and so on.
1
Preface
Thank you for purchasing an NB-Series Programmable Terminal.
NB-Series Programmable Terminals (PTs) are designed to handle information generated in FA
production sites. Be sure to understand the functions and performances etc thoroughly before using PT
correctly.
z Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical
systems (an electrical engineer or the equivalent).
y Personnel in charge of introducing FA systems into production facilities.
y Personnel in charge of designing FA systems.
y Personnel in charge of installing and connecting FA facilities.
y Personnel in charge of managing FA systems and facilities.
z Precaution
y Besides the connection and setting of NB-Series, this manual also describes the other necessary
information. Please read this manual carefully and be sure to understand the information contained
herein thoroughly before using the products. Keep this manual in a safe place after reading so that it
can be retrieved whenever necessary.
2
2. Limitations of Liability
1 OMRON shall not be responsible for special, indirect or consequential loss caused by OMRON’s
products.
2 OMRON shall not be responsible for the programming (Which is not made by the personnel of
OMRON) of OMRON's programmable products and any consequences arising therefrom.
3. Application Conditions
1 Please confirm the applicable standards, regulations or limitations when using the OMRON's
products in combination with the other products. In addition, OMRON shall not be responsible for
the suitability of OMRON’s products, therefore the user alone must confirm whether OMRON’s
products are suitable for their used systems, machines and equipments or not.
2 Please consult with the sales of OMRON corporation and make confirmation according to the
Specifications when applying the products to the following conditions. At the same time, be
sure to use the operation methods not exceeding the rated power and performances, and
provide safety measures (such as safety circuit etc) to minimize the danger in the event of
failure.
a) Outdoor use, uses involving potential chemical contamination or electrical interference, or
conditions or environment not described in the product catalog and instruction manuals.
b) Nuclear energy control systems, combustion systems, railroad systems, aviation systems,
vehicles, medical equipment, amusement machines, safety equipment, and installations subject
to government or separate industry regulations.
c) Systems, machines and equipment that could present a risk to life or property.
d) Gas, water, power supply systems and 24-hour continuous operation systems requiring high
reliability.
e) The applications requiring high safety based on the above-mentioned items of a) to d).
3 Before applying OMRON’s products to the conditions that may have a serious influence on lives
and property, be sure to confirm whether the risk can be notified in the whole system, the
redundant design is provided to ensure the necessary safety, and the proper power distribution
and setup are made to the whole product catering to your required purposes.
4 The application examples described in the product catalog etc are only for reference. Please
confirm the performances and safety of the devices and equipments when using them.
5 In order to prevent the unexpected loss from being brought to you or the third party due to the
incorrect use of the products, be sure to understand all the prohibitions and cautions thoroughly
and observe them strictly.
4. Change in Specifications
Product specifications and accessories described in the product catalog and the instruction manual
etc may be changed based on the product improvement or other reasons. Please consult with the
sales of OMRON to confirm the actual specifications of the products.
5. Service
The price of this product does not include the service charges fees such as technician dispatch fee
etc. If you have any requirements, please consult with the sales of OMRON.
3
Safety Precautions
z Symbols
z Prohibition
Indicates a general prohibition.
z Disassembling prohibition
Any attempts to disassemble the product may result in electric
shock or other injuries. DO NOT DISASSEMBLE!
z Caution
Indicates general cautionary, warning, or danger level
information.
4
z Warning notation
Do not attempt to take the product apart and do not touch the
product inside while the power is being supplied. Otherwise it
may result in electric shock.
Do not use the input functions of the touch switch, etc. of the NB
Unit, in applications that involve human life, in applications that may
result in serious injury, or for emergency stop switches.
Never press more than two points on the HMI of the NB Unit at a
time. Otherwise, it may activate a switch somewhere between the
two points.
5
Precautions for Safe Use
● When unpacking the NB Unit, check carefully for any external scratches or other damages. Also,
shake the Unit gently and check for any abnormal sound.
● The NB Unit must be installed in a control panel.
● The mounting panel must be between 1.6 and 4.8 mm thick. Tighten the Mounting Brackets evenly to
a torque of between 0.5 and 0.6 N·m to maintain water and dust resistance. If the tightening torque
exceeds the specified value, or the tightening is not even, deformation of the front panel may occur.
What is more, make sure the panel is not dirty or warped and that it is strong enough to hold the Units.
● Do not let metal particles enter the Units when preparing the panel.
● Do not connect an AC power supply to the DC power terminals.
● Use a DC power with a slight voltage fluctuation and that will provide a stable output even if the input
is momentarily interrupted for 10 ms.
Rated Power Supply Voltage: DC 24 V (Allowable range DC 20.4~27.6 V)
● Do not perform a dielectric voltage test.
● Make the connection by using terminal screws crimping on a twisted-pair cable with a crimping range
of 12~26AWG, and only 6.5 mm of insulation peel of the cable needs to be peeled off. Tighten the
terminal screws to a torque of between 0.3 and 0.5 N·m. Make sure the screws are properly tightened.
● To prevent malfunctions caused by noise, ground the Unit correctly.
● Do not touch the packaging part of the circuit board with your bare hands. Discharge any static
electricity from your body before handling the board.
● When using the No. 6 pin of the serial communication port COM1 connector for a voltage of DC+5 V,
make sure the supply equipment’s current capacity is below 250 mA before using it. The DC+5 V
voltage output of the NB Unit is +5 V ± 5%, and the maximum current is 250 mA.
● Turn OFF the power supply before connecting or disconnecting cables.
● Always keep the connector screws firmly tightened after the communication cable is connected.
● The maximum tensile load for cables is 30 N. Do not apply loads greater than this.
● Confirm the safety of the system before turning ON or OFF the power supply, or pressing the
reset button.
● The whole system may stop depending on how the power supply is turned ON or OFF. Turn
ON/OFF the power supply according to the specified procedure.
● Reset by pressing the reset button, or restart the power supply, once the DIP switch settings are
changed.
● To ensure the system’s safety, make sure to incorporate a program that can confirm the normal
functionality of the NB Unit before running the system.
● Start actual system application only after sufficiently checking screen data, macros and the
operation of the program at the host side.
● Don’t press a touch panel with a force greater than 30N.
● Do not use a screwdriver or any other tool to press the touch panel.
● Confirm the safety of the system before pressing the touch panel.
● Signals from the touch switches may not be input if the touch switches are pressed consecutively at
high speed. Confirm that the PT has detected the input of a touch switch before pressing any other
touch switch.
6
● Do not accidentally press the touch panel when the backlight is not lit or when the display does not
appear. Make sure of the safety of the system before pressing the touch panel.
● To use numeric input functions safely, always make maximum and minimum limit set- tings.
● Before initializing screen data, confirm that existing data is backed up at the NB-Designer.
● When changing the password with the system menu, do not reset or turn OFF the power supply until
writing is finished. Failure to save the password may cause the screen to fail to function.
● When using an equipment monitor, confirm the safety of the system before carrying out the following
operations:
y Changing monitor data;
y Changing operation mode;
y Forced setup/reset;
y Changing the current value or the set value.
● Do not connect a USB connector to any device that is not applicable.
● Before connecting a USB connector to a device, make sure that the device is free of damage.
● Commercially available and the recommended USB HUBs are different from the general
specifications of the NB Unit. The Unit may not function well in an environment subject to noise,
static electricity. Therefore, when using a USB HUB, employ sufficient noise and static electricity
insulation measures, or install it at a site free of noise or static electricity.
● While uploading or downloading screen data or system programs, do not perform the following
operations that may corrupt the screen data or the system program:
y Turning OFF the power supply of the NB unit.
y Pressing the PT’s reset switch.
● Dispose of the Units and batteries according to local ordinances as they apply.
● When exporting products with lithium primary batteries containing perchlorate at 6ppb or above to or
delivering them through California, USA, the following precautionary measures have to be publicized.
Perchlorate material – applicable through special processing.
Refer to http://www.dtsc.ca.gov/hazardouswaste/perchlorate.
NB-Series products contain lithium primary batteries. When exporting products containing this kind
of batteries to or delivering them through California, USA, label all the product packages as well as
the appropriate delivery packages.
● Periodically check the installation conditions in applications where the PT is subject to contact with
oil or water.
● Do not use benzene, paint thinner, or other volatile solvents, and do not use chemically treated cloths.
● Do not dispose the Units together with general waste at waste yards. When disposing them, follow
the related local ordinances or rules.
● Customers may not replace the backlight lamp inside the NB Unit. Please contact OMRON’s
customer service center.
● Deterioration over time can cause the touch points to move. Calibrate the HMI periodically.
● Water and oil resistance will be lost if the front sheet is torn or is peeling off. Do not use the Unit, if the
front sheet is torn or is peeling off.
● The rubber packing will deteriorate, shrink, or harden depending on the operating environment.
Inspect and replace the rubber packing periodically.
7
● The communication cables of the COM1 and COM2 connectors are not interchangeable. Confirm
the pins of the ports before carrying out communications.
8
Conformance to EC Directives
NB-Series Programmable Terminals are EMC compliant.
1 Concepts
OMRON products are electronic devices that are incorporated in machines
and manufacturing installations. OMRON PTs conform to the related EMC
Directives (see note) so that the devices and machines into which they are
built can more easily conform to EMC Directives. The actual products have
been through inspections and are completely in accordance with EMC
Directives. However, when they are built into customers' systems, whether
the systems also comply with these directives is up to the customers for
further inspection.
2 Conformance to EC Directives
NB-Series Programmable Terminals are EC compliant. Heed the following
precautions in order to ensure that the customer’s overall machine and
device conform to EC Directives.
9
Terminology
The following terminology is used in this manual.
10
Revision History
A manual revision code appears as a suffix to the Man. No. on the lower left side of the back cover.
Man.No V106-E1-
Revision code
11
Types and Contents of Related Manuals
The related manuals are as follows:
12
Contents
Preface .............................................................................................................................................................. 2
Safety Precautions............................................................................................................................................. 4
Terminology ..................................................................................................................................................... 10
Revision History................................................................................................................................................11
Contents........................................................................................................................................................... 13
13
2-3 Startup & Quit ...........................................................................................................................30
14
3-4-6 Components Related to Window ....................................................................................84
3-6-9 Animation......................................................................................................................145
15
3-6-15 Meter ..........................................................................................................................169
3-6-28 Grid.............................................................................................................................214
16
3-7-14 Event Bar....................................................................................................................253
17
3-12-3 Upload/Download of Recipe Data Between HMI and PLC .........................................352
3-15 Download..............................................................................................................................367
18
19
Section 1 Introduction
This section provides an outline of the NB-Series PTs, including their functions, features, connection
types and communication methods.
1-1 Functions and Structure of NB-Series PTs................................................................................................ 21
20
1-1 Functions and Structure of NB-Series PTs
The NB-Series Programmable Terminals (PTs) are sophisticated operator interfaces that can display
information and perform operations as required at FA production sites. This section describes the functions
and operations of the NB-Series PTs for beginning users.
z Displaying Screens
The data to be displayed on the screens is created by using NB-Designer in PC and the data is transferred
to the PT. The required screen can be displayed by a command from the host or by operating the touch
switches.
21
z Reading Data from the Host
NB-Series PTs can be connected to the host by using RS-232C, RS-485 or RS-422A communication
methods to automatically read the required data from the host.
22
1-2 Communicating with the Host
With NB-series PTs, data required for display can be accessed and the words and bits where the entered data
will be stored can be allocated to any area in the PLC. The operations include the direct reading and writing of
the allocated words and bits, the modification of the display status for the functional objects on the PT screen,
and the control and report of the PT status.
NB-Series PTs can be connected to the PLC by using the Host Link method.
23
B RS-485
RS-485 uses the differential signal negative logic and the common 2-wire method, and the connectable node
on the same bus is up to 32. The master-slave communication method, i.e. one master communicating with
multiple slaves, is generally used in the RS-485 communication network.
RS-485 and RS-422A methods can realize 1:N communication, i.e. one host communicating with multiple
PLCs or PTs. The maximum number of PLCs or PTs that can be connected to the host is up to 32, and the
maximum transmission distance is 500 meters.
RS-485 is half-duplex communication method that can’t allow the transmission and receiving to be performed
simultaneously.
C RS-422A
It is unnecessary to control the data direction due to 4-wire RS-422A interface using separate transmission
and receiving channels. Any necessary signal exchange among the equipments can be performed by using
software method (XON/XOFF Handshaking) or hardware method (one separate twisted-pair cable).
RS-422A standard with its full name “Electrical Characteristics of Balanced Voltage Digital Interface Circuits”
specifies the characteristics of the interface circuit. Actually, there is also a signal ground, totaling 5 wires.
Because the receiver uses high input impedance and the driving performance of the transmission driver is
more powerful than that of RS-232C, therefore the same transmission wire can be connected with multiple
receiving nodes, and the number of the connectable node is up to 10. That's to say, one is the master and the
others are the slaves. Due to the communications are impossible among the slaves, therefore the RS-422A
supports one-point-to–multiple full-duplex communications.
24
1-3 System Configuration
*1 When using USB to connect NB Unit with the computer, please refer to [2-3-2 Connecting by USB] in NB
Series Setup Manual.
25
1-4 Procedures for NB-Series PTs’ Operation
Perform the following procedures to operate the NB-Series PTs.
*1: The system will enter RUN mode after the screen data is input.
*2: System program is installed only under special circumstances, such as when the system program is
transformed or repaired.
*3: The system setup mode can be entered by using the DIP SW on the back side.
*4: When the abnormalities occur during the operation, the operations such as checking input/output and
confirming the setting state etc can be performed as required.
26
Section 2 Installation and Startup of
NB-Designer
The NB-Designer software needs to be installed on your computer when you use it for the first time.
NB-Designer is a kind of application software running in Windows XP/Vista/ 7 developed by Microsoft
Corporation.
2-1 Before Installation...................................................................................................................................... 28
2-2 Installation/Uninstallation........................................................................................................................... 29
27
2-1 Before Installation
The system environment to run the NB-Designer is as follows.
System Configuration
Items Minimum Configurations
Operating System (OS) Microsoft Windows XP(SP1 or higher)
Microsoft Windows Vista
Microsoft Windows 7
CPU Intel Pentium II or higher
Memory 512 MB or more
Hard Disk 2.5 GB or more, with the disk space more than 100 MB at least
Display Supports the display with resolution of 800×600 and 16-bit high color (1024×
768 and 32-bit true color are recommended.) .
RS-232C COM Port At least one port is kept for the serial communication used by the touch panel.
USB Port USB 1.1 or higher
CD-ROM Drive 4x or higher
Please pay attention to the following items when using Windows Vista/7.
a. You must log in Vista/Win7 operating systems as the administrator.
b. When running the NB-Designer, right-click the mouse on the icon “NB-Designer.exe” and select
“Windows XP (Service Pack 2)” in “Compatibility” tab.
c. When running the NB-Designer for the first time, right-click the mouse on the icon “NB-Designer.exe” and
check “Run this program as an administrator”. And then, run the software directly.
28
2-2 Installation/Uninstallation
29
2-3 Startup & Quit
The startup and exit are described as follows.
When the edited data in the file is not saved, “Save the Current Project?” dialog box will pop up.
30
2-4 Installation of USB Driver for NB
Install the USB driver for NB on PC.
After the installation, the data transmission between the PC and the NB Unit is available via USB.
Because the USB driver included in the NB-Designer is certified by Microsoft, it will be installed automatically
accompanying with the software installation, so there is no need to install the USB driver by manual again.
z Operating procedure
1 After the USB slave for the NB Unit and the computer are connected by the USB cable, “Found New
Hardware Wizard” will be displayed on PC. After selecting [Install the software automatically
(Recommended)], click the [Next] button.
31
3 After the completion of installation, the following dialog box will be displayed. Click the [Finish] button.
32
2 The following dialog box is displayed. After confirming [Search for the best driver in these locations]
being selected, select [Include this location in the search] and click the [Browse] button to specify the
folder.
The specified folder is the driver folder under NB-Designer installation directory.
33
4 After the completion of installation, the following dialog box will appear. Click the [Finish] button.
You can check whether the USB is installed successfully from “My computer/Property/Hardware/Device
Manager/Universal Serial Bus controllers” location, as shown below.
34
Section 3 Functions of NB-Designer
This section describes the functions of NB-Designer.
3-1 User Screen............................................................................................................................................... 36
3-2 Menus........................................................................................................................................................ 39
35
3-1 User Screen
The displayed contents in the screen are shown as below when the NB-Designer is run.
You can also right-click [View] – [Toolbar] or toolbar to see each toolbar shown as below.
z Title
z Menu
Selects the various kinds of command menus of NB-Designer. After these menus being selected, the
corresponding pull-down menu will pop up. Each pull-down menu corresponds to one command
operation.
36
z Toolbar
1. Basic Toolbar
Includes some basic tools such as “New”, “Open”, “Cut” and “Copy” etc.
2. Draw Toolbar
Each icon corresponds to one drawing tool displayed in the screen. The available drawing tools include
Line, Rectangle, Ellipse/Circle, Arc, Polygon, Text etc.
4. Position Toolbar
Adjusts the position of the component (i.e. top-alignment, bottom-alignment, left-alignment,
right-alignment etc), the size, cascading, combination and flip methods.
7. System Toolbar
Performs the compilation, downloading and simulation of the project.
8. Database Toolbar
Includes text library, alarm information, address tag, PLC control and event information.
37
z Graph Element Window
6 columns in the Graph Element Window are available.
Connector: Selects the communication cable type.
HMI: Selects the HMI type.
PLC: Selects the PLC type.
PLC Parts: Selects various kinds of configuration parts.
Function Parts: Selects various kinds of multi-function parts.
Project Database: Selects some special functions.
z Message Window
For details, refer to [3-3-4 Message Window].
38
3-2 Menus
There are various kinds of menus in NB-Designer. You can set the object, graphics, chart, macro, data block
etc, and create the screen data displayed on the NB Unit. The pull-down menu list and the purposes of each
item are as follows.
A new project is created when you press [OK] after inputting the project name.
z Open
Select the project file to be opened, and press [Open] or double click this project file.
39
z Save
Includes “Save” and “Save As”.
z Close
Select [Close] in the [File] menu to close the current project.
All the current windows will be closed after “Close” being pressed, and the display screen is shown as below.
40
z Display the 4 projects opened recently
z Quit
Quit the NB-Designer software.
41
3-2-2 Edit Menu
z Undo
The latest operation can be cancelled by using this function, and the screen will return to the state before
this operation. Pressing icon or selecting [Undo] in the [Edit] menu can cancel the latest operation.
z Redo
Using this function after performing “Undo” operation can restore the “Undo” operation done just now. It
just needs to press icon or select [Redo] in the [Edit] menu.
The operations supported by “Undo” and “Redo” are as follows.
1. Dragging one element from the Graph Element Window
2. Drawing one static component
3. Moving the object
4. Adjusting the object size
5. Performing all the operations about the position toolbar
6. Selecting the line width, line style or arrow
7. Selecting the object filling style
8. Selecting the object border color
9. Selecting the object filled color
10. Performing “Set Top Layer” and “Set Bottom Layer” operations
11. Performing the “Group” and “Ungroup” operations
42
12. Performing cut, copy, paste and deletion
13. Performing the multi-copy operation
You can use [Undo/Redo] function to add any one component to the screen or make any modification to
the screen. Add a switch component to the screen, as shown below.
Press [Undo].
z Nudge
The component position can be adjusted by method after it is selected. The component movement can
be realized by using direction key or the corresponding [Nudge] icons. Each time the “Nudge” button is
pressed, the component will move a pixel distance accordingly. The corresponding icons are shown as
and they are “Left”, “Right”, “Up”, “Down” corresponding one-to-one with the contents
of [Nudge] in the [Edit] menu. The simple nudge method is to use the arrow keys on the keyboard, which
realizes the easy component movement.
43
z Align
Makes the selected component realize the Left, Right, Top, Bottom, vertical Midline or Horizontal Midline
alignment. The corresponding icons are shown as Here only take “Left” as an
example with the effect shown as below.
z Size
To make the multiple components with the same width, height or size, you just need to press the
corresponding icons for adjusting the size of the component, or to select the options in the corresponding
menus. The corresponding icons are shown as and they are “Width”, “Height” and “Both”
respectively. For the components one after another in the horizontal direction and in the vertical direction,
the default reference sizes are that of the leftmost component and that of the topmost component
respectively, and you can adjust other components to be with the same width, height and size of the
references. If you want to specify a certain component as the reference, select other components after
pressing the [shift] key to select the reference.
44
z Layer
When the multiple components are overlapped together, you can use the icons shown as
(Set Top Layer, Set Bottom Layer, Previous Layer, Next Layer) or select [Set Top Layer], [Set Bottom
Layer], [Previous Layer], [Next Layer] in [Layer] of the [Edit] menu to change the display order of the
components.
Firstly select the component and set the layer of the component by pressing the corresponding icon. The
component in the front layer is always displayed above that in the back layer.
45
z Align Vertical Center
This function is used to make the multiple selected components or graphics located in the verticaln
center of the HMI Edit Window. Firstly select the graphics to be operated, and then select [Align Vertical
Center] in the [Edit] menu or press icon.
z Flip
Only the graphics (such as line, circle, polygon etc) drawn by drawing tools rather than other components
can be flipped. Firstly select the graphics to be operated, and then select [Flip Horizontally], [Flip
Vertically, [Rotate 90 Degree] in the [Edit] menu or select the corresponding icons to flip the
components.
z Reset Toolbars
When the toolbar is moved to the other position, it can be restored to the default position by clicking this
option, as shown below.
46
3-2-3 View Menu
The options in the [View] menu are used to control the various kinds of toolbars to be displayed or not, and
almost all the corresponding information of the items in the toolbar can be found in the menus.
z Basic Toolbar
The correspondences of all the items (i.e. the icons here) in the standard toolbar to the options in the
menus are shown as below.
47
[Print]: To print
[Attribute]: To show the object attributes
[Display Component’s Name]: To display/hide the component’s name
[About]: To describe the version information of NB-Designer
z Multi-copy
With this function, one component can become multiple components through the copy operation, thus
saving a lot of time. You can make the multiple components available by clicking icon or
right-clicking [Multi-copy] in the corresponding menu after the component being selected, as shown
below.
The multi-copy operation starts after you right click the component to be selected.
Copy Type: Pitch refers to the distance from the end of one copied component to the beginning of the
other copied component. Interval refers to the distance between the left vertexes of the copied
component.
Copy Quantity: The number of the copied component in each line and each column.
Interval: The horizontal interval and vertical interval between the two copied components.
Address Auto change Mode: The integer place address of the copied component increases/decreases in
X, Y directions.
Address Auto Change: The integer place address of the copied component increases/decreases in X, Y
directions.
After Address Auto Change: The decimal place address of the copied component increases/decreases in
X, Y directions.
[Change Attribute]: To change the components attribute, it just needs to double click the corresponding
selected component or to edit it when the Attribute dialog box pops up after the icon being right
clicked.
48
z Database Toolbar
The correspondences of all the items (i.e. the icons here) in the toolbar to the options in the menus are
shown as below.
49
z Position Toolbar
[Make Same Width]: To make the multiple components with the same width
[Make Same Height]: To make the multiple components with the same height
[Make Same Size]: To make the multiple components with the same size
[Same Horizontal Space]: To make the multiple components with the same horizontal space
[Same Vertical Space]: To make the multiple components with the same horizontal space
[Align Horizontal Center]: To make the center(s) of one component or multiple components located in the
horizontal center of the configuration editing area
[Align Vertical Center]: To make the center(s) of one component or multiple components located in the
horizontal center of the HMI Edit area
50
z Label Position Toolbar
Click the component, and then click the tag displayed later to select it. Later when you see the tag is not
gray any more, you can set the position of the tag as required (e.g. Align Tag to Left-Side of Component,
Align Tag to Right-Side of Component, Align Tag to Top-Side of Component, Align Tag to Bottom-Side of
Component, Align Tag to Vertical-Center of Component and Align Tag to Horizontal-Center of Component).
z Draw Toolbar
The contents of the items in the Draw Toolbar are shown as below.
[Object Color]: To set the line color for the vector graphics
[Filled Color]: To set the filled color for the vector graphics
[Multicolor-Grayscale Switch]: To make the transformation between the color and black/white
[Snap to Grid]: After the component being selected, click this button once to make the grid point as the
moving unit, and click it twice to restore the default pixel point as the moving unit of the component.
For the color setup, there are 40 kinds of colors available, as shown below.
51
Besides the 40 kinds of colors shown above, the custom colors are also available. The following dialog
box will be displayed after clicking “Custom Color…” at the bottom.
Here you can select any color you want to have. In addition, there are also several color attributes, as
shown below, available to you.
z Select Component
The selection methods of the components are as follows.
1. Direct selection: The component can be selected by using the mouse directly to click it.
2.Selecting all the components: All the components in the current screen can be selected by using
[Select All Components] in the [Edit] menu.
3. The multiple components can be selected by clicking them consecutively while pressing the [Shift] key.
52
z Fill Component and Border
To change the border or the filled color of the drawn graphics, it just needs to click the small arrow behind
the “Object Color” icon after the component being selected to change the border color, and to click
the small arrow behind the black frame at the right side to change the filled color, as shown below.
z Text
After the text icon being pressed, the text dialog box will pop up, as shown below.
Content: The text displayed on the component. You can use the “Enter” key to break the input text.
Graphics: The font and its size and style etc can be modified in this mode. The Modify dialog box, as
shown below, can be entered by clicking the “Vector Font” on the right side of “Graphics”.
53
Label: In this mode, both Vector Font and Dot Matrix Font can be used, and the font size, alignment
method or color etc can be changed.
z Picture
The icon can be used to add the picture when you create a new bitmap. For the creation of the
bitmap, refer to [3-5-6 Bitmap].
54
z Page Switch Toolbar
[Current Frame Attribute]: To display the attributes of the current HMI Edit Window
[Zoom]: 25%, 50%, 75%, 100%, 150%, 200% and 300% available
z System Toolbar
[Compile]: To only compile the parts with changes in the current project and to check whether there is an
error or not. The project must be compiled before the download or simulation. otherwise the download or
simulation will fail.
[Download Method]: To download the project into HMI by USB or serial port
55
z Code Edit Toolbar
z State Bar
Displays the information such as the current mouse position, the width/height of the destination object
and editing state etc.
Selects the various graphics to be filled and click the various filled styles shown as above to make the
corresponding styles be filled into the current graphics or HMI Edit Window.
To fill the current window, it just needs to double click the window, and check “Use Background Color” in
the displayed “Window Attribute”, as shown below.
Then select the filled color and the background color as well as the filled style you want, as shown below.
56
To fill the graphics, please click the above filled styles after selecting the graphics to be filled. The method
is the same with that of the window filling. But for the components, the fill color is the line color while the
background color is the component color, as shown below.
Click [Screen]->[Copy/Delete Windows], and the following dialog box will pop up.
57
Operation Type:
1. Copy Window: count: It can be one or more and its range is between 1 and 999.
Copy Window
When the number is 1, both the starting source window ID and the starting destination window ID
can be set, which means the screen and attributes of the source window will be copied into the
destination window.
If the destination window doesn’t exist, the window with a specified number will be created
automatically after the copy operation. And if the destination window exists already, “Copy error:
the destination window ID already exists!” will prompt.
When the number is greater than 1, both the starting source window ID and the starting
destination window ID can be set, and the destination window ID will increase automatically
according to the copied number in this case, which means the screen and attributes of the
source window will be copied into the windows between the starting destination window and the
end destination window respectively.
Copy Multi-Windows
When the number is 1, both the starting source window ID, the end source window ID and the
starting destination window ID can be set, and the end destination window ID will increase
automatically according to the number of the source window, which means the screens and
attributes of the windows between the starting source window and the end source window will be
copied in order into the windows between the starting destination window and the end
destination window respectively.
When the copy number is greater than 1, the starting source window ID, the end source window
ID and the starting destination window ID can be set, and the end destination window ID will
increase automatically according to the copied number and the number of the source window,
which means the screens and attributes of the windows between the starting source window and
the end source window will be copied in order and as specified number into the windows
between the starting destination window and the end destination window respectively.
The destination window ID must be a new window number because the existing
window ID doesn’t support the window copy.
58
2. Delete Window
Supports single-window deletion or multiple-window deletion.
Delete Single Window
The starting window ID can be set, which means to delete the window with this ID.
Delete Multi-Windows
Both the starting window ID and the end window ID can be set, which means to delete the
windows with the ID between the starting ID and the end ID.
1. The copy operation across the project or HMI windows are not supported.
2.When the multiple widows are operated, the copying and deletion among the
non-continuous windows are not supported.
59
3-2-5 Draw Menu
The corresponding contents in the [Draw] menu shown as below have been described in [3-2-3 View Menu].
60
3-2-7 Tools Menu
For the corresponding contents in the [Tools] menu shown as below, refer to [3-12 Recipe Data], [3-14
Simulation] and [3-15 Download].
61
3-2-9 Window Menu
The corresponding contents in the [Window] menu are shown as below.
62
The vertically-tile window is shown as below.
63
3-3 NB-Designer Software Window
NB-Designer has quite a few windows, which will be illustrated in this part.
The Graph Element Window contains: Connector, HMI, PLC, PLC Parts, Function Parts and Project
Database.
Connector: Serial Port
HMI: NB5Q-TW00B, NB7W-TW00B
PLC: OMRON, SIEMENS, MITSUBISHI, Schneider…
PLC Parts: Bit State Setting, Bit State Switch, Multiple State Display, Trend Curve, XY Plot, Number Input,
Text Input…
Function Parts: Scale, Function Key, Alarm Bar, Timer…
Project Database: Text Library, Address Tag, PLC Control…
64
Directions:
1. Connector
Just click “Serial Port”, and drag it to the Project Structure Window.
2. HMI
Check your HMI type, find and drag the HMI with the same type in the “HMI” to the Project Structure
Window.
3. PLC
Check your PLC type, find and drag the PLC with the same type in the “PLC” to the Project Structure
Window.
After finishing selection of the PLC, HMI and Connector, carry out connection. The connection
method is as follows: move the locations of HMI and PLC accordingly, or click one end of the
connection line and drag it to the vicinity of the COM port of the PLC or the HMI, then bring the
connection port close to either end of the connection line, and a successful connection can be
completed.
If the PLC or HMI is not dragged into the “Project Structure Window”, both of the
“Project Files Windows” and “Project Structure Window” will be empty, as shown
below.
65
Once the PLC and HMI are dragged in, the “Project Files Windows” and “Project Structure Window”
will be filled with appropriate content, as shown below:
4. PLC Parts
These include various editing components, as shown below:
When a project is created, and the HMI Edit Window is entered, it just needs to drag the required
components to the HMI Edit Window.
As to the usage methods of the components, refer to [3-6 PLC Parts].
66
In the Graph Element Window, you can right-click , select and use “Small Icon”, as shown below.
5. Function Parts
These include Scale, Function Key, Alarm Bar, Timer, etc. For details, refer to [3-7 Function Parts].
6. Project Database
This contains Text Library, Address Tag, Alarm Information, Event Information and PLC Control. For
details, refer to [3-8 Project Database].
67
3-3-2 Project Files Window
The Project files window is intended for displaying information about the HMI, Macro, Recipe and Vector
Graph, etc. contained in a project. If this project uses 1 HMI, only one “HMI0.whe” will appear below the [HMI].
if 3 HMIs are involved, “HMI0.whe, HMI1.whe, HMI2.whe” will appear accordingly. The rest can be deducted
from this. See the following diagram.
By clicking the “+” or “-“ symbol on the left of the icon, the directory tree can be unfolded or folded.
By clicking a specific file, the editing state can be entered.
The recipe file (.RCP) can only be imported and deleted, but not be edited in the
HMI Edit Window.
68
3-3-3 Project Structure Window
The Project structure window is mainly intended for displaying the structure of the whole project, and contains
two parts: HMI and PLC, as shown below.
z HMI
It mainly displays (stores) the HMI, each of which also has a subdirectory. Every directory stores its own
structure.
z PLC
It mainly displays (stores) the number of PLC, PLC No. and Station No. addresses.
z Tree View
69
The “SB0, SB1, SB2” in the above diagram indicate components in Frame 0 of the HMI0. All the components
contained in each frame will be displayed here, and if there is no component in a frame, nothing will appear
below it.
By clicking the “+” or “-” symbol on the left of icon, the directory tree can be unfolded or folded. Directly
double-click the FRAME or the component No. in the FRAME to skip to the edit page involving the component.
When a FRAME or component is selected, pressing the DELETE button can delete the related frame or
component.
Explanation about the characters on the top of the PLC Attribute window.
z Windows Preview
Click [Windows Preview] in the [Project Structure Window] to display the preview of the corresponding
screen. This makes browsing the thumbnails quite conveniently.
70
Software Function Notification
Supporting PLC Type Replacement
It provides a parameter setting dialog box for the PLC to be replaced and other PLCs in the navigation
mode for the user to make replacement operation. Select a PLC and right-click it in the Construct
Window to make the pull-down menu popup, and then click “Replace PLC Type”.
71
Then, the Replace PLC Type dialog box will pop up, as shown below.
The user can select the PLC by right-clicking it in the Construct Window, and select “Replace PLC Type” in
the pop-up menu. A dialog box as shown above will pop up automatically, and all the supported PLC names
are included in the pull-down list of the PLC names. When the user select a PLC, the register address types
supported by this PLC will be added to the address type box. The default Selections are LB & LW, but the user
can select different address types according to the specific PLC. After being confirmed by the user, the PLC
will be replaced, and the corresponding PLC register address in the project will also be replaced at the same
time.
Note: The correctly-selected addresses of the Destination PLC and Source PLC are as shown below.
72
Supporting HMI Type Replacement
When the HMI needs to be replaced, you can select the HMI by right-clicking it in the construct window,
and select “Replace HMI Type” in the pop-up menu.
73
Here, the name and descriptions of the Source HMI can not be altered, while the pull-down box of the
Destination HMI lists all the supported HMI type, and the descriptions displayed at the lower part will be
updated automatically according to the type selected by the user. After being confirmed, the HMI will be
replaced, and all the graphics in the HMI will zoom automatically according to the resolution of the screen.
After the HMI is replaced, the original user edit screen will be adjusted by related scales according to the
difference of the resolution of various type. All the components with screen display will adjust automatically. For
example, all the components (such as the bitmaps, vector graphics, button and lamp, etc.) with location and
size adjustments can all change their sizes automatically. However, note that there are a few exceptions: as
the font size of text and tag can’t be changed, the components using text and tag will be restricted to mainly
display the text in the minimum display area when size changes, especially when it becomes smallers. as
square components like the meter change sizes in a “square” way, the changed sizes may disrupt the
proportion among the component sizes, therefore it requires a second fine-adjustment by the user.
If [Special window settings] is used, the special window will be replaced by one that matches the Destination
HMI. If the [Special window settings] is not used, the special window of the source HMI will continue to be used.
If the resolutions of the source HMI and Destination HMI are the same, no adjustment is required. But on the
contrary, if they are different, it will require the user to adjust the fonts and pictures to appropriate sizes.
When the project is opened, the Message Window will display the loaded information of the project. when the
project is compiled, the Message Window will display the compilation process and error information.
z Clearance/Export of Message
The compiled information can be cleared or exported in the Message Window. Right-click the mouse in
the [Message Window], the following menu will pop up.
74
Clear Message: All the information in the Message Window will be cleared off.
Export Message: All the contents in the Message Window are exported to the folder which contains the
current project, forming a file named “log.txt”.
This window displays all the component information used by the project, including: HMI No., Frame, Part No.,
Read PLC, Read Address, Write Address Function Address” etc. Double-click an item to reveal the attributes
of the selected component, and the HMI Edit window will skip to the window where this element locates.
75
3-4 Window Concept
z Basic Window
This is the common-type window. When Basic Window is switched by using “Switching to Basic Window”
command, the current screen will be cleared (All the windows rather than Common Window and Fast
Selection Window will be cleared.), and Basic Window to be switched to will be displayed in the current
screen. When the component in Basic Window calls the pop-up windows out, the original information in
Basic Window will be reserved, and the called pop-up window will be attached to the current Basic
Window. The master-slave relationship is between Basic Window and all of related pop-up windows.
When Basic Window N is switched to Basic Window M, all of the sub-windows of Basic Window N will be
closed while Basic Window M and its sub-windows will be displayed. Basic Window must cover the
whole screen.
z Common Window
Common Window will always be displayed in the screen, and the components to be displayed forever
can be put in Common Window. In this way, you can see the state of this component or operate this
element at any time. The default Common Window is Frame 1. You can use [Change Window] function
key to switch the other window as the current Common Window, but only one window can be used as the
current Common Window.
z Bottom Window
3 bottom windows (max.) can be set for the window in [Window Attribute] dialog box. Bottom Window is
generally used to put some common components such as background graphics, charts and titles and so
on for the multiple components. Each window can be set as Bottom Window.
76
As shown above, Bottom Window can be selected directly from the [Bottom Window] option. Bottom
Window is different from the general window. The components in Bottom Window will be inserted into the
general window during the running, and in fact Bottom Window isn’t displayed at all, but the display and
control of its components are similar to that of the components in the general window.
When the window-switching command is executed, the HMI will clear the current window (the pop-up
window attached on the current window etc included) and switch to the window to be displayed, but
Common Window will always be displayed in the screen. The original contents of Basic Window can’t be
changed by the pop-up window that called by the direct window or indirect window, and the pop-up
window is just attached to Basic Window. In addition, up to 3 bottom windows can be set for each window
in window attribute setup.
When one Basic Window (Window No. is 0 or ranges from 10 to 32767) is called out, all the components
in this window will be displayed in the HMI. If Basic Window has the bottom window, all the components
defined in its bottom window will be displayed. All of the trigger touch components (such as Bit State
Setting, Function Key etc.) defined in the bottom window are valid in the current window. If there are
display components in Common Window, they will be displayed in the current screen. And all the trigger
touch components defined in Common Window are valid.
Each project includes 32768 windows (max.) (Basic Window, Common Window and Fast Selection
Window etc included), and only one window can be used as Fast Selection Window. But you can use
[Change fast select window] function key to make the window switch to the specified window as Fast
Selection Window. For details, refer to [3-7-2 Function Keys].
Each new project has a default initial window, and the default window No. is 0 (If you want to change it,
you just need to make changes in [HMI Attribute] in project editing screen.). Generally speaking, one
project needs to use multiple windows and the valid window No. ranges from 0 to 32767.
77
The default Common Window and Fast Selection Window for the project are Frame 1 and Frame 2. If you
want to change the default Fast Selection Window and Common Window, you just need to double click HMI to
modify [HMI Extended Attribute], as shown below:
78
3-4-2 Window Attribute
The methods to change the window attribute:
1. Direct double-click the blank in the window.
2. Click the icon in the toolbar without selecting any e component in the window.
z Window Name
Assign the unique name for each window for convenient differentiation. Of course, the window name can
be changed.
z Window No.
The valid window No. ranges from 0 to 32767. Window No. is assigned by the system when the new
window is created, and it can’t be changed by the user. Due to the deletion or addition of the window, so
the window No. can be inconsecutive.
z Position
When the window is the window ejected by using “Pop-up Window” function of the function key, the
vertex in the upper-left of the window will be displayed in this position.
z Special Attribute
Keyboard page determines whether to set the window as Keyboard Window. Print page can be used to
set the size of this window regardless of the limitation of the actual resolution of the HMI. Print page and
video page are not supported currently.
79
z Use Background Color
If the filling effects for the window are needed, select this option.
The above parameters show the relationship between one pop-up window and its adjacent window. If
one pop-up window features “Monopoly”, its parent window will be frozen after it pops up, and it will
always be displayed in the Top layer. If one pop-up window features “Clipping”, the border of this window
will be restricted by its parent window, i.e. the part displayed out of the border of its parent window will be
cut off. If one pop-up window features “Tracking”, it will move together when its parent window moves.
The following Window A and Frame B are both attached to the Basic Window. Generally, Window A will
be displayed in the Top layer when it is touched. But if “Coherence” is selected for Window A, it will not be
displayed in the Top layer even if it is touched, but it will always be attached to its parent window.
The window No. can’t be changed once it is created, but the name, frame and
background can be changed still.
z Security Level
Set the corresponding security level for the window. For details, refer to [3-13 Security Levels].
z Bottom Window
Set the corresponding bottom windows for the current window. The window to be set as the bottom
window must be the created window, where the components used by the multiple windows together can
be put.
z Frame
Refers to the frame recommended to be used by the pop-up window. The width of the frame can be any
number from 0 to 16. If the width is not 0, the color can be selected for the frame.
80
z Transparence
It is only valid for the pop-up window and the Fast Selection Window.
Place one function key with the attribute “Frame 10” in Frame 0, as shown below.
Set the width and height of Frame 10 to “200”, Fill color to “Yellow”, and the transparence to “0%”, as
shown below.
81
Press the function key and pop-up Frame 10 will cover the function key, which is caused by the
transparence of 0% for Frame 10, as shown below.
Perform the offline simulation and press the function key, the displayed effect is shown as below.
82
y When the transparence is 80%.
83
3-4-5 Window Deletion
In Project structure window, select the window No. to be deleted, and press the “Delete” key in the keyboard
or click the icon in [Page Switch Toolbar]. When the Confirm Window pops up, select “Yes” to delete this
window, and all the components in this window will be deleted and can’t be restored. Please be careful when
you use this function.
Frame 0, Frame 1 to Frame 9 are all the default windows for the system, and
they are not allowed to be deleted.
84
3-5 Basic Design Method
z Component Addition
1. Drag the component icon from [Graph Element Window]-[PLC Parts] to the HMI Edit Window.
2. When the attribute dialog box of this component appears, set the various attributes for this
component such as PLC Read/Write Address, Vector Graphics or Bitmap, Tag and Position etc.
3. After the various attributes of this component are set, click the [OK] button. And you can see this
component has been placed in the screen after exiting from this dialog box. If required, you can
adjust the size of the component by changing settings in “Postion” in “Display Setting” tab or drag it
to the desired position.
85
3-5-2 About ID No.
ID No. is the number automatically assigned to the component for differentiating the components on the HMI.
The designer can't change component ID number artificially.
PLC Parts:
SB: Bit State Setting
BL: Bit State Lamp
SW: Bit State Switch
DW: Direct Window
SWD: Multiple State Setting
WL: Multiple State Display
MSW: Multiple State Switch
SCR: Scroll Bar
MV: Moving Component
ANI: Animation
AD: Alarm Display
TR: Trend Curve
XY: XY Plot
BR: Bar Picture
MT: Meter
RCP: Recipe Data
ED: Event Display
IDW: Indirect Window
ND: Number Display
TD: Text Display
NI: Number Input
TI: Text Input
OS: Oscillograph
NB: Note Book
NL: Muttiple State Neon Lamp
BNL: Bit State Neon Lamp
TT: Trigger Touch
GR: Grid
HDD: Historical Data Display
Function Parts:
SC: Scale
86
FK: Function Key
AB: Alarm Bar
TM: Timer
BG: Bitmap
VG: Vector Graph
NP: Note Pad
DT: Data Transmission
VM: Freeplotting
DTM: Date/Time
DG: Dynamic Graph
UID: User Info Display
CO: Combination Operations
EB: Event Bar
87
3-5-4 Read/Write Address for PLC
The correct address type and address range vary with the PLC. In the following graph, PLC0 is manufactured
by OMRON, while PLC1 is manufactured by SIEMENS, so their addresses are different.
All the available PLC devices can be displayed in the pull-down menu corresponding to “PLC No.” option.
88
The internal nodes can be selected also. And the descriptions of internal nodes are as follows:
RB and RW point to the same area. For example, RB5.0~RB5.15 and RW5 map the same area, i.e. RB5.0
is the Bit0 of RW5. But the addresses pointed by LB and LW in the memory are different, because they map
the different areas.
The memory addresses of LB9000~LB9999 in LB,and LW9000~LW10256 in LW are reserved by the
system internally for some special purposes, and the users can’t use them as the addresses for the common
devices, but should use their special functions according to the related manuals. For details, refer to [3-11
Address of System Reserved Register].
When the recipe memory is accessed by the index address, the index address will begin to search from the
address of the offset of the address displayed by LW9000. For example: If LW9000 is 50, the index address
RWI100 will access the data in the address of RW150 (100+50). (For details, refer to [3-12 Recipe Data].)
89
3-5-5 Vector Graph
NB-Designer provides the powerful vector graphics and bitmap library, and you can create any desired
graphics (such as switch, lamp, piping etc.) in the library and even you can add your own pictures to the library.
The graphics can be 256-color bitmap, 16-color bitmap, 32-color bitmap or in JPG, BMP, GIF and PNG format.
Every vector graphics or bitmap include 256 states that are enough for the user to use. The created vector
graphics and bitmap are in [Vector Graph] in [Project Files Window], as shown below:
Of course, you can use the graphics library provided by the system. When you click the [Import Graphics
Library] icon in the toolbar, the following dialog box will pop up:
90
Then find the Graphics Library\Vector Graphics\vg File under the system installation directory, and save them
according to the directory name for convenient browsing. Select the vector graphics to be imported, and click
“Import”, then the vector graphics will be copied into the “vg” file of the current project. Importing multiple
vector graphics or bitmaps simultaneously is not supported and only one graphics in the same folder can be
selected at a time before “Import” is clicked. All the imported or created vector graphics or bitmaps by the user
in the whole project will be displayed in the [Vector Graph] in [Project Files Window] to facilitate the user to
view and use them.
One vector graphics includes 256 kinds of states and 2 kinds of using methods, that’s to say, it can be used as
static vector graphics or the graphics representing the display states for various kinds of components.
91
2. Input the Name, State Num. and Description for the vector graphics (For example: To create a
vector graphics with the name of “Middle” and the state Num. of “2”), and click “OK”, then the
following dialog box will appear:
If you think the vector graphics states added just now are not enough, you can use the following methods to
make addtion:
Drag the mouse into State Preview Window of the vector graphics, select one state such as “state0”, then
click icon in the toolbar to create a new state. And the states that can be created are up to 256 kinds.
3. Make the graphics be displayed in these two states, and then save them.
92
4. Go back to the Edit Window, and select one component, as shown below:
5. Check [Vector Graphics] in the [Graphics] tab of Bit State Setting Component Attribute dialog box,
and find the name of the graphics created just now in the pull-down box, and the component made
just now can be seen at that time.
6. Click the [OK] button to exit from this dialog box, and this component will be displayed as the
selected vector graphics and placed in the screen.
All the vector graphics imported into the project will be displayed in the [Project File Window].
93
If you want to modify any vector graphics or bitmap, you just need to find the graphics to be modified in the
Vector Graph in the Project Files Window, and double-click it to enter the Edit Window of this graphics, where
you can modify the graphics drawn by yourself.
1. The new graphics must be saved after it is created to make the content of it
saved; otherwise the content will be lost.
2. No text can be added to the vector graphics.
94
3-5-6 Bitmap
One bitmap includes 256 kinds of states and the created bitmap can be used in the Edit Window. The bitmap
is mainly applicable to graphic area, i.e. external graphics addition.
The operations (such as line-drawing, drawing, text addition etc.) for the bitmaps
can’t be made in the Graphics Edit Window, and only the external graphics
addition can be done.
2. Select [Bitmap] in the “Type”, and input “State Num.” and “Name”, then click “OK”.
If you think the bitmap state added just now is not enough, you can use the following methods to make
addition:
Drag the mouse into State Preview Window of the bitmap, select one state such as “state0”, then click
icon in the toolbar to create a new state. And the states that can be created are up to 256 kinds.
95
3. Click [Draw Toolbar] icon, find the needed graphics, and click it to open it. Only the pictures can
be input into bitmap and the tools such as “Line” can't be used in the bitmap, as shown below.
4. After the bitmap is saved, you can use it through the bitmap component in the Edit Window.
96
z Use of Bitmap
1. Select the component where the bitmap will be used and then enter “Graphics” tab.
2. Check “Bitmap” option, and select the bitmap you want to use, then click “OK” button to close the
dialog box.
z Import of Bitmap
1. You can import the bitmap just like importing the vector graphics. Click “Import Graphics Library”
icon , and select “Bitmap grap (*.bg)” in the “Type” in the pop-up dialog box. You can also import
the bitmap used in the other project or the System Image Library. The location is Graphics
Library\Bitmap under the system installation directory, and you can save them according to the
directory name for convenient browsing.
97
2. In the same project, the bitmap and the vector graphics are placed in the same location, i.e. “VG”
folder under “Project File” directory. And all the imported bitmaps are stored in the “Image” folder
under “VG” folder. Don’t delete these pictures; otherwise the graphics library will not be displayed
normally.
There is no limitations for the size of the graphics imported (BMP, JPG, GIF,
PNG), and the graphics will be compressed according to the maximum used size
(The maximum used size = Maximum length × Maximum Width in the project)
during the compilation.
98
3-5-7 Creating Tags
Tag refers to the text displayed in the surface of the components such as switch, lamp or the other
components.
z Tag Addition
1. Select [Tag] in the attribute page of the selected component.
2. Check “Use Tag”.
3. As shown below, write the contents to be displayed for the tag in [Tag Contents].
4. Set the display attributes such as the alignment method, font size and color etc.
5. Press the [OK] button to complete the setup.
z State Number
Status number is only effective for the component with multiple states. The text for every state can be
displayed independently. The text, font, color and alignment method for the corresponding state can be set
after the state is selected.
z Content
Input the text to be displayed in the component surface here. If there are several lines, you can use “Enter”
key to break them.
99
z Font Size
The size of Dot Matrix Font is as follows: 8, 16, 24, 32, 48, 64, 72, 96, 120 and 144 pixels.
z Alignment Method
When the input text for the tag exceeds 2 lines, Left, Right or Center can be selected for the alignment
between the upper line and the lower line.
z Color
You can select 40 kinds of colors from 65536 kinds of colors for backup. “Default Color” palette contains the
most commonly-used colors. “Custom Color…” palette allows the users to customize the palette (65536 kinds
of colors available).
100
If “Fast Selection Window” is checked, one Fast Selection Window will pop up when the Fast Selection
Window button at the left side is pressed. Some function keys can be put in the Fast Selection Window (The
operation is performed by the user themselves.) to realize the switching to the different window. Because the
Fast Selection Window is always displayed on all of the screens, therefore it can be called at any time. If you
want to switch to a certain window, it just needs to press the function key pointing to the destination window
once, thus avoiding the boring process of looking for the window.
16 window icons can be put in the Task Bar simultaneously. Double-clicking the “Minimize” icon can minimize
the corresponding pop-up window, and if you click this icon again, the window will return to the previous state.
The function keys “[Minimize] and [Popup window title bar]” contained in one pop-up window can be used to
make the window minimized to the Task Bar. For details, refer to [3-7-2 Function Keys].
101
The Fast Selection Window is displayed on the left side or the right side of the panel
during the operation. In edit window state, the Fast Selection Window is an independent
window, and it is Frame 2 by default. For details, refer to [3-10-2 Task Bar].
c. The handlings of half-width characters and full-width characters are not perfect. In the software, ASCII
codes are treated as half-width characters, and the other characters are intercepted as the fixed width.
Due to some characters can’t be displayed as the width-equal characters, the display effects for some
languages are poor, especially for Russian, as shown below.
Therefore, this method has the obvious disadvantages for the project with multiple languages.
Graphics Font:
Graphics font treats the whole character string as a whole, and intercepts the whole bitmap and saves it in the
project. This method can make full use of the fonts installed in Windows and the display effect is good.
a. A large space is occupied. There are 2 reasons for the large space needed for saving the character string
as bitmap. First, bitmap format itself needs a large space. For example: Four characters “组态软件”
displayed in Zero SimSun needs 1824 bytes, as shown below:
In addition, the bitmap font should be intercepted again if the content, size or colors vary slightly, thus
causing a linear increase in the occupied space.
b. Text library and some component tags can’t use the graphics font.
Vector Font:
In NB-Designer, the software intercepts the characters that are needed for or may be used by the user from
the user-set fonts through checking the setup of the user-set fonts, and then makes them into very small
TrueType font file (in ttf format) for the slave unit to use.
Using vector font in NB-Designer can avoid the disadvantages of dot matrix font and graphics font.
Vector font has the following advantages:
102
a. It supports a large variety of vector fonts. The TrueType font (only the font in ttf format) installed in the
operating system can be used.
b. The storage space is smaller. It adopts the method of intercepting the matrix from the font file, thus
reducing the size of the font file. For the same character in the same font, only one matrix needs to be
intercepted regardless of the size, color, bold/italic styles.
c. Rich font styles are available. Bold and italic styles are available for each kind of font.
d. The font size can be set freely without any deformation. You can set the consecutive font sizes without
any projections.
e. It supports powerful multiple languages. You can use it to set fonts for each state and each kind of
language of the text.
f. The alignment method for multiple-line texts can be set.
103
6. Time Component
Time component can display the information such as year, month, day, hour, minute, second and week etc. of
the current system in the simplest way.
When the vector font is selected, the time will be displayed according to the set vector font.
Because the length of the character string for time is different at different time, so there are 2 spaces behind
the example to avoid the incomplete display of time.
7. List and Pull-down List
List and pull-down list options are available for selection in the Mutiple State Switch component, and in such
state, the tag for the component is used as the option of the component. Similarly, fonts can be set for each
language and each state.
8. Alarm and Event Information
Alarm and event information component can also set different vector fonts for each piece of alarm information
and for each language (When the text library is used.) respectively.
The software provides the toolbar for convenient font operation. When you select one or more components,
you can use the font toolbar to change the font attributes of the related components. Please pay attention to
the following conditions:
a. The font attributes set through the toolbar for the current state and current language. If the attributes of
other states and languages need to be changed, you can do it through the component dialog box or by
changing the current state or the current language of the project, as shown below:
b. When multiple components are selected, if the component doesn’t support a certain font attribute, the
attribute of this component will not be affected by using the font toolbar to set the font attribute.
2. Use the vector font as much as possible when it can meet the requirements.
Because the dot matrix font and graphics font have many disadvantages in the storage space and scaling
etc, therefore, use the vector font as much as possible.
3. The types of the vector font can be reduced when the screen can meet the requirements.
If too many types of vector fonts (e.g. dozens or more) are used by the user, the number of font files will
be too many, thus affecting the compilation speed, downloading speed and screen switching speed.
4. Use the common fonts as much as possible.
If a certain project uses “Microsoft Elegant Black” font when it is edited on PC, and when it is transferred
to another PC where no “Microsoft Elegant Black” font exists for editing, then all the “Microsoft Elegant
Black” characters used in the project will be changed to “SimSun” automatically.
104
3-5-10 Basic Attributes of Component
Basic Attributes of Component
Priority It is pre-reserved for the function.
Refers to the register address of the control devices where the state values are written. If
it can't be set, it means the component is read-only and its state can only be displayed
based on the state value of the read address.
Refers to the HMI number corresponding to the control.
HMI The number will be assigned automatically according to the
establishment sequence of HMI
Refers to PLC number corresponding to the control.
PLC No. The number will be assigned automatically according to the
establishment sequence of PLC.
This option can be used to access the corresponding PLC during the
communication with multiple PLCs. This option is applicable to the
Change Station
situation where only one PLC is edited when one HMI is connected
Num
with multiple devices or multiple HMIs are connected with multiple
devices.
Refers to the register of PLC device to be controlled or the internal
Add Type register of the HMI. For the internal address type of HMI, refer to
[3-5-4 Read/Write Address for PLC].
Write Address Specifies address to be written to.
Address Includes BIN, BCD or LSB. 256 kinds of states (max.) can be
Code Type displayed when the BIN/BCD codes are used and 17 states (max.)
can be displayed when the LSB codes are used.
Refers to the number of the occupied registers. The default number is
Word Length
1, and it varies with the different component or address type.
Refers to the internal registers provided by the HMI for some special
System Register purposes. For details, refer to [3-11 Address of System Reserved
Register].
Refers to the formats of the address types of the PLC registers or
Format (Range)
the internal register address of the HMI.
Determines whether to use the addresses registered in the address
Use Address Tag
tags. For details, refer to [3-8-2 Address Tag].
Determines whether to use the specified register as the index
register for the control register of the current component. The new
Use the index [Read/Write Address] = the specified [Read/Write Address] + [Index
register Address]. For example, when the specified written address is D100
and the index register address is LW0, if LW0=10, the new write
address is D100+10=D110.
Refers to the address of the control device register read by the state value. If it can’t be
Read
set, it means the component is write-only and its state can’t be displayed based on the
Address
state value of the read address.
Description Refers to the reference name assigned to the current component (not displayed).
105
3-5-11 Control Setting of Component
Control Setting of Component
Option Descriptions
Touching Always Checking this option means the state value can be effectively written into the
Enabled Valid controller by triggering the effective area for the current component.
Setting Always Checking this option means the state value can’t be effectively written into the
Invalid controller by triggering the effective touching area for the current component.
Conditional Security Level: Checking this option means only when the security level of the
Enabling operator is higher than the minimum security level already set, the current
component can be touched, and the state value can be written into the controller.
Permission Control: Checking this option means the operator needs to have the
set authority to touch the current component and write the state value into the
controller.
Register Control: Checking this option means only when the state of the specified
bit register or word register meets the set conditions, the current component can
be touched, and the state value can be written into the controller.
Password Checking this option means the Password Input Window Frame
Window Pops 9 (Login window) will pop up automatically for the user to input
Up the password for convenient login when the security level or the
Automatically permission of the current user doesn’t meet the requirement of
the set level or authority.
Show Checking this option means display invalid tag for the component will be displayed
Elements when the component is in invalid touching status. This function can only be
Invalid Tag checked only when [Always Invalid] or [Conditional Enabling] is checked; and
touching invalid color can be set in [HMI Attribute]-[HMI Extended Attributes].
Security Min Press The state value can be effectively written into the controller only when the current
Setting Time component is pressed consecutively for this set time. The minimum unit is 100 ms.
When this option is 0, it means the minimum press time doesn’t need to be set.
Operator Checking this option means the Confirm Action window will pop up automatically
confirm when the current component is touched, and the state value can be written into
the controller when “YES” is clicked, while the operation will be cancelled
automatically when the user have clicked “Cancel” or haven’t confirmed “YES”
after the set “wait[s]”is exceeded.
Record Checking this option means the operation event will be recorded, and displayed
Operations through the operation log element and saved into the external memory as the file
in CSV format.
Min Fine Refers to the minimum interval between 2 operations for the same component or
Interal different components.
The minimum unit is second. When this option is 0, it means the minimum interval
doesn’t needs to be set.
Notifications Trigger When this button is triggered, the specified Macro codes will be triggered and
Macro executed before the current operation is performed successfully.
Trigger Word Notifying Writes the write-value into the specified word register
Register before Writing before the current operation is performed successfully.
Notifying after Writes the write-value into the specified word register
Writing after the current operation is performed successfully.
Bit Notifying Writes ON/OFF signal into the specified bit register
before Writing before the current operation is performed successfully.
Notifying after Writes ON/OFF signal into the specified bit register after
Writing the current operation is performed successfully.
106
Example of Control Setting
Example: Select LW10 as number input component, check Register Control for Touching Enabled
Setting up and “On” for LB10.
107
1. Perform the offline simulation. When LB10 is OFF, the input by the number input component is invalid, and
the invalid tag is displayed, as shown in the following left graphics.
2. When LB10 is ON, the input by the number input component is valid, and the invalid tag isn’t displayed as
shown following right graphics.
108
Perform the offline simulation. Operate the number input component, and the will pop up during the
confirmation operation. In this case, press “Yes” to input the data successfully, press “Cancel” to cancel the
input. If “Yes” or “Cancel” button isn’t pressed for 10 s, the Confirm Window will disappear automatically.
Example of Notifications
Example: Select LW0 as number input component, and notify LB10 to be “On” after the writing.
109
Perform the offline simulation. And when no data is written into the number input component LW0, LB10 is
“Off”, as shown in the following left graphics.
When the data is written into the number input component, LB10 is “On”, as shown in the following right
graphics.
110
3-5-12 Display Setting of Component
Display Setting for Component
Lock Checking this option means the component is locked. Once the component is
locked, it can’t be moved by the mouse or the moving keys in the keyborad.
X/Y Refers to the coordinate value of the vertex in the upper-left of the component.
Width/Height Refers to the width and height of the component (The unit is pixel point).
Always Display Checking this option means the current component is always in displayed state.
Never Display Checking this option means the current component is always in “hide state” and
[Touching is invalid] the touching is invalid when the component is hidden.
Conditional Display Security Level Control: Checking this option means the current component can be
displayed only when the security user level of the operator is higher than the
minimum security level already set.
User Permission Control: Checking this option means the current component can
be displayed only when the operator has the set permission.
Register Control: Checking this option means the current component can be
displayed only when the state of the specified bit register or word register meets
the set conditions.
111
Perform the offline simulation. When LB10 is Off, the number input component is hidden, as shown in the
following left graphics.
When LB10 is On, the number input component is displayed, as shown in the following right graphics.
112
3-6 PLC Parts
PLC Parts are designed to meet specific needs. Generally speaking, one component can realize one function,
but for some components, they must be in combination with the related components or PLC to realize some
specific functions, as shown below.
Most of the PLC components support “bit” or “word” addresses (“Double-word” operation can be performed by
some components such as Number Input and Scroll Bar etc. Due to some PLCs have “double-word”
addresses, so some PLC drivers will make conversion between “double-word” and “word”, and the user must
pay special attentions to the instructions of PLC driver.
113
3-6-1 Bit State Setting
Bit State Setting component defines one touching area. When this area is activated, the bit address
inside the HMI or in the PLC can be switched to “On” or “Off” forcefully.
z Process of adding one Bit State Setting component
1. Drag the Bit State Setting component after it is pressed will make the [Basic Attributes] of Bit State
Setting component pop up.
Write Address:Refers to the bit address corresponding to “On” or “Off” state controlled by the Bit State
Setting component.
2. Switch to the [Bit State Setting] tab.
114
The specified bit address will change once (OnÆOff, OffÆOn) (Switched back
Toggle
and forth) when the Bit State Setting component is pressed each time.
The specified bit address will turn On only when the Bit State Setting
Reset component is being pressed. Similarly, the bit address will turn Off when the
component is released.
Set On when Window The specified bit address will turn On when the window containing the Bit
Open State Setting component is opened.
Set Off when Window The specified bit address will turn Off when the window containing the Bit State
Open Setting component is opened.
Set On when Window The specified bit address will turn On when the window containing the Bit
Close State Setting component is closed.
Set Off when Window The specified bit address will turn Off when the window containing the Bit State
Close Setting component is closed.
Set On when Window The specified bit address will turn On when the window containing the Bit
Maximized State Setting component is maximized.
Set Off when Window The specified bit address will turn Off when the window containing the Bit State
Maximized Setting component is maximized.
Set On when Window The specified bit address will turn On when the window containing the Bit
Minimized State Setting component is minimized.
Set Off when Window The specified bit address will turn Off when the window containing the Bit State
Minimized Setting component is minimized.
Set On when Backlight The specified bit address will turn On when the window containing the Bit
Off State Setting component is displayed in the screen and the backlight is Off.
Set Off when BacklightThe specified bit address will turn Off when the window containing the Bit State
Off Setting component is displayed in the screen and the backlight is Off.
The specified bit address will turn On when the input using one Number Input
Set On when Input
component in the window containing the Bit State Setting component is
Success
successful.
The specified bit address will turn Off when the input using one Number Input
Set Off when Input
component in the window containing the Bit State Setting component is
Success
successful.
3. Switch to the [Tag] and add the text corresponding to the state.
4. Switch to [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
Min Time Interval (seconds): Refers to the interval between 2 valid touching operations for the same
component, and the default is 0 s.
6. Switch to the [Display Setting] tab and adjust the position and size for the Bit State Setting component.
7. Press the [OK] button to complete the setup of Bit State Setting component.
115
3-6-2 Bit State Lamp
Bit State Lamp displays the On/Off state of bit address inside a specified HMI or of PLC device. If the
state is 0, the graphics with state of 0 will be displayed; If the state is 1, the graphics with state of 1 will be
displayed. If “Use Tag” is checked, the tag values corresponding to the different states can be set and
displayed.
z Process of adding one Bit State Lamp
1. Drag the Bit State Lamp icon after it is pressed, then the [Basic Attributes] dialog box for Bit State Lamp
component will pop up.
Read Address: Refers to the bit address controlling the displayed information (such as the state, graphics,
tag and so on) of the lamp.
Address: Refers to the bit address corresponding to the lamp.
116
2. Switch to the [Bit State Lamp] tab.
Function:
Blinking rate is set in “Rate” box with the unit of 100 ms (If the rate is set to 500 ms, both ON time and OFF
time of the Bit State Lamp are 500 ms.).
117
3. Switch to the [Tag] tab and add the texts corresponding to the On and Off states.
State: Off will be displayed when the lamp state is 0; while On will be displayed when the state is 1.
Alignment: Three methods are available, as shown below:
Left: The input content is put in the left side of the graphics.
Right: The input content is put in the right side of the graphics.
Center: The input content is put in the center of the graphics.
Font Size: Displays the size of the font used by the content input to “Tag Contents” and the following types
are available.
Color: Displays the colors of fonts used by the content input to “Tag Contents”, and the user can use “Custom
Color…” to make the desired colors.
118
4. Switch to the [Graphics] tab, and select vector graphics or bitmap to represent the graphics
corresponding to the On and Off states of the bit address.
5. Switch to the [Display Setting] tab and adjust the position and size of the lamp component.
6. Press the [OK] button to complete the setup of the lamp component.
119
3-6-3 Bit State Switch
Bit State Switch is the combination of the Bit State Lamp and the Bit State Setting component. It
defines a touching area, and the bit address inside the HMI or of the PLC can be switched between On and
Off state when this area is enabled.
z Process of adding one Bit State Switch
1. Drag the Bit State Switch icon after it is pressed, then the [Basic Attributes] dialog box of Bit State Switch
component will pop up.
Read Address: Refers to the bit address controlling the displayed information (such as the statue, graphics,
tag and so on) of the switch.
Write Address: Refers to the bit address of On/Off state controlled by the switch.
Address: Refers to the Read/Write Address corresponding to the switch.
2. Switch to the [Bit State Switch] tab and set switch type.
120
Types and Functions of Switch
Type Descriptions
The specified bit address will turn On when the component is pressed. The state
On
remains even if the component is released.
The specified bit address will turn Off when the component is pressed. The state
Off
remains even if the component is released.
The state of the specified bit address will change once (OnÆOffÆOn) when the
Toggle
component is pressed each time.
The specified bit address state will turn On or Off when The component is pressed or
Reset
released respectively.
3. Switch to the [Tag] and add the text corresponding to the state.
4. Switch to the [Graphics] tab, and select vector graphics or bitmap to display the bit address state and
represent the touching area.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Functions.
6. Press the [OK] button to complete the setup of the Bit State Switch component.
Multiple State Setting component also defines a touching area and the state value will be input into the
specified word address when the area is enabled.
z Process of adding one Multiple State Setting component
1. Dragging the Multiple State Setting component after it is pressed will make the [Basic Attributes] of
Multiple State Setting component pop up.
Write Address: Refers to the word address controlling the Multiple State Setting component.
Address: The first address of word address corresponding to the Multiple State Setting component.
Word Length: Displays the data length of the Write Address, and 1 and 2 are available (i.e. word or double-word).
121
2. Switch to the [Multiple State Setting] tab and set the “Setting Mode” for the Multiple State Setting component.
122
When this component is pressed over the “Delay Time”, the “Addend” will be added to
the value of the specified word address each time when the “JPG Speed” time has
elapsed, and the result will not exceed the “Upper”.
When [Immediate Execution of Increase/Decrease Progressively] is selected, the
JOG++
“Addend” will be added to the value of the specified word address immediately each
time the component is pressed. If this component is pressed for a long time, the
“Addend” will be added to the value of the specified word address at the interval of “JOG
Speed” time until the “Upper” is reached.
When this component is pressed over the “Delay Time”, the “Subtrahend” will be added
to the value of the specified word address each time when the “JOG Speed” time has
elapsed, and the result will not be less than the “Lower”.
When [Immediate Execution of Increase/Decrease Progressively] is selected, the
JOG--
“Subtrahend” will be added to the value of the specified word address immediately each
time the component is pressed. If this component is pressed for a long time, the
“Subtrahend” will be added to the value of the specified word address at the interval of
“JOG Speed” time until the “Lower” is reached.
When this component is pressed over the “Delay Time”, the “Addend” will be added to
JOG++ (Circle) the value of the specified word address each time when the “JOG Speed" time has
elapsed until the “Upper” is reached, and then it will increase from the “Lower” again.
When this component is pressed over the “Delay Time”, the “Subtrahend” will be added
JOG--(Circle) to the value of the specified word address each time when the “JOG Speed” time has
elapsed until the “Lower” is reached, and then it will decrement from the “Upper” again.
Variable Parameters: Refers to the variables that can be used by the setting or the upper/lower limit etc.
For example:
A. When Setting Mode is “Set Constant”.
Assuming the address of the Multiple State Setting component is LW0 with the “Setting Mode” of “Set
Constant”, check [Variable Parameters] and select “LW10” as the address of variable parameter.
When LW10 is 5, it means the Set Value is 5. In this case, clicking “Set” will write the value of LW10 (i.e. 5) into
LW0.
123
Perform the offline simulation and the effect is shown as below.
124
In addition, place 2 Number Input components with the addresses of LW15 and LW16 respectively as well as
1 Number Display component with the address of LW5.
When LW15 is 10 and LW16 is 100, LW5 will increase by 10 each time when “Set” is pressed until the upper
limit (i.e. 100) is reached and then stop increase.
Perform the offline simulation and the effect is shown as below.
3. Switch to the [Tag] tab and add the text describing the state.
4. Switch to the [Graphics] tab and select vector graphics or bitmap to display the bit address state and
represent the touching area.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
6. Press the [OK] button to complete the setup of the Multiple State Setting component.
125
3-6-5 Multiple State Display
Multiple State Display component will display the mapping state according to the value of the specified
word address. If the value is 0, the graphics for the state corresponding to value 0 will be displayed; while if
the value is 1, the graphics for the state corresponding to value 1 will be displayed and so on. If “Use Tag” is
checked, the tag content corresponding to the state will be displayed.
z Process of adding one Multiple State Display component
1. Drag the Multiple State Display component icon after it is pressed will make the [Basic Attributes] of
Multiple State Display component pop up.
Read Address: Refers to the PLC address controlling the displayed information (such as the state, graphics,
tag and so on) of the Multiple State Display component.
Address: The first address of word address corresponding to the Multiple State Display component.
Word Length: Displays the data length of the Read Address, and 1 and 2 are available (i.e. word or double-word).
2. Switch to the [Multi-State Display] tab and set the state for the Multiple State Display component. You can
set the state from 1 to 256 in the dropdown box corresponding to “State Num.”.
Map Value: Refers to the value corresponding to each state. When the value of read address is equal to the
map value, the state number corresponding to this value will be displayed.
3. Switch to the [Tag] tab and add the different displayed texts corresponding to the different states.
4. Switch to the [Graphics] tab and select vector graphics or bitmap to display the graphics corresponding to
the state of the Multiple State Display component.
5. Press the [OK] button to complete the setup of the Multiple State Display component.
126
3-6-6 Multiple State Switch
Multiple State Switch is the combination of the Multiple State Display component and the Multiple
State Setting component. It can display the mapping state according to the value of the specified word
address (The mapping state is up to 256 kinds.); and it also defines a touching area at the same time. When
this area is touched, the mapping data of the corresponding state will be written into the specified word
address. Write address can be same or not same as the read address.
z Process of adding one Multiple State Switch component
1. Drag the Multiple State Switch icon after it is pressed will make the [Basic Attributes] of Multiple State
Switch component pop up.
2. Switch to the [Multi-State Switch] tab and set the State Num. and the value corresponding to each state
for the component. You can set the state from 1 to 256 in the dropdown box corresponding to “State
Num.”.
127
Functions of Multiple State Switch:
Control Mode Descriptions
Each time this component is pressed, 1 will be added to the state number,
and the map value of the corresponding state will be written into the specified
write address, and the graphics corresponding to the state will be displayed
according to the specified read address at the same time.
Unloop: When it is checked, and the value of the register for write address is
Add equal to the value mapped by the set maximum state number, the
component doesn’t act when the switch is pressed again.
When it isn’t checked and the value of the register of write address
is equal to the value mapped by the set maximum state number, the
value of the register for write address is equal to the value mapped
by the minimum state number.
Each time this component is pressed, 1 will be subtracted from the state
number, and the map value of the corresponding state will be written into the
specified write address, and the graphics corresponding to the state will be
displayed according to the specified read address at the same time.
Unloop: When it is checked, and the value of the register for write address is
Sub equal to the value mapped by the minimum state number, the
component doesn’t act when the switch is pressed again.
When it isn’t checked and the value of the register of write address is
equal to the value mapped by the minimum state number, the value
of the register for write address is equal to the value mapped by the
set maximum state number.
All the set states will be displayed in the list form, and the current state is
List
differentiated by the specified color.
All the set states will be displayed in the dropdown list form, and the current
Dropdown List state is differentiated by the specified color and the first information displayed
in the dropdown list represents the current state.
For the control modes of Add and Sub, [Unloop] is not checked by default.
State Num.: 256 kinds of states (max.) can be set (256 states (max.) and 17 states (max.) can be displayed
when the BIN/BCD codes and the LSB codes are used respectively.).
The line spacing for the list and the dropdown list can be set:
Map Value: When the value read by the read address is equal to a certain value in the Map Value, the Multiple State
Control component will display the tag and the graphics corresponding to the state number of this value. When a
certain state number is switched to, the value corresponding to this value will be written into the write address.
3. Switch to the [Tag] tab and add the text corresponding to the state.
4. Switch to [Graphics] tab, and select vector graphics or bitmap to display the register state and represent
the touching area.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
6. Press the [OK] button to complete the setup of the Multiple State Switch component.
128
List and Dropdown List
List: Refers to the value of the specified register corresponding to the state of each option. By default, the
value of specified register corresponding to the first option is “0”, and the value of specified register
corresponding to the second option is “1”, and so on.
For example:
1. Create one Multiple State Switch with the read address and write address both of LW0, and the
register of one Number Display component of LW0.
2. Set the Control Mode and State Num. to “List” and “6” respectively.
3. Create the tags with the contents as shown below.
129
4. Perform the simulation and select “33333” in the list component, and “3” will be displayed in the State No.
Dropdown List: When this component is touched, one list will pop up under this component. All the options
are available in this list, and it will automatically disappear when one option is selected.
For example:
1. Create one Multiple State Switch with read address and write address both of LW0 and one Number
Display component with the address of LW0.
2. Set the Control Mode and State Num. to “Dropdown List” and “6” respectively.
3. Set the tag contents to “00000” to “55555”.
4. Perform the offline simulation and the effect is as the left graphics shown.
5. Touch this component, and the list option will pop up as the above right graphics shown.
6. After one option is selected, the list will disappear automatically.
130
3-6-7 XY Plot
XY Plot reflects the correlation of two variables visually. If you want to monitor the XY Plot reflecting
the changes of address values, the NB Unit can clearly displayed it out only by using this component.
It is assumed that there are M channels, and N XY Plot components for the sampling points per page, and the
corresponding registers in PLC is M×N×2, as shown below.
X11, Y11, X12, Y12, ..., X1N, Y1N, ..., XM1, YM1, ..., XMN, YMN
Note: For “Xij, Yij”, subscript “i” represents the channel number, “j” represents the sampling point, and “Xij”
represents the coordinate value of sampling point “j” in channel “i”.
Read Address: Specifies the word address of PLC corresponding to the data of X-axis trajectory, and the
word address corresponding to Y-axis is “read address + 1”. If the channel number is greater than 1, the
addresses corresponding to the 2nd channel are as follows: “read address +2 × sampling points” for X-axis
and “read address + 2 × sampling point +1” for Y-axis and so on.
Address: Refers to the first address of the word address corresponding to XY Plot.
Code Type: Includes BIN or BCD.
Word Length: It is determined by the channel number, sampling points and the type of current address of [XY
Plot], and can’t be changed by the user.
131
2. Go to the [XY Plot] tab and set the parameters related to the XY Plot.
132
Cycle: Refers to the interval between the sampling points each 2 pages with the unit of “s” or “100 ms”.
XY DrawType: Includes Standard, Track and Trend. The sampling methods vary with the types.
XY Plot Type Descriptions
Standard Multiple points are sampled each time, and X and Y components are
included. The register number depends on the channel number and sampling
points. For example, if there are m channels and n sampling points, the
register number is “m×n×2”.
Track One point is sampled each time, and X and Y components are included. The
register number depends on the channel number. For example, if there are m
channels and n sampling points, the register number is “m×2”.
Trend Multiple points are sample each time, and only Y component instead of X
component is included. The register number depends on the channel number
and sampling points. For example, if there are m channels and n sampling
points, the register number is “m×n”.
Sampling Points: Refers to the number of the sampling point displayed in the screen.
PageNum: When [Multiple pages] is selected in [Type], this option is valid. And it ranges from 1 to 32767.
Channel: Refers to the number of track line to be displayed, and it corresponds to the word length of read
address to be set. And 2 word addresses correspond to one track line. The channel ranges from 1 to 16.
Pause-Clear: Controls the Pause bit address or Clear bit address of XY Plot, i.e. when [Pause] bit is ON, the
data sampling will stop and when it turns OFF again, the sampling will continue and the changes in the XY
Plot will be displayed dynamically. [Clear] bit address = [Pause] bit address + 1. When [Clear] bit is ON, the
sampling data will be cleared and when the bit turns OFF again, the sampling will continue and the changes in
XY Plot will be displayed dynamically.
SCRO: This bit is used in combination with the scroll components, i.e. the XY Plot can be viewed by directly
moving the scroll bar. The scroll address should be set in consistent with the address used by the related
scroll bar component. For details, refer to [3-6-22 Scroll Bar].
Time: When “Save Time” is checked, the below “Time” option can be selected. This option includes 12 words,
and it is used to save the time for the latest sampling point currently. “Second, minute, hour, day, month, year”
for the starting point and “Second, minute, hour, day, month, year” for the end point of the current page are
stored in these 12 words respectively, and each word represent a point in time.
3. Switch to the [Channel] tab and set the parameters related to each track line.
133
direction. When the read value is greater than the maximum value or less than the minimum value, only the
maximum value or minimum value will be displayed in the XY Plot.
4. Switch to the [Extended Attributes] tab and set Channel Properties, Grid Properties and Variable Period
etc.
Extended
Descriptions
Attributes
Select the channel to be edited. The optional channel depends on the
Channel channel number set in “Trend Curve” attribute tab.
Properties And the set the Line Style and Line Width of track line corresponding to the
channel.
Dot
Connect Type
LINE
X axis
projection
134
Y axis
projection
Node Graph Select the node graphics from the 6 available graphics z▲{△.
Node Size Sets the size of node.
Node Color Sets the color of node.
Checking this option means the Trend Curve will use the background and
grid effect provided by the system, and the lines and columns of the grid to be
Use Grid
displayed and the color, width and type of grid line, etc. can be set
respectively.
Variable When periodical sampling is used, the sampling time will be read from the
Period specified register.
Number of
The sampling points will be read from the specified address.
Points
5. Switch to the [Save Historical Data] tab and set information to be saved.
Save to Recipe Data Field: Checking this option means the data will be saved into the address of register for
recipe memory in the HMI (i.e. RW register).
End Address = Starting address + 20 + Sampled pages × sampling points /page × (4 + Channel numbers).
135
6. Press the [OK] button to complete the setup of the XY Plot component.
Example: When the maximum value and minimum value of XY Plot (Standard type) are variables.
Descriptions: The coordinate value of sampling point 1 and sampling point 2 correspond to “x, y (LW10,
LW11)” and “x, y (LW12, LW13)”; and the minimum values and maximum values of y coordinate and x
coordinate are LW20 & LW21 and LW22 & LW23 respectively.
136
Example: When the maximum value and minimum value of XY Plot (Track type) are variables.
Descriptions: There is only 1 sampling point whose coordinate value corresponds to “x, y (LW10, LW11), and
the minimum values and maximum values for y coordinate and x coordinate are “ LW20 & LW21” and “LW22,
LW23” respectively.
137
Example: When the maximum value and minimum value of XY Plot (Trend type) are variables.
Descriptions: There are 2 sampling points corresponding to y1 (LW10) and y2 (LW11), and LW20 and LW21
correspond to the minimum (lower limit of Y) and the maximum value (upper limit of Y) respectively.
138
Perform the simulation and the effect is as shown below.
139
3-6-8 Moving Component
Moving component can be used to put one vector graphics or bitmap into the position specified by
PLC in the HMI. The state and absolute position are provided by the 3 consecutive registers in PLC. Generally
speaking, the 1st register controls the state of the component, the 2nd register controls the horizontal
coordinate (X), and the 3rd register control the vertical coordinate (Y).
Read Address: Controls the first address of the word address controlling the displayed information (such as
the state, graphics, tag and so on) of the Moving Component in PLC.
Address: Refers to the first address of the word address corresponding to the Moving Component.
Word Length: Displays the data length of the read address, which is fixed to “3”.
140
2. Switch to the [Moving Component] tab and set the Type, Status Number, the Minimum of X, Maximum of
X, Minimum of Y and Maximum of Y.
141
The descriptions are as follows.
When this option is selected, the Moving Component can only
move horizontally along X-axis and the input maximum (minimum )
X Axis Only
value is invalid and the 1st register and the 2nd register are used to
store the component state and position respectively in this case.
When this option is selected, the Moving Component can only
move vertically along Y-axis and the input maximum (minimum )
Y Axis Only
value is invalid and the 1st register and the 2nd register are used to
store the component state and position respectively in this case.
When this option is selected, the Moving Component can move
along X-axis and Y-axis, and the 1st register, the 2nd register and
X & Y Axis
the 3rd register are used to store the component state, X-axis
position and Y-axis position respectively.
When this option is selected, the Moving Component can only
move horizontally along X-axis, but the relative moving position
can be set through the input value and proportional value (For
example, when the value of PLC to be read ranges from 0 to 1000,
X Scaling but the relative position to be moved in the HMI ranges from 0 to
640, the minimum values and maximum values of proportion value
and input value are 0 & 640 and 0&1000 respectively.) and the 1st
register and the 2nd register can be used to store the component
state and the position respectively.
When this option is selected, the Moving Component can only
move vertically along Y-axis, but the relative moving position can
be set through the input value and proportional value (For example,
when the value of PLC to be read ranges from 0 to 1000, but the
Y Scaling relative position to be moved in the HMI ranges from 0 to 480, the
minimum values and maximum values of proportion value and
input value are 0 & 480 and 0&1000 respectively.) and the 1st
register and the 2nd register can be used to store the component
state and the position respectively.
This option functions similarly to “X Scaling” but the component
X Reverse Scaling
moves toward the opposite direction.
This option functions similarly to “Y Scaling” but the component
Y Reverse Scaling
moves toward the opposite direction.
The Moving Component can move horizontally along X-axis and
Y-axis, and the relative position can be set through the input value
and the proportion value (For example, when the value of PLC
read by X-axis ranges from 0 to 640, but the relative position to be
moved in the HMI ranges from 0 to 320; the value of PLC to be
read ranges from 0 to 480 and the relative position to be moved in
the HMI ranges from 0 to 240, as shown below.).
X Scaling Y Scaling
142
The Moving Component can move horizontally along X-axis and
X Scaling Y Reverse
Y-axis, and the relative position to be moved can be set, and the
Scaling
component can move along the opposite direction of Y-axis.
The Moving Component can move horizontally along X-axis and
X Reverse Scaling Y
Y-axis, and the relative position to be moved can be set, and the
Scaling
component can move along the opposite direction of X-axis.
The Moving Component can move horizontally along X-axis and
X Reverse Scaling Y Y-axis, and the relative position to be moved can be set, and the
Reverse Scaling component can move along the opposite directions of X-axis and
Y-axis.
Variable Min/Max: The upper limit and lower limit of X-axis and Y-axis is directly read from the register.
For example:
It is assumed that the type of the Moving Component is “X Reverse Scaling Y Reverse Scaling” and the type
of variable address is LW10, then the Minimum of X and Maximum of X are the values of LW10 and LW11
respectively, and Proportional Lower Limit of X and Proportional Upper Limit of X are the values of LW12 and
LW13 respectively, and the Minimum of Y and Maximum of Y direction are the values of LW14 and LW15
respectively, and the Proportional Lower Limit of Y and Proportional Upper Limit of Y are the values of LW16
and LW17 respectively.
as shown below.
143
3. Switch to the [Tag] tab and add the corresponding texts to be displayed.
4. Switch to the [Graphics] tab and select vector graphics or bitmap to move or display the state.
5. Press the [OK] button to complete the setup of the Moving Component.
There are many options of types for Moving Component, but only Scaling option has the maximum value and
minimum value.
The maximum value and minimum value of Moving Component supports the variable.
144
3-6-9 Animation
The Animation component is used to put the component into the position with the specified track in
the HMI, and this position is determined by the preset path and the data of PLC. The status and absolute
position of the component in the HMI is determined by the data in the 2 consecutive PLC registers. Generally
speaking, the 1st register and the 2nd register are used to store the state and the position in the preset path
respectively. When the values in the position register of PLC change, the vector graphics or bitmap will jump
to the next position in the preset path.
Read Address: Refers to the word address controlling the state and tag of the Moving Component in PLC,
and [Read Address + 1] refers to the word address controlling the poison of the Animation component. The
data in the register will be converted into BIN or BCD format (Refer to the Multiple State Display component.).
Here, [Word Length] is limited to 2.
145
Read Address Assignment:
Read Address Status of vector graphics or bitmap
Read Address + 1 Position No. in the preset path.
Address: Refers to the first address of the word address corresponding to the Animation component.
Word Length: Displays the data length of the read address, which is fixed to “2”.
4. Switch to the [Animation] tab.
State Num.: Selects the total states displayed by the Animation component. It determines the states of the
vector graphics or bitmap displayed in the preset path.
Add Node: Adds one moving node in the end of the preset path.
Insert Node: Inserts one moving node after the moving node pointed by the mouse.
Delete Node: Deletes one moving node.
Shift Up: Moves the moving node pointed by the mouse into the place before the previous node.
Shift Down: Moves the moving node pointed by the mouse into the place after the next node.
Graphics Size (Width/Height): Refers to the border size of the minimum bounding rectangle including all of
the track nodes occupied by the component in the HMI.
Moving Node List: Displays all the numbers and coordinate values for all the track nodes, and No.0 is for the
st nd
1 moving node, and No.1 is for the 2 moving node, and so on. The total number of the moving node is
determined by the number of moving node when you put the component in the HMI at the beginning. X(Y)
represent the coordinate position corresponding to the moving node, and you can reset the coordinate
position for each moving node here.
5. Switch to the [Tag] tab and add the corresponding texts to be displayed.
6. Switch to the [Graphics] tab and select vector graphics or bitmap to move or display the state.
7. Press the [OK] button to complete the setup of the Animation component.
146
3-6-10 Number Input
The Number Input component can be used to display the current data contained in word address
inside a specified HMI or of PLC, to input data through the pop-up keyboard and to change the data contained
in this address by pressing “ENTER” button.
z Process of adding one Number Input component
1. Press the Number Input component icon, drag it to the window, then the [Basic Attributes] dialog box of
the Number Input component will pop up.
Read Address: Refers to the specified word address displayed and modified by the Number Input
component.
Address: Refers to the first address of the word address corresponding to the Number Input component.
Word Length: Displays the data length of the read address.
147
2. Go to the [Numeric Data] tab.
Data Type: Sets the data format corresponding to data contained in specified word address and 7 types are
available.
Max/Min Value Setting: Sets the maximum value and minimum value.
Off Normal Upper/Off Normal Lower: When the value of the specified word address is less than the lower
limit or greater than the upper limit, the component will use this color to display the value, and it can be used
to set the color of the transfinite font.
Flash: When the value of the specified word address is greater than the upper limit or less than the lower limit,
the value of the component will flash to make the transfinite alarm more visible.
Proportion Conversion: The displayed data is obtained by converting the original data contained in the
buffer. To select this function, [Min Value] and [Max Value] must be set.
For example: it is assumed that the original data is represented by “A” and the displayed data by “B”, then the
data B can be obtained by the following conversion formula:
B = [Minimum Proportional Value] + (A - [Minimum Value of Original Data]) × Proportion
Where, Proportion = ([Maximum Proportional Value] - [Minimum Proportional Value]) / ([Maximum Value of
Original Data] - [Minimum Value of Original Data])
Take the following graphics as example, when the original data is 20, then the value after conversion is 15 +
(20–0) × (55–15) / (100–0) = 23, so the value displayed in the component will be 23.
148
3. Switch to the [Font] tab and set the font size, color and alignment method, etc. for the displayed value.
Alignment: Sets the displayed position of the value. For example, set “Integer”, “Decimal” and the input value
to “5”, “0” and “23” respectively, then the formats as shown below will be displayed.
149
Font Adjustment: Increases the width of the display area for the font rightward with the unit of pixel point.
4. Switch to the [Keyboard Setting] tab and make Keyboard Setting for the pop-up keyboard type and check
Use Input Order.
Public Windows Keyboard:Refers to the keyboard used by the Common Window, all of the Number Input
components will call the keyboard in Frame 3. The default setting of Number Input is “Use [Public Windows
Keyboard]”.
Specified Keyboard: One specified keyboard will be called and only after the page setting where the
keyboard locates is set as [Keyboard Page], the window where the keyboard locates can be seen in the
dropdown list of [Specified Keyboard].
Keyboard Pop-up Position: 9 positions can be adjusted.
Not Use Pop-up Keyboard: It is only applicable to the HMI supporting the USB HOST, and the input is
through the keyboard when external keyboard is connected.
Use Input Order: It can realize the consecutive input by the order number of the Number Input component,
Text Input component and Note Book component. After “Enter” is pressed during the input, the keyboard will
not be closed automatically but always be displayed in the screen and the cursor will always cyclic flash
between the component using the input order function until the close button of “X” in the keyboard is clicked.
150
Group is used to classify the multi-group of components needing consecutive inputs. The components with
the same group number belong to the same group, and the cursor will be cyclic in the same group of
components. When the “Enter” is pressed, the keyboard will not be closed automatically, but will always be
displayed in the screen until the close button “X” in the keyboard is clicked.
5. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
6. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
7. Press the [OK] button to complete the setup of the Number Input component.
Data Type:
1. Decimal System (signed int/unsigned int): The data is displayed in decimal (0~9), and the following 2
attributes will appear only after the decimal system is selected.
Original Data:The data is displayed according to the instructions for the digits after the decimal point and the
data will be arranged from the digits after the decimal point. For example, the digits after the decimal point is 2,
then “14561” will be displayed as “145.61”.
Data after Proportion Conversion: The date to be read will be converted to the project -conversion data
format before the display and the conversion formula is as follows.
The converted value will display the data according to “the digits before the decimal point” and “the digits after
the decimal point”. For example, the value to be converted is 123.456, but “the digits after the decimal point”
and “the digits before the decimal point” are “2” and “3” respectively, so the converted value is displayed as
“123.45” and the last digit is cut.
151
2. Hexadecimal System (hex): The data is displayed in hexadecimal format (0~F), and the conversion ratio
and the decimal point are eliminated.
3. Binary System (bin): The data is displayed in binary format (0 and 1), and the conversion ratio and the
decimal point are eliminated.
For the hexadecimal and binary formats, the input maximum value and minimum value are treated as
unsigned binary data.
4. Password (password): Only “****” can be displayed and all the values to be read are hidden, and it is used
to input the password. Its conversion formula and the decimal point are eliminated.
5. Single-precision Floating-point Value (float): The data in the controller will be converted into the decimal
data from the data in 32-digit IEEE floating format and will be displayed in decimal format.
6. Double-precision Floating-point Value (double): The data in the controller will be converted into the
decimal data from the data in 64-digit IEEE floating format and will be displayed in decimal format.
During the decimal data input, if “Display Original Data” is selected, the input minimum value and maximum
value will be as the limited range of the valid input data, and if “Display Data after Proportion Conversion” is
selected, the maximum value and minimum value after proportion Conversion will become the limits of the
valid input data.
If “Display Data after Project Conversion”, then the conversion formula is as shown below.
For details about the single-precision floating-point value and double-precision floating-point value, refer to
IEEE-754 Standard.
152
3-6-11 Number Display
The Number Display component is used to display the data in the specified word register.
Read Address: Refers to the word address displayed by the Number Display component.
Address: Refers to the first address of the word address corresponding to the Number Display component.
Word Length: Displays the data length of the read address.
153
2. Refer to the relevant contents of the [Number Input] component, and fill in the contents in the [Numeric
Data] tab.
3. Switch to the [Font] tab and make related settings referring to the Number Input component.
154
4. Press the [OK] button to complete the setup, and place the Number Display component in a proper
position.
z How to use the “Proportion Conversion” in the Numeric Data tab in Number Display Component Attribute
dialog box.
Quite a number of PLCs or other controllers don’t support decimals or negatives, and in many cases, the
actual values registered in PLCs or other controllers are different from the values the users want to display on
the HMI, thus Proportion Conversion is required. For example, the actual frequency of an inverter is 0~5000,
while what is expected on the HMI is 0~50 HZ, and in this case, Proportion Conversion can be used.
Another example: the range of values sampled from the PLC is 6400~32000, while the range desired to be
displayed on the HMI is 0.00~2.00.
This can be realized with settings shown below:
155
3-6-12 Text Input
Text Input component can modify or display the data in the specified word register, which is
analyzed through the standard ASCII character table. The input data is saved to a consecutive register with
the “Read Address” as the first address. Low-byte character codes are displayed on the left, while high-byte
character codes are displayed on the right.
Read/Write Address: Refers to the word address register (It contains up to 16 words, each of which contains
2 ASC II characters) displayed and modified by Text Input component in PLC.
Address: Refers to the first address of the word address corresponding to the Text Input component.
Word Length: 1~16 are available for the Read/Write Address.
156
2. Switch to the [Font] tab and fill in the attributes of displayed data referring to that for the Number Input
component.
3. Switch to the [Keyboard Setting] tab and select the keyboard type.
157
4. Switch to [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
6. Press the [OK] button to complete the setup of the Text Input component.
158
3-6-13 Text Display
The Text Display component can display data in the specified word register, which is analyzed
through the standard ASCII character table. Low-byte character codes are displayed on the left, while
high-byte character codes are displayed on the right.
z Process of adding one Text Display component
1. Press the Text Display component icon, drag it to the window, then the [Basic Attributes] dialog box of the
Text Display component will pop up.
High byte and low byte swaps: Refers to the interchange of the high-bit and the low-bit for the same byte,
as shown below.
159
Word Length: Displays the data length of the read address with 1 to 16 available.
2. Switch to the [Font] tab and set the font size, alignment and color of the text to be displayed.
3. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
4. Press the [OK] button to complete the setup of the Text Display component.
The Bar Picture displays PLC register data in a bar chart percentage style according to the set
maximum and minimum values.
As shown below, the user can customize Bar Picture with any desired shape.
160
z Process of adding one Bar Picture component
1. Press the Bar Picture component icon, drag it to the window, then the [Basic Attributes] dialog box of the
Bar Picture component will pop up.
Read Address: Refers to the first address of the word address corresponding to the Bar Picture component.
Word Length: Displays the data length of the read address, supporting sing-word and double-word.
161
2. Switch to the [Bar Picture] tab and make settings as shown below.
Normal
Indicates the offset between the actual value and the set range by means of a
Bar Type
Bar Picture.
Offset
162
Bar Shape Rectangle Circle
Up Bottom Left Right Clockwise Counterclockwise
Art direction
When the value of the specified register falls in the allowable floating range set for the
destination value, the fill area of the Bar Picture will be displayed in the specified color.
Destination
Value
Diameter Of When the Bar Picture is of a Circle shape, the diameter of the fan can be set with the unit of
Fan pixel point.
Start Angle When the Bar Picture is of a Circle shape, the Start Angle of the fan can be set.
End Angle When the Bar Picture is of a sector shape, the End Angle of the sector ring can be set.
This option is used to set the colors for the normal state, the upper/lower limit, border and
Color
background of the Bar Picture.
Over Upper When the value of the specified register exceeds the set Alarm Upper, the filled area of the Bar
Limit Flashing Picture flashes.
Over Lower When the value of the specified register falls below the set Alarm Lower, the filled area of the
Limit Flashing Bar Picture flashes.
Sets the upper and lower limit values of the display area for the Bar Picture.
Minimum/ The percentage of filled area in the Bar Picture can be derived from the following formula:
Maximum Percentage of filled area in the Bar Picture = (Value read by the register – [Minimum value])/
([Maximum value] – [Minimum value]) ×100%
Variable Sets the upper and lower limit values of the Bar Picture display area to be read from the
Min/Max specified registers.
Sets the limits of the alarm area. When the value of the specified register falls below the Alarm
Lower or exceeds the Alarm Upper, the filled area will be displayed in the specified color.
Alarm Upper/
Alarm Lower
Variable Alarm
Sets the upper and lower limit values of the alarm area in the Bar Picture display area to be read
Upper/Variable
from the specified registers.
Alarm Lower
163
3. Switch to the [Scale] tab and make settings as shown below.
Scale Attributes
Use Scale Scale Color Sets the scale color of the Bar Picture.
Show Scale Determines whether to show the scale frame.
Frame
When the Bar Picture is of a Circle shape, scale display is not supported.
164
4. Switch to the [Graphics] tab and make settings as shown below.
Select proper graphics for the Bar Picture to improve the display effect, but generally speaking, it is
unnecessary to assign graphics to the Bar Picture.
5. Press the [OK] button to complete the setup of the Bar Picture component.
165
166
Bar Picture — Double-word
167
Normal and Offset
What the Offset displays is the offset between the actual value and the “Deviation-type original data”. For
example, the “Deviation-type original data” is set to 50, while the actual value in the register is 60, then only
the area corresponding to “10”.is displayed in the Bar Picture.
Displays the deviation between the Displays the deviation between the current
current value and the minimum value. value and the [Deviation-type original data].
168
Rectangle and Circle
3-6-15 Meter
Meter can display the data in the specified register by means of a meter diagram.
z Process of adding one Meter component
1. Press the Meter component icon, drag it to the window, then the [Basic Attributes] dialog box of the Meter
component will pop up.
169
Read Address: Refers to the word address of the value displayed by the component.
Address: Refers to the first address of the word address corresponding to the Meter component.
Word Length: 1 and 2 are available for the read address.
2. Switch to the [Meter Component] tab.
Hand Color Selects the color of the hand of the Meter component.
Length Sets the length of the hand of the Meter component. The maximum length
can’t exceed the radius of the actual circle formed by the Meter hand.
Width Sets the width of the hand of the Meter component.
Hand Style Sets the style of the hand of the Meter component.
Scale Color Selects the color of the display scale of the Meter component.
Show Scale Checking it means the scale frame needs to be displayed.
Frame
The Number of Sets the number of the main scale of the Meter component. (0 to 50
Main Scale available)
170
The Length of Sets the length of the main scale of the Meter component. The maximum
Main Scale length can’t exceed the radius of the actual circle formed by the Meter
hand.
The Number of Sets the number of the minor scale of the Meter component. (0 to 10
Minor Scale available)
The Length of Sets the length of the minor scale of the Meter component. The maximum
Minor Scale length can’t exceed the radius of the actual circle formed by the Meter
hand.
Use Scale Tag Checking it means the scale notation needs to be displayed.
Tag Font Clicking “Tag Font” can set the font used by the scale notation.
Integer Refers to the number of integer places of the scale notation of the Meter
component. (not settable, but adjusted automatically according to the
number of places of the maximum value of the Meter component)
Decimal Sets the number of decimal places of the scale notation of the Meter
component. (0 to 8 available)
Use Dial Axis Checking it means the size and color of the dial axis of the Meter
component need to be set.
Axis Width Sets the size of the dial axis of the Meter component. The maximum width
can’t exceed the radius of the actual circle formed by the Meter hand.
Axis Color Sets the color of the dial axis of the Meter component.
171
Fan Thickness Sets the thickness of the fan block. The maximum thickness can’t exceed
the radius of the actual circle formed by the Meter component, but must be
equivalent to or less than Fan External Radius.
Fan External Sets the radius of the fan block. The maximum radius can’t exceed the
Radius radius of the actual circle formed by the Meter component, but must be
equivalent to or greater than the Fan Thickness.
Lower Sets the alarm display range of the Meter component to constants.
Limit/Upper Limi
Variable Sets the alarm display range of the Meter component to variables, and
Lower/Upper specifies the register address for reading data.
Limit
4. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
5. Press the [OK] button to complete the setup of the Meter component.
Indirect Window can make an already created window pop up on the current screen. Please refer to
[3-4-3 Window Creation]. Generally, the window called by the indirect window is smaller than the full screen
(but it can also be of the same size as the full screen). The popup window through the indirect window is the
window corresponding to the value of the word address register of [Read Address]. There is no absolute
limitation on the number of indirect windows in NB-Designer. However, a maximum of 16 popup windows can
be displayed simultaneously during operation.
Value 0 is used to close the window, and value -1 means to make Frame 0 pop up, while the values other than
0 or -1 mean to make the corresponding windows pop up.
172
173
z Process of adding one Indirect Window component
1. Press the Indirect Window component icon, drag it to the window, then the [Basic Attributes] dialog box of
the Indirect Window component will pop up.
Read Address: It defines a display area and is able to display window contents that are the same as the data
in the specified register and corresponding to the Window No. already created. For example, if the value turns
to 20, Frame 20 will pop up (However, this window must be created already.), while, when the value turns to 0,
the popup window will be closed.
Address: Specifies the word register address storing the Indirect Window No.
Word Length: Displays the data length of the read address, which is 1 by default.
2. Switch to the [Indirect Window] tab and check “Variable Display Coordinates” for the Indirect Window.
Variable Display Coordinates: Checking it means the position coordinates of the popup Indirect Window are
read by the specified registers; and Not-checking means the position coordinates of the popup Indirect
Window will depend on where the component is placed in the window.
X coordinate and Y coordinate are controlled by the specified address and the “specified address + 1”
respectively.
3. Press the [OK] button and properly adjust the position and the size of the Indirect Window component.
The size of the Indirect Window limits the display area of the popup windows. The popup window area that
goes beyond the Indirect Window edge will not be displayed. Related function keys can be added to move or
minimize the windows (Refer to the “Popup window title bar” and “Minimize” in [3-7-2 Function Key]).
Task Bar: If the popup window comes with the [Popup window title bar] and [Minimize] function keys, each
time a window pops up, a small icon will be reserved for this window in the task bar. Pressing the small icon
for this window will push the corresponding window to the top of the screen. Double-click the icon will
minimize the window, and another click will restore it to its initial state.
174
3-6-17 Direct Window
Direct Window can make a specified window pop up onto the current screen. The popup window will
be displayed outside the boundary of the [Direct Window]. Normally, the Direct Window size should be set to
same as that of the popup windows. There is no absolute limitation on the number of Direct Window. However,
a maximum of 16 Direct Windows can be displayed simultaneously during operation. The closing or opening
of the Direct Window is only determined by the bit address of the [Read Address] that control it, while Function
Key can't be used to close it. When this bit address is ON, the window will pop up, and when it is OFF, the
window will be closed.
175
z Process of adding one Direct Window component
1. Press the Direct Window component icon, drag it to the window, then the [Basic Attributes] dialog box of
the Direct Window component will pop up.
Read Address: When the specified read address is ON, the content of the specified window will be displayed
in the Direct Window component area.
Address: Refers to the bit address corresponding to the Direct Window component.
2. Switch to the [Direct Window] tab and select the Destination Window No. to be ejected in [Frame ID].
Variable Display Coordinates: Checking it means the position coordinates of the popup Direct Window are
read by the specified registers; and Not-checking means the position coordinates of the popup Direct Window
will depend on where the component is placed in the window.
X Coordinate of Y Coordinate of
Popup Window Popup Window
First address First address + 1
The position of the popup window is controlled by 2 registers, i.e. the X coordinate is controlled by the First
address, while the Y coordinate is controlled by the “First address + 1”.
But for some special PLCs (such as S7-200 etc.), the address must be an even number. For example, VW80
is the register controlling X coordinate, and VW82 is that controlling Y coordinate.
3. Press the [OK] button to complete the setup, and adjust the position and the size of the Direct Window
component. The size of the window will limit the display area. The popup window area that goes beyond
the Direct Window edge will not be displayed. Function keys can be used to move or minimize the
windows. Please refer to the contents related to the function key such as “Popup window title bar” and
“Minimize”, etc. in [3-7-2 Function Key].
176
3-6-18 Alarm Display
The Alarm Display component will display all the alarm information enabled in the set area. The
content it displays is the same as that displayed by the Alarm Bar, and both of them are about the alarm
information of a certain node switch (bit address). When alarm information arises, it won’t automatically be
cleared until this bit address is switched back to the non-alarm state. Before that, the alarm information will
persist, i.e. being in alarm state all the time. This component only displays the alarm information, and the
component to be displayed must be registered by the “Alarm Information” database.
z Process of adding one Alarm Display component
1. Press the Alarm Display component icon, drag it to the window, then the [Basic Attributes] dialog box of
the Alarm Display component will pop up.
Read Address: It controls the scrolling of the Alarm Display Window (upward or downward). All the alarm
information is displayed from the latest to the oldest, i.e. new information is displayed on the top, while old
information is displayed on the bottom. If the value of the read address register is N, the information coming
th
before N-1 will be ignored and the N information will be displayed in the first line of the screen.
Address: Refers to the word address corresponding to the Alarm Display component.
Word Length: Displays the data length of the read address, which is 1 by default.
177
2. Go to the [Alarm Display] tab, as shown below:
Row Space and Column Space: Refers to the distances between two neighboring lines and columns.
DisplayTypeRange: “0 To 255” are available. When register the alarm information, you need to assign a type
for each piece of alarm information. For example, 3 pieces of information are registered, with 0, 1 and 2 as
their types. Add an Alarm Display component in the window, and set the [DisplayTypeRange] to “0 To 1”. Then
st nd
when all of the 3 alarms occur, only the 1 and the 2 ones will be displayed in the window.
3. Press the [OK] button to complete the setup, and adjust the position and the size of the Alarm Display
component.。
Use a vector graphics (VG0) as the rectangle background and another vector graphics (VG1) as the sunken
display area. Use 2 Multiple State Setting components (SWD0, SWD1) to increase or decrease the starting
lines of alarm information displayed (i.e. controlling the increase or decrease of the “Read Address” data).
Place the actual Alarm Display component (AD0) on the surface of vector graphics VG1. When the system is
in operation, the alarm information will be displayed in the Alarm Display component, as shown below:
178
3-6-19 Trend Curve
The Trend Curve component acquires some PLC data and displays it in the manner of a trend
curve at regular intervals. When each sampling period comes to an end, new data will be read from the PLC
and displayed on the right of the Trend Curve, which ensures the real-time display.
A typical example of Trend Curve is as above shown. Use one vector graphics as background, and use the
Scale component to express the information on the related trend curves. Then place the Trend Curve
component above the vector graphics.
Read Address: Refers to the word address of PLC corresponding to the 1st track line data. And the word
address corresponding to the 2nd track line is “Read Address + 1”, and the 3rd is “Read Address + 2” and so on.
179
Address: Refers to the first address of the word address corresponding to the Trend Curve.
Word Length: It is determined by the sampling channels. If the channel number is N (where, 1<=N<=16), the
Word Length will be N.
2. Go to the [Trend Graphics] tab and set the parameters related to the Trend Curve.
Start from
Right
180
Start from
Top
Start from
Bottom
181
Pause- The default Word Length is 2. “Pause” function only stops to refresh the changes
Clear in the curve temporarily, and the sampling operation will not be stopped
temporarily. When “Pause-Clear” is checked as shown blow, and the state of
the specified bit address LB0 is set “ON”, the screen will stop refreshing
temporarily When the specified bit address LB0 is set “OFF”, the changes in
Trend Curve will be refreshed and displayed.
“Clear” corresponds to the address after the Pause Address. As shown above,
the specified bit address LB0 and LB1 function as “Pause" and “Clear”, and the
displayed Trend Curve screen can be cleared only the changes occurred in LB1
state.
SCRO The default value is 3. For example, if the specified register is LW0, LW0, LW1
and LW2 will be the current browsing index value, the starting browsing index
value and the maximum browsing index value of Scroll Bar respectively. This
option is valid only when “Multiple pages” is selected. “SCRO” can be used to
browse the multiple Trend Curves and can be in combination with the Scroll Bar.
For the specific using method of Scroll Bar, refer to [3-6-22 Scroll Bar].
Time It is used to save the time when the latest sampling point is performed. “Time”
option in “Control Register Setting” is valid only when the “Save Time” is checked.
The default register is LW and the Word Length is 12.
As shown above, when the specified address is LW70, the “Second, Minute,
Hour, Day, Month, Year” for the start point in the current page is “LW70, LW71,
LW72, LW73, LW74, LW75” respectively, and the “Second, Minute, Hour, Day,
Month, Year” for the end point is “LW76, LW77, LW78, LW79, LW80, LW81”
respectively.
182
3. Switch to the [Channel] tab and set the parameters related to each track line.
183
4. Switch to the [Save Historical Data] tab and determine whether to check "Save to Recipe Data Field”.
Save to Recipe Data Field:After this option is checked and the Start Addr. is set, the sampling data can be
saved to the recipe.
Historical data for the Trend Curve is saved in the start address of the recipe set by the user, and the memory
area includes the Information Area with the size of 40 bytes (i.e. 20 words), and the Time Area with the size of
Sampling Pages × Sampling Points/Page × 4 words (If “Save Time” is checked.) and the Data Area with the
size of Sampling Pages × Sampling Points/Page × Word Length.
When the multiple historical trend curves saved into the recipe are used, the user must ensure that the
memory area of these trend curves will not overlap each other, otherwise, the data mistakes will occur.
5. Press the [OK] button to adjust the position and size of the Trend Curve component.
184
z Maximum/Minimum of Trend Curve is variable.
Descriptions: LW0 corresponds to the variable making sampling for the Y coordinate, and the horizontal axis
represents the Time Axis. And LW1 and LW2 correspond to the minimum value (lower limit of Y) and the
maximum value (upper limit of Y) respectively.
185
3-6-20 Recipe Data
Recipe Data component can realize the data transmission from the HMI to PLC, or vice versa.
For details, refer to [3-12 Recipe Data].
3-6-21 Oscillograph
The Oscillograph functions similarly to the Trend Curve, and the difference between them is as
follows: For the Trend Curve, the background communication still continue to do when the current window
where the Trend Curve locates is closed, the sampling information before the switching can be obtained when
the Trend Curve is switched to at any time. But the data sampling of the Oscillograph is valid only in the
current page, which means the Oscillograph data will not be read but be lost each time when the page is
switched, and the data sampling will start from the beginning when the Oscillograph window is switched to.
The advantages of Oscillograph are as follows: The user can monitor several waveforms that don’t need to be
recorded for the long period, and no background communication burden will be brought. Meanwhile, the user
can use the “Sampling Rate” function provided by the Oscillograph in combination with the PLC to change the
frequency of sampling point instead of only being limited on the frequency of 1s/sampling point.
186
Read Address: Refers to the word address of PLC corresponding to the 1st track line data. And the word
address corresponding to the 2nd track line is “Read Address + 1”, and the 3rd is “Read Address + 2” and so on.
Address: Refers to the first address of the word address corresponding to Oscillograph component.
Word Length: It is determined by the sampling channels. If the channel number is N (where, 1<=N<=16), the
Word Length will be N.
2. Go to the [Scope Chart] tab and set the parameters related to the Oscillograph component.
187
Pause- The default Word Length is 2. “Pause” function only stops to refresh the changes in
Clear the curve temporarily, and the sampling operation will not be stopped temporarily.
When “Pause-Clear” is checked as shown blow, and the state of the specified bit
address LB0 is set “ON”, the screen will stop refreshing temporarily When the
specified bit address LB0 is set “OFF”, the changes in Trend Curve will be
refreshed and displayed.
“Clear” corresponds to the address after the Pause Address. As shown above, the
specified bit address LB0 and LB1 function as “Pause" and “Clear”, and the
displayed Trend Curve screen can be cleared only the changes occurred in LB1
state.
SCRO The default value is 3. For example, if the specified register is LW0, LW0, LW1 and
LW2 will be the current browsing index value, the starting browsing index value
and the maximum browsing index value of Scroll Bar respectively. This option is
valid only when “Multiple pages” is selected. “SCRO” can be used to browse the
multiple Trend Curves and can be in combination with the Scroll Bar. For the
specific using method of Scroll Bar, refer to [3-6-22 Scroll Bar].
Time It is used to save the time when the latest sampling point is performed. “Time”
option in “Control Register Setting” is valid only when the “Save Time” is checked.
The default register is LW and the Word Length is 12.
As shown above, when the specified address is LW70, the “Second, Minute, Hour,
Day, Month, Year” for the start point in the current page is “LW70, LW71, LW72,
LW73, LW74, LW75” respectively, and the “Second, Minute, Hour, Day, Month,
Year” for the end point is “LW76, LW77, LW78, LW79, LW80, LW81” respectively.
188
3. Switch to the [Channel] tab and set the parameters related to each track line.
189
3-6-22 Scroll Bar
Scroll Bar is used to change the value in the specified word register by pressing the slider.
z Process of adding one Scroll Bar component
1. Press the Scroll Bar component icon, drag it to the window, then the [Basic Attributes] dialog box of the
Scroll Bar component will pop up.
Write Address: Refers to the address of word register of the current browsing index value for the Scroll Bar
component.
Address: Refers to the first address of the word address corresponding to Scroll Bar.
Word Length: Displays the data length of the write address, which is 1 by default.
190
2. Go to the [Scroll Bar] tab.
191
3. Go to the [Scroll Bar Extended Attributes] tab and set the Slider Width and Max/Min Value Setting to
constants.
Slider Width: Checking it means the slider width will be set by manual, and Not-checking it means the slider
width is 10 pixels by default.
192
3-6-23 Event Display
Event Display component is used to display the event information registered in “Event Information
database” and whose current state satisfying the triggering conditions. The Event Display component will
display these triggered event information one by one according to the time sequence of the triggered event. If
the accurate time needs to be displayed, the RTC must be used or the Time must be read from the PLC.
z Process of adding one Event Display component
1. Press the Event Display component icon, drag it to the window, then the [Basic Attributes] dialog box of
the Event Display component will pop up.
Read Address: Refers to the word address controlling the scroll (Up or Down) of the event display window.
All the information is classified according to the triggered time of the event, and the new event is displayed on
the top while the old event is displayed on the bottom. If the value of this register is N, the Nth information will
be displayed in the first line of the screen.
Address: Refers to the word address corresponding to the Event Display component.
Word Length: Displays the data length of the read address, which is 1 by default.
193
2. Go to the [Event Information] tab.
Row Space and Column Space: Refers to the distances between two neighboring lines and columns.
Affirmance: Includes the [Click] or [Double click].
Color:Acknowledge Color: Refers to the color after the event information is confirmed.
Back to Normal Color: Refers to the color after the event information returns to normal.
Select Area Color: Indicates the color of the dotted line for the user information.
Format: Refers to the format of the Event Information Display. All the added contents (such as Sequence No.
and Event Trigger Time etc.) are displayed in the front of the event information.
194
displayed in the event display list. If this option isn’t checked, the
events occurred before but return to normal will still be displayed in
the event list unless the event list is cleared.
For the acquirement of the data and time, refer to LW10000~10006 in [3-11-3 Nonvolatile Local Word].
RTC
Address Descriptions comments Data Type
10000 RTC (second) Effective value ranges from 0 to 59
(read/write).
10001 RTC (minute) Effective value ranges from 0 to 59
(read/write).
10002 RTC (hour) Effective value ranges from 0 to 23
(read/write).
10003 RTC (day) Effective value ranges from 0 to
BIN code
31(read/write).
10004 RTC (month) Effective value ranges from 0 to
11(read/write).
10005 RTC (year) Effective value ranges from 0 to 9999
(read/write)
10006 RTC (week) Effective value ranges from 0 to 9999
(read/write).
Description of RTC:
Users can use relevant “Component” to display time whose value is writable. If the time
exceeding the effective value range input by the user, this operation will be ignored and the
current time value will not be modified.
Time ascending Order Display: When this option is checked, the latest occurred event will be displayed on
the bottom and the event sequence No. and the time will ascend from top to bottom, as shown below.
When this option is not checked, the event will be displayed in the descending order, i.e. the latest occurred
event will be displayed on the top, and event sequence No. and the time will descend from top to bottom, as
shown below.
3. Press the [OK] button to complete the setup, and adjust the position and the size of the Event Display
component.
195
◆ Example of Event Display
1. First create a new project and [Save] it.
2. Add 2 events in the [Event Information database], as shown below.
Where, the 1st event is the popup window 4 and the 2nd event is the popup window 5.
3. Add one Indirect Window in Frame 0 of the newly created project and its [Read address] of LW5.
4. Add one Event Display component in Frame 0, as shown below.
Place one vector graphics under the Event Display component to enhance the display effect.
196
5. Add one Bit State Switch to control the ON/OFF state of LB10.
6. Add one Text component with the content of “Increase water temperature”.
7. Add one Multiple State Setting component with the settings as shown below:
8. Create Frame 4 with one Text component and one Bit State Switch component controlling the LB10, as
shown below.
197
9. Create Frame 5 with one Text component and one Multiple State Setting component, as shown below.
198
10. After [Save], [Compile], [Online/Offline Simulation] or [Download] is selected, the operation effect of the
program is as shown below.
When LB10 or LW30 is triggered for its corresponding triggering conditions is satisfied, the related event
information will be displayed. The popup Frame 4 and Frame 5 for the 2 events registered in the [Event log
object list] are the popup windows to be ejected when the event is triggered.
1. For the popup window, it will pop up only when the event is confirmed.
2. For the popup window for the event triggering, it can be closed by the
<Close window> for the Function Key or the triggering function <Write
Data: No>.
199
3-6-24 Note Book
Note Book component can modify or display the data in the specified word register, which is
analyzed through the standard ASCII character table. The input data is saved to a consecutive register with
the “Read Address” as the first address. Low-byte character codes are displayed on the left, while high-byte
character codes are displayed on the right. It supports the display of the multi-line text content and page
turning, and can be used to make the operations such as Copy, Cut and Paste etc. for the text contents in the
selected area.
z Process of adding one Note Book component
1. Press the Note Book component icon, drag it to the window, then the [Basic Attributes] dialog box of the
Note Book component will pop up.
200
2. Switch to the [Notepad] tab.
Total Lines Refers to the total lines of the text that can be input.
201
3. Switch to the [Font] tab.
202
5. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
6. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
7. Press the [OK] button to complete the setup of the Note Book component.
The specific attributes of the Note Book are set as shown below:
LW 9170 is used to realize page turning of the Note Book, and its value represents the start line of the input
area. The user can change this value to realize the display of the Note Book in the page-turning way.
203
The offline simulation effect of the Note Book is as shown below:
204
Check “Vector Graphics” in the “Graphics” tab and select one vector graphics, as shown below.
3. Place one function key with the attribute of “Switch Window” of “Minimize” in the “Function Key” tab. Check
“Vector Graphics” in the “Graphics” tab and select one Vector, as shown below.
205
4. Place one function key with the attribute of “Switch Window” of “Close window” in the “Function Key” tab.
Check “Vector Graphics” in the “Graphics” tab and select one Vector, as shown below.
5. Place one Text Display component LW9152 with the “Word Length” of “16”.
6. Place one static Text Display component with the contents of “Please input your name:”.
206
7. Place another Text Input component LW20 with the “Word Length” of “4”.
8. Create one Bit State Setting component with the “Write Address” of LB9100 in the “Basic Attributes” tab,
“Type” in the “Bit State Setting” tab of “Toggle”, “Use Tag” being checked together with the State 0 and State
1 of “English” and “中文” respectively.
207
9. Place one Multiple State Setting component LW9150 with “Setting Mode”, “Addend” and “Upper” of “Add
value”, “8” and “100” respectively in Multi-State Setting tab and the tag of “PgDn”.
10. Place one Multiple State Setting component LW9150 with “Setting Mode”, “Subtrahend” and “Lower” of
“Sub value”, “8” and “0” respectively in Multi-State Setting tab and the tag of “PgUp”.
208
After all the components are placed well, the specific operation is as follows:
1. Trigger the Text Input component to make the cursor appear, as shown below.
2. Click the English-Chinese Switch once, then the input bar for Chinese input will appear, as shown below.
3. Several homophones will appear in the Chinese input bar after the PinYin character is input, and you can
use the “PgUp” or “PgDn” button to realize page turning, and trigger the related Chinese character to
complete one Chinese character input process. As shown below, for example, if “张三" needs to be input,
you just need to enter “zhang” through the character keyboard.
Later, when ”张” is triggered, “张” will be displayed in the Text Input component, as
shown below.
209
Trigger “三” afte PinYin “san” is input, “三” will be displayed in the Text Input component.
Addition:①.If the character needs to be changed during the input process, the function keys of “BACK” or
“Clear” in the keyboard can be used to realize this operation.
5. Clicking the “Minimize (i.e. “—”) icon” can make the window minimized to the task bar. And clicking the task
bar again will make the window return to the state before it is minimized.
210
6. Clicking the “Close (i.e. “X”)” icon to close the window.
The PinYin Input for the Note Book is similar to that for the Text component, and many attributes of the Note
Book component are realized through the function keys.
The Multiple State Neon Lamp component displays the tag contents in loopy-moving way by the
neon lamp, and it supports the tag contents corresponding to 256 (max.) states in the loopy-moving way.
z Process of adding one Multiple State Neon Lamp component
1. Press the Multiple State Neon Lamp component icon, drag it to the window, then the [Basic Attributes] of
Multiple State Neon Lamp component will pop up.
2. Switch to the [Neon Lamp] tab and make settings of “Moving Type”, “State Num.”, “Step” and “Speed”
respectively.
3. Switch to the [Tag] tab and add the text corresponding to the state.
4. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
5. Press the [OK] button to complete the setup of the Multiple State Neon Lamp component.
211
3-6-26 Bit State Neon Lamp
The Bit State Neon Lamp component displays the tag contents in loopy-moving way by the neon
lamp, and it supports the tag contents corresponding to State 0 and State 1 in the loopy-moving way.
The difference of the Multiple State Neon Lamp and the Bit State Neon Lamp is the controlling method, and
the former selects the difference states ranging from 1 to 256 by changing the register value, while the latter
changes the display state (only 2 states available) by changing the state of the control bit.
z Process of adding one Bit State Neon Lamp component
1. Press the Bit State Neon Lamp component icon, drag it to the window, then the [Basic Attributes] of Bit
State Neon Lamp component will pop up.
2. Switch to the [BitNeonLamp] tab and make settings of “Moving Type”, “Step Length” and “Speed”
respectively.
3. Switch to the [Tag] tab and add the text corresponding to the state.
4. Switch to the [Graphics] tab and select the vector graphics or bitmap representing the touching area and
touching state.
5. Press the [OK] button to complete the setup of the Bit State Neon Lamp component.
212
3-6-27 Trigger Touch
The Trigger Touch component is applicable to the conditions where the several components can be
triggered to act not through the triggering method. When the triggering conditions for the specified register of
the Trigger Touch component are satisfied, the components placed in the valid area for the Trigger Touch
component can be triggered to act.
①, ③ and ④ locate in the valid triggering area, while ② locates in the invalid triggering area.
Therefore, when the set triggering conditions for the specified register of the Trigger Touch component are
satisfied, the components in area ①,③ and ④ will be triggered, while that in area ② will not be triggered.
z Process of adding one Trigger Touch component
1. Press the Trigger Touch component icon, drag it to the window, then the [Basic Attributes] dialog box of
Trigger Touch component will pop up.
213
2. Switch to the [Trigger Touch] tab and select the Trigger Type.
3. Press the [OK] button to complete the setup of the Trigger Touch component.
3-6-28 Grid
The Grid component can make the selection type of “Select by row”, “Select by col” and “Select by
cell”. The user can set the “Row”, “Column”, “Select Color”, “Background Color”, “Border Color”, and write the
selected Row No. and Column No. into the specified register.
z Process of adding one Grid component
1. Press the Grid component icon, drag it to the window, then the [Basic Attributes] dialog box of the Grid
component will pop up.
2. Switch to the [Table] tab and make the settings of “Row”, “Column” and “Type”.
214
The related attributes are as follows:
Type Select by row Select by col Select by cell
Register corresponding to
First address First address
Row
Register corresponding to
First address First address + 1
Column
Number of Occupied
1 1 2
Registers
3. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
4. Press the [OK] button to complete the setup of the Grid component.
If required, the Grid component can also be used in combination with the Number Input component and the
Macro, thus controlling the display condition through the Macro.
The Historical Data Display component can read a series of data contained in the consecutive
registers from the specified word register periodically and display them in the table form.
1. The sampled data must be consecutive, and only the little amount instead
of the large amount of consecutive data saving is applicable.
215
z Process of adding one Historical Data Display component
1. Press the Historical Data Display component icon, drag it to the window, then the [Basic Attributes] dialog
box of the Historical Data Display component will pop up.
2. Switch to the [Display Properties] tab and make the settings of display format and color etc.
216
Descriptions of Display Properties
Channel Refers to the number of the register to be sampled, and the channel is up to 16.
Sequence No. Determines whether to display the No. of the sampling data information.
When this option is checked, the sampling data information will be displayed in
Ascending Order
the ascending order, i.e. the latest sampling data will be displayed on the bottom.
Checking it means the sampling date will be displayed and the data
Date format can be selected. The 3 formats are available, and YY, MM
and DD refer to the year, month and date respectively.
Date Selects the data separator with 3 formats available. For example:
Date/Time
Separator 11/06/24.
Display
Checking it means the sampling time will be displayed and the time
format can be selected. There are 3 formats available, and HH,
Time
MM, SS and MS refer to the hour, minute, second and millisecond
respectively.
Color Setting Sets the Background Color and Title Bar Color for the table respectively.
Border Setting Sets the Border Color and Width for the table.
Sets the Separator Color, Style and Width for each row or each column and the
Separator Row Space and Column Space with the unit of “pixel point”.
Setting Checking “Horizontal Line” means the separator will be displayed horizontally,
and checking “Vertical Line” means the separator will be displayed vertically.
When periodical sampling is used, the sampling time will be read from the
Variable Cycle
specified register.
Note: When the variable is used in the sampling cycle, the variable will be given the priority to be used. And if
the variable value can’t be obtained for the failure of the communication connection, the preset value will be
used.
3. Switch to the [Background Attribute] tab and make the settings of “Sampling Methods”, “Cycle”,
“Sampling Points” and “Pause-Clear” and etc.
217
Descriptions of Background Attribute
Time sampling The data is sampled timely.
OFFÆON Only when the state of the specified bit address turns ON from
trigger sampling OFF, the sampling is triggered.
ONÆOFF Only when the state of the specified bit address turns OFF from
trigger sampling ON, the sampling is triggered.
Sampling OFFÅÆON Only when the state of the specified bit address changes, the
Methods trigger sampling sampling is triggered.
Only the state of the specified bit address turns ON from OFF, the
OFFÆON reset
sampling is triggered, and the state of the specified bit address will
trigger sampling
be reset automatically after the triggering.
Only the state of the specified bit address turns OFF from ON, the
ONÆOFF reset
sampling is triggered, and the state of the specified bit address will
trigger sampling
be reset automatically after the triggering.
Cycle Refers to the interval between 2 sampling points with the unit of “s” or “100 ms”.
Continue When all the sampling points end, the sampling still continues.
Sam.
Type When all the sampling points end, the sampling will stop, which
Once
means sampling is only performed once.
Sampling When the sampling method is “Once”, the sampling will stop after the set “Sampling
Points Points” is finished.
Trigger
When the Trigger Register Setting is used for the sampling method, the register
Register
address to be read will be specified.
Setting
The default Word Length is 2. “Pause” function can stop the data sampling operation
Pause-
temporarily. In addition, the “Clear” function here is invalid for the Historical Data
Clear
Display component.
4. Switch to the [Channel Properties] tab and set the display information for each channel.
218
5. Switch to the [Save Historical Data] tab and set the “Start Addr.” etc. to be saved.
● When the historical Data Display component and the Trend Curve component are used in combination
and their addresses are the same, it just needs to set “Save to Recipe Data Field” for the historical data
of one component instead of both components.
● If the Historical Data Display component is needed to display the value of the Trend Curve, the value in
PLC can be transmitted to the LW of the local register by the Timer or the data transmission component.
● If the user needs to save the data for a long period and has low requirement of the interval for the data
saving, it is recommended the sampling time will be as long as possible.
219
6. Switch to the [Title Bar Properties] tab and make settings of “Name” and “The column font” etc.
7. Press the [OK] button to complete the setup of the Historical Data Display component.
220
3-7 Function Parts
3-7-1 Scale
Equal Division: The equal-division number of the graphics between 2 and 255.
Line Length: The length of the scale between 1 and 24.
Start Angle/End Angle; The start angle and the end angle of the arc between 0 and 360 degree.
2. Press the [OK] button to complete the setup.
221
3-7-2 Function Key
Function key provides functions such as “Switch Window”, “Keyboard Function", “Execute Macro”,
“Touch Calibration”, “Clear Event” and “Message Board” etc. The function key is not controlled by the register
address, so the execution of specified function needs to be activated by touching this component.
z Process of adding one Function Key
1. Drag the Function Key icon after it is pressed, and then go to the [Function Key] tab with “Switch
Window”, “Keyboard Function”, “Execute Macro”, “Touch Calibration”, “Clear Event”, “Message Board”
and “Print” available after the [Function Key Component Attribute] dialog box pops up.
222
z Function Key
1. Switch Window
Descriptions of Switch Window
Pressing the Function Key will make the current Basic Window including all of
its sub-windows closed and the Basic Window with the specified Window No.
will be switched to.
Change
window
Pressing the Function Key can make the current Basic Window closed and
return to the latest opened Basic Window, which is effective only for the Basic
Window. For example, when pressing the Function Key in “Frame 10” after
“Frame 0” has switched to “Frame 10”, “Frame 10” will be closed and the
window will return to “Frame 0”.
Goto Prev
After the Function Key is pressed, the Common Window (Frame 1 is the
system default window.) can be replaced by the specified window which will
become the new Common Window.
Change
common
window
After the Function Key is pressed, the Fast Select Window (Frame 2 is the
system default window.) can be replaced by the specified window which will
become the new Fast Select Window.
Change fast
select window
After the Function Key is pressed, the specified window will pop up and be
Popup window displayed above the current Basic Window, and the current window will
not be closed.
223
It is used to close the Popup Window where the Function Key is located rather
than the Direct Window or Indirect Window. Because the ON/OFF of the
Direct (Indirect) Window is realized by the bit (word) address controlling the
window operation, therefore the “Close Window” function of the Function Key
can only be used to close the Popup Window rather than to control the
address data of the register.
Close window
Pressing the Function Key can move the Popup Window to the specified
position in the screen, which is effective for Popup Window, Indirect Window
and Direct Window.
Popup window
title bar
After the Function Key is pressed, the Popup Window will minimize to the
Taskbar. Pressing this icon will make the window return to its original position.
This function is effective for Popup Window, Indirect Window and Direct
Window.
Minimize
224
4. Place one Text Display component with “Common window 1” displayed into Window 1.
5. Place one Text Display component with “Basic window 0” displayed, one [Goto Prev] Function Key and one
[Popup window] Function Key with “Pop-up window 7” displayed into Window 0, as shown below.
6. Place one Text Display component with “Basic window 4” displayed and one [Goto Prev] Function Key into
Window 4.
7. Place three Function Keys, i.e. one [Change fast select window] Function Key for the switching to Fast
select window 2, one [Change common window] Function Key for the switching to Common window 1 and
one [Change window] Function Key for the switching to Common window 6, into Window 5.
8. Place one Text Display component with “Common window 6” displayed into Window 6
9. Place three Function Keys, i.e. one Window title bar with “Pop-up window” displayed, one [Minimize]
Function Key and one [Close window] Function Key, into Window 7.
10. After the completion of setup, the effect is shown as the lower left graphics after [Save], [Compile],
[On/Offline Simulation] or [Download] being selected.
11. When you make Window 0 switch to Window 4 by using the button in Fast Select Window, pressing [Back]
button will make the window return to Window 0, and pressing [Back] button in Window 0 will make the
window return to Window 4.
12. When [Popup window] is pressed in Window 0, Window 7 will pop up, as the upper right graphics shown.
225
13. Pressing [Fast select window 5] in Fast Select Window will make the window switch to Fast select window
5, as shown below.
14. Pressing [Common window 1/6] can realized the switching among the Common windows.
2. Keyboard Function
Descriptions of keyboard function
Enter Equivalent to the function of Enter key in the keyboard.
Back Space Equivalent to the function of Backspace key in the keyboard.
Clear Clears the contents input to “Number Input” and “Text Input” components.
Cancels the input operation, equivalent to the function of Esc key in the
Escape
keyboard.
Sets the input characters including “0, 1, 2, …” on the number keys, ASCII
Unicode codes like a, b, c etc or Unicode characters for “Number Input” and “Text
Input” components.
Includes “Move up”, “Move down”, “Move left”, “Move right”, “Line head”, “Line
Cursor
tail”, ”First position” and “Last position”.
Select text Includes “Start select” and “Finish select”.
Text operation Includes “Copy”, “Cut” and “Paste”.
226
Example: Making NUM Keyboard
Number (0 to 9) keys, Enter, CLR and Backspace keys are required in the keyboard.
Step 1: Create a new project and make the layout of the NUM keyboard.
Firstly add the new window “Frame 10” and open [indow Attribute], then perform the window operations such
as setting the Width, Height and the border width to be 160, 200 and 2 respectively, setting the Frame Color,
checking [Special Attribute] nd setting it to be “Keyboard page”. Finally divide Frame10 into three areas, i.e.
Window control area, Input Display area and Keyboard area, as shown below.
Add three Function Keys as the special keys, i.e. select “Clear”, “Backspace” and “Enter” respectively after
selecting [Keyboard Function] for the three Function Keys.
The final effects of the editing screen and the simulation are shown as the lower left and lower right graphics
respectively.
227
Example: Create Unicode keyboard by the combination of Text Input and Function Key.
The Unicode keyboard can be created by using [Unicode] option, which is available in the related attribute
screen of Text Display component, Text Input component and Note Book component, in combination with the
[Keyboard Function] - [Unicode] option in the Function Key Component Attribute.
1. Make the following settings after adding two Text Input components.
Attributes Text Input A Text Input B
Unicode Unicode Unicode
Address LW0 LW3
Word Length 3 3
2. Add the Function Key and set the character to be displayed.
3. Add one Function Key with the confirmation function, i.e. select “[Keyboard Function] - [Enter]” in the
“Function Key” tab.
Unicode function currently only supports Chinese, English, Japanese and the common symbols.
228
3. Execute Macro
After this function is selected, pressing the Function Key can execute the specified existing Macro code.
4. Touch Calibration
After this function is selected, pressing the Function Key can make the system go to HMI Touch Calibration
Screen, thus allowing the users to perform touch calibrations to the HMI.
5. Clear Event
After this function is selected, pressing the Function Key can clear the event information stored in the recipe
memory.
6. Message Board
Functions of Message Board
Pressing the Function Key means the current tool is the pen
Pen
in the Message Board.
Pressing the Function Key means the current tool is the
Tool Eraser
eraser in the Message Board.
Clear Pressing the Function Key can clear the contents in the
Block area selected by the mouse of the Message Board.
Pen Color For setting the pen color.
Pen Width For setting the pen width from the eight size available.
Pressing the Function Key can clear all the contents in the
Clear
Message Board.
For the specific operation method about the Message Board, refer to [3-7-7 Message Board].
229
3-7-3 Alarm Bar
Alarm Bar icon can be used to display the triggered preset alarm information by using the Neon
Lamp in the area where the Alarm Bar locates. The alarm information must be related to node address of a
certain bit, and it will scroll from the right to the left when the bit address is triggered to the alarm state. The
alarm information will continue to scroll until this bit address is switched to the non-alarm state. The alarm
information must be logged in the [Alarm Information] database in advance. (This component only displays
the alarm information, and the component to be displayed must be logged in the [Alarm Information]
database).
z Process of adding one Alarm Bar
1. Press the Alarm Bar icon, drag it to the window, then the [Alarm Bar Component Attribute] dialog box will
pop up.
Moving Step: Refers to the number of pixel for each movement with the unit of pixel. The larger the number
of moving step, the faster the speed of scroll display. The value is between 1 and 255.
Moving Rate: Refers to the interval of each movement with the unit of 100 ms. The larger the value of moving
speed, the slower the speed of scroll display. The value is between 1 and 10000 (i.e. 0.1 s to 1000 s).
DisplayTypeRange: Each piece of registered alarm information has its own type ranging from 0 to 255.
Display Type Range can mask the alarm information that the users don’t want to display.
Description: Refers to the reference name assigned to the Alarm Display component (not displayed).
2. Press the [OK] button to complete the setup.
230
Example of creating one Alarm Bar component
1. Create a new project firstly.
2. Press the [Alarm Information] icon in [Project Database] to go to the logon list of alarm information, and
then add two pieces of alarm information, as shown below.
231
4. Add two Bit State Switches to control the ON/OFF of LB0 and LB1 respectively, then the ON/OFF state of
LB0 and LB1 will directly trigger the Alarm Bar to display the alarm information or not.
5. After [Save], [Compile], [On/Offline Simulation] or [Download] is selected, the operation effect is as shown
below.
232
3-7-4 Timer
Timer is a kind of component performing the timing. When the timing is over, it will play the other
corresponding functions such as periodical Macro instruction execution, parameter setting and data
transmission etc.
z Process of adding the Timer
1. First press the Timer icon before dragging it into the window, and go to [Timer] tab after the [Timer
Component Attribute] dialog box pops up.
233
Execution It refers to the timing cycle of the timer with the unit of 100 ms. The timer will
Cycle perform functional operation once at each interval of timing cycle.
When the triggering condition is met, the function will be executed
Immediate
Response immediately.
Mode When the triggering condition is met, the function will be executed
Delay
after one cycle is delayed.
Trigger
When “By reg-address” is selected, the triggering state of the register is On or Off.
State
Repeat It refers to the times of repeated execution after the timer is triggered. When it is
Count “0”, the function will always be executed.
Trigger After “By reg-address” is selected, it needs to specify the address of the register
Address where the state is read from.
State Setting: Sets the bit address or word address after the timing period is reached.
Set Address: Refers to the destination address to be set when the timing period is reached.
a. Bit Address Setting:
Mode: Includes Set value, Periodical Toggle, as shown below.
234
The detailed description of each function is as follows.
Mode Descriptions
Set Value Set the specified bit address to 0 or 1 after the timing period is reached.
Set the specified bit address switched between 0 and 1 after each timing
Periodical Toggle
period is reached.
b. Word Address Setting:
Mode: Periodical JOG++(circle), Periodical JOG--(one way), Periodical Bounce(turnover upon limit), Step
up(circle), Step Down(circle) and Set const value, as shown below.
235
Mode Descriptions
This mode makes the address value of the register for the specified
word increase automatically by the “increment” at the interval of each
“Execution Cycle” and makes it increase from 0 again when “the
upper limit value” is reached.
Periodical
JOG++(circle)
This mode makes the address value of the register for the specified
word decrease automatically by the “decrement” at the interval of
each “Execution Cycle” and makes it stop at the lower limit value
after “the lower limit value” is reached.
Periodical
JOG--(one-way)
This mode makes the address value of the register for the specified
word increase automatically by the “increment” at the interval of each
“Execution Cycle” and makes it stop at the upper limit value after "the
upper limit value” is reached.
Periodical
JOG++(one-way)
This mode makes the address value of the register for the specified
word increase automatically by the “step” at the interval of each
“Execution Cycle” until to "the upper limit value”, and then makes it
decrease by the “step” at the interval of “Execution Cycle” until to 0,
and later makes it increase again, thus making the cycle repeated
again and again.
Periodical Bounce
(turnover upon limit)
This mode makes the address value of the register for the specified
word increase automatically by the “step” at the interval of each
“Execution Cycle” until to “the upper limit value”, and makes it
increase again after being reset to “the lower limit value”.
Step up (circle)
Step down (circle) This mode makes the address value of the register for the specified
236
word decrease automatically by the “step” at the interval of each
“Execution Cycle” until to “the lower limit value”, and makes it
decrease again after being reset to “the upper limit value”.
3-7-5 Bitmap
Bitmap component is used to call and display the bg-form graphics in the system graphics library or the
graphics library in Project files window. Bitmap component is not controlled by the register, and don’t have
multiple states, thus the bitmap corresponding to the graphics state specified by you at the designing time will
always be displayed. For the creation and usage of bitmap, refer to [3-5-6 Bitmap].
1. First press the Bitmap icon before dragging it to the window, then select the bitmap you want to use, as
shown below.
237
2. Press the [OK] button to adjust the position and the size of the Bitmap in the window, as shown below:
Vector Graph component is used to call and display the bg-form graphics in the system graphics library
or the graphics library in Project files window. The Vector Graph component is not controlled by the register,
and don’t have multiple states, thus the Vector Graphic corresponding to the graphics state specified by you
at the designing time will always be displayed. For the creation and usage of Vector Graphic, refer to [3-5-5
Vector Graph].
1. Press the Vector Graph icon, drag it to the window, then select the Vector Graphic you want to use, as
shown below.
238
2. Press the [OK] button to adjust the position and the size of the Vector Graph in the window, as shown
below:
Note Pad is designed specially to provide the users with a space for the message reservation and
transmission, thus allowing the users to write any text on the HMI freely. And its function is similar to that of
the drawing board.
z Process of adding Note Pad
1. Press the Note Pad icon, drag it to the window, then the [Notepad Component Attribute] dialog box will
pop up.
239
2. Press the [OK] button to complete the setup, and adjust the position and size of the Note Pad
component.
After the Note Pad is placed well, you can set the Tool, Pen Color, Pen Width and Clear after the [Message
Board] is selected in the Function Key tab, as shown below.
A. Tool
Pen: After selecting the pen, you can leave messages or make drawings in the message board.
Eraser: Clears the contents in the message board.
Clear Block: Clears the contents in the selected area of the massage board.
B. Pen Color: Sets the pen color, as shown below.
C. Pen Width: Sets the thickness of pen from the available 1 (the thinnest) to 8 (the thickest), as shown
below.
240
Create a Note Pad
1. Makes Frame 0 as the Note Pad window. Of course you can make the other frame as the Note Pad window.
And later you just need to drag the Note Pad component to the window.
2. Firstly set the attributes of the Note Pad component, as shown below.
4. Later add several Function Keys in the left and bottom of the Note Pad component respectively, i.e. select
Function Keys FK0, FK1, FK2 and FK3 to be as Pen, Eraser, Clear Block and Clear Screen respectively,
select the Function Keys FK4, FK5, and FK6 to be the Pen Colors of Red, Green and Blue respectively, and
select the Function Keys FK7, FK8, FK9 and FK10 to be the Pen Widths of 2, 4, 6 and 8 respectively, as
shown below:
241
The system reserves LB9020 to LB9022 for the control and notation of the pen, the selections of Eraser and
Clear Block, LB9030 to LB9032 for setting the pen thickness, LB9006 for setting the operation mode of Note
Pad, LW9007 for setting the pen thickness and LW9008 for selecting any one of 256 colors. For the details,
refer to [3-11 Address of System Reserved Register].
1. Each HMI can only use one Note Pad component. If there are more than one
Note Pad components, the contents in them are consistent because they share
the same memory area.
2. The data in the Note Pad will not be saved, i.e. be lost, when the power of HMI
is OFF. Please don’t write the information to be registered on the Note Pad.
Data Transmission component can make the data in the specified register address transferred to
the other register address. Data Transmission can be triggered by the manual touching method or the state
change of the specified address.
z Process of adding Data Transmission
1. Drag the Data Transmission icon to the window after it being pressed, then the [Data Transmission
Component Attribute] dialog box will pop up.
242
Data Type: Includes Bit and Word transmission.
Data Length: The number of data transferred by the Data Transmission component. When the data type is Bit
or Word, the units are “bit” or “word” respectively.
Source Address: Sets the source address of the transferred data.
Destination Address: Sets the destination address of the data transmission.
Variable Parameter: Sets the offsets of the source address, destination address and data length read from
the specified register.
Take the following graphics as example, i.e. the source address, destination address and data length use the
variable parameters.
After setting the source address type to “D register” and making the source address offset controlled by the
variable LW100, set the destination address type to “LW register” and make the destination address offset and
the data length controlled by the variable LW101 and LW102 respectively.
243
Trigger Type Descriptions
OFFÆON When the state of the specified register is from OFF to ON, the Data
Transmission component will be triggered to perform the
transmission.
ONÆOFF When the state of the specified register is from ON to OFF, the Data
Transmission component will be triggered to perform the
transmission.
OFFÅÆON When the state of the specified register is changed, the Data
Transmission component will be triggered to perform the
transmission.
OFFÆON, Reset When the state of the specified register is from OFF to ON, the Data
Transmission component will be triggered to perform the
transmission while the state of this specified register will be reset.
ONÆOFF, Reset When the state of the specified register is from ON to OFF, the Data
Transmission component will be triggered to perform the
transmission while the state of this specified register will be reset.
3. Make settings in the [Tag], [Graphics] and [Control Setting] tabs by using the similar method for the
components mentioned above.
4. Press the [OK] button to complete the setup, and adjust the position and size of the Data Transmission
component.
244
3-7-9 Freeplotting
The Freeplotting component is based on the data in the register, and you can use it to draw the
corresponding graphics by the pixel point in the HMI.
z Freeplotting Component Attribute
1. Solid color with Bit Register used:
Set the component size to 50×50, the register address to LB0, the foreground color to red and the values of
2500 registers (i.e. LB0 to LB2499) to be read by HMI. Then when the register value is 1, the pixel point
corresponding to the component location will be drawn into red color.
245
3-7-10 Date/Time
The Date/Time component can display the value of the internal RTC clock of the HMI in the set
format.
The Date/Time component can only read the time of the internal RTC of the HMI, but not modify the time. If
the time of the internal RTC of the HMI needs to be modified, you can calibrate the system time by using the
system setup screen of the HMI or modifying the values of system special registers LW10000 to LW10006.
246
3-7-11 Dynamic Graph
The Dynamic Graph component can modify the positions and sizes of the rectangle, ellipse or line by
changing the value of the register.
z Dynamic Graphic Component Attributes
1. Dynamic Graphics
Type: Sets the graphics type from the available types of the Rect, Ellipse and Line.
Frame/Line: Sets the Line Color, Line Width and Line Style for the rectangle and ellipse, and line.
Filling: Sets the filling color and the filling style for the rectangle and ellipse.
247
2. Dynamic Graphic Position
248
Example of creating several Dynamic Graphics
1. Dynamic Ellipse component: Address is LW0, Position of upper-left corner LW0=0 (the value of X), LW1 is 0
(the value of Y), Width LW2=100 and Height LW3=100.
The effect is shown as below.
2. Dynamic Rectangle component: Address is LW0, Position of upper-left corner LW0 = 50 (the value of X),
LW1 = 80 (the value of Y), Width LW2 = 200 and Height LW3 = 100.
The effect is shown as below.
249
3-7-12 User Info Display
When the system uses User Permisision function, the related information of the current login user
can be displayed in the table form by using the User Info Display component. The User Info Display
component must be used in combination with the User Permission, otherwise it will not work. Refer to [3-10-6
User Permission Setting] for the details.
The Combination Operations component incorporates the Bit State Setting component and
Multiple State Setting component into one component, thus making the user realize the bit-state setting and
multi-state setting operations through only one key.
The Combination Operations component can be created by using the mouse to click [Components] -
[Button/Switch] - [Combination Operations] or dragging [Combination Operations] component from [Graph
element window] - [Function Parts] to the HMI Edit Window.
250
2. For the added component, you can right-click the mouse to select [Move Up] or [Move Down] option to
change the execution order of the component.
3. For the added component, you can right-click the mouse to select [Delete] option to delete this
component.
4. The components operated by the Combination Operations component are up to 16.
251
The supported types of the Bit State Setting component are only limited to On, Off and Toggle.
The supported types of the Multiple State Setting components are only limited to Set Constant, Add value and
Sub value.
252
3-7-14 Event Bar
Event Bar is used to make the event information logged in [Event Information] database and
meeting the current triggering conditions displayed scrolling from the right to the left.
z Event Info Scrollbar Component Attribute
1. Event Information
Display Type Range: Only displays the event information of this type in scrolling way.
Moving Step: The pixel point moved each time when the event information is displayed in scrolling way. And
its unit is the pixel.
Moving Rate: The interval between the pixel point moved last time and the pixel point moved the next time
when the event information is displayed in scrolling way. And its unit is 100 ms.
Format: The contents are as follows.
For the displayed format of event information, all the selected format information will be displayed
before the event information.
253
The time format is displayed as Hour: Minute: Second:
Precise Time Format (H: M: S: MS)
Millisecond.
Extended Date Format (Y/M/D) The date is displayed as Year/Month/Day.
Event Trig Date(M/D) The date is displayed as Month/Day.
Checking this option means the event time ascends from
the front to back with the latest event information at the end,
as shown below:
1. The Event Bar only displays the unrecovered event option, and dose not
support “Sequence No.”, “Acknowledge Time” and “Return to Normal Time”.
2. Once the triggered event information is recovered, the recovered event will
not be displayed in the Event Bar any more.
254
3-8 Project Database
Text Library can be used to store the text contents needed by the project, thus preventing the tag with
the same text from being input frequently. In addition, Text Library can be used to the conditions with the
requirement of multi-language support to realize the switching among the multiple languages for the HMI Edit
screen. NB-Designer currently supports up to 32 kinds of languages setting.
1. Text Input
1) Pressing icon or entering [Text Library] in the [Project Database] in the toolbar can make Text
Library pop up.
2) When the following “Add Text” dialog box appears after “Add” being clicked, fill in the Name, State Num
and click “OK” to proceed to the next step.
Once the text name is confirmed, it can’t be modified in the Text Library Edit
screen.
255
3) The text added just now has been in the Text Library already, and you can click the “+” behind the “Name”
to see the bit state set by yourself.
5) If you use 2 states, it just needs to input the corresponding text for state 0 and state 1 respectively, and
then click “OK” after the completion of the text addition.
256
6) Finally, you can use the text added before in “Use TextLib”, as shown below.
If you haven’t added the text to the Text Library, “Use TextLib” can’t be checked and is always grayed out until
you have added the text into the Text Library.
2. Multi-language Switching
The switching among the multiple languages can be realized by modifying the value of special register, which
refers to LW9130 in NB-Designer. As long as the value of LW9130 is changed in any one of screens, the
displayed text will switch to the text (language) corresponding to the value being changed to, and the
language of the whole system will be changed regardless of the condition of the current screen. Only resetting
the value of LW9130 can make the language switched again.
It is based on the system special register LW9130 to realize the multi-language switching in the Text Library.
That’s to say:
When LW9130 is 0, the contents corresponding to Language 1 in Text Library will be displayed;
When LW9130 is 1, the contents corresponding to Language 2 in Text Library will be displayed;
When LW9130 is 2, the contents corresponding to Language 3 in Text Library will be displayed;
and so on.
When LW9130 is 31, the contents corresponding to Language 32 in Text Library will be displayed;
When LW9130 is greater than 31, the contents corresponding to Language 1 in Text Library will be displayed.
Note:
“Number of Language” in [HMI Attribute]—[HMI Extended Attributes] can restrict the Language(s) displayed in
Text Library. When the Text Library is used for the first time, the default “Number of Language” is 8. Even if
LW9130 is greater than 8, the system can only display the contents corresponding to Language 1 to
Language 8. If the languages to be displayed are greater than 8 [Max Lang Num] needs to be increased in
[Language Setting] screen with [Number of Language] not exceeding [Max Lang Num].
“Default Language” in [HMI Attribute]—[HMI Extended Attributes] refers to the language number to be
displayed in the default Text Library of Project Edit screen. For example: When Language 2 in the Text Library
is English, if “Default Language” is set to “2”, the text using the Text Library will be displayed as “English” on
257
the System Screen after HMI is powered ON and be switched to another language until the value of LW9130
is changed.
Max Lang Num: The Text Library supports up to 32 kinds of languages with the Default Language of 8. If the
user needs more than 8 kinds of languages, the Max Lang Num should be increased.
Current Lang: Refers to the language being edited currently.
Font type: Sets the font type of the language used currently to Vector Font or Dot Matrix Font.
Font Attribute: Sets the related attributes of the language used currently such as the Font, Size, Alignment,
Color and Italic and Bold.
Copy Font Attribute To All Language: Copies the attributes of the current set font to the fonts corresponding to
all of the states for all of the languages.
Language: Refers to the description of the current language. This option is related to the input method in
operation system of PC used currently by the user.
Note:
1. The Font Attribute setting for each kind of language in [Language Setting] are globally-valid, while that in
[Tag] tab in component attribute screen are only valid for the tag content of the current component.
2. Changing the Font Attribute setting in [Language Setting] will not affect the component having used Text
Library as the font attribute of tag. To use the Font Attribute setting in [Language Setting], it needs to
recheck “Use TextLib” in [Tag] tab after the checking being cancelled, in order to refresh the Font Attribute
setting in [Language Setting].
258
z Export Text Library
1) The following dialog box will pop up after “Export” is clicked.
2) Click “>>” to change the path for saving the export file and the name of the export file, or select the
defaults, as shown below.
3) After the path being saved, if “Export file successfully” dialog box pops up, it means the export is
successful.
The opened export file in .csv format is as shown below.
259
2) Select the file in .csv format to be imported, and then click the “Open” button.
3) Confirm whether the file is opened or not. If “Import file successfully” pops up, it means the import is
successful.
4) If the imported file in .csv format has the items having the same name with that in the existing Text Library
of the system, the selection dialog box will pop up.
In this case, you can select “Yes” or “No” according to the actual requirements.
2) If the line-break exists in the contents of Text Library in the Project Edit Window, the exported file is shown
as below.
260
Or
3) After the .csv file is edited in excel file, be sure to save it as “Unicode Text (*.txt)”, otherwise it will not be
identified when it is imported.
4) The “Import” & “Export” are only applicable to the whole Text Library rather than the single text item
contained in the Text Library.
261
3-8-2 Address Tag
Address Tag is a useful address logon library, which prevents the inconvenience resulting from
repeated input of address, thus saving a lot of time. As long as you have logged the address here, you can
use the address logged into the object library in any place where “Use Address Tag” can be used.
1. Clicking icon or entering [Address Tag] in the [Project Database] can make Address Tag pop up.
2. Click “Add” to make the following small dialog box pop up.
262
3. Input the above-mentioned items respectively, and click “OK”, then the address tag will appear in the
library.
z The addresses having been logged in the address tag library can’t be
changed in the other places, that’s to say, they can only be used. If they are
needed to be changed, you just need to enter the Address Tag dialog box to
perform the related operations.
z For the use of Address Tag, when the data type is “Bit”, only Bit component
can use this Address Tag; while when the data type is “Word”, only Word
component can use this Address Tag.
263
3-8-3 Alarm Information
To display the information on the Alarm Display component or Alarm Bar component, the logon in
the list of [Alarm Information] database is needed. One bit address can control whether one piece of
information will be displayed or not. If the logged bit address is triggered (ON or OFF), the related information
will be displayed on the Alarm Display component. (This component is only responsible for the logon of alarm
information, and the display needs to be done by “Alarm Display” component.)
z Add/Modify Logged Alarm Information
1. Press the icon (locating in Database Toolbar) to make Alarm Information Logon pop up, or enter the
“Alarm Information LogOn” in the “Project Database” in Tool menu.
2. Select the [Add] button to add the information or select the [Modify] button to modify the existing
information.
264
Descriptions of Alarm Information Attribute
When several HMIs are connected during the project configuration, you can use this
Triggered HMI option to select the Alarm Display component on the HMI to display this piece of
alarm information.
PLC Address Specifies the bit address of the register that triggers the read of the alarm.
ON When the specified bit address is ON, one piece of alarm information is generated.
Attribute OFF When the specified bit address is OFF, one piece of alarm information is generated.
Trigger Use When the alarm information is triggered, the buzzer will be enabled. The Buzzing
Buzzer Time can be set with the unit of “second”.
Inputs the contents of alarm information to be displayed. Clicking [Font] can set the
Text Content
Font Type and the related attributes.
Determines whether to use the contents logged in the Text Library. For the use of
Use Text Library
the Text Library, refer to [3-8-1 Text Library].
When using multi-language Text Library, you can select the language here and click
Language “Font” to set the font attributes corresponding to text in each kind of language
respectively.
3. Press the [OK] button to make the alarm information displayed in the alarm list. After the alarm
information is logged, you can edit the existing alarm information by using “Delete” and “Modify” buttons.
Press the [OK] button to complete the logon of the alarm information.
Note: For making full use of communication bandwidth, it is recommended to use the consecutive address
block as the address from where to read the alarm logged in [Alarm Information] database in order to ensure
the smoothness of the communication. For example, use M100 to M199 to control the displays of all the
information, thus M100 to M199 can be read at a time instead of one bit address being read at a time.
Event/Alarm Type
The Event/Alarm is divided into 256 types, i.e. 0 to 255, in the NB-Designer.
Event Display, Alarm Display and Alarm Bar can restrict the types of the displayed events respectively. For
example, if the display type of “Event Display Component” is from 0 to 3, only the contents of event ranging
from Type 0 to Type 3 will be displayed.
This option is used to select the type of the alarm and event displayed currently.
265
Example: To create an event log with the type of each event being different.
1. Click Event Information to add the new event with the settings shown as below.
2. The setting method of LB1 and LB2 is similar to that of LB0. The type of LB1 is 1, and the type of LB2 is 2.
266
3. Place two Event Display components with the addresses of LW0 in the Edit Window and the settings are
as shown below.
4. Perform the simulation, then the events belonging to Type 0 and Type 1 will be displayed in Event Display
Component 1 and the event belonging to Type 2 will be displayed in Event Display Component 2.
267
3-8-4 Event Information
The information logged in Event Information component will be displayed in the Event Display
component. To display the information in the Event Display component, the information must be logged in the
[Event Information] database in advance. One bit or word address controls one piece of information. When
the logged bit or word address is triggered (i.e. It is ON/OFF or the restricted value is triggered.), the
corresponding information will be displayed in the Event Display component. (This component is only
responsible for the event log, and the display needs to be done by “Event Display” component.
z Process of Adding/Modifying Event Information
1. Press the icon or drag “Event Information” from the “Project Database” to the window, then the
“Event log object list” will pop up.
2. Select the [Add] button to add the information or select the [Modify] button to modify the existing information.
268
Descriptions of Event Information Attributes
Triggered When several HMIs are connected in the project edit screen, you can use this option to
HMI select the Event Display component of the HMI to display this event record.
Classifies the events and the available type is from 0 to 255. Event Display component can
Type
restrict the displayed event type.
Specifies the register that triggers the read of the alarm. The type of register can be
Address
changed into “Bit” or “Word” through “Data Type”.
When the address state of the specified bit is from OFF to ON, one
ON
event record will be generated.
Bit
When the address state of the specified bit is from ON to OFF, one
OFF
event record will be generated.
When the value of the specified word address is less than the
<
specified value, one event record will be generated.
When the value of the specified word address is greater than the
>
specified value, one event record will be generated.
When the value of the specified word address is equal to the
specified value, one event record will be generated.
[Value Range] When the value of the specified word address is
within the specified range, one event record will be generated.
==
As shown below, check “Value Range” with “Min Value” & “Max
Value” set to “5” and “10” respectively, as well as the value of the
specified word address set to “N”. Then when 5 <= N <= 10, one
event record will be generated.
Attribute
Word
When the value of the specified word address is not equal to the
specified value, one event record will be generated.
As shown below, check “Value Range” with “Min Value” & “Max
Value” set to “15” and “30” respectively, as well as the value of the
specified word address set to “N”. Then when N < 15 or N > 30, one
event record will be generated.
< >
When the value of the specified word address is less than or equal
< =
to the specified value, one event record will be generated.
When the value of the specified word address is greater than or
> =
equal to the specified value, one event record will be generated.
Trigger Execute
When event occurs, the selected Macrocode will be executed.
Function Macro
269
When the record information of the occurred event to be displayed
Confirm in Event Display component is triggered, the specified window will
Pop pop up. And it needs to use the ”Close Window” function of the
Pop-up Function Key to close this pop-up window.
Window
The specified window will pop up when the event occurs. And it
Trigger
needs to use the “Close Window” function of the Function Key to
Pop
close this pop-up window.
When the event log occurs, the state of the specified bit register will
0
be set to “0”.
When the event log occurs, the state of the specified bit register will
Write Data 1
be set to “1”.
When the event log occurs, the state of the specified bit register will
Not
be reversed.
Inputs the contents of event information to be displayed. Clicking [Font] can set the Font
Type and the related attributes.
Use Text
Determines whether to use the contents logged in the Text Library.
Library
When using multi-language Text Library, you can select the language here
Language and click “Font” to set the font attribute corresponding to text in each kind of
language respectively.
TIP: The data contained in the internal register LW can be included in the event information.
And the available formats are as follows:
Text ^xxxx^: Refers to the print state selection, i.e. the content to be printed when the event is
triggered for the first time or during the switching among the different events. For example, if
“Fill Water” is needed to be printed out, it should be expressed as “^Fill Water^”.
%h:mm:s#: Refers to the print time.
%y:mm:d#: Refers to the print date.
%nnfmd: “%” represents the start symbol, “nn” represents the number (i.e. 00 to 99) of the
internal register (LW); “f” represents the printed value with the decimal. “m” represents the
decimal digit and “d” represents the end symbol. “%nnd” is only needed to express the value
to be printed without the decimal digit. For example, if you want to print the value of LW20
with one decimal digit, you just need to use “%20f1d”. (If the PLC register is used, it can be
transferred to the internal register LW of the HMI by using the timer.)
Use When the event is triggered, the buzzer will be enabled. The Buzzing Time can be set with
Buzzer the unit of “second”.
Open Text
Opens the text library editing dialog box.
Library
Open
Address Open the address tag editing dialog box.
Tag Library
The Trigger Function is in check box form with two states of “Check” or “Not Check”.
270
1) Text: Refers to the contents of the event information to be input. And the font color and size can be
selected.
The data contained in the internal memory can be included in the event
information. The available formats are as follows: “%” represents the start symbol,
“nn” represents the number (i.e. 00 to 99) of the internal register (i.e. LW here),
and “d” represents the end symbol in “%nnd”.
For example, when the content is set to “Current temperature is %25d: Upper-limit
Alarm”, if LW25 is 120, the information will be printed as “Current temperature is
120: Upper-limit Alarm”. If you want to print out the data contained in the current
PLC register, one data transmission component should be assigned in advance to
make the data moved from the PLC into the internal memory (LW).
3. Pressing the [OK] button will make the event information displayed in the event list. After the event
information is logged, you can edit the existing event information by using “Delete” and “Modify” buttons.
Press the [OK] button to complete the log of the Event Information.
z For making full use of the communication bandwidth, it is recommended to use the consecutive
bit address block of PLC for the Event Information component.
For example, you can use the consecutive bit addresses 100 to 199 to control the display of the event
information. And in this case, the data contained in the bit addresses 100 to 199 can be obtained only by one
read command instead of one bit address being read at a time.
271
3-8-5 PLC Control
When the corresponding control is triggered, PLC Control component can activate one specific
operation.
PLC Control component is a powerful component group, which can realize a large variety of functions
because it is more powerful than the general component. And its functions are as follows:
1. Change Window: Changes the current window.
2. Write Data to PLC (Current Base Window): Transfers the current Window No. to the PLC.
3. General PLC Control: Realizes the data transmission between the PLC address and LW/RW.
4. Backlight Close: Turn off the backlight.
5. Backlight Close (Write Back): Turn off the backlight with the returned value.
6. Execute Macro Program: Execute the corresponding Macro program number when the condition is met.
7. Backlight Open: Turns on the backlight.
8. Backlight Open (Write Back): Turns on the backlight with the returned value.
9. General PLC Control (Extend)
10. Change Window (Ignore the window 0)
2. Press “Add” button to create a new PLC Control component or press “Modify” and “Delete” buttons to
modify the PLC Control component and delete the selected component respectively.
272
3. Fill in the options displayed in the PLC Control component dialog box correctly.
Addr. Type: Specifies the address types of the devices performing the PLC control operations.
Address: Specifies the addresses of the devices performing the PLC control operations.
Code Type: Includes BIN or BCD.
Control Type: Specifies the operation types of the component. There are 12 types available, and their
functions will be described later in details.
Macro ID: Sets the No. of Macro program to be executed when the Control Type is “Execute Macro Program”.
4. Press the “OK” button to exit from the PLC Control component dialog box.
5. Repress the “OK” button to exit from the list of PLC Control component.
z Control Type
1. Change Window
This operation needs 2 consecutive word addresses. When the [Read Address] is switched to a valid window
No., the current window will be closed and the specified window will appear. And the specified window No. is
the content of the data contained in the [Read Address] of the register. And then, the destination window No.
will be written to the Read Address +1 of the PLC.
Read Address For window switching control
Read Address + 1 For writing the destination window No.
For example, set the address to “LW0”, Code Type to “BCD” and the current window to Frame 0. If LW0 is
changed to 10, the current window will be switched to Frame 10, and 10 will be returned to LW1.
273
Each time one “Change Window” function key is pressed, the current window will be
closed and the destination window will be displayed.
The function of [Change Window] for PLC Control component is similar to “Change
Window” function key, and the difference is that it is triggered by the PLC register
instead of the touch-control operation. When the value of the Read Address is
changed to a new valid window No., the current window will be closed and the
window specified by the Read Address will be displayed, and the content of the Read
Address will be written into the Read Address + 1. This operation can be triggered
only when the value of the [Read Address] is changed, and the screen can only be
switched once when the above-mentioned value is changed at one time.
When there is a PLC Control component with the settings shown as above, word address LW0 will store the
No. of the current base window.
274
2. Set Read Address + 1: Refers to the size of the data block to be transferred, i.e. the word number
contained in the data block to be transferred.
3. Set Read Address + 2: Refers to the address offset of the data register of PLC during the transmission.
Please note that this offset is only for the address register with “Set Read Address + 4”.
For example, if the Read Address set in the PLC General Control component is LW100, and the data
contained in register LW102 is 4, the starting address of the data block of PLC operated during the
transmission is LW108 = [(100 + 4) + 4].
4. Set Data + 3: Refers to the address offset of the recipe data register (RW) or the local data register (LW)
of the HMI during the transmission, and the offset is only relative to “0”.
In the example listed above, if the data contained in LW103 is 100, the starting address of the data block of
the HMI operated during the transmission is RW (LW)100=(0+100).
4. Backlight Close
This operation uses one bit address to control the closing of the backlight, and when the bit address is ON,
the backlight will be closed.
275
As shown above, when LB0 is ON, the backlight is closed. In this case, when the user touches the HMI, the
backlight will automatically light on, and at this time the LB0 is still ON. If the user touches the LB0 again, it will
be turned OFF, thus returning to the state before the backlight is closed.
As shown above, when LB21 turns ON, the backlight is OFF, and LB21 is turned OFF by the command sent
from the HMI. When the user touches the HMI, the backlight turns ON and LB21 turns OFF, thus returning to
the state before the backlight is closed.
Addr. Type and Address: Refers to the address to trigger the Macro program execution. The Macro program
will be executed when this bit is 1, while not executed when this bit is 0.
Macro ID: Refers to the No. of Macro program.
Execute Method:
ON<->OFF: When the specified bit turns OFF from ON or vice versa, the Macro program will be executed.
OFF->ON: When the specified bit turns ON from OFF, the Macro program will be executed.
ON->OFF: When the specified bit turns OFF from ON, the Macro program will be executed.
ON: When the specified bit is ON, the Macro program will be executed.
OFF->ON, Reset: When the specified bit turns ON from OFF, the Macro program will be executed and the
specified bit will be forced into OFF.
ON->OFF, Reset: When the specified bit turns OFF from ON, the Macro program will be executed and the
specified bit will be forced into ON.
This function can be used only when the Macrocode has been added in the project.
276
7. Backlight Open
This operation uses one bit address to control the lighting of the backlight, and when the bit address is ON,
the backlight turns ON.
As shown above, when LB0 is ON, and the backlight will automatically light on. At this time, LB0 is still ON; if
the user touches LB0 again, it will turn OFF, thus returning to the state before the backlight lights on.
As shown above, when LB21 is ON, the backlight will automatically light on, and LB21 is turned OFF by the
command sent from the HMI, thus returning to the state before the backlight light on.
277
278
10. Change Window (Ignore the window 0)
The difference between Change Window and Change Window (Ignore the window 0) is as follows:
Change Window: When the Window No. is 0, it will be switched to Frame 0.
Change Window (Ignore the window 0): When the Window No. is 0, window switching is not made.
279
3-9 Macro Function
Macro is an advanced HMI control method, which makes the function of the HMI more powerful. The HMI can
have the same logic and arithmetic functions with the PLC through the Macro programming. Using Macro
flexibly can realize more powerful functions that can not be realized by the common component, and make
the HMI more perfect.
NB-Series PT provides the new Macros different from the Macro scripting language mode in the other HMIs,
and the Macro is compatible with the standard C language (ANSI C89) completely. This section will focus on
the creation and usage of Macro through the examples instead of the grammar and the basic knowledge of
the C language.
Select the HMI No. and input the file name, then click “OK” to enter the Macro Editing Window (i.e.
[macro_0.c]) , as shown below.
280
Before writing the Macrocode, please pre-define the I/O variables.
Right-click the mouse in the “Parameters [macro_0.c]” window to make the following menu pop up.
Select “Add Variable” to make the following dialog box pop up.
281
Here, select “signed int.” from “Data Type”, “Read” from “R/W”, “LW” from “Address Type” and “0” from
“Address” respectively. After the selection, click the “OK” button, then this variable will be seen in “Parameters
[macro_0.c]” window.
When the Macrocode being written, all the external data referenced must be
pre-registered in “Parameters [macro_0.c]” window.
Set LW1_R and make its address to LW1, then set the address of LW2_W to LW2 by the same method.
When the Data Type is set to “double”, the Word Length is automatically become 4,
i.e. this variable occupies LW2 to LW5.
After the completion of setup, the “Parameters [macro_0.c]” window is shown as below:
282
Then the editing screen is shown as below:
Perform the offline simulation, input 5 into LW0 and 2 into LW1, and you will see the result as shown below:
According to our estimation, the result should be 2.5 instead of 2. Where the problem is? For the user familiar
with C language, this problem is quite simple. Because LW0_R and LW1_R are “signed short”, but according
to the default type conversion principle of C language, the result after the division is rounded, thus making
only the integer reserved. How to solve this problem? It is quite easy and you just need to make any one of
input number converted into “double” forcefully.
LW2_W = (double)(LW0_R)/LW1_R;
After modifying the Macro using the method mentioned above, perform the simulation, and you will get the
result as shown below:
At this time, the simple example is completed. But there still exist problems in this code segment: How to do if
0 is input for LW1? As we know, 0 can’t be the divisor. In C language, if 0 is as divisor in the division during the
operation, which will cause “Divide-by-zero overflow” error occurrence, program deadlock or program exit in
the serious case. Then when you execute the Macro, “Divide-by-zero overflow” error will occur, which will
affect the normal operation of the system. In this case, how should we do? We need to check the operands.
We can change the codes as shown below:
int MacroEntry()
{
283
//Judge whether LW1 is 0 or not in order to prevent “Divide-by-zero overflow” ;
if (LW1_R!=0)
//LW0 divides LW1and LW2 is obtained
LW2_W = (double)(LW0_R)/LW1_R;
return 0;
}
Execute it again. If the divisor is 0, the Macro will not execute division operation, thus improving the code
functionality.
Macro Optimization
You can make the new Macro with the customized name or the default name, as shown below. At the same
time, you can modify the defining method for Macro variable to allow array variable to be defined. But the
array here only refers to the one-dimensional array.
For example:
Create one array variable LW0 with the length of 8. The definition of variable is shown as below.
1. Place 8 Number Display components LW0 to LW7 with the consecutive addresses in Window 0, and
make the timer to execute “macro_0.c”.
2. Perform the simulation, and the values displayed in Number Display components are same as the
assigned values in Macro.
284
3-9-2 Operation Principle of Macro Block and Read/Write
Variables
In this part, we will start the description from the operating principle of Macro block in order to help you
understand it, and we will also describe the basic problems that should be noted when you use Macro block.
Macro block can be regarded as a black box for input and output. Take the example mentioned in the first part
of this section as example, and the model is as follows:
The operation principle is as follows: Before the block is executed, the value from the register for LW0 and
LW1 will be assigned to Read variables LW0_R and LW1_R, then Macro block will be executed. Later, after
Macro block function returns, the value of variable LW2_W will be written into LW2.
Therefore, the variable in the Macro block is just like the copy of the register, and modifying the variable value
doesn’t mean modifying the value of the register.
1. Because Macro block doesn’t read the value of the register in real time, and the read value is
the value that is read when Macro block starts to operate. Therefore, modify the value of the
register externally will not affect the operation result of Macro block during its operation.
2. The value of Macro block is not written out immediately, so the value assigned to the variable
during the operation of Macro block can be written to Macro block only after the completion of
Macro block.
3. Read Variable is read-only and Write Variable is write-only, so using Macro code to assign value
for Read Variable or read the value of Write Variable is invalid. Similarly, if one address is used
for Read and Write at the same time, it should correspond to 2 different variable names, such as
LW0 corresponds to LW0_R and LW0_W.
4. You can use Macro block to define any temporary variable or array at the inside of Macro block,
even the complicated combination, but global variable or static variable can’t be set by using
Macro block. If it needs to use the global variable to save the data, please use the local address
such as LW and LB etc.
5. The values must be assigned to the register for the output.
285
Please be careful because the deleted variables can’t be restored.
286
2. Function Key Triggering Macro
Using “Execute Macro” function of Function Key to trigger the Macro is a kind of common triggering method.
3. Timer Triggering Macro
When using “Execute Macro” function of Timer to trigger the Macro, you can use Macro in combination with
the triggering of the timer to realize several triggering methods such as register triggering, timing triggering,
triggering at window initialization etc. flexibly.
4. PLC Controlling Macro
Setting the PLC control element as shown below and selecting “Execute Macro Program” will execute one
segment of Macrocode when the specified bit has the special changes.
287
3-9-4 Other Descriptions
1. The display screen of Macro can differentiate the key word and number etc.
There is a paragraph of description text above the Macro created latest to introduce the format of the local
address for directly accessing the HMI.
Copy one small segment of the description directly into “MacroEntry” function”, if you see the color changes, it
means all the description texts are black. Because they are annotated by “/* */”, so they don’t need to be
compiled. But the part not annotated need to be compiled, and the key words should be differentiated such as
short/void displayed in blue, and LW displayed in red.
288
2. After the Macro creation, you can rename the Macro.
Right-click the Macro name, and you can see the options of [Rename Macro] and [Delete], and input the new
name after the dialog box pops up after clicking “Rename Macro”.
3. It supports the user to directly access the local address of the HMI without the need of defining the
variable.
As shown above, although no variable is defined in the segment of Macrocode, it can be used because it
meets with the formats of direct accessing the local address of the HMI, i.e. Read/Write Local address
function:
int ReadLocal(const char *type,int addr,int nRegs,void *buf,int flag);
int WriteLocal(const char *type,int addr,int nRegs,void *buf,int flag);
That’s to say, the program will read 2-word data beginning from LW200 and then write it into 2 words
beginning from LW202. In order to testify this code segment will be executed successfully, you should place 4
Number Input components and 1 Function Key to execute the Macro in the HMI Edit window, as shown below:
289
Perform the offline simulation:
Make LW200=1 and LW201=2, then click the [Macro] button, and you will find LW202=1 and LW203=2. The
Macro is executed normally.
4. [Import variable/Export variable] functions are provided for user to copy Macro variables and Macrocode.
Right-click “Parameters [directaccesslocaladdr.c]”, you will see the [Import variable] option; and you will see
the [Export variable] option is also activated after you have created a new variable.
290
First click the [Export variable] option to make “Save As” dialog box, and input the file name “t” with the suffix
as “.MPL”, then save it into the specified folder.
Right-click the [Delete Variable] option until it is successful, and then right-click the [Import variable] option to
import the variable. Such operation can be made among the different projects. Select the code to be copied,
right-click “Copy” and then paste them to the specified position.
291
5. Bit-type Macro variable supports the array.
Where: the bit variable supports the array LW.B 0.0~0.f that will be set 1 by this code segment. Place 16 Bit
State Switches with the addresses of LW.B 0.0~0.f as well as 1 binary Number Input component with the
address of LW0.
292
6. Supports Direct Drawing in the Screen (Description of HMI Drawing Function)
In order to make the user draw the normal graphics (line, circle and polygon etc.) in HMI conveniently, one
group of drawing functions are provided in the Macro operation of HMI, thus allowing the user to call the
drawing functions in the MacroEntry function of Macro.
Drawing functions adopt rectangular coordinate system of screen: point of origin locates in the upper-left
corner, and the X-axis extends rightward while the Y-axis extends downward.
A. Definition of Struct
Add 3 structs: PenParam, BrushParam and Point.
a. Pen structure “PenParam”
typedef struct penparam
{
short type;
short width;
int color;
}PenParam;
PenParam is mainly used to set the type, width and the color attributes of the pen. And the value range is as
follows.
Parameter Name Value Descriptions
Type (Pen type) PS_NULL No pen
PS_SOLID Smooth line ( )
PS_DASH Dash line ( )
PS_DOT Dot line ( .)
PS_DASHDOT Dash-dotted line ( )
PS_DASHDOTDOT Dot-dotted line ( )
Width (Pen Width) 1~8 (Unit: pixel) If the input value is less than the minimum value 1 or
greater than the maximum value 8, the system will
automatically set it to the minimum value or the maximum
value respectively.
Color (Pen Color) 0~65535 It is recommended to use Macro RGB (r. g. b) to set the
color, and the range for r, g and b is 0~255. The system
will convert the value of RGB (r, g, b) according to the
color parameters of HMI screen.
293
BFS_DENSE1
BFS_DENSE2
BFS_DENSE3
BFS_DENSE4
BFS_DENSE5
BFS_DENSE6
BFS_DENSE7
BFS_DENSE8
BFS_DENSE9
BFS_DENSE10
BFS_DENSE11
BFS_DENSE12
BFS_FDIAG1
BFS_BDIAG1
BFS_FDIAG2
BFS_BDIAG2
BFS_FDIAG3
BFS_BDIAG3
BFS_VER1
BFS_HOR1
BFS_VER2
BFS_HOR2
BFS_VER3
BFS_HOR3
BFS_DIAGCROSS
BFS_CROSS
BFS_HORGRDT_FTTD
BFS_HORGRDT_FDTT
BFS_HORGRDT_FETC
BFS_HORGRDT_FCTE
294
BFS_VERGRDT_FLTR
BFS_VERGRDT_FRTL
BFS_VERGRDT_FETC
BFS_VERGRDT_FCTE
BFS_OUPGRDT_FLTTRD
BFS_OUPGRDT_FRDTLT
BFS_OUPGRDT_FETC
BFS_OUPGRDT_FCTE
BFS_ODWNGRDT_FRTTLD
BFS_ODWNGRDT_FLDTRT
295
BFS_ODWNGRDT_FETC
BFS_ODWNGRDT_FCTE
BFS_CONGRDT_FLTTRD
BFS_CONGRDT_FRTTLD
BFS_CONGRDT_FRDTLT
BFS_CONGRDT_FLDTRT
BFS_CENGRDT_FETC
BFS_CENGRDT_FCTE
296
c. Point Stuct “Point”
The parameter of point stuct is simpler: X represents the X-axis coordinate and y represents the Y-axis
coordinate for the point.
B. Drawing Function
a. Rectangle “DrawRect (x, y, w, h, pen, brh)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the rectangle (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the rectangle (Unit: pixel)
w Int. Rectangle width (Unit: pixel)
h Int. Rectangle height (Unit: pixel)
pen PenParam Rectangular-border pen
brh BrushParam Rectangular filling brush
b. Rounded Rectangle “DrawRndRect (x, y, w, h, radius, pen, brh)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the rectangle (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the rectangle (Unit: pixel)
w Int. Rectangle width (Unit: pixel)
h Int. Rectangle height (Unit: pixel)
radius Int. Rounded radius (Unit: pixel)
pen PenParam Rounded-rectangle-border brush
brh BrushParam Rounded-rectangle filling brush
c. Ellipse “DrawEclips (x, y, w, h, pen, brh)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the circumscribed
rectangle of ellipse (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the circumscribed
rectangle of ellipse (Unit: pixel)
w Int. Width of the circumscribed rectangle of ellipse (Unit: pixel)
h Int. Height of the circumscribed rectangle of ellipse (Unit: pixel)
pen PenParam Ellipse-border pen
brh BrushParam Ellipse-filling brush
d. Line “DrawLine (x1, y1, x2, y2, pen)”
The description of the parameter is as follows:
Parameter Type Descriptions
x1 Int. X-axis coordinate of line origin (Unit: pixel)
y1 Int. Y-axis coordinate of line origin (Unit: pixel)
x2 Int. X-axis coordinate of line end (Unit: pixel)
y2 Int. Y-axis coordinate of line end (Unit: pixel)
pen PenParam Line brush
297
e. Polygon “DrawPolyg (pts, n, pen, brh)”
The description of the parameter is as follows:
Parameter Type Descriptions
pts Point * The first address of vertex-coordinate data for polygon
n Int. Vertex data of the polygon
pen PenParam Polygon-border pen
brh BrushParam Polygon-filling brush
f. Arc “DrawArc (x, y, w, h, start, end, pen)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the circumscribed
rectangle of arc (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the circumscribed
rectangle of arc (Unit: pixel)
w Int. Width of the circumscribed rectangle of arc (Unit: pixel)
h Int. Height of the circumscribed rectangle of arc (Unit: pixel)
start Int. The starting angle of the arc
end Int. The end angle of the arc
pen PenParam Arc-border pen
g. Sector “DrawPie (x, y, w, h, start, end, pen, brh)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the circumscribed
rectangle of sector (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the circumscribed
rectangle of sector (Unit: pixel)
w Int. Width of the circumscribed rectangle of sector (Unit: pixel)
h Int. Height of the circumscribed rectangle of sector (Unit: pixel)
start Int. The starting angle of the sector
end Int. The end angle of the sector
pen PenParam Sector-border pen
brh BrushParam Sector-filling brush
For the drawing functions, RGB values can be used directly for the colors.
For the corresponding relationship between 65536 Color and RGB, the system will handle it directly.
int MacroEntry()
{
PenParam pen;
BrushParam brh;
Point pts[5];
short buf[2] = {0};
pts[0].x = 0;
pts[0].y = 0;
298
pts[1].x = 100;
pts[1].y = 0;
pts[2].x = 120;
pts[2].y = 150;
pen.type = 1;
pen.width = 0;
pen.color = RGB(0, 0, 0xFF);
brh.type = BFS_ODWNGRDT_FRTTLD;
brh.foreColor = RGB(0, 0, 0);
brh.backColor = RGB(255, 255, 255);
DrawRect(0, 0, 400, 400, pen, brh);
}
299
3-10 System Parameters
This part mainly describes the contents related to the communication. After the editing of screen, the next
procedure is to set the communication parameters for PLC and HMI to ensure that the screens edited before
can be downloaded and make the communications correctly with the PLC, thus completing the basic
application of HMI. Setting the communication parameters for PLC and HMI correctly is the prerequisite for
the application. We will also introduce the contents related to the communication such as communication
settings and HMI expansion etc. one by one here.
Double-clicking HMI in HMI Edit window can make system parameter dialog box pop up.
There are 9 option tabs related to the communication: [HMI], [Task Bar], [HMI Extended Attributes], [HMI
System Information Text], [User Permissions Setting], [Security Levels Setting], [Historical Events Storage],
[COM1 Setting] and [COM2 Setting]. They will be described in the later one by one.
300
3-10-1 HMl
Network Setting: Refers to the network information such as IP, Subnet Mask, Default Gateway and Display
Setting etc.
Display Setting: Refers to the current display of HMI (Horizontal or Vertical). Horizontal/Vertical display is
selected at dragging HMI, once it is selected, it will not be switched again.
Description: Refers to the description for this HMI. And the description will be displayed in HMI description
box at the downloading and simulation etc., thus making the differentiation among several HMI conveniently.
301
3-10-2 Task Bar
Display Task Bar: Determines whether to display the task bar or not. If the “Display Task Bar” is selected, the
task bar as show above will be displayed at the bottom of the screen.
Use Touch Indicator: When the screen is touched, the touch indicator will change the color. If the “Use Touch
Indicator” is checked, the touch indicator will be displayed at the right side of the task bar, as shown above.
(The touch indicator is expressed by “T” in simulator and the HMI.)
CPU Indicating Lamp: CPU indicating lamp is a bar picture showing the usage condition of CPU in
percentage form. If “CPU Indicating Lamp” is checked, CPU indicating lamp will be displayed at the right side
of the task bar, as shown above. (The CPU indicating lamp is expressed by “P” in simulator and the HMI.)
Alarm Indicating Lamp: Alarm indicating lamp is a bar picture showing the ratio of the current alarm
numbers to the total alarm numbers logged in the alarm information. If “Alarm Indicating Lamp” is checked,
alarm indicating lamp will be displayed at the right side of the task bar, as shown above. (The alarm indicating
lamp is expressed by “A” in simulator and the HMI.)
Fast Selection Window: Determines whether to include the Fast Selection Window or not. After this option is
checked, you can use the component in the Fast Selection Window to perform window skipping. If this option
isn't checked, the Fast Selection Window will not pop up.
Only Show Fast Selection Button: After this option is checked, only the Fast Selection Window button is
displayed in the task bar.
302
Background Color: Determines the background color of the task bar. You can select the following colors at
“Default Colors” or select “Custom Colors” to configure any colors you want.
Undefined Area Color: When you click the undefined area (the Nonclient area), the touch indicator will
change colors.
CPU Indicating Lamp Color: Refers to the color of CPU indicating lamp.
Alarm Indicating Lamp Color: Refers to the color of alarm indicating lamp.
Touch Indicating Lamp Frame Color: Refers to the box color of the touch indicating lamp.
Touch Nonclient Color: Refers to the touch indicator color when the nonclient area is touched.
Touch Client Color: Refers to the touch indicator color when the client area is touched.
Fast Selection Window Button/Task Bar Button: The texts input into these two boxes are the texts
displayed in the “Display/Hide Fast Selection Window” and the texts displayed in “Display/Hide Task Bar
Button”. You can input the name such as “Start, Task Bar” in the Fast Selection Window and the Task Bar.
Button Position: Refers to the positions of the Fast Selection Window Button and Task Bar Button, i.e. “Align
left” and “Align right”. If you select “Align right”, the Fast Selection Window Button and the Task Bar Button will
be placed in the lower-right corner of the screen. On the contrary, they will be placed in the lower-left corner of
the screen.
Text Align: The text alignment in the Fast Selection Window Button and the Task Bar Button includes “Align
left”, “Align right” and “Align center”.
Button Area Size: Refers to the width and height of the area where the button locates.
303
Font Size: Refers to the font size of the texts in the Fast Selection Window Button and the Task Bar Button.
Backlight: How long (minute) the backlight will be closed when the screen is not touched.
Backlight automatically turns when alarm/event occurs: When it is checked, the backlight will
automatically turn ON when the alarm/event occurs.
Screen Saver: How long (minute) the screen will enter protection state when the screen is not touched.
The Window Of Screensavers: After the screen saver is checked, a certain window can be selected as
Screensaver Window.
Return to Original Window when Screensavers Ends: When it is checked, the screen will return to the
Original Window after the screensaver ends.
Allow Upload: Determines whether the PKG files will be uploaded after the user project dada is downloaded
to HMI.
Allow Decompilation: Allows the user to decompile and modify the PKG files generated by configuration
compilation after it is checked.
Number of Language: Refers to the several languages such as English, German, French and Chinese
included in the project and of course it can be any other languages. The languages used by the component of
the HMI is generally less than or equal to the maximum language number . For example, the maximum
language number is 7 and the number of used languages is 5, the components in HMI can only use 5 kinds of
languages. For the details, refer to [3-8-1 Text Library].
Default Language: Refers to the default language when the project is opened originally.
304
System Scroll Bar Width: Refers to the component with the scroll bar such as operation log component. The
width of the scroll bar can be set with this option and the width range is from 20 to 120 pixel point. When the
spacing is 4 (i.e. 20, 24, 28 and so on), the effect can be seen.
305
Use INIT Macro: Refers to the Macro file run firstly when the unit enters HMI Application Mode after it starts.
Use Buzzer: Sets or cancel “Beep Function”. When the HMI is pressed, the “beep” will send out when “Beep
Function” is set.
Chinese Font Box Height: Sets the height of text input box and the default value is 24.
When inputting the characters in Pinyin form, the Chinese font box height can be adjusted between 24 and 99
(pixel).
Perform the offline simulation and the effect is as shown below:
When the Chinese font box height is 24: When the Chinese font box height is 34:
Use The External Clock for Event: After it is checked, the event occurrence time will not adopt local clock of
HMI and the values of the registers LW9010-LW9017 will be read as the event time.
Note: Using this function needs to use Data Transmission component to transfer the data in the time register
of PLC to LW9010-LW9017 periodically.
LW9010: Second
LW9011: Minute
LW9012: hour
LW9013: Date
LW9014: Month
LW9015: Year
LW9016: Week (Not available temporarily)
LW9017: Millisecond
In the following example, we will use the Data Transmission component to transfer the data in the time
register of PLC to LW9010~LW9017 periodically.
i.e. transfer SD100 to LW9015, SD101 to LW9014, SD102 to LW9013, SD103 to LW9012, SD104 to LW9011
and SD105 to LW9010.
306
Because the corresponding relation of the address is opposite, so it needs 6 Data Transmission components
and 1 Timer component.
307
308
After creating a new Event Information component, place 1 Event Display component, then perform the
indirect online simulation and the effect is as shown below:
“Acknowledge Time” refers to the HMI time, therefore we must pay attention to it when using this function. And
it’d better to use it after the time is adjusted well.
309
Vector Fonts Edge Blur:
The characters can be made smooth, beautiful and no-alias by using “Vector Fonts Edge Blur”. But using this
function can increase the computations of the HMI, and may affect the processing speed of the HMI with the
slower speed of refreshing of the HMI. Therefore, if the user doesn’t have the higher requirements for the
vector font display but have the requirements for the faster refreshing speed of the HMI, please do not check
this option. The default is checking “Vector Fonts Edge Blur”.
This function doesn’t support Event Information, Event Display, Alarm Display, Alarm List, List, Drop-down List,
Historical Data Display components and Operation Log component.
The comparison effect of checking and not checking the [Vector Fonts Edge Blur] is shown as below:
The effect of checking [Vector Fonts Edge Blur] : The effect of not checking [Vector Fonts Edge Blur]:
It is obvious that the edges after being handled are more smooth and no-alias.
Screen Flip Display:
The optimal visual angle for the screen of the HMI is front view. If the screen needs to be seen by the
overlooking method, i.e. from top to bottom, in some special occasions, the display effect will become poor;
and the “Screen Flip Display” is added to turn the screen reversely to obtain the same display effect as front
view.
There are 2 methods for Screen Flip Display:
Method 1: Enter [HMI Extended Attributes] tab in HMI Attribute, check [Screen Flip Display], and the display is
reversed after the it is downloaded to the screen. And the screen will keep as Flipped Display after the power
failure or restart of the screen.
Perform the offline simulation and the effect is as shown below:
Method 2: The flipping of the screen is controlled by the local special register LB9163 (LB9163 is read/write
type.) When LB9613 is turned ON, the screen is displayed vertically-flipped. When the flipped screen display
function is controlled by LB9163, the flipping function can’t be maintained after the power failure or restart of
the screen.
Example: Place a Bit State Switch with the address of LB9163 and attribute of “Toggle” in the window.
310
When LB9163 is ON, the display is flipped; while LB9163 is OFF, the display is normal. Perform the offline
simulation and the effect is as shown below:
Public Window Attributes: Determines the common window for the project program to be displayed above
or below the Basic Window.
Pop-up Window Attributes: Sets the pop-up window to normal display (For example: The opened window
must always be displayed on the top layer, but it can be switched to the top layer of the other windows.) or
always display on the top layer.
Initial Window: The Window No. will be firstly displayed when the HMI Application Mode is entered after the
unit starts. The default is Frame 0.
Public Window: Refers to the No. of Common Window of the project. The default is Frame 1.
Fast Selection Window: Refers to the No. of Fast Selection Window of the project. The default is Frame 2.
File Browser Window: Refers to the No. of Browser File Window of the project. The default is Frame 5.
Operation Confirmation Window: Refers to the No. of Operation Confirmation Window of the project. The
default is Frame 7.
Login Window: Refer to the No. of Login Window of the project. The default is Frame 9.
Invalided Components Color:
The role of invalid component marks: When the enable condition isn’t met or is invalid, using this option can
set invalid component mark to indicate this component can’t be used currently and the touch is not effective.
When the enable condition of the component is met, the invalid component mark will disappear automatically,
indicating the component currently can be used. When the enable condition of the component is met, the
invalid component mark will disappear automatically, indicating the component currently can be used.
Example: When the value of LW0 is 0, only M0 (Bit State Switch) can be operated. When the value of LW0
isn’t 0, M0 (Bit State Switch) can’t be operated, and the invalid mark will be displayed.
1. Setting of Invalided Components Color: Double-click HMI Attribute and enter [HMI Extended Attribute]
tab to select “red” as the Invalided Components Color.
311
2. Place one Bit State Switch, i.e. M0, and set the enable conditions in the [Control Setting] tab for it, and
then select [Conditional Enabling], [Word Control] LW0=0 and select [Show Elements Invalid Tag].
Cursor Color: Sets the cursor color for the component with the cursor such as Number Input component and
Text Input component etc.
312
3-10-4 HMI System Information Text
The default system prompt information in English can be changed to the required text.
Enter the [HMI System Information Text] tab in HMI Attribute, select the [Use User-Defined System
Information] option to input the corresponding text in the text box. This text supports Vector Font and Dot
Matrix Font, as shown above.
Example: Change “PLC No Response” to “No Response”.
1. Enter the [HMI System Information Text] tab in HMI Attribute.
2. Select “2: PLC No Response” in the drop-down box of the system information, and check the [Use
User-Defined System Information] option and input “No Response” in the text input box.
3. Use the Vector Font with the following settings, i.e. AR PL UMing CN, the size of 16, red and Bold.
313
When the HMI can’t perform communications with PLC, “No Response” will be displayed.
314
3-10-5 Security Levels Setting
The security level is classified into 16 levels (0 to 15) in the NB-Designer. One 8-digit number password can
be set for each level at the request of the users, and the greater the level number, the higher the level.
15-level is the highest and 0-level is the lowest. When the security level is 0, it means no password. 0 can’t be
used for setting the password.
The number of Security Levels is 3 by default in HMI Attribute, and it can be opened to 16 levels in the
Security Levels Setting tab.
After the security level password is set, the user can use each group of specified passwords to perform
window and component managements. For example, after the window security level is set to “2”, the screen
can be switched to by inputting the user password; otherwise this screen can’t be entered during the
operation.
315
Example: Set 16-level security passwords for the project.
1. Set “The number of Security Levels” in HMI Attribute to 16 with the 0 to 15 level passwords as shown below.
2. Place one LW9040 (double-word) in Window 0 for password input. LW9042 is used to display the security
level and LW9043 is used to switch the security level forcefully. The 15 Function Keys are used to switch
Frame 8 to Frame 22 respectively.
316
Set the window security levels and make Frame 10 correspond to Security Level 1, Frame 11 correspond to
Security Level 2, …, and Frame 24 correspond to Security Level 15.
3. Perform the offline simulation or download it to the screen to check the password level function.
317
For example:
1. For the User Permission Setting of User 0: Check the [Enabled] option and set the User Name to
Administrator, Password to 666666 and Logoff Time to 1 minute. Assign 4 Authorities, i.e. Operation
Permission, Process Permission, System Config Permission and Add/Delete User Permission respectively
for the “Administrator (User 0)”.
2. For User Permission Setting of User 1: Check the [Enabled] tab and set the User Name to Engineer,
Password to 222222 and Logoff Time to 10 minutes. Assign 1 Authority, i.e. Process Permission to the
“Engineer (User 1)”.
Besides the User Permission Setting in HMI Attribute, the following special registers are also needed to create
the editing project related to the user permission.
Addresses Functions Descriptions
LW9486~LW9501 Input the login user name. 32 characters max
LW9502~LW9503 Input the password Double-word
corresponding to the login user.
LW9504~LW9505 Display the current user authority. Double-word, read-only component, the
corresponding 32 authorities.
LB9165 Confirm the user login conditions. After it is turned ON, the login operation is
performed, and later is turned OFF automatically.
LB9166 Confirm the user logoff After it is turned ON, the logoff operation is
conditions. performed, and later is turned OFF automatically.
318
Addresses Functions Descriptions
LW9486~LW9501 Input the login user name. 32 characters max.
LW9502~LW9503 Input the password Double-word
corresponding to the login user.
LW9506~LW9507 Assign the user authority. Double-word, Read/Write component, 32 authority
assignments. LW 9506 to LW 9507 correspond to
32 authorities (No. 0 to 31) and LW.B corresponds
to each bit in LW 9506 to LW 9507. For example:
LW.B 9506.0 represents the authority of No. 0; And
LW.B 9506.A represents the authority of No. 10.
LW9508~LW9509 Logoff time Double-word, Unit: minute
LW9510~LW9511 Add/Delete user confirmed Double-word
password.
LB9167 Add the confirmation of user After it is turned ON, the operation is completed
operation. and later is turned OFF automatically.
LB9168 Delete the confirmation of user After it is turned ON, the operation is completed
operation. and later is turned OFF automatically.
Setting “Permission Control” for the component means only the user having this operation authority can
operate the component restricted by this authority.
319
Login Screen for User Permission
Place one Bit State Setting component with the assumed address of LB0 and the type of [ON] in the editing
screen for making the Direct Window for inputting user permission password pop up.
320
Create a new editing window as the user permission password input window:
Firstly, place one Text Input component for inputting the user name with the address of LW9486 and the
maximum word length up to 16 (Here it is 10.).
Secondly, place one Number Input component for inputting the password with the address of LW9502 , the
word length of 2 and the data type of [password].
321
Thirdly, place one Bit State Setting component for opening the permission with the address of LB9165, type of
[On] and the tag content of “Login”.
Finally, place one Bit State Setting component again for close the permission with the address of LB9166,
type of [On] and the tag content of “Login Out”.
322
Perform the offline simulation and the effect is as shown below:
Input “Engineer” in [User Name] and “222222” in [Password] respectively, then click [Login].
323
Add/Delete User Permission:
Place one User Info Display component in Add/Delete User Screen to display the user information of the
current system.
The “Table Display Attribute” in “User Info Display Component Attribute” screen can be edited alone according
to the requirement of the user screen.
A. Add User
324
“Add User” screen contains User Name, Password, Password Confirm, Login Out Time and Permission.
User Name: Place one Text Input component for inputting the user name with the address being LW9486 and
the maximum word length up to 16 (Here it is 10.).
Password: Place one Number Input component with the address of LW9502, the word length of 2 and the
data type of [password] here.
325
Password Confirm: Place one Number Input component with the address of LW9510, the word length of 2 and
the data type of [password] here.
Login Out Time: Place one Number Input component with the address of LW9508, the word length of 2 and
the data type of [unsigned int] here.
326
Permission: Place 4 Bit State Switches with the addresses of LW.B 9506.0, LW.B 9506.1, LW.B 9506.2, LW.B
9506.3 respectively and switch type of [Toggle] here.
Add User Operation Confirmation: Place one Bit State Setting component with the address of LW9167 and
switch type of “On” for confirming the added user permission.
327
Perform the simulation and the effect is as shown below:
328
Input the User Name to be added, set the Password and the Password Confirm, and then set the Login Out
Time for this user and assign the Permission. After the setting, click “ADD” to complete “Add User” operation.
B. Delete User
“Delete User” screen contains User Name, Password, Password Confirm, Delete User Operation etc.
The setting of User Name, Password and Password Confirm are similar to that of “Add User”.
Delete User Operation Confirmation: Place one Bit State Setting component with the address of LW9168 and
switch type of “On” for confirming the operation of deleting users.
Delete user permission operation is only valid for the users added to the HMI.
The users set in the editing project can’t be deleted.
329
Perform the offline simulation and the effect is as shown below:
Click “Delete User” to make Delete User dialog box pop up:
Input the User Name to be deleted, the Password and Password Confirm for this user, then click “Delete” to
complete the operation of deleting users.
330
3-10-7 Historical Events Storage
Save to Recipe Data Field:
Make the event login information stored in the recipe data field.
If “Save to Recipe Data Field” in the “HMI Attribute” is checked, the system will automatically store the
triggered event login information into the recipe data field. The user doesn’t need to worry about how the
event login information is stored because the system will automatically handle the storage process. Database
located in the address specified by the [Start Addr] of system parameters and the default address is 0.
The information stored in the recipe data includes event login management information and the login time
information. For the storage in event login management information: Specify the Start Addr. for storage with
the size of 30 words, and the event login information after that address. And each piece of event login
information is with the same size of 20 words. The example of calculating the size of the event login
information storage is as follows:
Set the Start Addr. of the data to 100 in [Historical Events Storage] of [HMI Attribute] dialog box, as shown
below:
The system will automatically reserve one memory area starting form RW100 in the recipe card for storing the
event login data, i.e. event login management information and 200 pieces of event login information, as
shown below:
331
Recipe Card Address Data
RW100 Event Login Management Information
RW130 The 1st Event Login Information
RW150 The 2nd Event Login Information
RW170 The 3rd Event Login Information
٠٠٠٠٠٠ ٠٠٠٠٠٠
٠٠٠٠٠٠ ٠٠٠٠٠٠
RW4090 The 199th Event Login Information
RW4110 The 200th Event Login Information
The size of the reserved memory is 200×20+30=4030 words. For the user, this part of memory area is
read-only, any write-operation will cause unexpected result. The user can set the starting address of the data
freely, but should pay attention to the following points:
1. The designed memory area can’t conflict with the address of project component.
2. The memory area can’t exceed RW60000 because the addresses following RW60000 are pre-reserved by
the system.
There are [COM1 Setting] and [COM2 Setting] here because NB Unit has 2 serial ports. You can make the
connection to 2 PLCs through these two serial ports. The settings of these two serial ports are completely
same, so we only describe one serial port.
Type: Selects the communication method between the HMI and PLC from RS-232, RS-422 and RS-485.
Baud Rate, Data Bit, Parity Check and Stop Bit: Selects the communication parameters matching the PLC.
332
PLC Communication Time Out: Determines the time that the HMI needs to wait for the PLC response.
When the delay time of communication between PLC and the HMI exceeds the time expressed by the timeout
constant, the system information “PLC No Response” will be displayed in the HMI. Generally, the timeout
constant is set automatically during the PLC model selection, and doesn’t need to be modified by the
user.
Protocol Time Out 1/2: Refers to the protocol timeout, which is set automatically during the PLC
selection and doesn’t need to be modified.
Max interval of word block pack, Max interval of bit block pack, Max word block package size and Max
bit block package size: The HMI will automatically collect all the PLC data with the consecutive addresses
and send one read command to read these data, thus improving communication efficiency and reducing the
response time substantially. Max word block package size and Max bit block package size set the
maximum numbers of bit register and word register that can be read consecutively. These numbers are
generally set automatically during the PLC selection and don’t need to be modified by the user.
If these PLC data without the consecutive addresses, the HMI will send the separate commands to read them,
i.e. a lot of read commands are needed to read these data. Therefore, we allow to modify the intervals through
the Max interval of word block pack and Max interval of bit block pack. When the 2 address intervals
exceed the settings, they will be divided into 2 data packages to be read, otherwise they will be combined into
1 package to be read, thus reducing the number of the communication package and increasing the
communication speed.
For example:
As shown below, for the reading of data stored in D20 to D29, when the PLC data package is set to 0, the
system will use 3 read-commands to read these data respectively. While when “Max interval of word block
pack” is set to 1, it just needs 1 command to read these data. Generally speaking, the time spent for reading
extra 2 addresses (D23 and D25) is far less than the time spent for reading 2 data package, thus reducing the
time needed for the communication significantly.
333
3-11 Address of System Reserved Register
The system reserves some addresses of Local Word (LW), Local Bit (LB), Nonvolatile Local Word (LW) for the
special purposes, and the user must use these register addresses according to the related descriptions.
● Local Bit (LB): The reserved range is from LB9000 to LB9999.
● Local Word (LW): The reserved range is from LW9000 to LW9999.
● Nonvolatile Local Word: The reserved range is from LW10000 to LW10256.
334
3-11-1 Local Bit (LB)
Addresses Descriptions Comments
9000~9009 Initialization setup is ON. These bits can be used to make some components turn ON
when the system starts the initialization (read/write).
9010 Recipe download The user can use this bit address to instruct the process of
instructions recipe download.
Set it to ON under download state and set it to OFF after the
download is completed (read).
9011 Recipe upload instructions The user can use this bit address to instruct the process of
recipe upload.
Set to ON under uploading status and to OFF after the upload is
completed (read).
9012 Recipe download / upload The user can use this bit address to instruct the process of recipe
instructions download/upload (read).
9013 Use touch indicator Set it to ON when touching the “Touch indicator” (read).
9014 CPU indicating lamp Set it to ON when touching “CPU indicating lamp” (read).
9015 Alarm indicating lamp Set it to ON when touching “Alarm indicating lamp” (read).
9018 Enter screen saver state This bit will turn to 1 automatically when the system enters the
screen saver state (Backlight), and turn to 0 when the system
exits from the screen saver.
9019 Exit from screen saver state This bit will turn to 1 automatically when the system exits from
the screen saver state (Backlight), and turn to 0 when the system
enters the screen saver.
9020 Pen (Turn ON under It is one function of the Note Pad.
selected state) It is used to judge whether the pen is under the selected state
currently (read/write).
9021 Eraser (Turn ON under It is one function of the Note Pad.
selected state) It is used to judge whether the eraser is under selected state
currently (read/write).
9022 Clear Block (Turn ON under It is one function of the Note Pad.
clear block state) It is used to judge whether the block is under “clear block” state
currently (read/write).
9030 Pen thickness of 1 pixel It is one function of the Note Pad, which can set the pen
point thickness to 1 pixel point (read/write).
9031 Pen thickness of 2 pixel It is one function of the Note Pad, which can set the pen
points thickness to 2 pixel points (read/write).
9032 Pen thickness of 3 pixel It is one function of the Note Pad, which can set the pen
points thickness to 3 pixel points (read/write).
9040 Hide/Show fast selection Set it to ON/OFF to hide/show the fast selection window
window (read/write).
9041 Hide/Show task bar Set it to ON/OFF to hide/show the task bar (read/write).
9042 Hide/Show operation button Set it to ON/OFF to hide/show the operation button (read/write).
9043 Hide/show all (fast selection Set it to ON/OFF to hide/show all the fast selection windows, task
window, task bar, operation bars and operation buttons (read/write).
button)
9044 Save communication Set it to ON to perform this function and write the communication
settings to system parameters of LW10000 area back to EE for saving. Only writing
the communication parameters back to EE can ensure the
settings are valid at the next startup.
9045 Restart HMI Set it to ON to perform this function (write).
9046 Low security level This bit will be turned ON when we enter the higher security level
from the lower security level (read).
335
Addresses Descriptions Comments
9050 Return to factory settings Set it to ON to perform this function and the system will save the
default global settings in the downloaded data file to LW10000
system parameter area, and will automatically clear this bit to
zero after successful download.
9051 Control the execution of Setting it to ON can disenable the touch operation of HMI when
touch operation when the the backlight is closed (read/write).
backlight is off.
9052 Disenable Write Back Set it to ON to disenable the Write Back function of PLC. And it is
function of [PLC Control] / only applicable to Write Back function of [PLC Control] / [Change
[Change window] window]. The Write Back function is not disenabled when the
value of LB9052 is OFF. In this case, if you want to switch from
Basic window 10 to Basic window 12 by using [PLC Control] /
[Change window] (Read address: D20), the switching can be
controlled only when the value of D20 is 12. And the PLC will
write 12 back to the word address D21 automatically after the
window is switched to the Basic window 12. If the Write Back
function is disenabled, 12 will not be written back to D21
(read/write).
9053 Touch mark It will turn ON when the Trigger Touch component is pressed
while OFF when the Trigger Touch component is released (read).
9055 Operation at disconnection: When PLC is disconnected from NB Unit, the relevant operation
PLC will be performed according to the contents of LB9055. OFF: All
the commands written to PLC are invalid. ON: Operation is
normal.
9056 Operation at disconnection: When PLC is disconnected from NB Unit, the relevant operation
touch control will be performed according to the contents of LB9056. OFF:
Enable the touch operation. ON: Disenable the touch operation.
9060 Keyboard control bit: Popup When the user activate the Number Input or Text Input
of keyboard controlled by components, the NB Unit turns ON this bit, and the Direct
the component on the left of Window including the keyboard will pop up. This bit will turn OFF
window when the input is successful or the [Esc] button is pressed. The
user can use this bit to control the popup of the keyboard. The
keyboard window will automatically turn OFF when the input is
successful or is cancelled. (Refer to the descriptions described in
the later part of this table for the keyboard control bit.) (read)
9061 Keyboard control bit: Popup Refer to the descriptions described in the later part of this table
of keyboard controlled by for the usage of LB9060 to LB9069, LB9080 and LB9081 (read).
the component on the left of
window
9062 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the
upper left of window
9063 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the lower
left of window
9064 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the right
of window
9065 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the right
of window
336
Addresses Descriptions Comments
9066 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the
upper right of window
9067 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the lower
right of window
9068 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on any
position of the window
9069 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on any
position of the window
9080 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the
upper half of window
9081 Keyboard control bit: Popup (Read).
of keyboard controlled by
the component on the lower
half of window
9093 Increase backlight Brightness increase function is performed after writing of 1, and
brightness this bit is reset to 0 after the operation is performed successfully.
9094 Decrease backlight
brightness
9100 Switch input mode from When the LB9100 is 1, it will switch to Pinyin input mode, and
Pinyin when LB9100 is 0, it will switch to English input mode.
9110 Activate view and zoom Only when LB9110 is 1, the zoom and view functions can be
functions of Trend Curve activated, otherwise the traditional default view method of Trend
Curve will be used.
9116 Operation instruction of This bit will be set to ON during the reading of input register, and
reading input register by to OFF after the reading is completed.
Macro
9117 Operation instruction of This bit will be set to ON during the writing of input register and to
writing input register by OFF after the writing is completed.
Macro
9118 Macro operation instruction This bit will be set to ON during the execution of Macro (reading
(read) and writing of register) and to OFF after the execution is
completed.
9120 Trigger buzzer with a long When this bit is set to ON, the buzzer will be reset after a long
beep (write) beep once.
9121 Trigger buzzer with a short When this bit is set to ON, the buzzer will be reset after a short
beep (write) beep once.
9124 Alarm count setting When this bit is set to ON, the starting item of Alarm Display
component will display the alarm count (read/write).
9129 Trigger basic window for When this bit is set to ON, the input components in the basic
inputting window will be triggered (read/write).
9130 RW clearing settings When this bit is set to ON, the RW clearing (The start address
and word length are determined by LW9260 and LW9262.) will
be triggered (write).
9131 Trigger Number Input When this bit is set to ON, the Number Input components will be
automatically automatically triggered after the window is opened (read/write).
337
Addresses Descriptions Comments
9135 Cursor lock When this bit is set to ON, the cursor will be locked at current
Input component and can be switched to other input components
only after the input is completed (read/write).
9136 Filter PLC communication When this bit is set to ON, the PLC communication without
without response response is filtered (read/write).
9137 Bytes in Text Display When this bit is set to ON, the bytes will be displayed in the Text
component displayed in Display component in reverse order i.e. the low bytes are
reverse order displayed on the right side of the Text Display component
(read/write).
9138 Mask text characters When this bit is set to ON, the Text Display component only
displays the characters encoded from 33 to 127 and uses the
space to replace other characters (read/write).
9139 Set at window switching This bit is set to ON during the window switching (read).
9140 Caps Lock When this bit is set to ON, the English characters will be input in
capital form (read/write).
9141 Turning OFF the current When this bit is set to ON, the current alarm beep will be turned
alarm beep OFF and the buzzer will be automatically cleared to zero (write).
9142 Trigger popup window for When this bit is set to ON, the input components in the top layer
inputting of popup window will be triggered (read/write).
9144 Hide component with When this bit is set to ON, the components with the
communication failure communication failure will not be displayed (read/write).
9145 Restart automatically after When this bit is set to ON, the HMI will restart automatically 5
system collapse seconds after HMI collapse (read/write).
9150 Execute project / recipe When this bit is set to ON, the import / export operation of project
import / export function or recipe will be executed (write).
9151 Protection bit for project This bit will be set to OFF after the upload password is input
export correctly during the project export; otherwise it will be set to ON
(write).
9161 Align-left display on When this bit is set to ON, the display component (LW9060) on
keyboard the keyboard will be displayed in left-aligned way during the input
(read/write).
9162 Vector font optimized When this bit is set to ON, the vector font edge display effect will
display be optimized (read/write).
9163 Screen display state When this bit is set to ON, the screen will be displayed
vertically-flipped, and when this bit is set to OFF, the screen will
be displayed normally (read / write).
9165 User login When this bit is set to ON, the user login operation is performed,
and later the bit will be set to OFF automatically (write).
9166 User logoff When this bit is set to ON, the user logoff operation will be
performed, and later the bit will be set to OFF automatically
(write).
9167 Add user When this bit is set to ON, the user addition operation will be
performed, and later the bit will be set to OFF automatically
(write).
9168 Delete user When this bit is set to ON, the user deletion operation will be
performed, and later the bit will be set to OFF automatically
(write).
338
About Keyboard Control Bits:
NB Unit divides the whole screen into 4 areas with the same size from the center, as shown below:
When the keyboard is controlled by LB9060, if the Text Input or Number Input component in the left side of the
screen is triggered, the keyboard will pop up in the position where the specified Direct Window locates.
Generally speaking, the Direct Window is placed in the right side of the screen during the design period, thus
making the components in the left side not being covered. Similarly, when LB9080 is selected, if the Text Input
or Number Input component in the upper side of the screen is triggered, the specified Direct Window
containing the keyboard will pop up.
339
3-11-2 Local Word (LW)
Addresses Descriptions Comments
9000~9001 Index address of recipe RWI and RBI use this index address to access the recipe data
data with low bit address of 9000 and high bit address of 9001 (read/
(R/W) write).
9002~9003 Maximum input number The maximum number will be input when the Number Input
component is activated. Otherwise the bits will be set to 0
(read).
9004~9005 Minimum input number The minimum number will be input when the Number Input
component is activated. Otherwise the bits will be set to 0
(read).
9006 Note Pad operation mode It is one function of the Note Pad, which can be used to select
the operation modes from Open (0), Eraser (1), and Clear
Block (2) (read).
9007 Pen Width It is one function of the Note Pad, which can be used to select
different pen widths from 0 (1 pixel point), 1 (2 pixel points) and
2 (3 pixel points) (read).
9008 Pen Color (0~255 It is one function of the Note Pad. Any color of 256-color can be
corresponding to 256-color selected with input number (read).
standard palette)
9010 Local time (second) Effective value ranges from 0 to 59.
9011 Local time (minute) Effective value ranges from 0 to 59.
9012 Local time (hour) Effective value ranges from 0 to 23.
9013 Local time (day) Effective value ranges from 1 to 31.
9014 Local time (month) Effective value ranges from 0 to 11.
9015 Local time (year) Effective value ranges from 0 to 9999.
9016 Local time (week) Effective value ranges from 0 to 6.
9017 Local time (millisecond)Effective value ranges from 0 to 999.
9020 Interrupt The low byte of the LW will be sent as interrupt byte (ranging
from 0x20~0xFE) in MEMORY_LINK protocol when it is not 0.
The LW will be cleared to zero when the transmission is
completed successfully.
9030~9031 Touch coordinate Records the touch coordinate taking the upper left side of
screen as origin.
9034~9035 System time Double-word. The time calculated with 0.1s as unit is displayed
(read).
9040~9041 Security level password Double-word. Refer to [3-13 Security Level] for details (write).
9042 Security level Displays the security level of current basic window. Refer to
[3-13 Security Level] for details (read).
9043 Switch security level Forcefully switches from higher security level (e.g. level 2) to
forcefully lower security level (e.g. level 0). Refer to [3-13 Security Level]
for details (write).
9050 Basic Window No. Saves the basic window No. of HMI here and the Slave can
maintain the same basic window as the Host (when PLC Parts
are used) by using this word (read).
9057 Size of each item in event The recipe memory is used to save the size of each item in the
login information database event login information database (read).
340
Addresses Descriptions Comments
9058~9059 Size of event login The recipe memory is used to store the size of event login
information database information including management information (read).
9060~9075 Number Input & Text Input LW9075 includes the latest input data (read).
9091 Project compilation [year] Records the project compilation time [year] (read).
9092 Project compilation [month] Records the project compilation time [month] (read).
9093 Project compilation [day] Records the project compilation time [day] (read).
9100 Change Address: only 9100 is the Window No.
9101 applicable to external PLC 9101 is the offset during the PLC address change.
When LW9100 is set to 11 and LW9101 is set to 20, the offset
of 20 will be added to the PLC word addresses of all the
components in Window 11, i.e. D10 will become D30 and the
offset of 20×16=320 will be added to all bit addresses, i.e. M20
will become M340.
9130 Online switch contents of The value of this LW represents the index of Text Library.
Text Library
9140 Display brightness level Displays the brightness level.
9150 Page up/down of Chinese The value of LW9150 is the No. of Chinese characters
character display window displayed in the current Chinese character display window.
when using Pinyin
9152~9167 Display Pinyin character
input currently when using
Pinyin
9170 Page up/down of Note The value of this LW means the start line of input area.
Book component
9180~9187 Text display of maximum
value of Number Input
9190~9197 Text display of minimum
value of Number Input
9200~9205 Time value of browsing These six words are used to display year, month, day, hour,
point of Trend Curve minute and second respectively in BIN code.
9210 Display values of each The current value of each channel is displayed one by one
channel of browsing points according to the bit width of the browsed Trend Curve.
9260~9261 Start address for RW Sets the start address for RW clearing operation triggered by
clearing operation LB9130.
9262~9263 Word length of RW clearing Sets the word length for RW clearing operation triggered by
operation LB9130.
9264~9279 Mask code of PLC Station Each bit corresponds to one Station No. of COM 2 (i.e. 9264.0
No.(COM 2) corresponds to Station No. 0... and 9279.F corresponds to
Station No. 255). When the bit is turned ON, the
communication corresponding to Station No. will be masked
(read/write).
9296~9299 Mask code of error Each bit corresponds to one piece of error information. When
information the bit is turned ON, the corresponding prompt error
information will be masked. e.g. “PLC No Response” is 9296.2
(read/write).
9370 Operator Confirm method Operator Confirm method:
1: Confirm; 2: Cancel (write).
9380~9395 History value of Number Displays the data of Number Input component before the input
Input component operation (read).
9416~9431 Index Register for Station Each word corresponds to the index (0~15) for Station No.
No. variable variable.
341
Addresses Descriptions Comments
9432~9447 Register for indicating Each bit corresponds to one Station No. (9432.0 corresponds
communication state to 0,…, and 9447.F corresponds to 255). The relevant bit is set
(COM 2) to ON when PLC is under time-out condition and has no
response, otherwise it will be set to OFF.
9465 Time-out ratio of Macro The single allowed maximum operation time of Macro is N
times the default value when the LW is set to ON (read/write).
9486~9501 User name Inputs the login user name of up to 32 characters (read/write).
9502~9503 User password Inputs the password corresponding to the login user
(read/write).
9504~9505 Current authority Displays 32 authorities corresponding to current login users
(read).
9506~9507 Authority setting Double-words and 32 authorities’ assignments. LW9506 to
LW9507 corresponds to 32 authorities (No. 0 to No. 31) and
LW.B corresponds to each bit in LW9506 to LW9507. For
example: LW.B 9506.0 represents the authority of No. 0; And
LW.B 9506.A represents the authority of No. 10 (write).
9508~9509 Automatic Login Out Time Sets the unit of automatic login out time to minute during the
setting addition of user information (write).
9510~9511 Password Confirm Inputs the password again for consistency confirmation during
the addition of user information (write).
9520~9521 Curser position Refers to the curser position (X,Y) in input component (read).
342
3-11-3 Nonvolatile Local Word (LW10000~10256)
RTC
Addresses Descriptions Comments
10000 RTC (second) BIN code with effective value ranging from 0 to 59 (read/write)
10001 RTC (minute) BIN code with effective value ranging from 0 to 59 (read/write)
10002 RTC (hour) BIN code with effective value ranging from 0 to 23 (read/write)
10003 RTC (day) BIN code with effective value ranging from 0 to 31 (read/write)
10004 RTC (month) BIN code with effective value ranging from 0 to 12 (read/write)
10005 RTC (year) BIN code with effective value ranging from 0 to 9999 (read/write)
10006 RTC (week) BIN code with effective value ranging from 0 to 6 (read/write)
Description of RTC:
Users can use the related “Component” to display the system time and its value is writable. But users
should pay attention to the range of effective values.
For example: “second” can not be written as 78 (BIN), otherwise RTC will continue in sequence (78 79
80 …), which may result in unexpected error.
Map of other system parameters (Note: The following addresses will be valid after the restart.)
System parameter settings
Addresses Descriptions Comments
10010 No. of initial window It ranges from 0 to 32767.
10011 Screen saver (Backlight) 0 (OFF, Constant, Disable Screen saver)
1 to 600 minutes (enabled)
10012 Buzzer 0: Disabled, 1: Enabled
10013 Common window/Pop-up window 0: Normal, 1: Higher than the other window.
10014 Common window/Attribute 0: Lower than basic window, 1: Higher than basic
window
10015 Number of stored events It ranges from 0 to 65535.
10016 Source of RTC 0: PLC (Local Word), 1: Internal RTC.
10017 Default language It ranges from 0 to 3.
10018 Address reserved by system It is used inside the HMI.
Map of security level
Addresses Descriptions Comments
10022~ Password/0 (#1) Double-word is occupied.
10023
10024~ Password/1 (#1) Double-word is occupied.
10025
10026~ Password/2 (#1) Double-word is occupied.
10027
10118~ Password/3 to 15 (#1) Double-word is occupied*13.
10143
343
Map of communication parameters
Addresses Descriptions Comments
10035 Address reserved by system
10036 COM 2 communication mode 0: RS-232, 1: RS-422, 2: RS-485.
10037~ Baud Rate Double-word.
10038
10039 Data Bit
10040 Parity Bit
10041 Stop Bit
10042 Slave Station No. (HMI Station No.)
10043~ PLC timeout constant
10044
10045~ Protocol Time Out 1
10046
10047~ Protocol Time Out 2
10048
*1: Setting LB9044 to ON to write the communication setting (including IP address and port number to the
system (EE).
Make the specific system parameter back to the factory settings by setting LB9050 to ON.
When the local address exceeds 10000, the dynamic modification is not supported
during the simulation, but the read operation is available (For example, the Number
Input component with the address of LW10005 will be displayed as 2006 during the
simulation, and it can’t be modified to the other value during the simulation. But it can
be modified only after it is downloaded to the HMI. ).
344
3-11-4 System Information Table
Mask code
corresponding to NB5Q-TW00B
Information Descriptions
error information /NB7W-TW00B
Word Bit
It is system error which means the
0 System Error О
error occurs inside the HMI.
PLC response error: PLC responds
with one piece of unexpected
1 PLC Response Error information which may caused by °
the read or write command. Please
check if the device functions well.
PLC No Response: the 3 groups of
numbers following PLC No
2 PLC No Response:cc-pp-d Response represent the HMI No., О
PLC Station No. and Serial Port
No. respectively.
3 Reserved by system –
4 Socket Connect Error Connection with the server fails. °
Error occurs during the
5 Socket COMM Error °
9296 communication with the server.
Error occurs during the execution
Macro Code Error:[xxxx]
6 of Macro. The number following О
(Macro No.)
Macro Code Error is Macro No..
7 Reserved by system –
8 Send Package Error Message transmission fails. °
9 Memory Shortage Memory is not enough. О
10 BCD Transform Overflow BCD conversion overflows. О
The number following MacroCode
MacroCode Timeout is the Macro No. when the
11 О
Timeout:[xxxx](Macro No.) error occurs during the execution
of Macro.
12 Reserved by system –
13 Reserved by system –
14 SRAM Access Overflow SRAM access exceeds the limits. О
15 Reserved by system –
0 Server Not Ready The data in server is not ready. °
1 Reserved by system –
2 Transmit Data Failed The data transmission fails. О
3 Data Input Failed The number input fails. О
4 Device Error Failure occurs in the device. О
5 Reserved by system –
6 Reserved by system –
9297
7 Invalid File The import file fails. О
Error occurs during the password
8 Password Error О
input.
9 Reserved by system –
10 Reserved by system –
11 Reserved by system –
12-15 Reserved by system –
345
0 RTC Device Error Failure occurs in RTC clock. О
9298
1-15 Reserved by system –
9299 0-15 Reserved by system –
346
3-12 Recipe Data
Recipe data transmission component can activate the consecutive registers to realize the data transmission.
And the data can be downloaded from the recipe memory card to the PLC or uploaded from the PLC to the
recipe memory card. The size of the data to be transferred can be set. For the NB Unit, the recipe memory
card with 128K word can be selected for recipe data storage.
1. Press the Recipe Data Transmission icon and then fill the contents in [Basic Attributes] tab:
Write Address: Specifies the start address of the consecutive registers of PLC. And the addresses specified
by “word length to be transferred” after this address can be used for data transmission.
Address: Refers to the address corresponding to the Recipe Data Transmission component.
Word Length: It is determined by the number of the data to be transferred later.
347
2. Switch to the [Recipe Data] tab and set the Function and Data Length.
Function:
Upload from PLC to Recipe: Transfers the data from PLC to the recipe memory of HMI.
Download from Recipe to PLC: Transfers the data from the recipe memory of HMI to PLC.
Upload from PLC to FRW: Transfers the data from PLC to the recipe memory FRW of HMI.
Download from FRW to PLC: Transfers the data from the recipe memory FRW of HMI to PLC.
Data Length: Refers to the word length of the data to be transferred.
3. Switch to the [Tag] tab and add the different displayed texts corresponding to the different states.
4. Switch to the [Graphics] tab and select the Vector Graphics or Bitmap to display the graphics
corresponding to the state of the Recipe Data component.
5. Switch to the [Control Setting] tab and make the Security Setting and set the Notifications.
6. Press the [OK] button, and adjust the position and size of the component.
348
For example, we specify one project and select [MODBUS RTU] as the PLC Type in system parameters. The
function of transferring the 5-word text beginning from address 200 with the address type of 4X to the address
of recipe memory (RW300) is as shown below:
Create a new project and select [MODBUS RTU] as the PLC type in [Graph element window].
Firstly, create a component to upload the recipe data with the Addr. Type of 4X, Address of 200, Function of
Upload, Word Length of 5, and [Use Tag] being checked, and the Tag Contents of “Upload”, as shown below:
349
Then place the component in the window.
Now the recipe data transmission component is created, but it can only specify to transfer the 5 words
beginning from address of 4X200 to the recipe memory instead of the specific position of the recipe memory.
The words reserved by the system can handle this situation easily. Set the LW9000 to 300 and press the
transmission component button, then the 5 words beginning from 4X200 will be transferred to the 5-word
addresses after the start address of RW300. If you want to transfer the 5 words beginning from the address of
4X200 to RW100 again, then you just need to set LW9000 to 100, and then press the transmission
component button to complete the data transmission.
Let’s finish this example. Place 3 Text Input components to modify/display the data.
1. 4X200: Addr. Type of 4X, Address of 200 and Word Length of 5.
2. RWI0: Addr. Type of RWI, Address of 0 and Word Length of 5.
3. RW300: Addr. Type of RW, Address of 300 and Word Length of 5.
Then create one Number Input component to modify the data of LW9000 with the Addr. Type of LW and
Address of 9000.
After Save, Compile operations, perform the offline simulation for the project. Firstly, change LW9000 to 300
(because LW9000 represents the offset of the index address, RW10 will display the data in the address of
RW300), as shown below:
Input “QWERTYUIOP” to 4X200, and 300 to LW9000, then you will find the data displayed by RWI0, RW300
and 4X200 is the same after the Upload component is pressed, as shown below, which means the upload is
successful.
350
How to download the 5 words with the start address of RW300 to the position with the start address of 4X200?
The specific operation process is described as follows. Add one recipe data transmission component in the
project just mentioned above with the Device Type of 4X, Address of 200, Function of Download from Recipe
to PLC, Word Length of 5 and Tag Contents of “Download”.
Perform the offline simulation, change LW9000 to 300 and input “123456” to RW10, as shown below:
Press the Download component, then you will find the text data will be transferred to 4X200 from RW300.
351
One conclusion can be drawn from the above example: Whether we upload the data from PLC to recipe or
download the data from recipe to PLC, the start address of data in recipe is always the value
corresponding to LW9000.
Recipe No. Register Address Register Name (4 words) Recipe Data (1 word)
Group 0 RW0-RW4 “AAAAAAAA” 0
Group 1 RW5-RW9 “BBBBBBBB” 1111
Group 2 RW10-RW14 “CCCCCCCC” 2222
Group 3 RW15-RW19 “DDDDDDDD” 3333
Group 4 RW20-RW24 “EEEEEEEE” 4444
Group 5 RW25-RW29 “FFFFFFFF” 5555
Group 6 RW30-RW34 “GGGGGGGG” 6666
Group 7 RW35-RW39 “HHHHHHHH” 7777
Group 8 RW40-RW44 “IIIIIIII” 8888
Group 9 RW45-RW49 “JJJJJJJJ” 9999
We hope each group of recipe in the above table can perform data swap with 4X100 register of our PLC
conveniently through design. First, let’s see the following created project to obtain the general understanding.
RWI0 and RWI4 in the project display the data in Group 0, and pressing the Download button can download
the recipe data to 4X100 while pressing the Upload button can upload the data in 4X100 to the recipe memory
card. The Up button on the right can be used to retrieve the recipe data upwards, which is convenient to
change or transfer the recipe data; and the Down button on the right side can be used to retrieve the recipe
data downwards.
352
Firstly create a new project, and select the [MODBUS RTU] as the PLC type in [Graph element window].
1. Create one Text Input component with Word Length of 4 to display and change the name of each group of
recipes.
2. Create one Number Input component to display and change each group of recipe data.
353
3. Create one Text Input component and one Number Input component to display and change the recipe data
in PLC.
4. Create two recipe data transmission components with both addresses of 4X100, and one component is
used to download the recipe data and the other is used to upload the recipe data.
5. Design two Multiple State Setting components (Up and Down) for the user to retrieve and change each
group of recipe data conveniently. After the Up component is pressed for retrieving data upwards, the
system will subtract 5 from LW9000. Because each group recipe data is made of 5 words, so each time the
Up component is pressed, RWI0 can display the previous recipe data, thus realizing the retrieving upwards.
After the Down component is pressed for retrieving data downwards, the system will add 5 to LW9000.
Because each group recipe data is made of 5 words, so each time the Down component is pressed, RW10
can display the next recipe data, thus realizing the retrieving downwards. The upper limit of recipe data is
45 (10 groups of recipes), as shown below:
354
6. How to know which group of recipe data is the current group? What is used to control the display of LW0?
Later, create another two Multiple State Setting components with address of LW0 for both of them, and
Setting Mode of “Sub value” and “Add value” respectively. And no graphics is needed. Overlay the
component with Setting Mode of “Sub value” on the Multiple State Setting component created before with
the Setting Mode as “Sub value ” and the address being LW9000, and overlay the component with Setting
Mode of “Add value” on the Multiple State Setting component created before with the Setting Mode as “Add
value ” and the address being LW9000, then when we retrieve the recipe data, the value of LW0 will vary
accordingly, and it will display the group where the current recipe data locate, as shown below:
355
7. Place another keyboard in the window, and add some texts for decoration, then the project is thoroughly
completed.
356
After Save, Compile operations, perform the offline simulation for the project.
Input the 10 groups of recipe data into the recipe card one by one, then switch to the 8th group of recipe data
to change the name to “KKKKKKKK”, recipe data to “1234”, then you will see the data in 4X100 and 4X104
will become “KKKKKKKK” and “1234” respectively after the Download button is pressed, as shown below:
357
3-13 Security Level
Security Level is used to set the access authority for different users to enhance the security of the project.
Only the user having the high-level password can access the high-level window, thus enhancing the security
of the project significantly.
When setting Window Attribute, we can see one column of “Security Level”. That’s to say, we can specify the
Security Level for any window, as shown below:
The Security Level is only valid for the Basic Window instead of the other windows. One project has 3
Security Levels, i.e. High (2), Common (1) and Low (0). The default security level is Low when creating a new
window. You can set different passwords for each security level in the [HMI Attribute]. The user with higher
security level can access the window with the lower security level, while the user with the lower
security level can’t access the window with the higher security level. Such kind of method is helpful to
the security management. For example, we can place the important switches into the window with the higher
security level, so the user can’t access them after they enter this window, and the contents can be accessed
only after the password for the higher security level is input.
Here is an example about security level usage: Firstly, select [File] / [New], and double-click HMI in the Project
structure window, then set The number of Security Levels to 3 and 0-level Password to NULL, 1-level
Password to 1111 and 2-level Password to 888888 in Security Levels Setting tab of HMI Attribute dialog box,
as shown below:
358
LW9042 register reserved by the system is used to display the security level of the current basic
window. We can only read the LW9042 register reserved by the system. Create one Number Display
component and place it into Frame 0 to display the current security level, as shown above.
The whole project is shown as the lower left graphics and the effect is as shown in the lower right graphics
after Save, Compile and Offline Simulation operations are done.
Because no password is input, the current security level must be 0 when the project is operated. Then switch
to Frame 10 and set the Security Level in Window Attribute to Common (1), as shown below:
359
Create one Function Key in Frame 0 with the attributes as follows:
Perform Save, Compile and Offline Simulation operations, and the effect is as shown below:
Pressing the Function Key button can’t switch to Frame 10. It is because the current security level is 0 while
the security level of Frame 10 is 1, so the window with the higher security level can’t be accessed from the
window with the lower security level. We can access the higher security level window only after inputting the
password corresponding to the higher security level. LW9040 to LW9041 registers reserved by the system
are used to input the security level passwords. Then place another Number Input component with the
Data Type of “password” in Frame 0, as shown below:
360
Because the system uses the reserved LW9040 to LW9041 registers to input the
passwords, so the word length must be set to 2.
After the Save, Compile and Offline Simulation operations are performed; the effect is shown as the lower left
graphics: Pressing Change window button is invalid for the current level is 0, and when the password of 1111
is input, the current security level becomes 1, as shown below:
361
Now the current security level has become 1, the window will switch to Frame 10 successfully when the
Change window button is pressed, as shown below:
When the current security level is High, how to switch to Low level? LW9043 register reserved by the
system is used to perform the switching from the higher level to lower level. And the switching from
lower level to higher level is impossible. Place one Number Input component in Frame 0, as shown below:
362
After the Save, Compile and Offline Simulation operations are performed, the effect is shown as the lower left
graphics: After 1 is input at Switching Level, the current security level will not become 1 because the switching
from lower level to higher level is impossible, as the lower right graphics shows.
Then input the password 1111 to make the current security level become 1, as the lower left graphics shows.
At this time, pressing the Function Key button can realize the switching to Frame 10. But if 0 is input at
Switching Level, the current security level will be switched to 0, then the switching to Frame 10 will be
impossible, as the lower right graphics shows.
Designing the project by using the level password properly and giving differential operation permissions to
operators has enhanced the security of the application system.
363
3-14 Simulation
Select [Offline Simulation] in [Tools] menu or press icon, then the following dialog box will pop up:
Click the “Simulate” button after selecting the HMI to be simulated, then you will see the offline simulation
diagram of the current program.
364
3-14-2 Direct Online Simulation
NB-Designer supports online simulation operation. The project designed by you can be simulated on the
computer directly with the effect just the same as that of the operation performed after it is downloaded to the
HMI. The online simulator obtains the data from the PLC through NB Unit, and simulates the operations of NB
Unit. Using the online simulator during debugging can save a lot of time taken by the repeated downloading.
The online simulation is classified into direct online simulation and indirect online simulation, which are
described as follows:
Direct online simulation is a kind of simulation method that directly connects the PLC with the serial port of PC
to perform the simulation. Obtaining the dynamic PLC data without need to connect the HMI is its advantage
and only RS-232 port or PLC communication can be used is its disadvantage. During debugging of PLC with
RS-485 port, the adaptor that can convert RS-232 to RS-485/422 must be used.
After the edited program is compiled, press the button, then the following dialog box will pop up:
Select the HMI No. to be simulated and the COM No. of PC to be connected to the PLC, then click the
“Simulate” button to start the direct online simulation.
365
3-14-3 Indirect Online Simulation
The indirect online simulation obtains the data from the PLC through the HMI and simulates the operations of
HMI. The indirect online simulation can obtain the data from the PLC dynamically, and the operating
environment is the same as that after the downloading except that the inconvenience of downloading each
time is avoided, thus it is quick and convenient, but it can’t be used independently without the HMI.
After the edited program is compiled, press the button, then the following dialog box will pop up:
Select the HMI to be simulated, and click the “Simulate” button to start the simulation. NB Unit performs the
indirect online simulation through the USB or serial port.
366
3-15 Download
After the project is edited, it can be downloaded to the HMI to perform the actual operations. NB-Designer
provides 2 download methods, i.e. USB and serial port. Before the upload and download, you must set the
communication parameters firstly. You can select [Tools]-[Download Way] menu to set the communication
parameters, as shown below:
1. USB
NB Unit uses the general USB communication cable, and the USB Slave is connected to the HMI end, and
PC is connected to the USB Host.
y USB port is only used to download the edited program to HMI and set the HMI system parameters.
y It can’t be used to connect the peripheral devices such as USB printer etc.
When using the USB to perform download for the first time, you should install the driver manually, i.e. connect
one end of USB to the USB port of PC and the other end to the USB port of NB Unit. For the installation of the
driver, please refer to [2-4 Installation of USB Driver for NB]. After the successful installation, the following
screen will appear.
367
Note: Only when the DIP switches 1 and 2 on the backside of HMI are both OFF, “OMRON HMI USB” will
appear in the “My Computer”.
Later, the other settings are not needed when you use USB to perform the download, and you just need to
select “USB” as download device and click the “OK” button to start the download.
Compress Bitmap: Refers to the original size before the bitmap is uploaded to the NB Unit, and it is set by the
user himself. When this size is larger than the set size, compress way will be used to perform the compilation
and download, thus saving a lot of space. Compress Bitmap is checked by default.
1. Checking Compress Bitmap can reduce the size of the edited project.
2. Not checking Compress Bitmap will make the switching speed faster after
it is downloaded to the HMI.
3. In order to ensure the HMI with a faster communication speed during the
operation, it is recommended not to use too many bitmaps during the
project editing.
4. Use as less graphics as possible in static text. The text in graphics mode
occupies the same space as the graphics.
2. Serial Port
Because the edited project is too large, and the download is slower by using
the serial port, it is not recommended to use the serial port.
After the settings of the above-mentioned necessary options are finished, you only need to click the icon
to download the program.
368
The 2 download methods are shown as below:
Data File: Refers to the data information of all the components created by the user in HMI window. Only after
this option is checked, the downloaded project can work normally.
Recipe File: Only when your HMI has the recipe data files, can this option be checked. The recipe memory
card is SDRAM with the backup battery.
LOGO File: Refers to the initial screen (LOGO screen) displayed when the HMI used by the user is powered.
If the LOGO needs to be refreshed, please check the LOGO File, and then click the “Download” button to start
the download. Note: If no modification is made to the LOGO graphics, it just needs to perform the download
once for each HMI.
369
Creation of LOGO Data File
Press the icon in the toolbar, or right-click the mouse after the HMI is selected in the Project structure
window to enter the editing window, as shown below:
You can input the LOGO screen of your company in the center black box. And if you click the icon in the
toolbar, the following dialog box will appear:
370
After the compilation, check “LOGO File” and then click the “Download” button.
Download Box
371
Each function is described as follows:
1. Data File: It is used to download the current project.
2. Recipe File: It is used to download the .rcp file in the project. Firstly the .rcp recipe file needs to be added to
the project.
3. LOGO File: It is used to download the logo file for the customized initial boot screen. If changes are made
to the graphics in the [Edit Init Window], it needs to check this option to make the edited boot screen seen
after it is downloaded to the HMI.
4. Clear Recipe: It is used to clear the data in the memory card of HMI to zero. If you find there are
unrecognized characters in the recipe data component in the HMI, you can check this option to clear the
memory card to zero.
5. Clear History Event: Clears the saved events.
6. Clear History Data: Clears the saved sampling data.
7. Clear FRW Data: Clears the data in the FRW.
You can also select whether to clear the recipe data, FRW, ERW, history sampling data and history event data
by using the Download Operate in NBManager.
372
3-16 Descriptions of Other Functions of NB-Designer
1. Changeable text color, window color and the filled color of rectangle
The color can be changed by directly pressing the line.
373
4. Lock Component
NB-Designer provides one function of “Lock Component” as shown below. Right-click the component and
select the “Lock”, and the effect is as shown below.
When the user selects the multiple components including the locked component to perform the operation of
movement etc, this locked component will have no response to this operation. Please note that there will be
one lock-shape mark on its original icon, as shown above.
374
The effect of multiple copy is shown as above.
6. Find/Replace
Select [Find/Replace] in the drop-down menu of the [Edit] menu or press the “Search” icon, then the following
dialog box will pop up.
375
Find Range
Refers to the content of the edit screen in NB-Designer to be searched, and it is classified into 4 kinds, as
shown below.
Descriptions of Find Range
Current Project All the Frames, Macros and background database in HMI will be searched.
Background Only the background components such as Event Information, Alarm
Database Information and Trend Curve etc. will be searched.
All HMI Frames and All the Frames and Macros in the current project will be
Macros searched.
All Frames All the Frames in the current project will be searched.
Find All Macros All the Macros in the current project will be searched.
Range Current HMI Frames and All the Frames and Macros in the selected HMI will be
Macros researched.
All Frames All the components in all the Frames in the selected HMI
will be searched.
Current All the components in the current Frame in the selected
Frame HMI will be searched.
All Macros Only all the Macros in the current HMI will be searched.
Find
Descriptions of Find Type
Register Register Type It means to find the device with Bit type or Word type.
Addr. Type It represents the device type and device address in the controller where
the search is performed. Checking “Range” means the search will be
performed in the set range of address.
Text Not checking “Match Case” and “Full Match” means the judgment of the case of the
characters and the consistency in the whole text will not be done during the search.
Match Case It means the match of the case of the characters in the text to be searched
is required.
Full Match It means the match of the text to be searched in the whole text is required.
Replace
After this option is set, the device type and address found according to the set conditions will be replaced by
the specified device type and address.
“Automigration by Cor. Address” in the Replace part will take effect once the “Range” in Find part is checked.
If “Automigration by Cor. Address” is not checked, the replace address is the same; while if “Automigration by
Cor. Address” is checked, the replace address is the consecutive address which will automatically deviate by
making the set replace address as the start address.
When the above parameters are set, if the “Find” button in the dialog box is clicked, the search of address
meeting the condition will be performed the window locating in the Find Range. If the component is found,
then No., Location, Name and Data will be displayed in the bottom white box. When the component meeting
the requirements is found, the screen will automatically switch to the position where this component locates
and the attribute dialog box for this component will pop up after this component is double-clicked.
Clicking “Replace” or “Replace All” means the found component meeting the conditions will be replaced by
the component with the address type and address set in the “Replace” part.
All in all, clicking “Replace All” in the above dialog box means all the MW0 components in all the windows at
the current edit screen will be replaced by MW10.
376
7. About the overlay of component
Overlaying the multiple components together can realize many special functions. NB Unit supports the
overlay of multiple components. When these components are triggered, the program will perform the
corresponding operations according to the layer sequence, i.e. the component on the top layer will be
triggered firstly, then the component in the 2nd layer will be triggered and so on. For example, if 6 Bit State
Setting components and Bit State Switches are overlaid together to control the Y0 (top layer) to Y5 (bottom
layer), then when these components are triggered, the NB Unit will execute the program in the following order:
The control process is as follows: Y0 ON/OFF →Y1 ON/OFF (Step 2) →Y2 ON/OFF (Step 3), …, →Y5
ON/OFF (Step 6).
Please note one point: When NB Unit receive the “Change window” command, it will directly switch to the
destination window while ignoring the component under the layer where this component locates. As shown
below, if Y2 is the function of “Change window”, then Y3 to Y5 will be ignored. The number of the overlaid
components can’t exceed 32.
377
8. Pinyin Input Method
NB-Designer can be used to input common Chinese characters. Currently only Text Input component and
Note Book component support Pinyin input method, as shown below:
Usage:
Firstly, switch to the Pinyin input method through LB9100 when the input is triggered by the Text Input
component (or Note Book component), and input the Pinyin characters (displayed in LW9152 to LW9167 later)
correctly, and touch the corresponding Chinese character from the several Chinese characters displayed on
the Chinese character display window, then the process of inputting Chinese character is completed.
Triggering the blank area of the Chinese character display window can realize the movement of this window,
which is similar to the window console of the function key.
If the Pinyin needs to be modified during the input, the function keys of “Back Space” or “Clear” can be used to
realize this operation.
378
“Back Space” and “Clear” functions of Function Key is prior to the input Pinyin characters, i.e. when the Pinyin
characters are input currently, the object operated by the “Back Space” and “Clear” function is the Pinyin
characters instead of the other characters in the text input area.
Note: When the font size is 8, 24, 48, 72 or 96, the Pinyin input method is invalid.
9. LSB Type
LSB type is applicable to the Multiple State Setting component, Multiple State Display component, and
Multiple State Neon Lamp component. It uses the least significant bit location to control the text display, which
is helpful to the control of the neon lamp by using the input bit state.
When the variable is used in the sampling cycle and sampling points, the variable will be given the priority to
be used. And if the variable value can’t be obtained for the failure of the communication connection, the preset
value will be used.
379
For example, when the Trend Curve/XY Plot/Oscillograph use the extended attributes.
The extended attributes of the Trend Curve are as follows:
380
The effect of simulation is as shown below:
381
12. Use Input Order
The Number Input component, Text Input component and Note Book component have this function.
It can realize the consecutive input by the order number of the Number Input component, Text Input
component and Note Book component through using [Use Input Order]. After “Enter” is pressed during the
input, the keyboard will not be closed automatically but always be displayed in the screen and the cursor will
always cyclically flash between the components using “Use Input Order” function until the close button of “X”
in the keyboard is clicked.
[Group] is used to classify the multi-group of components needing consecutive inputs. The components with
the same group number belong to the same group, and the cursor will be cyclic in the same group of
components. When the “Enter” is pressed, the keyboard will not be closed automatically, but will always be
displayed in the screen until the close button “X” in the keyboard is clicked.
Setting of [Use Input Order]
Go to the [Keyboard Setting] attribute tabs for the Number Input component, Text Input component and Note
Book component respectively, and check the [Use Input Order].
382
13. [Import/Export] of Background Component
The background component including [Address Tag], [Text Library], [Alarm Information], [Event Information]
and [PLC Control] has the function of importing or exporting the file in .csv format. This function is convenient
to edit the related contents through the csv directly.
Note:
Please pay attention to the following points when saving the file in CSV format after it is edited.
A. Click [Save] and select [Yes] as shown below:
B. Click [No] and select [Yes] in the prompt information dialog box, as shown below:
383
14. Not Display Border of Component
The border of the component is not displayed when the component uses the graphics, but displayed when the
component doesn’t use the graphics, as shown below:
384
17. Graphics Library
NB-Designer adopts the graphics library selection method, making the graphics searching more easily and
visually and the response speed of Import Graphics function enhanced. And the display area is divided into
two parts. All the graphics in the graphics library will be displayed in the upper part while each state of the
selected graphics will be displayed in the lower part.
Bitmap and vector graphics are supported. Bitmap in .bg format is made of graphics in .bmp, .gif, .jpg or .png
formats or pictures. Using too many bitmaps will affect the operation speed of HMI. Therefore it is
recommended to use the vector graphics to replace the bitmaps as much as possible. The vector graphics
in .vg format is drawn by the NB-Designer using the point, line and circle, etc.
There are 3 methods to enter the Graphics Library screen.
1. Click [Import Graphics] in the [Graphics] tab in the component attribute dialog box to enter the image library
screen (As shown below, take the Bit State Switch component as example, and the other components are
similar.)
2. Select [Import Graphics Library] in [Draw] menu to enter the Graphics Library screen.
385
3. Click [Import Graph Library] icon in the toolbar to enter the Graphics Library screen.
386
There are 2 methods for selecting the Graphics Library:
1. System Image Library: It is the graphics library provided by the software, it is under the [bg_vg_lib] folder in
the installation directory of the software.
Double-click [BG] or [vg] folder , then all the images contained in the bitmap or vector
graphics provided by the software will be displayed. The display area is divided into two parts. And all the
graphics in the graphics library will be displayed in the upper part while each state of the selected graphics will
be displayed in the lower part.
As shown below:
2. User-Defined Library Path: It refers to the directory specified by the user himself to save the graphics library.
With this option, graphics in the other projects can be imported. The graphics used in each project is saved
in [vg] file for the project. Clicking can reveal the file path.
387
388
If new graphics needs to be added, click [Import Graphics].
Role of [Save to System Library] is to save the current graphics to the software for the convenient call during
the creation of other projects.
There are 2 methods for [Save to System Library]:
1. Enter the [Graphics] tab and click [Save to System Library].
2. Enter the [Vector Graph] in [Project files window], select the current graphics, and right-click the mouse to
select [Save graphics to the system library].
[Use Original Size] is intended for the user to conveniently make the graphics return to its original size after it
is zoomed out or in.
389
18. Support Graphics in GIF or PNG Format
The graphics in .gif or .png format can be imported directly during the creation of new graphics.
Using the graphics in .gif format can create the animation effect easily.
Using the graphics in .png format can create the transparent effect easily. For example, if the Bar Picture is
added into the reaction vessel to show the current liquid level, then one reaction vessel in .png format is
needed.
For example:
2. Click the [OK] button to make the following editing box appear, and select [Load Image] after right-clicking
the mouse in the black editing box.
390
The successful import of graphics is as shown below:
3. After saving operation, quit from the graphic edit window and enter the HMI edit window.
4. Place one Bitmap component, and check [Use Original Size].
5. Select Compile and perform the offline simulation, and the effect is as shown below:
391
19. Save to the VG map
This function can be used to save all the graphics drawn in the HMI edit screen in VG format (i.e. Vector
graphics), thus making this VG graphics called conveniently.
The operation is as follows:
1. Draw a rectangle and a circle, then select these two components and right-click the mouse to select [Save
to the VG map].
2. In the pop-up [Save VG Map] dialog box, [New VG map Name] is checked by default , and the default name
which can be customized is NewVG. Click the [OK] button.
392
Then the creation of a new VG graphics with only one state (state0) is completed.
4. In the [Save VG Map] dialog box, select [Save to VG Map] and find the NewVG.vg.
393
[New State]: State1 will be added by default.
394
[Save graphics to the system library]: The new created NewVG.vg will be saved to the system library for the
convenient call of this graphics by the other projects. For the calling method of graphics, refer to the [Graphics
Library] part.
Method of [Save graphics to the system library]: Select the NewVG.vg in [Project files window], then right-click
the mouse to select [Save graphics to the system library].
[Delete] (Method of deleting the new created NewVG.vg): Select the NewVG.vg in [Project files window], then
right-click the mouse to select [Delete].
395
20. Group Components
Several components or the graphics are combined together and saved into the Group Components Library,
thus making them called by other projects conveniently.
The format of Group Components Library is .pgl.
1. Method of entering [Edit Box Of Group Component Library]
Click [Use the group element] in [Group components] in [Draw] menu or right-click the mouse in the blank
area of the window the select [Use the group element] in [Groups], then the [Edit Box Of Group Components
Library] dialog box will pop up, as shown below:
[Export Library]
Clicking [Export Library] can make the [Group Components Library] saved in the path defined by the user for
convenient import.
[Import Library]
The default path of group components is the usrlib directory under the installation path of NB-Designer, and
the user can also import the group components library from the self-defined path. Click [Import Library], and
select the required group components library in the path corresponding to the saved group components library,
then click [Open] to add this group components library to the group components library of the current project.
[New Library]
Clicking the [New Library] button will make the following dialog box pop up, and the user can input the name
of this new created group components library in it. The default path to save the group components library is
the usrlib directory under the installation path of the software.
396
[Delete Library]
Clicking the [Delete Library] button will delete the group components library opened currently.
Clicking “Yes” will delete the current group components library from this project, while clicking “No” will ignore
the operation done just now.
[Delete All Groups]
Clicking the [Delete All Groups] button will delete all the graphics in the group components library opened
currently.
Note: “Delete Library”, “Delete Group Components” and “Delete All Groups” will directly delete the related files
in the usrlib folder under the installation path of the NB-Designer.
For example:
How to add group graphics to a new created group components library is described as follows:
1. Click [Use the group element] in [Group components] in [Draw] menu, and click [New Library] after the Edit
Box Of Group Components Library pops up, and input “group” as the name of the group components library
in the Group component library name dialog box, as shown below:
397
Click the [OK] button to create an empty group components library as shown below:
Select these 3 rectangles, and right-click the mouse to select [Groups] – [Save the group element], and then
click the [Save Group Components] button in the Edit Box Of Group Components Library dialog box to make
the following dialog box pop up.
398
3. Input “graph 1” in the Part Group Name dialog box and then click the [Ok] button, then these 3 rectangles
with the name of [graph 1] will be added into the new created group components library with the name of
[group], as shown below:
4. If there are other group components to be added into the group components library with the name of
[group], the operation method is the same as that mentioned above. And you just need to select [group] in
the Group Components location in Edit Box of Group Components Library dialog box as the path to save it.
399
How to call the keyboard in the group components library is described as follows:
1. Click [Use the group element] in [Group components] in [Draw] menu, or right-click the mouse in the blank
area in the window to select [Groups] - [Use the group element], then select [keyboard] from [Group
Components] in [Edit Box Of Group Components Library], finally select [NUMERAL_S_T1] from [Preview]
and click the [Place Group Components] buttons, as shown below:
400
3. Close [Edit Box Of Group Components Library] and one keyboard will appear in the screen.
4. Place this keyboard in Frame 11, double-click the mouse and change Width and Height, select [Keyboard
page] after Special Attribute being checked and make the other settings in Window Attribute dialog box, as
shown blow:
Note: [Keyboard page] in [Special Attribute] must be selected in [Window Attribute] dialog box.
5. Place one Number Input component in Frame 12, and select [Specified Keyboard] in [Keyboard Setting] tab,
as shown below:
401
6. Perform the offline simulation and click the Number Input component to make the keyboard pop up, as
shown below:
2. Support Chinese and English Input Methods: Pressing CH key in the keyboard can realize the switching
between Chinese and English, as shown below:
402
Note: If the keyboard is called by the pop-up window, [Clipping] in POP Window Type must not be checked, as
shown below:
403
23. Overall Modify Font
Select all the components to be modified, and click each icon in [Font Toolbar] and [Tag Toolbar] to overall
modify the tag attributes.
404
24. Multiple Copy
Pitch makes the 1st point in the upper-left corner of the component as the start point to perform the copy.
405
25. Conveniently Use Local Special Register
If you want to use or check the local special register, you can directly check [System Register] in bit
component or text component attribute dialog box, and the descriptions of all the local bit registers or local
word registers are listed in [Addr. Type], as shown below:
Trigger Makes the write value written into the specified word register before
Written Notice
the signal of touch component is input into the controller successfully.
Register
Makes the write value written into the specified word register after the
(Word) After Written Notice
signal of touch component is input into the controller successfully.
For example, Number Input component LW0 notifies LW10 to write 100 after notification.
Set [Notifications] in [Control Setting] as shown below:
406
Perform the offline simulation and the effect is as shown below:
Before data written into LW0: After data written into LW0:
407
B. How to set the specified window as “login window shown automatically”
Setting the corresponding Login Window in [HMI Attribute] - [HMI Extended Attributes] can make the set
window as the “login window shown automatically” when the Security Level or Permission Control function is
used.
408
30. Index Register
Index register realizes the convenient address operation for the user. You can modify the I/O address of the
register during the machine operation without modifying the edit screen. When the index register is selected
for the component, the new I/O address of this component = the value of the index register + the original I/O
address of this component.
For example:
1. Create a project and place 5 Number Input components in it.
The settings of Number Input component NI0 are as in the lower left graphics shown:
The settings of Number Input component NI1 are as in the lower right graphics shown:
The settings of Number Input components NI2 to NI4 are the same as that of NI1, and their addresses are
LW10, LW20 and LW40 respectively.
2. Perform the offline simulation. When the value of index register is 10, the addresses of NI3 and NI0 are the
same.
409
When the value of index register is 30, the addresses of NI4 and NI0 are the same.
410
Test of Mask Station No.
9264~9279 Mask code of PLC Each bit corresponds to one Station No. of COM 2 (i.e. 9264.0
Station No.(COM 2) corresponds to Station No. 0... and 9279.F corresponds to Station No.
255). When the bit is turned ON, the communication corresponding to
Station No. will be masked (read/write).
411
Station No. use the special registers (LW9416 to LW9431). When the special registers are used, the Station
No. is determined by the value of the register.
412
Take HMI0 as example and the mask relationship is shown as below:
2. Place one Number Input component VW0 (One register in SiemensS7-200) and one Bit State Setting
component with the address of LW.B9296.2 and Type of “Set On when Window Open” in HMI Edit Window.
3. Actually, HMI0 is not connected with Siemens S7-200 PLC. The prompt information of “PLC No Response”
should appear before, but now the system error prompt information doesn’t appear for the LW9296 mask
function.
413
How to clear values of RW at a time:
1) You can make settings using the above-mentioned method, and then set the word length to the
maximum word length of HMI recipe card for the RW clearing.
2) Select NBManager—>Select “Clear Recipe” from the “Select Section:” part, and then click “Execute”.;
3) You can check [Clear Recipe] during the download.
35. Notes for Import/Export of Background Components such as Text Library and Event component, etc.
The background component including [Address Tag],[Text Library],[Alarm Information],[Event Information] and
[PLC Control] has the function of importing or exporting the file in .csv format. The “.csv” file can be opened by
Microsoft EXCEL and the related contents can be edited directly.
Please pay attention to the following points when saving the “.csv” file after it is edited:
A Click [Save] and select [Yes] as shown below:
B Click [No] and select [Yes] in the prompt information dialog box, as shown below:
414
3-17 RecipeEditor
z Description of RecipeEditor Function
RecipeEditor is an Editor attached in the NB-Designer, and it is mainly used for the user to check, edit or
create the recipe file conveniently and visually. (The supported formats currently are as follows: files in .rcp
format uploaded from or downloaded to NBManager, the specific files in .csv format and the file of FRW
register in .frp format.)
The main principle of the program is to read a binary file by specific format, and display the read result.
The following functions are supported currently:
1. Display the data in recipe file.
2. Modify the data in recipe file.
3. Import the CSV file in specific format, and export the recipe data as the CSV file in specific format.
415
2. Click [Recipe Editor] in Download Operate tab of NBManager screen.
416
Toolbar and Menu Bar
Click New file, then the initial screen will pop up.
“Read Address setting” area, “Dataformat Operation” area and “The detail of current dataformat” area
417
The setting area is separate from the data area, and the setting area can be hidden.
The red box is the boundary of the setting area and data area, and the former is in the left side while the latter
is in the right side. Move the cursor to this boundary and click it, then the setting area will be hidden, and if you
click it again, the setting area will appear again.
418
419
Input Data in Data Area and Bit Browsing
Directly input data in data area and right-click the mouse in the address where the bits to be browsed or click
In this case, the value of RW2 is 9, and bit addresses of 03 and 00 are Magenta to indicate ON status in Bit
Browser.
420
z Usage of RecipeEditor
1. Add Dataformat, Data Type and Adjustment of Data Start Address and Data Length.
Procedure of Adding Dataformat Procedure of Adding Data Type
2. Select the required data type and then create a new recipe file, then save it after it is opened.
Recipe file is a binary file in essence. RecipeEditor can select the data type according to the needs, and
check and edit the data visually. Therefore, once the recipe file is saved in a certain data type, it will be
opened in this set data type next time; and if the selected data type is wrong, the data in the recipe file may
not be understood.
The file type during the saving and opening process can be any one of 3 formats (.rcp, .frp and .csv formats).
421
When RecipeEditor is opened for the first time, clicking (New) icon will make
displayed in the title bar; while Save As dialog box will pop up if clicking (New) icon after the creation of
recipe file. Therefore, create another recipe file only after the previous created file is saved. For the file
opening, if the file is opened already, the Open File dialog box will pop up after the Save As dialog box has
popped up. For the already saved files, the complete file path will appear in the title bar.
3. The data type can also be modified during the edition with the data refreshing accordingly.
For example, double-click the mouse at the red box during the edition to make the Data Type Edit Dialog pop
up, and then change DataItem type from "16 bit signed number” as the lower left graphics shown to “16 bit
Hexadecimal” as the lower right graphics shown.
422
423
After the completion of number input, it'd better to have the Enter key pressed, and it must be saved,
otherwise the previous input number will be lost after RefreshData button is pressed. If the range is exceeded,
the number input will be impossible.
424
425
5. File Merge Function.
File merge function is mainly applicable to the 2 recipe files with the different recipe addresses. These 2
recipe files can be merged into 1 file after they are edited separately, then the 1 merged file can be
downloaded into HMI, as the lower left graphics shown:
426
7. Part of data type supports bit browsing.
Bit browsing is one special function provided by RecipeEditor, which is convenient for the user to check the
data, as shown below:
Data Type Bit Browsing Supported or Not
16 bit signed number Supported
32 bit signed number Supported
16 bit unsigned number Supported
32 bit unsigned number Supported
16 bit Hexadecimal Supported
32 bit Hexadecimal Supported
Single-precision float number Not supported
Double-precision float number Not supported
String Data Not supported
427
Section 4 Functions of NBManager
This section describes the NBManager.
4-1 Introduction of NBManager ..................................................................................................................... 429
428
4-1 Introduction of NBManager
NBManager is a tool managing the whole NB-Designer software, which includes 6 operates, i.e. Download
Operate, Upload Operate, System Operate, Get Version, Decompile Operate and Pass Through
Communication.
Clicking [Start]-[All Programs]-[OMRON]-[NB-Designer]-[Tools]-[NBManager] will make NBManager dialog
box pop up, as shown below:
429
z Communication Type
Click the [Set] button and select [Serial Port] and the Serial No. of your PC from [Serial NO.] in the popup
[Communication Set] dialog box, then click the [OK] button.
USB Port is the system default type. If you use the USB to perform the download, it doesn’t need to make
settings again.
After the selection of communication type, you will enter the Download Section.
430
4-2-2 Download Section
The operation is same as that in edit window. For details, refer to [3-15 Download].
Download User Data: Refers to download the edited project data files (*.pkg) to the HMI.
Click the [Download User Data] button:
Select the generated *.pkg file after compiling the edited project file, then click the [Open] button to make the
following dialog box pop up.
If there are several HMIs in your project, firstly select the No. corresponding to the destination HMI to be
downloaded, and then click the [Download] button.
431
z Download Recipe
Firstly, click the [Download Recipe] button and select the pre-edited file with the suffix of “.rcp”, then click the
[Open] button to perform the download.
z Download LOGO
Click the [Download LOGO] button and select the edited project, i.e. the file with the suffix of “*.logo” in HMI
folder under “car” folder, and then click the [Open] button to perform the download.
432
z Download FRW Data
Click the [Download FRW Data] button and select the edited project, i.e. the file with the suffix of “*.frp” in HMI
folder under “car” folder, and then click the [Open] button to perform the download.
z Recipe Editor
Clicking the [Recipe Editor] button will open the RecipeEditor.
433
4-2-3 LOGO Show Set
It is used to set the display of LOGO screen at the HMI startup.
z Show LOGO
The specific operation is as follows: Select [Show LOGO] and click the [Set] button as shown below. If the
setting is successful, [Set Successfully] dialog box will appear. Once the setting is successful, LOGO screen
will appear during the startup of HMI next time.
If the setting is failed, please modify the Communication Set again after the “Error occurs” dialog box pops up.
z Unshow LOGO
The specific operations are as follows: Select [Unshow LOGO] and click the [Set] button as shown below. If
the setting is successful, [Set Successfully] dialog box will appear. Once the setting is successful, LOGO
screen will not appear during the startup of HMI next time.
If the setting is failed, please modify the Communication Set again after the “Error occurs” dialog box pops up.
434
Clicking the [BACK] and [Next] buttons can make switching among the Download Operate, Upload Operate,
System Operate, Get Version, Decompile Operate and Pass Through Communication.
Click the [Ex] button to exit from the NBManager.
435
4-3 Upload Operate
Upload Operate is mainly used for the file upload from HMI to PC.
The communication parameters must be set before the upload.
The Communication Set is same as that of download.
Upload Section:
Upload User Data:
HMI Information is for inputting the required description information.
Firstly check [User Data (must choose)] and click the [OK] button to select the path for saving the data, then
click the [Save] button after inputting the file name.
After the [Upload Password Dialog Box] pops up, input 888888 and press the OK button to perform the
upload.
If you want to modify the upload password, please double-click the HMI in Project structure window and
modify [Password] corresponding to “Allow Upload” in [HMI Extended Attributes] tab.
436
When Logo file and recipe file need to be uploaded, you can check “Logo File” and “Recipe File”.
437
Select [Upload Recipe] and select the path to save the recipe, and then click the [Save] button after the file
name is input.
Select [Upload LOGO] and select the path to save the LOGO, then click the [Save] button after the file name
is input.
Select [Upload FRW] and select the path to save the FRW, and then click the [Save] button after the File
name is input.
The file name and the path saved during the upload can be selected by the user freely.
438
4-4 System Operate
Section Switching:
Switch to User Program State: The destination HMI switches to the User Project Mode.
Switch to Set Program State: The destination HMI switches to the System Setting Mode.
Update Operation Section:
Updates of Kernel and root file system can only use the serial port. Turn the dip switches locating at the
backside of NB Unit to ON (SW1) and to OFF (SW2) respectively before the update.
After the updates made to the kernel and root file system, the NB Unit will return
to the factory settings, therefore be careful when perform this operation.
439
4-6 Decompile Operate
z Decompile Operation:
1. Select one .pkg file.
2. Set the directory of “Decompile Destination Project Folder”.
3. Click the [Decompile] button and input the decompile password, then click the OK button. Finally,
“Uncompile success!” dialog box will pop up.
The prerequisite for the decompile operation is “Allow Decompilation” is checked and the password is set in
the [HMI Extended Attributes] tab during the project creation. The default decompilation password is 888888.
440
4-7 Pass Through Communication
Pass Through Communication provided by NBManager allows the PLC programming software on PC to
connect the PLC directly via HMI. In this case, HMI functions just as the converter, so the user can monitor or
modify the PLC via HMI, and the PC can perform the upload and download of PLC program via the
transmission cable connected to the HMI.
Pass Through Communication supported by NB-Designer currently refers to the pass through communication
function applicable to the serial connection. The connection is as shown below.
Please set the Source port and Destination port during the connection. Source port refers to the serial port of
PC for connecting HMI, while the Destination port refers to the serial port of HMI for connecting the PLC.
Take the communication between OMRON CP1H and NB5Q as example, and the operation procedures are
as follows:
1. Open the NBManager and select Pass Through Communication.
2. Select USB port as the control type of pass through. Serial port doesn’t support the pass through
communication. USB port is used to control the start and end of the pass through communication.
3. Set the Source port and Destination port, as shown above.
4. The communication parameters are consistent with the internal parameters in OMRON CP1H.
5. Connect the data transmission cable.
Connect the communication cable of OMRON CP1H to COM2 of HMI, and connect the COM1of HMI and
COM port of PC with the twisted cable.
441
Wiring of twisted cable:
6. After “Start pass through communication” is clicked, HMI will be in “straight mode”, and “Pass through
communication set successfully!” dialog box will pop up in NBManager.
7. Open CX-programmer for OMRON CP1H. Select “Online Operation”, then the PLC data can be monitored
or modified after the successful online.
8. Selecting “Stop pass through communication” will make “Pass through communication stopped
successfully!” dialog box pop up.
442
Section 5 Maintenance and Abnormality
Handling
This section describes the maintenance and check to prevent the abnormality occurrence and the
handling of the abnormalities occurred in NB Unit.
5-1 Maintenance ............................................................................................................................................ 444
443
5-1 Maintenance
Please perform the maintenance to ensure the NB Series always in the optimal status.
Do not attempt to take the product apart and do not touch the
product inside while the power is being supplied. Otherwise it
may result in electric shock.
Do not use the input functions of the touch switch, etc. of the NB
Unit, in applications that involve human life, in applications that may
result in serious injury, or for emergency stop switches.
Never press more than two points on the HMI of the NB Unit at a
time. Otherwise, it may activate a switch somewhere between the
two points.
444
z Backup of application
When the unit needs to be repaired due to the occurrence of some faults or to be replaced by the substitute,
be sure to make backup of the applications and keep it in a safe location.
z Replace of battery
The lithium battery used for the backup of the data other than the data in the calendar, clock and history data
screen etc.
The life of the battery is approximate 5 years at 25 ℃ (1 year = 365 days × 12 hours /day). If the battery is
used at high temperature, its life will be reduced. Please replace the battery after the data backup according
to the operating environment.
Customers may not replace the battery inside the NB Unit. Please contact
OMRON’s customer service center.
445
5-2 Checking and Cleaning
Please clean and check the NB Series periodically to ensure the NB Series always in the optimal status.
z Cleaning method
If the display part is dirty, then the screen will hard to see. Please perform cleaning periodically according to
the following points:
y During the daily cleaning, please use the dry soft cloth. But if use the dry soft cloth to clean forcefully
when it is too dirty, the front panel may be damaged. In this case, use the wet cloth to clean it in
advance.
y When the dirt can’t be cleaned by dry cleaning, please dip the cloth into the diluted neutral washing
agents (concentration of 2%) completely first, and then perform cleaning after the wet cloth is wringed
out.
y Waste, ethylene products or tape sticking to the Unit for a long period will generate dirt. If there is dirt
sticking to the Unit, please remove it during the cleaning.
Never use benzene, paint thinner, or other volatile solvents, and do not use
chemically treated cloths.
z Checking method
Please perform checking once every 6 months to 1 year. But the frequent checking should be necessary
when the Unit is used in the extreme environments such as the environment with high temperature, high
humidity or more dust etc.
z Checking items
Please check the following items for the criterion. If the item doesn't conform to the criterion, please improve
the surrounding environment, retighten the screw etc. to make it conform to the criterion.
Checking Checking Contents Criterion Checking
Items method
Supply Voltage fluctuation at Allowable voltage fluctuation range Multimeter
voltage power terminal (DC24V, -15% to +15%)
Surrounding Ambient temperature 0~50℃ Thermometer
environment (temperature inside
state operation panel)
Ambient humidity (humidity 10%~90% RH(without condensation) Hygrometer
inside operation panel)
Dirt Without dirt Visual check
Oil mist sticking No oil penetrating into the space Visual check
between the front panel and Unit box
Installation Looseness of fixing metal Specified torque Phillips
state pieces etc. screwdrivers
Connection state of Inserted fully and without looseness. Phillips
connector for the cable screwdrivers
Looseness of screw for Without looseness Phillips
external wiring screwdrivers
State of external Without abnormality such as Visual check +
connection cable disconnection etc. multimeter
446
Object with Backlight brightness With enough brightness Visual check
expected life Backlight life: approx. 50,000 hours
for NB5Q/NB7W at room temperature
(25 ℃). The backlight will be
compromised at low temperatures.
And the luminous intensity of each
LED may decrease by 50%.
Battery 5 years (at 25 °C) Replace it every
5 years once.
When turning ON or OFF the power supply, confirm the safety of the
system before operation.
Do not repair or modify this product by yourself.
Information Descriptions
PLC no response:cc-pp-d PLC No Response: the 3 number following PLC No Response
represent the HMI No., PLC Station No. and Serial Port No.
respectively.
PLC response error PLC response error: PLC responses one piece of unexpected
information which may caused by the read or write command.
Please check if the device functions well.
Macro Code Error: xxxx Programming problems, endless loop or execution timeout exist in
(Macro No.) Macro program. Please check the Marco program. The number in
the later position is the Macro No.
System error It is system error which means the error occurs inside the HMI.
447
z Solutions for “PLC no response” and “PLC response error”
448
z When problem exists in compilation information
In the Message window, you can see the error number and error reason such as:
Address error for PLC Parts or over-limit.
For some cases, NB-Designer will provide the information similar to “Error: over write address” as shown
below during the designing period.
Refer to [3-5-4 Read/Write Address for PLC] for the address range related to PLC parts or consult some PLC
document for modifying the address of PLC Parts.
449
Error occurs during the compilation of Macro program, as shown below (Wrong Macro program is simulated.)
For the modification of related Macro program, refer to [3-9 Macro Function].
450
Appendices
Appendix-1 List of Models ............................................................................................................................. 452
451
Appendix-1 List of Models
z NB Unit
LCD Panel
Models
Resolution Size Type Display Color
NB5Q-TW00B QVGA 320*234 5.6 inches TFT 65536 colors
NB7W-TW00B WVGA 800*480 7 inches TFT 65536 colors
452
z Units at the host side which can be connected using the serial port of the NB Unit in the
RS-232C mode through Host Link
PLC CPU Unit with built-in Host CPU Unit that can be connected Options required for
Series Link function through adding Host Link connection
Units/communication boards
CP1L-L14/L20/M30/M40/M60 CP1W-CIF01 model
models
CP CP1H-X40/XA40/Y20 models CP1W-CIF01 model
Series CP1E-N14/N20 models
CP1E-N30/N40/N60/NA20 CP1W-CIF01 model
models
C200HE-CPU11/32/42 models C200H-LK201-V1 model
C200HE-CPU11/32/42-Z models
C200HG-CPU33/43/53/63 models
C200HG-CPU33/43/53/63-Z
models
C200HX-CPU34/44/54/64 models
C200HX-CPU34/44/54/64/65/85-Z
models
C200HE-CPU42 model C200HE-CPU32/42 models C200HW-COM02/
C200HE-CPU42-Z model C200HE-CPU32/42-Z models 04/05/06-V1 models
C200HG-CPU43/63 models C200HG-CPU33/43/53/63 models C200HW-COM02/
C200HG-CPU43/63-Z C200HG-CPU33/43/53/63-Z 04/05/06-V1 models
models models
C200HX-CPU44/64 models C200HX-CPU34/44/54/64 models C200HW-COM02/
C C200HX-CPU44/64/65/85-Z C200HX-CPU34/44/54/64/65/85-Z 04/05/06-V1 models
Series models models
CPM1-10/20CDR-models
+CPM1-CIF01 model
CPM1A-10/20/30/40CD-
models
+CPM1-CIF01 model
CPM2A-30/40/60CD-
models
+CPM1-CIF01 model
(When a peripheral port is
connected)
CPM2C-10/20-
models (*1)
CQM1H-CPU11/21/51/61 CQM1H-CPU51/61 models CQM1H-SCB41 model
models (*2)
CS1G-CPU42/43/44/45 (-V1) CS1G-CPU42/43/44/45 (-V1) CS1W-SCU21 (-V1) model
models models CS1W-SCB21 (-V1) model
CS1H-CPU63/64/65/66/67 CS1H-CPU63/64/65/66/67 (-V1) CS1W-SCB41 (-V1) model
(-V1) models models
CS
Series CS1G-CPU42H/43H/44H/ CS1G-CPU42H/43H/44H/45H CS1W-SCU21 (-V1) model
45H models models CS1W-SCB21 (-V1) model
CS1H-CPU63H/64H/65H/ CS1H-CPU63H/64H/65H/66H/67H CS1W-SCB41 (-V1) model
66H/67H models
models
CJ1G-CPU44/CPU45 models CJ1G-CPU44/CPU45 models CJ1W-SCU21/41/-V1 models
CJ1G-CPU42H/43H/44H/45H CJ1G-CPU42H/43H/44H/45H CJ1W-SCU21/41/-V1 models
CJ1 models models
Series CJ1H-CPU65H/66H/67H CJ1H-CPU65H/66H/67H models
models
CJ1M-CPU11/12/13/21/22/23 CJ1M-CPU11/12/13/21/22/23 CJ1W-SCU21/41/-V1 models
models models
453
CJ2M-CPU31/32/33/34/35 CP1W-CIF01 model
models
CJ2 CJ2M-CPU11/12/13/14/15
Series models
CJ2H-CPU64/65/66/67/68
(-EIP) models
*1: Connect using conversion cables (CPM2C-CN111 model or CS1W-CN114/118 model), the RS-232C
adaptor (CPM1-CIF01 model) or the RS-422A adaptor (CPM1-CIF11 model).
*2: The CQM1H-CPU11 model doesn’t have the RS-232C port built in the CPU, therefore it requires a
peripheral port to be connected to a PT through a conversion cable (CS1W-CN118 model).
z Units at the host side which can be connected using the serial port of the NB Unit in the
RS-422A mode through Host Link
PLC CPU Unit with built-in CPU Unit that can be connected Options required for
Series Host Link function through adding Host Link Units/ connection
communication boards
CP1L-L14/L20/M30/M40/ CP1W-CIF11 model
M60 models CP1W-CIF12 model
CP CP1H-X40/XA40/Y20 CP1W-CIF11 model
Series models CP1W-CIF12 model
CP1E-N30/N40/N60/ CP1W-CIF11 model
NA20 models CP1W-CIF12 model
C200HE-CPU11/32/42 models C200H-LK202-V1 model
C200HE-CPU11/32/42-Z models
C200HG-CPU33/43/53/63 models
C200HG-CPU33/43/53/63-Z models
C200HX-CPU34/44/54/64 models
C200HX-CPU34/44/54/64/65/85-Z models
C200HE-CPU32/42 models C200HW-COM03/06-V1
C200HE-CPU32/42-Z models models
C200HG-CPU33/43/53/63 models C200HW-COM03/06-V1
C200HG-CPU33/43/53/63-Z models models
C200HX-CPU34/44/54/64 models C200HW-COM03/06-V1
C200HX-CPU34/44/54/64/65/85-Z models models
C CPM1-10/20CDR-
Series models
+CPM1-CIF11 model
CPM1A-10/20/30/40CD
- models+CPM1-CIF11
model
CPM2A-30/40/60CD-
models+CPM1-CIF11
model
(When a peripheral port is
connected)
CPM2C-10/20
- models (*1)
CQM1H-CPU51/61 models CQM1H-SCB41 model
CS1G-CPU42/43/44/45 (-V1) models CS1W-SCB41 (-V1) model
CS1H-CPU63/64/65/66/67(-V1) models
CS
Series CS1G-CPU42H/43H/44H/45H models CS1W-SCB41 (-V1) model
CS1H-CPU63H/64H/65H/66H/67H
models
CJ1 CJ1G-CPU44/CPU45 models CJ1W-SCU41-V1
Series CJ1G-CPU42H/43H/44H/45H models CJ1W-SCU41-V1
CJ1H-CPU65H/CPU66H models
454
CJ1M-CPU11/12/13/21/22/23 models CJ1W-SCU41-V1
CJ2M-CPU31/32/33/34/ CP1W-CIF11 model
35 models CP1W-CIF12 model
CJ2 CJ2M-CPU11/12/13/14/
Series 15 models
CJ2H-CPU64/65/66/67/6
8 (-EIP) models
*1: Connect using conversion cables (CPM2C-CN111 model or CS1W-CN114/118 models), the RS-232C
adaptor (CPM1-CIF01 model) or the RS-422A adaptor (CPM1-CIF11 model).
z Software related to the NB Unit
455
Appendix-2 NB-Designer Function List
Items Descriptions of Function
PLC Parts Bit State It defines a touching area, and the bit address can be forced to ON/OFF
Setting when this area is enabled.
Bit State Lamp Indicates the ON/OFF state of one bit address.
Bit State It defines a touching area, and the bit address can be switched to ON/OFF
Switch when this area is enabled.
Multiple State It defines a touching area, and the state number can be written into the
Setting specified word address when this area is enabled.
Multiple State Used to show the map state according to the value of the specified word
Display address.
Multiple State Used to show the map state according to the value of the specified word
Switch address and it also defines a touching area at the same time.
XY Plot XY Plot reflects the correlation of two variables visually.
Moving Used to place one vector graphics or bitmap in the screen position
Component specified by the PLC.
Animation Used to put the component into the position with the specified track in the
HMI, and this position is determined by the preset path and the data of
PLC.
Number Input Used to display the current data in word address, to input data through the
pop-up keyboard and to change the data in this address by pressing
“ENTER” button.
Number Used to display the data in the specified register.
Display
Text Input Used to modify or display the data in the specified word register, which is
analyzed through the standard ASCII character table. The input data is
saved to a consecutive register with the “Read Address” as the first
address.
Text Display Used to display the data in the specified word register, which is analyzed
through the standard ASCII character table.
Bar Picture Used to display PLC register data in a bar chart percentage style according
to the set maximum and minimum values.
Meter Used to display the data in the word register by means of a meter diagram.
Indirect Used to make an already window pop up on the current screen.
Window
Direct Window Used to make the specified window pop up on the current screen.
Alarm Display Used to display all the triggered alarm information in the set area. The
content it displays is the same as that displayed by the Alarm Bar, and both
of them are about the alarm information of a certain node switch (bit
address).
Trend Curve Used to obtain the PLC data periodically and display them in trend curve.
The background communication still continue to do when the current
window where the Trend Curve locates is closed, the sampling information
before the switching can be obtained when the Trend Curve is switched to
at any time.
Recipe Used to transfer the data from the recipe memory card of HMI to PLC or
vice versa.
Oscillograph The Oscillograph functions similarly to the Trend Curve. But the data
sampling of the Oscillograph is valid only in the current page, which means
the Oscillograph data will not be read but be lost each time when the page
is switched, and the data sampling will start from the beginning when the
Oscillograph window is switched to.
Scroll Bar Used to change the value in the specified word register by pressing the
slider.
Event Display Used to make the event information logged in “Event Information” and
meeting the current triggering conditions displayed.
456
Items Descriptions of Function
PLC Parts Note Book Used to modify or display the data in the specified word register, which is
analyzed through the standard ASCII character table. The input data is
saved to a consecutive register with the “Read Address” as the first
address.
Multiple State Used to display the tag contents in loopy-moving way by the neon lamp,
Neon Lamp and it supports the tag contents corresponding to 256 (max.) states in the
loopy-moving way.
Bit State Neon Used to display the tag contents in loopy-moving way by the neon lamp,
Lamp and it supports the tag contents corresponding to State 0 and State 1 in the
loopy-moving way.
Trigger Touch Applicable to the conditions where the several components can be
triggered to act not through the triggering method. When the triggering
conditions for the specified register of the Trigger Touch component are
satisfied, the components placed in the valid area for the Trigger Touch
component can be triggered to act.
Grid Used to make the selection type of “Select by row”, “Select by col” and
“Select by cell”. The user can set the “Row”, “Column”, “Select Color”,
“Background Color”, “Border Color”, and write the selected Row No. and
Column No. into the specified register.
Historical Data Use to read a series of data in the consecutive registers from the specified
Display word register periodically and display them in the table form.
Function Scale Applicable to the conditions with the requirement of equal-division notation.
Parts Function Key Used to provide functions such as “Switch Window”, “Keyboard Function",
“Execute Macro”, “Touch Calibration”, “Clear Event” and “Message Board”
etc. The function key is not controlled by the register address, so the
execution of specified function needs to be activated by touching this
component.
Alarm Bar Used to display the triggered preset alarm information by using the Neon
Lamp in the area where the Alarm Bar locates. The alarm information must
be related to node address of a certain bit, and it will scroll from the right to
the left when the bit address is triggered to the alarm state. The alarm
information will continue to scroll until this bit address is switched to the
non-alarm state.
Timers Used to execute timing function. When the timing is over, it will play the
other corresponding functions (such as Macro execution, parameter setup
and data transmission etc.).
Bitmap Used to call and display the bg-form graphics in the system graphics library
or the graphics library in Project files window. No change in bitmap during
the operation. Bitmap can be generated from the file in “.JPG, .BMP, .GIF
or .PNG” formats.
Vector Used to call and display the vg-form graphics in the system graphics library
Graphics or the graphics library in Project files window. Vector graphics can be
generated from the file in “.JPG, .BMP, .GIF, or .PNG” formats.
Note Pad Used to provide the users with a space for the message reservation and
transmission, thus allowing the users to write any text on the HMI freely.
And its function is similar to that of the drawing board.
Data Used to make the data in the specified register address transferred to the
Transmission other register address. Data Transmission can be triggered by the manual
touching method or the state change of the specified address.
FreePlotting Used to draw the corresponding graphics by the pixel point in the HMI
based on the data in the register.
Date/Time Used to display the value of the RTC clock inside the HMI in the set format.
Dynamic Used to modify the positions and sizes of the rectangle, ellipse or line by
Graph changing the value of the register.
User Info Used to display the related information of the current login user in the table
Display form.
Combination Used to incorporate the Bit State Setting component and Multiple State
Operations Setting component into one component, thus making the user realize the
bit-state setting and multi-state setting operations through only one key.
457
Items Descriptions of Function
Function Event Bar Used to make the event information logged in “Event Information” and
Parts meeting the current triggering conditions displayed.
Project Text Library Used to store the text contents needed by the project, thus preventing the
Database tag with the same text from being input frequently.
Address Tag It is a useful address logon library, which prevents the inconvenience
resulting from repeated input of address.
Alarm To display the information on the Alarm Display component or Alarm Bar
Information component, the logon in the list of “Alarm Information” component is
needed. One bit address can control whether one piece of information will
be displayed or not. If the logged bit address is triggered (ON or OFF), the
related information will be displayed on the Alarm Display component.
Event To display the information in the Event Display component, the information
Information must be logged in the Event Information component in advance. One bit or
word address controls one piece of information. When the logged bit or
word address is triggered (i.e. It is ON/OFF or the restricted value is
triggered.), the corresponding information will be displayed in the Event
Display component.
PLC Control When the corresponding control is triggered, PLC Control component can
activate a specific operation (such as Change window, Write Data to PLC,
General PLC Control, Backlight Close, Execute Macro Program and
Backlight Open etc.).
Window Basic Window It is the general window.
Type Common There is only 1 Common Window, which can be set to above or under the
Window Basic Window.
The maximum number of Basic Window ejected in 1 Common Window is
up to 16.
Fast Selection There is only 1 Fast Selection Window, which will appear only after “Menu”
Window is clicked.
Bottom Up to 3 Bottom Windows can be set for 1 Basic Window.
Window
Popup The types are “Tracking”, “Monopoly”, “Clipping” and “Coherence”.
Window It can be displayed normally or in the top layer.
The maximum number of popup window ejected in 1 basic window is up to
16.
Direct Window Up to 16 Direct Windows can be displayed simultaneously in 1 Basic
Window. It is controlled by the bit.
Indirect Up to 16 Indirect Windows can be displayed simultaneously in 1 Basic
Window Window. It is controlled by word.
Window Attribute It includes Security Level, Special Attribute, Use Background Color,
Transparence, Frame, Position, Width and Height, Bottom Window (3
max.) and Pop Window Type.
Window Maximum It is up to 32768.
Number Window
Number
Window No. It includes 0 and 10 to 32767 (Basic Windows)
1: Common Window (Default)
2: Fast Selecting (Default)
3: NUM Keyboard (Default)
4: ASCII Keyboard (Default)
5: File List Window (Reserved by system)
6: Password Window (Reserved by system)
7: Confirm Action Window (Default)
8: HEX Keyboard (Default)
9: Login Window (Default)
458
Items Descriptions of Function
Window Switching Method Switching among the Basic Window, Common Window, Fast Selection
Window and Popup Window is realized through the corresponding
Function Keys.
The Basic Window No. displayed currently can be set by a specified word
in PLC through the “PLC Control” in Project Database.
Macro Function Macro is an advanced HMI control method, which makes the function of
the HMI more powerful. The HMI can have the same logic and arithmetic
functions with the PLC through the Macro programming. Using Macro
flexibly can realize more powerful functions that can not be realized by the
common component, and make the HMI more perfect.
Macro in NB Series is compatible with C language (ANSI C89) completely.
Internal LB Refers to the local bit address of HMI, which can’t be saved when power is
Address OFF.
inside HMI RB Refers to the absolute address of bit address saved in the recipe card,
which can be saved when the power is OFF. When the battery is dead in
HMI, the data stored in the recipe card will be lost.
RBI Refers to the index address of bit address saved in the recipe card, which
can be saved when the power is OFF. When the battery is dead in HMI, the
data stored in the recipe card will be lost.
LW.B Refers to the bit address corresponding to the local word address of HMI,
which can’t be saved when the power is OFF.
FRB Refers to the absolute address of bit address saved in Flash, which can be
saved when the power is OFF. When the battery is dead in HMI, the data
saved in Flash will not be affected.
FRBI Refers to the index address of bit address saved in Flash, which can be
saved when the power is OFF. When the battery is dead in HMI, the data
saved in Flash will not be affected.
LW Refers to the local bit address of HMI, which can’t be saved when power is
OFF.
RW Refers to the absolute address saved in the recipe card, which can be
saved when the power is OFF. When the battery is dead in HMI, the data
stored in the recipe card will be lost.
RWI Refers to the index address saved in the recipe card, which can be saved
when the power is OFF. When the battery is dead in HMI, the data stored
in the recipe card will be lost.
FRW Refers to the absolute address of word address saved in Flash, which can
be saved when the power is OFF. When the battery is dead in HMI, the
data saved in Flash will not be affected.
FRWI Refers to the index address of word address saved in Flash, which can be
saved when the power is OFF. When the battery is dead in HMI, the data
saved in Flash will not be affected.
File Formats .rcp It is the file format which can be identified by HMI device.
Supported by .frp It is the file format saved in the flashROM of HMI device.
RecipeEditor .csv It can be import/export as “Microsoft Excel” format.
Security Level The security level is classified into 16 levels (0 to 15). One 8-digit number
password can be set for each level at the request of the users, and the
greater the level number, the higher the level. 15-level is the highest and
0-level is the lowest. When the security level is 0, it means no password.
And 0 can’t be used for setting password. The default security level is 3.
User Permission The software opens 32 users and 32 operation permissions for free use.
The users and operation permission can be set separately, and the
operation permission is not limited to the users. And the online user
addition/deletion and permission modification can be done in the HMI. The
default valid time of user permission is 10 minutes. After 10 minutes, this
user permission will be automatically cancelled, and the operation
permission can be obtained by inputting the password again.
459