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 2 3 4 Introduction .................................................................................................... 8 1-1 Overview .................................................................................................................. 8 1-2 System Configuration ............................................................................................... 9 1-3 Procedure to Create Pages .................................................................................... 10 Project Creation ........................................................................................... 11 2-1 Creating Projects .................................................................................................... 11 2-2 Starting up Sysmac Studio ..................................................................................... 12 2-3 Registering Global Variables .................................................................................. 14 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 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 5 4-9 Off-line Testing 2 ....................................................................................................48 4-10 Creating Alarms ......................................................................................................49 4-11 Displaying PDF Files ..............................................................................................55 4-12 Displaying Videos ...................................................................................................56 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. SBCA-362 SBSA-545 SBSA-546 SBSA-547 SBSA-548 Model SYSMAC-SE2□□□ NA5-15W□□□□ NA5-12W□□□□ NA5-9W□□□□ NA5-7W□□□□ NA5-15W□□□□ NA5-12W□□□□ NA5-9W□□□□ Manual Name Sysmac Studio Version 1 Operation Manual NA-series Programmable Terminal Hardware User’s Manual NA-series Programmable Terminal Software User’s Manual NA5-7W□□□□ NA5-15W□□□□ NA5-12W□□□□ NA5-9W□□□□ NA-series Programmable Terminal Device Connection NA5-7W□□□□ NA5-15W□□□□ NA5-12W□□□□ NA5-9W□□□□ NA-series Programmable Terminal Startup Guide User’s Manual 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 guide e 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 ws the config guration use ed in this guide. The figure below show net is used for f commun ications betw ween the NJ J series andd NA series, as well as The Ethern 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 16 5. Change the NA name for easy identification. Right-click the NA icon and select “Rename”. 6. Change the name to “NA_1”. 3-2 Sysmac Studio Window Components for Creating NA Pages 3-2-1 Sysmac Studio Window Components for Creating NA Pages ③ ④ ① ② ① ② Name Mutiview Explorer Edit Pane ③ Toolbar ④ Toolbox Description Used to select items to set or pages to create. Used to perform configuration settings or to create pages. The frequently-used functions such as “Build” or “Synchronization” are collected here to facilitate execution. 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 an n NJ exists within w the sa ame project in which an NA exists, aall of the NJ J’s global variables will w be autom matically refl ected in the e NA’s variab ble mappingg table. 2. You can n select the variables v req quired to cre eate the pag ges 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 I/O Map Page Globall Variable es Variablee Mappingg 1 Hardware e Global G Variables 2 on is called “variable ma apping”, and d the names s of the NA’ss global varia ables The functio allocated at a this time are a specified d as “NJ con ntroller name e_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 Conttroller name: NJ J_1 Variable: startt Conntroller name: NJ_2 N Variable: start Co ontroller name: NJ_3 Preca autions for Correct C Use e If yo ou change th he 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 d th he procedure e to create basic b pages. Th 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) 22 2 Troubleshoote T er 2(Video D isplay) 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 Main pages Popup pagess Background pages - Description n The basic pages displayed during NA operatio on. The pages that ca an be overlaye ed on another page. p The pages that ca an be specified d as backgroun nd to erlay the main pages. ove No ot supported in NA NS Equivalents Basicc screens Pop--up screens Sheeets Fram mes * The Backgrou und pages are e to be created d 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 [Pag ges] under [H HMI], you ca an see thatt a page has already bee en crea ated. 2. Right-click on [P Pages] underr [HMI] and d select [Add]]-[Page]. Rep peat the sam me 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 pa arts laid out on pages are called “obbjects”. s the functional ob bjects placed d on pages are a all defineed only by “Properties”. In the NS series, 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 w window for setting. s ple, if you sp pecify the ap ppearance or o variable off a switch, yo you use the “Properties” “ For examp window. You Y use “Eve ents and Acttions” to perrform settings for switch ing pages. NS series NA series Properties Properties Eventts and Actions Animations 4-2-2 Switches S There are 5 switch objjects as desscribed below w. Use “Mom mentary Buttton” for ON//OFF ages. momentaryy switches, or “Button” tto switch pa Button ty ypes Button Momentary Button B Reset Button n Set Button Toggle Butto on Functions A simple s button w with no particular action. Se ets the bit only w while it is held down. Se ets the bit to Fa alse when press sed. Se ets the bit to Tru ue when pressed. Sw witches the bit b between True and a 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 [Font] Family: Segoe UI Size: 20 Style: Bold 28 If you click the arrowhead, you can edit the font family, size, and style. 5. After placing the ob bject on the page, yyou can chan nge its size by b draggin ng the handle e. You ca an move it byy dragging its self. 6. You ca an also chang ge the shape e or color w with [Propertie es]. [Chang ging shape] [Changing [ color] Addittional Inform mation Whe en 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] STO OP [TextOn] RUN N [Font] Family:Segoe UI Size:20 Style e:Bold 4. 30 3 Adjust the size and d position just the same a as the Button n. You can change e the color orr shape from m [Properties]. 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 Yo ou can impo ort image file es to be use ed for the designs of the objects succh as buttons or lamps. This subsection describes the e 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 change e [Design] to “Image” und der [Appea arance] in [Prroperties]. 3. Click th he button n in [Image eFileButtonUp] under [Appea arance]. 4. Open tthe folder loccated at the followin ng path. C:¥Pro ogram Files¥O OMRON¥CX X-One¥CX-De esig ner¥inttaparts¥BMP Pfiles¥LampS Swit ch-Recctangle Select LSW_21.BM MP and click “Open””. 32 3 Additional Informa ation d the bmp b file imag ges on the Explorer E as shown s in Steep 4, you must perform To display the following f setttings. 1) Select S [STA ART]-[Compu uter] and right-click on itt to select [P Properties]. 2) Click C [Advan nced system m settings] to o open the [S System Propperties] dialo og box. 3) Click C the [Ad dvanced] 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. Sim milarly, set the e “LSW_20.B BMP” file in [ImageFile eButtonDown n]. 6. You u can use the e NS image files f for the Lamp as we ell. Sele ect the Lamp p object and change [Design] to “Ima age” in [Prope erties]. 7. Spe ecify 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 Ima ageFileOff: CIR_11.BMP C Inag geFileOn: 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 [Standa ard Controls]-[Label] and d 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(D Default)] Equipment Monittor [Font] Family:Segoe UI Size:50 Style e:Bold [Horizo ontalAlignme ent] Centter 3. Subseq quently, placce the Label object o on the other pages. Copy th he 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 respecctively to the “Indicator” and “Alarm_ _Display” pa ages and then modify the text resp pectively. 《Indiccator page》 《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 CallSubroutine ClearUserAlarmLog ClosePage SetVariable IncreaseVarible DecreaseVariable DisableTouchScreenInput EnableTouchScreenInput EjectSDMemory Logout Login ResetVariable SaveUserAlarmLogToFile SetBrightness SetLanguage ShowDocument (FullScreen) ShowDocument (Window) ShowPage ShowPreviousPage ShowSystemMenu StartDataLogging StopDataLogging Description Calls scripts (Visual Basic). Clears the alarm logs. Closes the specified page. Sets the variable to a specified value. Increases the variable to a specified quantity. Decreases the variable by specifying the quantity. Disables the touch screen. Enables the touch screen. Ejects the SD Memory card. Makes the current user log out. Displays the log-in screen. Sets the Boolean variable to False. Saves the alarm log in a file. Changes the screen brightness. Changes the current language. Displays a document full-screen. Displays a document to fit in the window. Displays a new page. Displays the previous page. Displays the system menu. Starts data logging. 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 switche ed when the Button is pressed. Perform m settings in [Events and d Actionss]. Select [View]-[Even nts and Actio ons]. If you u use the toolb bar, click the icon. The [Evvents and Acctions] windo ow 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 th he 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 you u 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 an n 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 “ShowPag ge”. 6. Click th he cell to the right of [PageN Name] and se elect “Contro ol_Panel”. This co ompletes the e settings for switching pages. 7. Next, sspecify the prroperties. Click th he [Propertie es] tab and perform m the settings as descried d below. [Text(D Default)] Equipment Monittor [Font] Family: Segoe UI Size: 20 Style e: Bold 8. Similarrly, create the e Button to switch to the “Data_ _Display” pa age. Copy th he previouslyy created Bu utton for swittching pagess, and paste it to the “Da ata_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” pa ages respecctively. 1) Cop py and past the t Button to o the resp pective page es. 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 [Pag geName] to “Indicator” and “Ala arm_Display”” respectively y. 12. Last, adjust the sizee and positioon of each B Button. * The “Backg ground” 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 [Stan ndard Con ntrols]-[Data Display] and d drag and d drop it to the page. 2. Set “NJ_1_Num m1” 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 [T Toolbox], 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 g the text siz ze and others that are ccommon to the t objects you to editt the propertties including which have e been alrea ady placed o on the pages s. It is usefu ul especially when editin ng the duplicated objects. 1. Sele ect [View]-[P Page Explore er]. If yo ou use the to oolbar, click the t icon. 2. The e [Page Explo orer] window w app pears on the left side of th he scre een. 3. In [P Page Explore er], select “Da ataDisplay0” and “DataEd dit0”. 4. Cha ange [Size] to o 50 under [F Font]. 43 3 5. 44 Modify the objects’ sizes and adjust the positions. 4-7-4 Creating C the e Labels Create the e Labels of th he Data obje ects. 1. From [Toolbox], select [Stan ndard Con ntrols]. Drag and drop two o Label obje ects to the pa age. 2. In [P Properties], change c [Textt (De efault)] to [Da ata Display] and a [Data Input] resp pectively. 3. Cha ange 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 displa ay the digita al values of variables v in the t analog fformat. Th he NA seriess provides tw wo basic ga auge types. Types Description n 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 angle e format. 4--8-2 Crea ating Gaug ges Crreate a Gau uge on the “Indicator” pa age. 1. From [T Toolbox], select [Gauge es]-[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 co ompletes the e settings for the gauge. The ticck appearancce can be change ed in [Properrties]. 46 4 Appearrance 4-8-3 Creating C Sliders Create a Slider S for che ecking the o operation. 1. From [Toolbox], select [Stan ndard Con ntrols]-[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 [Update e Type] to “Co ontinuous” un nder [Behavio or]. Continuo ous: the valu ue changes in n accordance with h the movem ment 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 heck 1] [O (1) Click the [Se etting Scree en] Button to o switch the page. c the Data a Edit objec ct, a numeric c keypad apppears. Spec cify a (2) When you click ck the Enterr key. value and clic [O Operation Ch heck 2] (1) Click the [Gauge Scree en] Button to switch the page. p e Slider and confirm thatt the needle of the Gaugge moves in n (2) Operate the a accordance with w the slide er 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 occurred d in the machines. The N NA’s alarm mechanism d to combine e the followiing two sche ems depend ding on the eenvironmentt where the is prepared system is established. e ging the alarrm list/log on n the NA sid de (HMI alarms) (1) Manag 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. Even though controllers are changed by y the user’s a variables specification, it does no t matter if the alarm interface for the controollers remain the same. An errorr detection proggram should be added. HMI Alarm Function Alarm Variables Erro or Detecttion Program Error Deetection PProgram PLC of Another Error Company Detection Program PLC oof Anotheer Error Compaany Detectioon Program m (2) Managiing the alarm m list/log on the NJ side e (Troubleshooter) In n the “Troub bleshooter” sscheme, the e 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 wh hich the conffiguration off NJ and NA A is fixed. When the controller is changed, m functions need all the HMI alarm to be remade. Troubleshooter HMI Alarm Function Alarm Variables Event Function Error Detection ogram Pro PLC of Another Company Error Dete ection Program 49 9 4--10-2 Cre eating Alarrm Lists First, create an a alarm list. 1. Double e-click to ope en [HMI]-[Use er Alarmss]-[Group0]. 2. Right-cclick on the Edit E Pane and d select ““Add”. 3. Registe er the followiing alarms respecctively. <Alarm m1> ・Name e: Batteryy_Error ・Expre ession: NJ_1 1_ALM1 ・Messa age: Batterry voltage is low. l Replacce the batterry. <Alarm m2> ・Name e: No_Wo ork ・Expre ession: NJ_1 1_ALM2 ・Messa age: No wo ork exists. Place a worrk in front of the t senso or. 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 and d 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> to o the right off [Eve ents], and se elect “Acknowledged””. 3. Clicck the cell to the right of [Acttions], and se elect “ShowP Page”. 4. Clicck the cell to the right of [Pag geName] and select “Battery_Error”. 51 1 5. 52 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. 4-10-4 Creating Alarm A Obje ects (Active e Display Mode) M The Alarm objects include the mo ode in which to display th he currently raised alarm ms (Active ode) and the e other mod e in which to o display the e log (Log D Display Mode e). First, Display Mo create the Active Disp play Mode Allarm object. 1. Ope en 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 [HM MI Controls].. 2. Use e [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. Sele ect “Click”, and a then “ShowDocumen nt (Full Scree en)”. 3. Sele ect the PDF file to display y. Click the button and select “Ba attery Rep placment Pro ocedure.pdf” from the desktop. Thiss completes the settings in [Eve ens 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], and a select “No_wo ork_L_J.mp4 4” from the desktop. 3. Change [Stretch] under [Appea arance] to “UniformToFill””. The se etting allows you y to expand d/reduce the video so as to fit in the o object size. You ca an arbitrarily modify the object ssize. 56 5 5 Checck onn the Actual Unnit s the proced dure to trans sfer the proje ect data of S Sysmac Stud dio to an NA A This chaptter describes unit to che eck the opera ation. If you do not n have any y actual unit,, you can ch heck the ope eration 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. Dou uble-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.16 68.250.1) of the controlle er to be connected in [Remote IP Addresss]. Click [E Ethernet Com mmunications Test] a and confirm th hat “Test OK K” appearrs. Then clickk [OK]. 4. Click th he online. 5. Click th he icon to execute synchro onization. 6. Cilck [T Transfer To Controller]. C 7. This co ompletes the e settings on the NJ side e. 58 5 icon to connect to o NJ 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 o the NA. programs of 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 online. 6. Clicck the iccon to execute synchronization. 7. Clicck [Transfer To T Device]. iccon to connec ct to NA 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.. hes and lam mps change when turninng ON/OFF the t The indications of the switch 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 een (4 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 ma anual appea ars when thee alarm is co onfirmed. Wh hen you pres ss the Button n, the PDF file f that explains how too replace battteries is displayed. v is playyed when the alarm is confirmed. ・Forr Alarm2, a video 《Alarm Screen》 《Alarm1》 《 《Alarm2》 60 6 6 Integgrated Sim mulation e an actual N NJ or NA un nit, you can confirm c the NJ program ms and NA When you do not have ntegrated sim mulation fun nction as described beloow. operationss using the in 1. Clicck [Simulation n]-[Run with Con ntroller Simulator…]. 2. Sele ect the contrroller to use in the inte egrated simullation, and cllick [OK K]. 3. The e Equipment Monitor Scre een app pears. Confirm m 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 Controllers BOOL INT DINT LINT UINT WORD UDINT DWORD ULINT LWORD REAL LREAL STRING SINT USINT BYTE TIME DATE DATE_AND_TIME TIME_OF_DAY 62 Data Types of the PTs Boolean Short Integer Long UShort UInteger Ulong Single Double String SByte Byte TimeSpan Date 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 Screen Size NA5-15W□□□□ 15 inches NA5-12W□□□□ 12 inches NA5-9W□□□□ 9 inches NA5-7W□□□□ 7 inches 63 Revision History Revision code 01 64 Date September 2015 Revised content Original production OMRON AUTOMATION AND SAFETY • THE AMERICAS HEADQUARTERS • Chicago, IL USA • 847.843.7900 • 800.556.6766 • www.omron247.com OMRON CANADA, INC. • HEAD OFFICE Toronto, ON, Canada • 416.286.6465 • 866.986.6766 • www.omron247.com OMRON ARGENTINA • SALES OFFICE Cono Sur • 54.11.4783.5300 OMRON ELECTRONICS DE MEXICO • HEAD OFFICE México DF • 52.55.59.01.43.00 • 01-800-226-6766 • mela@omron.com OMRON CHILE • SALES OFFICE Santiago • 56.9.9917.3920 OMRON ELECTRONICS DE MEXICO • SALES OFFICE Apodaca, N.L. • 52.81.11.56.99.20 • 01-800-226-6766 • mela@omron.com OTHER OMRON LATIN AMERICA SALES 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. Printed on recycled paper. © 2015 Omron Electronics LLC Printed in U.S.A.