Sunteți pe pagina 1din 65

NA-series HMI Programmable Terminal

Practices Guide
Creating Basic Pages
NA5-15W□□□□
NA5-12W□□□□
NA5-9W□□□□
NA5-7W□□□□

V421-E1-01
■ Introduction
This guide provides reference information on editing pages of the NA. It does not provide safety
information.
Be sure to obtain the NA-series Programmable Terminal User's Manuals, read and understand the safety
points and other information required for use, and test sufficiently before actually using the equipment.

(1) All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or
otherwise, without the prior written permission of OMRON.
(2) No patent liability is assumed with respect to the use of the information contained herein. Moreover,
because OMRON is constantly striving to improve its high-quality products, the information contained
in this manual is subject to change without notice. Every precaution has been taken in the preparation
of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is
any liability assumed for damages resulting from the use of the information contained in this
publication.
(3) Trademarks
• Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan
and other countries for OMRON factory automation products.
• Windows, Visual Basic, and Excel are either registered trademarks or trademarks of Microsoft
Corporation in the United States, Japan, and other countries.
• Other company names and product names in this document are the trademarks or registered
trademarks of their respective companies.
• Microsoft product screen shots reprinted with permission from Microsoft Corporation.
• The product pictures and drawings contained in this document are the graphical images, which may
be different from the actual articles.

2
Terms and Conditions Agreement
Warranty, Limitations of Liability

Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and
workmanship for a period of twelve months from the date of sale by Omron (or such other period
expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED,
ABOUT NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE OF THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF
THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses
based on infringement by the Products or otherwise of any intellectual property right.
Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form
originally shipped with Buyer responsible for labor charges for removal or replacement
thereof) the non-complying Product, (ii) repair the non-complying Product, or (iii) repay or
credit Buyer an amount equal to the purchase price of the non-complying Product; provided
that in no event shall Omron be responsible for warranty, repair, indemnity or any other
claims or expenses regarding the Products unless Omron’s analysis confirms that the
Products were properly handled, stored, installed and maintained and not subject to
contamination, abuse, misuse or inappropriate modification. Return of any Products by
Buyer must be approved in writing by Omron before shipment. Omron Companies shall not
be liable for the suitability or unsuitability or the results from the use of Products in
combination with any electrical or electronic components, circuits, system assemblies or any
other materials or substances or environments. Any advice, recommendations or
information given orally or in writing, are not to be construed as an amendment or addition to
the above warranty.

See http://www.omron.com/global/ or contact your Omron representative for published


information.

Limitation on Liability; Etc


OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR
COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER
SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, NEGLIGENCE OR STRICT
LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the
Product on which liability is asserted.

3
Application Considerations

Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or
regulations which apply to the combination of the Product in the Buyer’s application or use
of the Product. At Buyer’s request, Omron will provide applicable third party certification
documents identifying ratings and limitations of use which apply to the Product. This
information by itself is not sufficient for a complete determination of the suitability of the
Product in combination with the end product, machine, system, or other application or use.
Buyer shall be solely responsible for determining appropriateness of the particular Product
with respect to Buyer’s application, product or system. Buyer shall take application
responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO
LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS
BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL
EQUIPMENT OR SYSTEM.

Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable
Product, or any consequence thereof.

Disclaimers

Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a
guide for the user in determining suitability and does not constitute a warranty. It may
represent the result of Omron’s test conditions, and the user must correlate it to actual
application requirements. Actual performance is subject to the Omron’s Warranty and
Limitations of Liability.

Change in Specifications
Product specifications and accessories may be changed at any time based on
improvements and other reasons. It is our practice to change part numbers when published
ratings or features are changed, or when significant construction changes are made.
However, some specifications of the Product may be changed without any notice. When in
doubt, special part numbers may be assigned to fix or establish key specifications for your
application. Please consult with your Omron’s representative at any time to confirm actual
specifications of purchased Product.

Errors and Omissions


Information presented by Omron Companies has been checked and is believed to be
accurate; however, no responsibility is assumed for clerical, typographical or proofreading
errors or omissions.

4
Contents

Terms and Conditions Agreement ........................................................................ 3


Warranty, Limitations of Liability ............................................................................................. 3
Application Considerations ..................................................................................................... 4
Disclaimers ............................................................................................................................. 4

Related Manuals ..................................................................................................... 7

1 Introduction .................................................................................................... 8
1-1 Overview .................................................................................................................. 8
1-2 System Configuration ............................................................................................... 9
1-3 Procedure to Create Pages .................................................................................... 10

2 Project Creation ........................................................................................... 11


2-1 Creating Projects .................................................................................................... 11
2-2 Starting up Sysmac Studio ..................................................................................... 12
2-3 Registering Global Variables .................................................................................. 14

3 Basic Settings .............................................................................................. 15


3-1 Adding an NA ......................................................................................................... 15
3-2 Sysmac Studio Window Components for Creating NA Pages ............................... 17
3-3 NA Communication Settings .................................................................................. 18
3-4 Registering Variables ............................................................................................. 19

4 Creating Basic Pages .................................................................................. 22


4-1 Adding Pages ......................................................................................................... 23
4-2 Creating ON/OFF Switches .................................................................................... 27
4-3 Creating Bit Lamps ................................................................................................. 30
4-4 Creating Labels ...................................................................................................... 34
4-5 Off-line Testing 1 .................................................................................................... 36
4-6 Creating the Button to Switch Pages ..................................................................... 37
4-7 Creating Data Display/Edit Objects ........................................................................ 41
4-8 Creating Gauges .................................................................................................... 46

5
4-9 Off-line Testing 2 ....................................................................................................48
4-10 Creating Alarms ......................................................................................................49
4-11 Displaying PDF Files ..............................................................................................55
4-12 Displaying Videos ...................................................................................................56

5 Check on the Actual Unit ............................................................................ 57


5-1 Creating a Ladder ...................................................................................................57
5-2 Synchronization ......................................................................................................58
5-3 Operations ..............................................................................................................60

6 Integrated Simulation .................................................................................. 61

7 Reference Materials ..................................................................................... 62


7-1 Correspondence Table of Data Types between the NJ-series Controllers and the
PTs .........................................................................................................................62
7-2 NA Series Lineup....................................................................................................63

Revision History ................................................................................................... 64

6
Related Manuals
The following manuals are related to this manual.

Cat.No. Model Manual Name


SBCA-362 SYSMAC-SE2□□□ Sysmac Studio Version 1 Operation Manual
SBSA-545 NA5-15W□□□□ NA-series Programmable Terminal Hardware User’s
NA5-12W□□□□
Manual
NA5-9W□□□□
NA5-7W□□□□
SBSA-546 NA5-15W□□□□ NA-series Programmable Terminal Software User’s
NA5-12W□□□□
Manual
NA5-9W□□□□
NA5-7W□□□□
SBSA-547 NA5-15W□□□□ NA-series Programmable Terminal Device Connection
NA5-12W□□□□
User’s Manual
NA5-9W□□□□
NA5-7W□□□□
SBSA-548 NA5-15W□□□□ NA-series Programmable Terminal Startup Guide
NA5-12W□□□□
NA5-9W□□□□
NA5-7W□□□□

7
1 Introduction
In this chapter, you will learn what information is required to create the pages on the
NA-series PTs while confirming the contents included in this guide. You will also learn the
system configuration required and the procedure for creating pages.

1-1 Overview

1-1-1 Overview
As summarized below, this guide explains the procedures to perform settings of the NA
series, to create basic pages, and to transfer them to the actual unit.

1.Creating Projects
・Creating a Project
・Registering Global Variables
・NA Communication Settings
・Registering Variables

2.Creating Basic Pages


・Adding Pages
・ON/OFF Switches
・Bit Lamps
・Labels
・Off-line Testing
・Button to Switch Pages
・Data Edit/Display
・Gauges (Graphs)
・Alarms
・PDF Display
・Video Display
・Integrated Simulation

3.Check on Actual Unit


・Synchronization
・Operation

8
1-2 S
System Configurat
C tion

1-2-1 System
S Con
nfiguration
n
The NA se eries can inc
clude multipl e NJ units or
o NA units within
w a singgle project as
s shown in
the figuress below.
This guidee deals with the
t projects for the one--to-one (1:1) NJ-NA connfiguration where
w a
single NJ is connected d with a sing
gle NA.

A single
e project A single project
p

The figure below show ws the configguration use


ed in this guide.
The Ethern net is used for
f commun ications betw ween the NJ J series andd NA series, as well as
for the scre
een data tra
ansfer from tthe PC.
IP Address: 192.16
68.250.20

IP Address: 192.168.250.10

Port1

HUB

IP Adddress: 192.168.2
250.1

9
1-3 Pro
ocedure to
o Create Pages

1--3-1 Proccedure to Create


C Pag
ges

Crreate an NJ project.
p

Deefine global variables


v for the
t NJ.

Add an NA to the NJ projec


ct.

Sppecify the co
onfiguration and settings f or the NA.

Crreate necesssary global va


ariables on thee NA mapping
g table.

Eddit pages.

Buuild the NA project.

Integrated NJ and NA simulation

Syynchronization

T
Transfe

Chheck the ope


eration.

10
1
2 Project Creation
This chapter describes the settings for the NJ that are required before creating pages of the NA
series.

2-1 Creating Projects

2-1-1 Creating a Project


There are two ways to create a project to create pages for the NA series as described
below:

(1) Add NA to the existing NJ project.


(2) Create a new NA project.

In this guide, you will practice (1).


For (2), refer to the reference materials at the end of the guide.

11
2-2 Starting up Sysmac Studio

2-2-1 Starting up Sysmac Studio


Start up Sysmac Studio in either way described below:

• Double-click the icon on the desktop.

• Select [START]-[All Programs]-[OMRON]-[Sysmac Studio]-[Sysmac Studio].

2-2-2 Creating a New Project

1. First, create a new project for the


NJ.
Click [New Project] on the Project
window.

2. Specify the following items, and


click [Create]. A project file is then
created.

・Project name
“Arbitrary project name”
・Device
“NJ301-1100” *
・Version
“1.07” *

* Specify the model and version of


the NJ to be connected. The
versions that are supported for
the NA series are 1.01 and later.

12
2-2-3 Changing the Controller Name

1. For easy identification, change the


controller name.
Right-click the NJ icon and select
“Rename”.

2. Change the controller name to


“NJ_1”.

2-2-4 Confirming the IP Address


To connect NJ with Sysmac Studio via EtherNet/IPTM, confirm the IP address of the NJ side
as described below.

1. Double-click [Configurations and


Setup]-[Controller Setup]-[Built-in
EtherNet/IP Port Settings].

2. Confirm that the IP address is


specified as “192.168.250.1”.

13
2-3 Registering Global Variables

2-3-1 Registering Global Variables


To exchange data with the NA, register the global variables of the NJ.

1. Double-click
[Programming]-[Data]-[Global
Variables].

2. Click the variable table and register


a variable name.

3. Subsequently, right-click on the


variable table and select “Create
New”. Otherwise, press the “Insert”
key.

4. Register all of the variables listed


on the right.

14
3 Basic Settings
This chapter describes the basic procedure to create an NA project, to specify
communication settings, and to register variables.

3-1 Adding an NA

3-1-1 Adding an NA

1. Add an NA to the project.


Select [Insert]-[HMI]-[NA5].

2. Select an option from among the


list according to the actual unit.
For example, if you use a 12-inch
model, select “12W001□”.

For details on models, refer to


Chapter 7.

3. Select the version.

4. An NA is now added, and the


display is changed accordingly.

15
5. Change the NA name for easy
identification. Right-click the NA
icon and select “Rename”.

6. Change the name to “NA_1”.

16
3-2 Sysmac Studio Window Components for Creating NA Pages

3-2-1 Sysmac Studio Window Components for Creating NA Pages


① ②

Name Description
① Mutiview Explorer Used to select items to set or pages to create.
② Edit Pane Used to perform configuration settings or to create
pages.
③ Toolbar The frequently-used functions such as “Build” or
“Synchronization” are collected here to facilitate
execution.
④ Toolbox Contain the objects to make screendata.

17
3-3 NA Communication Settings

3-3-1 NA Communication Settings


Specify the Ethernet communication settings following the procedure below.

1. Double-click [Configurations and


Setup]-[HMI Settings].

2. Click the “TCP/IP” icon.

3. Set 192.168.250.20 in “IP


Address”.

18
3-4 R
Registerin
ng Variab
bles

3-4-1 Variable
V Ma
apping Sch
heme
1. When ann NJ exists within
w the saame project in which an NA exists, aall of the NJ
J’s global
variables will
w be autom matically refl ected in thee NA’s variab
ble mappingg table.
2. You can
n select the variables
v req
quired to creeate the pagges of the NA
A series and
d register
them as th
he NA series s’ global variiables. (“Cre
eate Device Variable”)
Sysmac Studio Projject

NJ NA

Prrogram Page

I/O Globall Variablee Global


G
Map Variable
es Mappingg Variables
1 2
Hardware
e

on is called “variable ma
The functio apping”, andd the names s of the NA’ss global varia ables
allocated at
a this time are
a specified d as “NJ con ntroller namee_NJ globall variable na ame”.
When NA is connected d with NJ att 1: N, each NJ is identiffied by the ccontroller name.

Variable: NJ__1_start

Variable: NJ__2_start

Variable: NJ__3_start

Variable: sta
art Variable: startt Variable: start

Conttroller name: NJ
J_1 Conntroller name: NJ_2
N Co
ontroller name: NJ_3

Preca
autions for Correct
C Use
e

If yo
ou change thhe variable tyype or otherr items of the
e NJ while vvariable map
pping has
been n already pe
erformed, a m mapping errror may occu ur because tthe change is

19
9
automatically reported to the NA.

3-4-2 Variable Mapping Procedure

1. Double-click [Configurations and


Setup]-[Variable Mapping].

2. The controllers that exist within the


project appear on the table.
When you click the arrowhead to
the left of “NJ_1”, the categories of
the variables defined for the NJ_1
controller appear.

3. Subsequently, when you click the


arrowhead to the left of “User
Variables”, you can confirm the
variables defined as global
variables.

4. Perform variable mapping for all the


user variables.
Select all the variables from “ALM1”
to “Start” and then right-click on the
rows to select “Create Device
Variable”.

5. The NA variables are now created.


The names of the variables are
specified as “Controller name_NJ
variable name”.

20
6. The created variables are
registered as the global variables
for the NA project.
Click [HMI]-[Data]-[Global
Variables] and check if they are
registered as the global variables.

21
4C
Creating Basic
B Page
es
his chapter describes
Th d th
he procedure
e to create basic
b pages.

 Images of Pages
P to Crreate
In this chapte
er, you are to
o create the following pa
ages.

((1) Equipmennt Monitor (2


2) Background

(3) Setting Screen


S (4
4) Gauge Screen

(5) Alarm Screen

(6) Troubleshhooter 1(PDF Display) Troubleshoote


T er 2(Video D isplay)

22
2
4-1 A
Adding Pa
ages

4-1-1 Page
P Types
s
In NA, you
u can create the followin
ng three type
es of pages:
Classification Descriptionn NS Equivalents
Main pages The basic pages displayed during NA operatioon. Basicc screens
Popup pagess The pages that ca
an be overlayeed on another page.
p Pop--up screens
Background pages The pages that ca
an be specified
d as backgrounnd to Sheeets
erlay the main pages.
ove
- No
ot supported in NA Fram
mes
* The Backgrou
und pages aree to be createdd as the Main pages. You caan specify a Main
M page as
background from
f the Prop
perties settings
s of the page.

4-1-2 Adding
A Pag
ges

1. Whe en you click the arrowhead of


[Pagges] under [H
HMI], you ca
an see
thatt a page has already bee
en
creaated.

2. Right-click on [P
Pages] underr [HMI]
and
d select [Add]]-[Page].
Reppeat the samme action to create
c 5
pag
ges.

23
3
4-1-3 Creating Page Groups
 Pages and Page Groups
You can create multiple pages as a group. By grouping multiple pages, you can easily copy
the multiple pages such as alarm/troubleshooter pages as a unit. In this subsection, you are
to group the troubleshooter pages.

1. Right-click on [Pages] under [HMI]


and select [Add]-[Page Group].

2. Right-click on the created [Group0]


and select [Add]-[Page].
Repeat the same action to create 2
pages.

24
4-1-4 Changing the Page Names
In NA, the pages are managed by the names instead of the numbers.

1. Right-click on a page and select


[Rename].

2. Change all the page names as


described on the right.

25
4-1-5 Specifying a Background Page
You can specify a background page for each page. The setting can be performed from
[Properties].

1. Select [View]-[Properties].
If you use the toolbar, click the
icon.

2. The [Properties] window appears


on the right of the screen.

Properties
window

3. The properties of the selected page


appear.
Double-click
[HMI]-[Pages]-[Control_Panel].

4. The [Properties] window for the


“Control_Panel” page appears on
the right of the screen.
If you enter “b” in
[BackgroundPage], the candidates
appear. Select “Background” from
among them.

Perform the same settings for all


the pages except “Background”.

26
4-2 C
Creating ON/OFF
O Switchess

4-2-1 Object
O Prop
perties
IN the NA series, the functional
f paarts laid out on pages are called “obbjects”.
In the NS series,
s the functional ob
bjects placed d on pages are
a all defineed only by “Properties”.
The objectts in the NA series, in co
ontrast, are defined
d by th
he categoriees including “Properites””,
“Events an
nd Actions”, and “Anima ations”, all off which have
e their own wwindow for setting.
s

ple, if you sp
For examp pecify the ap
ppearance oro variable off a switch, yo
you use the “Properties”

window. You
Y use “Eve ents and Acttions” to perrform settings for switch ing pages.
NS series NA series

Properties
Eventts and Actions
Properties Animations

4-2-2 Switches
S
There are 5 switch objjects as desscribed below
w. Use “Mom
mentary Buttton” for ON//OFF
momentaryy switches, or “Button” tto switch pa
ages.
Button ty
ypes Functions
Button A simple
s button w with no particular action.
Momentary Button
B Se
ets the bit only w
while it is held down.
Reset Button
n Se
ets the bit to Fa
alse when press sed.
Set Button Se
ets the bit to Tru
ue when pressed.
Toggle Butto
on Sw
witches the bit bbetween True anda False when either turnedd on or off.

27
7
4-2-3 Creating ON/OFF Switches
Create the START button on the “Control_Panel” page. Drag and drop the object from the
Toolbox to the page.

1. Open the “Control_Panel” page and


click the “Toolbox” tab.

2. From [Toolbox], select


[Buttons]-[Momentary Button], and
drag and drop it to the page.

3. Use [Properties] to set text


attributes.
While keeping the object selected,
select the [Properties] tab and enter
“NJ_1_Start” in [Variable] under
[Behavior].
If you enter “n” the variable’s first
character, the variables starting
with “n” appear.

4. Set the text attributes of the objects


in the following fields under
[Appearance].
[TextButtonUp]
START
[TextButtonDown]
START If you click the
[Font] arrowhead, you can
edit the font family,
Family: Segoe UI
size, and style.
Size: 20
Style: Bold

28
5. After placing the ob
bject on the
page, yyou can channge its size by
b
dragginng the handlee.
You caan move it byy dragging its
self.

6. You caan also chang ge the shape


e or [Chang
ging shape] [Changing
[ color]
color w
with [Propertie
es].

Addittional Inform
mation
Wheen you right--click on an item and clic
ck “Descripttion”, the desscription forr the item
appe
ears at the bottom
b right of the scree
en.

29
9
4-3 Cre
eating Bitt Lamps

4--3-1 Crea
ating Bit La
amps
Crreate a Bit Lamp
L on the
e “Control_P
Panel” page.

1. Select the [Toolboxx] tab.


Select [Lamps]-[Bitt Lamp] and then
t
drag an
nd drop it to the page.

2. Select the [Properties] tab and


specifyy the variable
e in [Expression]
under [[Behavior].

When yyou enter a character,


c the
e list
of cand
didates appe
ears. Select
“NJ_1__Lamp” from the list.

3. Change the text strring and its


attributtes as described below.

[TextOff]
STOOP
[TextOn]
RUN N
[Font]
Family:Segoe UI
Size:20
Stylee:Bold

4. Adjust the size and


d position just the
same aas the Buttonn. You can
changee the color orr shape from
m
[Properties].

30
3
Additional Information
In [Expression], you can specify a conditional expression using variables as described
below:

How to specify [Expression]


When you assign a Boolean variable for an object such as Lamp, specify [Expression]
under [Behavior] in [Properties] as below.

Example 1: To execute the function when a Boolean variable (blnSample) is True;


blnSample=True
* If the value is True, you can omit the [=True] part.

Example 2: To execute the function when an Integer variable (intSample) is less than
20;
intSample<20

Example 3: To execute a function when a Boolean variable (blnSample) is True and


also when an Integer variable (intSample) is less than 20;
(blnSample=True) AND (intSample<20)

Example 4: To set the value obtained by adding 100 to an Integer variable


(intSample);
intSample+100

31
4--3-2 Impo
orting the NS Objectts
Yoou can impo
ort image file
es to be use
ed for the designs of the objects succh as buttons or
lamps. This subsection describes thee procedure to import the NS objectts.

1. Select the Button and the Lamp


p you
created
d, and copy and
a past them.

2. Select the Button object,


o and
changee [Design] to “Image” undder
[Appea
arance] in [Prroperties].

3. Click th
he button
n in
[ImageeFileButtonUp] under
[Appea arance].

4. Open tthe folder loccated at the


followin
ng path.

C:¥Proogram
Files¥O
OMRON¥CX X-One¥CX-Deesig
ner¥inttaparts¥BMP
Pfiles¥LampS
Swit
ch-Recctangle

Select LSW_21.BM
MP and click
“Open””.

32
3
Additional Informa
ation
To display
d the bmp
b file imag
ges on the Explorer
E as shown
s in Steep 4, you must perform
the following
f setttings.
1) Select
S [STA
ART]-[Compu uter] and right-click on itt to select [P
Properties].
2) Click
C [Advannced system m settings] to
o open the [S System Propperties] dialo og box.
3) Click
C the [Addvanced] tab b and click the
t [Settings s…] button oof the [Performance]
f
field.
4) Check
C the checkbox of “Show thum mbnails inste
ead of icons””.

5. Simmilarly, set the


e “LSW_20.B
BMP”
file in [ImageFileeButtonDown
n].

6. Youu can use the


e NS image files
f for
the Lamp as we ell.
Sele
ect the Lampp object and change
[Design] to “Ima
age” in [Prope
erties].

7. Speecify the follo


owing image files
resp
pectively for the Lamp.

File
e path
C:¥¥Program
File
es¥OMRON¥ ¥CX-One¥CX X-Desig
ner¥¥intaparts¥B
BMPfiles¥Lam
mps-Cir
cle

ImaageFileOff: CIR_11.BMP
C
InaggeFileOn: CIR_10.BMP

33
3
4-4 Cre
eating Labels

4--4-1 Crea
ating Labe
els
Crreate a Labe
el on the “Co
ontrol_Pane
el” page.

1. Select the [Toolboxx] tab. Selectt


[Standaard Controls]-[Label] andd
then drrag and drop
p it to the pag
ge.

2. Click th
he [Propertie
es] tab and
specifyy the Label as describe
below. Adjust the size
s and position
accordingly.

[Text(DDefault)]
Equipment Monittor
[Font]
Family:Segoe UI
Size:50
Stylee:Bold
[HorizoontalAlignme
ent]
Centter

3. Subseq quently, placce the Label


object o
on the other pages.
Copy thhe created Label.
L

4. Paste iit to the “Data


a_Display” page.

34
3
5. Change [Text (Defa ault)] to “Settting
Screen
n” in [Propertties].

6. Similarrly, copy and paste the La abel 《Indiccator page》


respecctively to the “Indicator” and
“Alarm_ _Display” paages and then
modify the text resppectively.

《Alarm
m_Display page》

35
5
4-5 Off--line Testting 1

4--5-1 Build
d
Ch
heck if there
e is no error in the creatted pages to
o confirm tha
at they operaate properly.

1. Select [Project]-[Bu
uild HMI].

2. The Bu uild window appears


a at th
he
bottom
m of the scree en. If there is any
error, the error or warning
w is
displayyed. With an error, you
cannott start up the simulator.
Correcct the error.

4--5-2 Simulation On
nly with the
e NA unit.
Pe
erform simulation only with
w the NA unit.

1. Select [Simulation]--[Start NA
Simula
ation].

2. The sim
mulator scree
en appears. Turn
T
ON/OF FF the switch
hes to confirm
m
the beh
haviors.

3. To stop
p the simulattor, select
[Simula
ation]-[Stop NA
N Simulatio on].

36
3
4-6 Creating the Button to Switch Pages

4-6-1 Events and Actions


To create a button to switch pages, perform settings to display the new page upon pressing
the button. Use [Events and Actions] to perform such settings.

 Available Actions
Actions Description
CallSubroutine Calls scripts (Visual Basic).
ClearUserAlarmLog Clears the alarm logs.
ClosePage Closes the specified page.
SetVariable Sets the variable to a specified value.
IncreaseVarible Increases the variable to a specified quantity.
DecreaseVariable Decreases the variable by specifying the quantity.
DisableTouchScreenInput Disables the touch screen.
EnableTouchScreenInput Enables the touch screen.
EjectSDMemory Ejects the SD Memory card.
Logout Makes the current user log out.
Login Displays the log-in screen.
ResetVariable Sets the Boolean variable to False.
SaveUserAlarmLogToFile Saves the alarm log in a file.
SetBrightness Changes the screen brightness.
SetLanguage Changes the current language.
ShowDocument (FullScreen) Displays a document full-screen.
ShowDocument (Window) Displays a document to fit in the window.
ShowPage Displays a new page.
ShowPreviousPage Displays the previous page.
ShowSystemMenu Displays the system menu.
StartDataLogging Starts data logging.
StopDataLogging Stops data logging.

37
4--6-2 Crea
ating the Buttons
B to S
Switch Pag
ges
Crreate the Bu
uttons to swiitch pages o
on the “Back
kground” pag
ge.

1. Open tthe “Backgro ound” page.


Select from the Too olbox
[Button
ns]-[Button], and
a then dra ag
and dro
op it to the page.

2. Set the
e Button so th
hat the page
e is
switcheed when the Button is
pressed.
Perform
m settings in [Events and
d
Actionss].

Select [View]-[Evennts and Actio ons].


If you u
use the toolb
bar, click the
icon.

The [Evvents and Acctions] windoow


appearrs on the righ
ht side of the
screen.

3. While sselecting the Button object,


click th
he cell indicatting <Select
Event tto Add> to thhe right of
[Eventss].

4. Select “Click”.

The evvent occurs at


a the time off:
Click: w
when you release the objject
Press: while you arre holding do
own
the object
Releasse: when youu release the
object

Additional Inform
mation
F both Clic
For ck and Rele ease, the eve
ent occurs when
w the objject is releas
sed, but
tthe operation when the page is changed is diffe erent. If the ppage change es when
a object se
an et for Click iss touched bu
ut not yet relleased, the eevent does not
o
occur. If the page chang ges when ann object set for Releasee is touched but not
y released
yet d, the event does occur.

38
3
5. Click th
he cell to the right of
[Action
ns], and selecct “ShowPagge”.

6. Click th
he cell to the right of
[PageN Name] and se elect
“Controol_Panel”.

This co
ompletes the
e settings for
switching pages.

7. Next, sspecify the prroperties.


Click th
he [Propertie
es] tab and
performm the settings as descried
d
below.

[Text(DDefault)]
Equipment Monittor
[Font]
Family: Segoe UI
Size: 20
Stylee: Bold

8. Similarrly, create the


e Button to
switch to the “Data_ _Display” paage.
Copy th he previouslyy created Buutton
for swittching pagess, and paste it to
the “Daata_Display” page.

9. In [Properties], change [Text


(Default)] to “Setting Screen”.

39
9
10. In [Eveents and Actions], set
“Data_
_Display” in [P
PageName].

11. Similarrly, create thee Buttons to


switch to the “Indica
ator” and
“Alarm__Display” paages
respecctively.

1) Cop py and past the


t Button too the
resppective pagees.
2) In [P
Properties], change
c the text
to “G
Gauge Scree en” and “Alarm
Screen” respecttively.
3) In [E
Events and Actions],
A cha
ange
[PaggeName] to “Indicator” and
“Ala
arm_Display”” respectively y.

12. Last, adjust the sizee and positioon of


each B
Button.

* The “Backgground” page is specified as


s a background
d.
You can co
onfirm the pag
ge when opening the “Contrrol_Panel” pag
ge.

40
4
4-7 C
Creating Data
D Disp
play/Edit Objects

4-7-1 Creating
C Da
ata Displayy Objects
Create on the “Data_D
Display” pag
ge a Data Display objectt.

1. From [Toolbox], select [Stanndard


Conntrols]-[Data Display] and
d drag
and
d drop it to the page.

2. Set “NJ_1_Numm1” in [Expres


ssion]
und
der [Behaviorr].

41
1
4--7-2 Crea
ating Data Edit Objeccts
Crreate on the
e “Data_Disp
play” page a Data Edit object.

1. From [TToolbox], select [Standarrd


Controls]-[Data Ediit] and drag and
a
drop it to the page.

2. In [Properties], set “NJ_1_Num1” in


[Variab
ble].

3. Specifyy the maximu


um and minim mum
values for the Data
a Edit object.
Change [MaximumValue] to 10000.

42
4
4-7-3 Batch
B Modification of Objects by
y the Page
e Explorer
The Page Explorer dis splays the ob bjects includ
ded in the pa ages in the ttree format. It allows
you to editt the propertties including
g the text siz
ze and others that are ccommon to thet objects
which have e been alreaady placed o on the pages s. It is usefu
ul especially when editin
ng the
duplicated objects.

1. Seleect [View]-[P
Page Explore er].
If yo
ou use the to
oolbar, click the
t
icon.

2. Thee [Page Explo


orer] window w
app
pears on the left side of th
he
scre
een.

3. In [P
Page Exploreer], select
“DaataDisplay0” and “DataEd dit0”.

4. Cha
ange [Size] to
o 50 under [F
Font].

43
3
5. Modify the objects’ sizes and adjust
the positions.

44
4-7-4 Creating
C the
e Labels
Create the
e Labels of th
he Data obje
ects.

1. From [Toolbox], select [Stanndard


Conntrols]. Drag and drop twoo Label
obje
ects to the pa
age.

2. In [P
Properties], change
c [Textt
(Deefault)] to [Da
ata Display] and
a
[Data Input] resp pectively.

3. Chaange the fontt settings to [Size:


[
40] and [Style: Bold].
B

4. Adju
ust the sizess and position
ns of
the Label objectts.

45
5
4-8 Cre
eating Ga
auges

4--8-1 Gau
uge Objects
Th
he Gauge objects displaay the digita
al values of variables
v in the
t analog fformat.
Th
he NA seriess provides tw
wo basic gaauge types.
Types Description
n Appearrance
Linear Ga
auge Linearly display
L ys fluctuation off the analog
v
values.
C be placed vertically
Can v or ho
orizontally.

Rotationa
al Gauge D
Displays fluctua
ation of the ana
alog values in a
ro
otational anglee format.

4--8-2 Crea
ating Gaug
ges
Crreate a Gau
uge on the “Indicator” pa
age.

1. From [T
Toolbox], select
[Gaugees]-[Blue Full Gauge] and
d
drag an
nd drop it to the page.

2. In [Properties], set “NJ_1_Num2” in


[Variab
ble] under [Be ehavior].

This coompletes thee settings for the


gauge.
The ticck appearancce can be
change ed in [Properrties].

46
4
4-8-3 Creating
C Sliders
Create a Slider
S for che
ecking the o
operation.

1. From [Toolbox], select [Stan ndard


Conntrols]-[Sliderr] and drag and
a
drop
p it to the page.

2. In [P
Properties], set
s “NJ_1_Num2” in
[Varriable] underr [Behavior].

3. Cha
ange [Updatee Type] to
“Co
ontinuous” un
nder [Behavio
or].

Continuo
ous: the valu
ue changes in
n
accordance withh the movemment of
the slider.
On Release: the valu
ue changes at
a the
time
e when you release
r the slider.
s

4. Acccording to the
e gauge settings,
cha
ange [Maximu umValue] to 100
und
der [Behaviorr].

47
7
4-9 Off--line Testting 2
4--9-1 Off-line Testing 2
Bu
uild the proje
ect and starrt up the sim
mulator.

Operation Ch
[O heck 1]
(1) Click the [Seetting Scree
en] Button to
o switch the page.
(2) When you click
c the Data
a Edit objec
ct, a numeric
c keypad apppears. Spec
cify a
value and clicck the Enterr key.

[O
Operation Chheck 2]
(1) Click the [Gauge Screeen] Button to switch the page.
p
(2) Operate thee Slider and confirm thatt the needle of the Gaugge moves in
n
a
accordance with
w the slideer movemen nt.

48
4
4-10 Creating
g Alarms

4-10-1 Alarm
A Mech
hanism
Just as the
e convention
nal PTs, the NA has the e function to manage alaarms that giv
ve the userss
the warnings of errors and problem ms occurredd in the machines. The N NA’s alarm mechanism
d to combine
is prepared e the followiing two sche
ems depend ding on the eenvironmentt where the
system is established.
e

ging the alarrm list/log on


(1) Manag n the NA sidde (HMI alarms)
In
n the “HMI Alarms”
A sche
eme, the PT T has the ala arm processiing function. Therefore,
a
alarm manag gement by th he controllerr is simple. This
T schemee is often sellected when n
m
multi-vendor support of ccontrollers is
s required.

HMI Alarm Even though controllers are changed by y the user’s


Function specification, it does no t matter if the alarm
a variables
interface for the controollers remain the same.
An errorr detection proggram should be added.

Alarm
Variables

PLC of PLC oof


Error Another Anotheer
Erro
or Error Error
Compaany
Deetection Company
Detection Detectioon
Detecttion PProgram Program Program m
Program

(2) Managiing the alarm


m list/log on the NJ side
e (Troubleshooter)
In
n the “Troub bleshooter” sscheme, thee controller has
h the evennt processing g function,
a the PT only
and o displayss the events. This makes the entire management including
th
he PT simple e, and allow
ws the users to reduce design man-hhours. There efore, this
scheme is us sed for the ssystem in whhich the conffiguration off NJ and NA
A is fixed.

When the controller is changed,


m functions need
all the HMI alarm
to be remade.
HMI Alarm
Troubleshooter
Function

Alarm
Variables

Event Function
PLC of Another
Error Company
Detection Error Dete
ection
ogram
Pro Program

49
9
4--10-2 Cre
eating Alarrm Lists
First, create an
a alarm list.

1. Doublee-click to ope
en [HMI]-[Use
er
Alarmss]-[Group0].

2. Right-cclick on the Edit


E Pane and
d
select ““Add”.

3. Registeer the followiing alarms


respecctively.

<Alarm
m1>
・Namee: Batteryy_Error
ession: NJ_1
・Expre 1_ALM1
・Messaage: Batterry voltage is low.
l
Replacce the batterry.

<Alarm
m2>
・Namee: No_Wo ork
ession: NJ_1
・Expre 1_ALM2
・Messaage: No wo ork exists. Place
a worrk in front of the
t
sensoor.

50
5
4-10-3 Displaying
g the Troub
bleshooter
Perform se
ettings so that the troub leshooter is displayed when confirm
ming errors.

1. While keeping one


o of the specified
alarrms selected
d, open the [E
Events
andd Actions] win
ndow.

2. Perrform the setttings for changing


the page upon confirming
c alarms.
Clicck the cell ind
dicating <Sellect
Eve ent to Add> too the right off
[Eve ents], and seelect
“Acknowledged””.

3. Clicck the cell to the right of


[Acttions], and seelect “ShowP Page”.

4. Clicck the cell to the right of


[Pag geName] and select
“Battery_Error”.

51
1
5. Sim
milarly for the No Work errror,
perfform the setttings so that the
“No
o_Work” page e is displayed when
confiring the errror.

52
5
4-10-4 Creating Alarm
A Obje
ects (Active
e Display Mode)
M
The Alarm objects include the mo
ode in which to display thhe currently raised alarm
ms (Active
Display Moode) and the
e other mod e in which to
o display the
e log (Log D
Display Mode e). First,
create the Active Disp
play Mode Allarm object.

1. Opeen the “Alarm


m_Display” page
and
d drag and drrop to the page from
[Too
olbox] the [U
User Alarms Viewer]
V
obje
ect under [HMMI Controls]..

2. Usee [Properties]] to change text


t
attriibutes and otthers.

4-10-5 Creating Alarm


A Obje
ects (Log Display
D Mod
de)
Create the
e object that displays ala
arm logs.

1. From [Toolbox], select [Userr


Alarrms Viewer] and drag and drop
it to
o the page.

2. Ope en the [Prope


erties] widno
ow and
che
eck the checkkbox of
“HisstoricalMode”.

53
3
4-10-6 Creating a Switch to Cause Alarms
To check operations, create a switch that causes alarms.

1. Place a Momentary Button on the


page.

2. Specify the properties as described


below.

[TextButtonUp(Default)]
Alarm1
[TextButtonDown(Default)]
Alarm1
[Variable]
NJ_1_ALM1

3. Copy and paste the object, and


specify the properties as described
below.

[TextButtonUp(Default)]
Alarm2
[TextButtonDown(Default)]
Alarm2
[Variable]
NJ_1_ALM2

54
4-11 Displaying PDF Files
F

4-11-1 Displaying
g PDF Filess
Perform th
he settings fo
or displaying
g a PDF file when press
sing a Buttonn.

1. Placce a Button object


o on the
e
“Battery_Error” page.

2. In [E
Events and Actions],
A perfform
the settings for displaying
d the
doccument when n clicking the Button.
Seleect “Click”, and
a then
“ShowDocumen nt (Full Screeen)”.

3. Seleect the PDF file to display


y. Click
the button and select “Baattery
Repplacment Pro ocedure.pdf” from
the desktop.

Thiss completes the settings in


[Eveens and Actions].

4. In [P
Properties], change
c
[Texxt(Default)] to
o “Show Man
nual”.

55
5
4-12 D
Displaying
g Videos

4--12-1 Dissplaying Videos


Pe
erform the settings
s for displaying
d vid
deos.

1. Open tthe “No_Worrk” page. Select


[HMI C
Controls]-[Media Player] and
a
drag an
nd drop it to the page.

2. In [Properties], clickk the button


in the ccell to the right of [VideoF
File]
under [[Behavior], anda select
“No_wo ork_L_J.mp4 4” from the
desktop.

3. Change [Stretch] under


[Appea arance] to “UniformToFill””.
The seetting allows you
y to
expand d/reduce the video so as to fit
in the o
object size.
You caan arbitrarily modify the
object ssize.

56
5
5 Checck onn the Actual Unnit
This chaptter describes
s the proceddure to transsfer the proje
ect data of S
Sysmac Stud dio to an NA
A
unit to che
eck the opera
ation.
If you do not
n have any y actual unit,, you can ch
heck the opeeration with tthe integrate
ed
simulation function described in C
Chapter 6.

5-1 C
Creating a Ladder

5-1-1 Creating
C a Ladder
L
Input the la
adder for checking the o
operation.

1. Cha
ange the projject to “NJ_1”.

2. Douuble-click
[Pro
ogramming]-[POU]-[Programs]-[
Program0]-[Secction0].

3. Ente
er the ladderr program sh
hown on
the right.

57
7
5-2 Syn
nchroniza
ation

5--2-1 Synchronizatio
on with NJ
To
o transfer the configurattions and se
ettings as we
ell as the pro
ograms of thhe NJ, synch
hronize
wiith the NJ.

1. Select
[Contro
oller]-[Comm
munications
Setup……].

2. Select “Ethernet co
onnection via
aa
hub”.

3. Enter the IP addresss


(192.1668.250.1) of the controlle
er to
be connected in [Remote IP
Addresss].
Click [E
Ethernet Commmunications
Test] a
and confirm thhat “Test OKK”
appearrs. Then clickk [OK].

4. Click th
he icon to connect to
o NJ
online.

5. Click th
he icon to execute
synchroonization.

6. Cilck [T
Transfer To Controller].
C

7. This co
ompletes the
e settings on the
NJ side
e.

58
5
5-2-2 Synchroniza
S ation with NA
Subsequently, synchro
onize with N
NA to transfe
er the configurations andd settings as
s well as the
e
programs of
o the NA.

1. Swttich the proje


ect to “NA_1””.

2. Sele
ect [HMI]-[Co
ommunicatio
ons
Setu
up…].

3. Sele
ect “Ethernett connection via a
hub
b”.

4. Ente er the IP add


dress of the NA
N to
be cconnected in n [Remote IP
Add dress].
Clicck [Test] and confirm thatt “Test
OK”” appears. Th hen click [OK
K].

5. Clicck the iccon to connec


ct to NA
online.

6. Clicck the iccon to execute


synchronization.

7. Clicck [Transfer To
T Device].

59
9
5-3 Ope
erations

5--3-1 Che
ecking Ope
erations
Ch
heck the operations on each page.

(1) Equipmentt Monitor


The Lamp objec cts light up w
while a STAR
RT Button is
s held down..
The indications of the switch
hes and lam
mps change when turninng ON/OFF the
t
switcches.

2) Setting Sccreen
(2
Whe en you speciify the data input, the va
alue is displa
ayed.

3) Gauge Scrreen
(3
Whe en you move
e the slider, the needle of
o the gauge
e moves in aaccordance with the
slide
er movement.

4) Alarm Scre
(4 een
Presss the Alarm
m1/Alarm2 B uttons to confirm that th
he respectivee Alarms are
e raised.
・Forr Alarm1, the
e Button to sshow the maanual appeaars when thee alarm is co
onfirmed.
Whhen you presss the Buttonn, the PDF file
f that explains how too replace battteries is
displayed.
・Forr Alarm2, a video
v is playyed when the alarm is confirmed.

《Alarm Screen》

《Alarm1》

《Alarm2》

60
6
6 Integgrated Sim
mulation
When you do not have e an actual N
NJ or NA unnit, you can confirm
c the NJ program
ms and NA
operationss using the in
ntegrated sim
mulation fun
nction as described beloow.

1. Clicck [Simulation
n]-[Run with
Con ntroller Simulator…].

2. Seleect the contrroller to use in the


inte
egrated simullation, and cllick
[OKK].

3. Thee Equipment Monitor Scre een


app
pears. Confirmm that when you
presss the [STAR
RT] button the
Lam
mps light up.

61
1
7 Reference Materials
7-1 Correspondence Table of Data Types between the NJ-series
Controllers and the PTs

7-1-1 Data Types


Following is the correspondence of data types between the NJ-series controllers and the
PTs.
Data Types of the NJ-series Data Types of the PTs
Controllers
BOOL Boolean
INT Short
DINT Integer
LINT Long
UINT UShort
WORD
UDINT UInteger
DWORD
ULINT Ulong
LWORD
REAL Single
LREAL Double
STRING String
SINT SByte
USINT Byte
BYTE
TIME TimeSpan
DATE Date
DATE_AND_TIME
TIME_OF_DAY

62
7-2 NA Series Lineup

7-2-1 NA Series Lineup


The NA series offers the lineup of 7-inch, 9-inch, 12-inch and 15-inch screen sizes.
The model differs depending on the screen size.

Models NA5-15W□□□□ NA5-12W□□□□ NA5-9W□□□□ NA5-7W□□□□


Screen Size 15 inches 12 inches 9 inches 7 inches

63
Revision History
Revision code Date Revised content
01 September 2015 Original production

64
OMRON AUTOMATION AND SAFETY • THE AMERICAS HEADQUARTERS • Chicago, IL USA • 847.843.7900 • 800.556.6766 • www.omron247.com

OMRON CANADA, INC. • HEAD OFFICE OMRON ARGENTINA • SALES OFFICE


Toronto, ON, Canada • 416.286.6465 • 866.986.6766 • www.omron247.com Cono Sur • 54.11.4783.5300

OMRON ELECTRONICS DE MEXICO • HEAD OFFICE OMRON CHILE • SALES OFFICE


México DF • 52.55.59.01.43.00 • 01-800-226-6766 • mela@omron.com Santiago • 56.9.9917.3920

OMRON ELECTRONICS DE MEXICO • SALES OFFICE OTHER OMRON LATIN AMERICA SALES
Apodaca, N.L. • 52.81.11.56.99.20 • 01-800-226-6766 • mela@omron.com 54.11.4783.5300

OMRON ELETRÔNICA DO BRASIL LTDA • HEAD OFFICE


São Paulo, SP, Brasil • 55.11.2101.6300 • www.omron.com.br

OMRON EUROPE B.V. • Wegalaan 67-69, NL-2132 JD, Hoofddorp, The Netherlands. • +31 (0) 23 568 13 00 • www.industrial.omron.eu

Authorized Distributor: Automation Control Systems


• Machine Automation Controllers (MAC) • Programmable Controllers (PLC)
• Operator interfaces (HMI) • Distributed I/O • Software
Drives & Motion Controls
• Servo & AC Drives • Motion Controllers & Encoders
Temperature & Process Controllers
• Single and Multi-loop Controllers
Sensors & Vision
• Proximity Sensors • Photoelectric Sensors • Fiber-Optic Sensors
• Amplified Photomicrosensors • Measurement Sensors
• Ultrasonic Sensors • Vision Sensors
Industrial Components
• RFID/Code Readers • Relays • Pushbuttons & Indicators
• Limit and Basic Switches • Timers • Counters • Metering Devices
• Power Supplies
Safety
• Laser Scanners • Safety Mats • Edges and Bumpers • Programmable Safety
Controllers • Light Curtains • Safety Relays • Safety Interlock Switches

V421-E1-01 09/15 Note: Specifications are subject to change. © 2015 Omron Electronics LLC Printed in U.S.A.

Printed on recycled paper.

S-ar putea să vă placă și