+ All Categories
Home > Documents > NC Designer2 Instruction Manual...Introduction This instruction manual describes how to use NC...

NC Designer2 Instruction Manual...Introduction This instruction manual describes how to use NC...

Date post: 30-Jan-2021
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
894
Transcript
  • Introduction

    This instruction manual describes how to use NC Designer2. Incorrect handling may lead to unforeseen accidents, so make sure to read this instruction manual thoroughly before operation to ensure correct usage. NC Designer2 supports the following NC series. Some of the functions are not adapted to the NC Designer2, depending on its series.

    Appropriate NC M800W/M800S/M80 series

    M700VW/M700VS/M70V/E70 series

    Notes on Reading This Manual

    (1) For the specifications of individual machine tools, refer to the manuals issued by the respective machine tool builders. The "restrictions" and "available functions" described by the machine tool builders have precedence over this manual.

    (2) This manual describes as many special operations as possible, but it should be kept in mind that operations not mentioned in this manual cannot be performed.

  • Precautions for Safety

    Always read the specifications issued by the machine tool builder, this manual, related manuals and attached documents before installation, operation, programming, maintenance or inspection to ensure correct use. Understand this numerical controller, safety items and cautions before using the unit. This manual ranks the safety precautions into "DANGER", "WARNING" and "CAUTION".

    DANGER When the user may be subject to imminent fatalities or major injuries if handling is mistaken.

    WARNING When the user may be subject to fatalities or major injuries if handling is mistaken.

    CAUTION When the user may be subject to injuries or when property damage may occur if handling is mistaken.

    The following sings indicate prohibition and compulsory.

    This sign indicates prohibited behavior (must not do).

    For example, indicates "Keep fire away".

    This sign indicated a thing that is pompously (must do).

    For example, indicates "it must be grounded". The meaning of each pictorial sing is as follows.

    CAUTION

    CAUTION

    rotated object

    CAUTION

    HOT

    Danger

    Electric shock risk

    Danger

    explosive

    Prohibited

    Disassembly

    is prohibited

    KEEP FIRE

    AWAY

    General

    instruction

    Earth ground

  • Note that even items ranked as " CAUTION", may lead to major results depending on the situation. In any case, important information that must always be observed is described.

    DANGER Not applicable in this manual.

    WARNING Not applicable in this manual.

    CAUTION 1. Items related to product and manual

    If the descriptions relating to the "restrictions" and "allowable conditions" conflict between this manual and the machine tool builder's instruction manual‚ the latter has priority over the former.

    The operations to which no reference is made in this manual should be considered impossible. This manual is compiled on the assumption that your machine is provided with all optional

    functions. Confirm the functions available for your machine before proceeding to operation by referring to the specification issued by the machine tool builder.

    In some NC system versions‚ there may be cases that different pictures appear on the screen‚ the machine operates in a different way on some function is not activated.

  • Trademarks MELDAS, MELSEC, EZSocket, EZMotion, iQ Platform, MELSOFT, GOT, CC-Link, CC-Link/LT and CC-Link

    IE are either trademarks or registered trademarks of Mitsubishi Electric Corporation in Japan and/or other

    countries.

    Ethernet is a registered trademark of Xerox Corporation in the United States and/or other countries.

    Microsoft and Windows are either trademarks or registered trademarks of Microsoft Corporation in the United

    States and/or other countries.

    CompactFlash and CF are either trademarks or registered trademarks of SanDisk Corporation in the United

    States and/or other countries.

    SD Logos are trademarks or registered trademarks of SD-3C, LLC in the United States, other countries or

    both.

    Wind River Systems, Inc., VxWorks and Tornado are either trademarks or registered trademarks of Wind

    River Systems, Inc. in the United States and/or other countries.

    Other company and product names that appear in this manual are trademarks or registered trademarks of the

    respective companies.

  • CONTENTS

    1. Outline ............................................................................................................................................................................. 1

    1.1 What Is NC Designer2? ......................................................................................................................................... 1 1.1.1 GUI Design Tool ........................................................................................................................................ 2 1.1.2 What Is the GUI Library? ........................................................................................................................... 2 1.1.3 Interpreter Method and Compilation Method .............................................................................................. 2

    2. Features and Specifications of NC Designer2 ................................................................................................................. 3 2.1 Features of NC Designer2 ..................................................................................................................................... 3 2.2 Specifications of NC Designer2 ............................................................................................................................. 4

    2.2.1 Screen Elements of NC Designer2 ............................................................................................................ 4 2.2.2 What Is "Project"? ...................................................................................................................................... 5 2.2.3 Operating Environment of NC Designer2 ................................................................................................... 6 2.2.4 Specification List ........................................................................................................................................ 6

    2.3 Menu List ............................................................................................................................................................... 7 2.3.1 File ............................................................................................................................................................. 7 2.3.2 Editing ........................................................................................................................................................ 7 2.3.3 View ........................................................................................................................................................... 8 2.3.4 Control ....................................................................................................................................................... 9 2.3.5 Figure ....................................................................................................................................................... 10 2.3.6 Setting ...................................................................................................................................................... 10 2.3.7 Layout ...................................................................................................................................................... 10 2.3.8 Tool .......................................................................................................................................................... 11 2.3.9 Window .................................................................................................................................................... 11 2.3.10 Help ....................................................................................................................................................... 11

    2.4 Flow of Development Using NC Designer2 ......................................................................................................... 12 3. Startup and Termination of NC Designer2 ..................................................................................................................... 13

    3.1 Starting NC Designer2 ........................................................................................................................................ 13 3.2 Exiting From NC Designer2 ................................................................................................................................. 13 3.3 User Interface ...................................................................................................................................................... 14

    3.3.1 Function of Each Part of Basic Screen .................................................................................................... 14 3.4 Installing NC Designer2 ....................................................................................................................................... 14

    4. Creating a Project .......................................................................................................................................................... 15 4.1 Creating a New Project ....................................................................................................................................... 15 4.2 Entering Project Properties ................................................................................................................................. 17 4.3 Saving the Project ............................................................................................................................................... 18 4.4 Saving the Project as ... ...................................................................................................................................... 18 4.5 Opening a Project................................................................................................................................................ 19 4.6 Opening a Recently Used Project ....................................................................................................................... 19

    5. Creating and Saving the Page ....................................................................................................................................... 20 5.1 What Is Page? ..................................................................................................................................................... 20 5.2 Creating a New Panel ......................................................................................................................................... 20 5.3 Creating a New Window ...................................................................................................................................... 20 5.4 Entering Panel Properties ................................................................................................................................... 21 5.5 Entering Window Properties ................................................................................................................................ 22 5.6 Saving the Panel/Window ................................................................................................................................... 23 5.7 Save All ............................................................................................................................................................... 23 5.8 Opening a Panel/Window .................................................................................................................................... 24 5.9 Closing the Panel/Window .................................................................................................................................. 24 5.10 Switching the Editing Window ........................................................................................................................... 25

    5.10.1 Previous Screen .................................................................................................................................... 25 5.10.2 Next Screen ........................................................................................................................................... 25 5.10.3 Cascade ................................................................................................................................................. 25 5.10.4 Tile ......................................................................................................................................................... 26 5.10.5 Arrange Icons ........................................................................................................................................ 26 5.10.6 Switching Locale .................................................................................................................................... 26 5.10.7 Zoom ...................................................................................................................................................... 27 5.10.8 Refresh .................................................................................................................................................. 27 5.10.9 Changing the Theme Color .................................................................................................................... 28

    5.11 Creating View Frame ......................................................................................................................................... 28 5.11.1 Switching the View Frame ..................................................................................................................... 30

    5.12 Importing a Page ............................................................................................................................................... 31 5.12.1 Operation Screen ................................................................................................................................... 32

    5.12.1.1 Page Import Dialog ..................................................................................................................... 32 5.12.1.2 Resource Data Name Conversion Table Dialog ......................................................................... 34

  • 5.12.1.3 Message Log .............................................................................................................................. 40 5.12.2 Flow of Import Operation ....................................................................................................................... 41 5.12.3 Selecting the Import Source/Destination ................................................................................................ 43 5.12.4 Deleting a Page in the Import Source .................................................................................................... 45 5.12.5 Changing a Resource Data Name ......................................................................................................... 46 5.12.6 Restrictions ............................................................................................................................................ 47

    6. Registering the Resource .............................................................................................................................................. 48 6.1 Resource ............................................................................................................................................................. 48 6.2 Resource Tree .................................................................................................................................................... 48 6.3 Locale .................................................................................................................................................................. 49

    6.3.1 Creating a New Locale ............................................................................................................................. 49 6.3.2 Deleting a Locale ..................................................................................................................................... 49 6.3.3 Locale Setup ............................................................................................................................................ 50 6.3.4 Switching the Locale ................................................................................................................................ 50

    6.4 Character Sequence Resource ........................................................................................................................... 51 6.4.1 Creating a New Character String Resource ............................................................................................. 51 6.4.2 Editing or Creating Character String Resource ........................................................................................ 52 6.4.3 Replacing the Character String Resource ................................................................................................ 52 6.4.4 Deleting Character String Resource ........................................................................................................ 52 6.4.5 Importing or Exporting Character String Resource .................................................................................. 53

    6.5 Font Resource ..................................................................................................................................................... 57 6.5.1 Creating a New Font Resource ................................................................................................................ 57 6.5.2 Deleting Font Resource ........................................................................................................................... 57 6.5.3 Specifying Font Resource ........................................................................................................................ 57

    6.6 Image Resource .................................................................................................................................................. 59 6.6.1 Creating a New Image Resource ............................................................................................................. 59 6.6.2 Deleting an Image Resource ................................................................................................................... 59 6.6.3 Specifying an Image File .......................................................................................................................... 59

    6.7 Solid Frame Resource ......................................................................................................................................... 60 6.7.1 Creating a New Solid Frame Resource .................................................................................................... 60 6.7.2 Deleting a Solid Frame Resource ............................................................................................................ 60 6.7.3 Specifying a Solid Frame File .................................................................................................................. 61

    6.8 Filling Pattern Resource ...................................................................................................................................... 62 6.8.1 Editing the Filling Pattern ......................................................................................................................... 62

    6.9 Line Pattern Resource ......................................................................................................................................... 63 6.9.1 Editing the Line Pattern ............................................................................................................................ 63

    6.10 File Name Resource .......................................................................................................................................... 64 6.10.1 Creating a New File Name Resource ..................................................................................................... 64 6.10.2 Deleting the File Name Resource .......................................................................................................... 64 6.10.3 Specifying the File Name Resource ....................................................................................................... 64

    7. Creating Controls ........................................................................................................................................................... 65 7.1 Common Functions of Controls ........................................................................................................................... 65

    7.1.1 Control Name ........................................................................................................................................... 65 7.1.2 Position/Size ............................................................................................................................................ 66 7.1.3 Color/Pattern ............................................................................................................................................ 67 7.1.4 Image ....................................................................................................................................................... 67 7.1.5 Character String ....................................................................................................................................... 67 7.1.6 Character Attribute ................................................................................................................................... 68 7.1.7 Scrolling Caption Character String ........................................................................................................... 69 7.1.8 Blink ......................................................................................................................................................... 70 7.1.9 Solid Frame ............................................................................................................................................. 71 7.1.10 Callback Function .................................................................................................................................. 71 7.1.11 Event List Dialog Box ............................................................................................................................. 72 7.1.12 Switch Screen Dialog Box ...................................................................................................................... 73 7.1.13 Show/Hide ............................................................................................................................................. 73 7.1.14 Input Permission .................................................................................................................................... 73

    7.2 Standard Control ................................................................................................................................................. 74 7.2.1 Basic Control Object (GCBasicControl) ................................................................................................... 74

    7.2.1.1 Property Settings .......................................................................................................................... 74 7.2.2 Button Object (GCButton) ........................................................................................................................ 75

    7.2.2.1 Property Settings .......................................................................................................................... 75 7.2.3 Text Box Object (GCTextBox) ................................................................................................................. 78

    7.2.3.1 Property Settings .......................................................................................................................... 78 7.2.4 Label Object (GCLabel) ........................................................................................................................... 81

    7.2.4.1 Property Settings .......................................................................................................................... 81 7.2.5 List Object (GCList).................................................................................................................................. 82

    7.2.5.1 Property Settings .......................................................................................................................... 82 7.2.6 Picture Object (GCPicture) ...................................................................................................................... 84

  • 7.2.6.1 Property Settings .......................................................................................................................... 84 7.2.7 Check Box Object (GCCheckBox) ........................................................................................................... 86

    7.2.7.1 Property Settings .......................................................................................................................... 86 7.2.8 Radio Button Object (GCRadioButton) .................................................................................................... 88

    7.2.8.1 Property Settings .......................................................................................................................... 88 7.2.9 Progress Bar Object (GCProgressBar) .................................................................................................... 90

    7.2.9.1 Property Settings .......................................................................................................................... 90 7.2.10 HTML Browser Object (GCHtmlBrowser) .............................................................................................. 92

    7.2.10.1 Property Settings ........................................................................................................................ 92 7.2.11 Scroll Bar Object (GCScrollBarEx) ......................................................................................................... 95

    7.2.11.1 Property Settings ........................................................................................................................ 95 7.2.12 Edit Control Object (GCEdit) .................................................................................................................. 98

    7.2.12.1 Property Settings ........................................................................................................................ 98 7.2.13 Table Object (GNCTable) .................................................................................................................... 101

    7.2.13.1 Property Settings ...................................................................................................................... 101 7.2.13.2 Compliments ............................................................................................................................ 104

    7.2.14 Input Box Object(GInputBox) ............................................................................................................... 108 7.2.14.1 Property Settings ...................................................................................................................... 108 7.2.14.2 Compliments ............................................................................................................................ 111 7.2.14.3 Restrictions ............................................................................................................................... 117

    7.2.15 Ten-key object (GSoftKey) ................................................................................................................... 118 7.2.15.1 Property Settings ...................................................................................................................... 118 7.2.15.2 Compliments ............................................................................................................................ 122 7.2.15.3 Restrictions ............................................................................................................................... 134

    7.3 NC Control Object ............................................................................................................................................. 135 7.3.1 Counter (GNXCounter); Counter Display Part ....................................................................................... 135

    7.3.1.1 Property Settings ........................................................................................................................ 135 7.3.1.2 Complements ............................................................................................................................. 138

    7.3.2 CycleTime (GNXCycleTime); Cycle Time Display Part .......................................................................... 139 7.3.2.1 Property Settings ........................................................................................................................ 139 7.3.2.2 Complements ............................................................................................................................. 140

    7.3.3 Feedrate (GNXFeedrate); F Display Part ............................................................................................... 141 7.3.3.1 Property Settings ........................................................................................................................ 141 7.3.3.2 Complements ............................................................................................................................. 142

    7.3.4 GModal M (GNXGModal); M System Modal Display Part ...................................................................... 143 7.3.4.1 Property Settings ........................................................................................................................ 143 7.3.4.2 Complements ............................................................................................................................. 144

    7.3.5 GModal L (GNXGModal_L); L System Modal Display Part .................................................................... 145 7.3.5.1 Property Settings ........................................................................................................................ 145 7.3.5.2 Complements ............................................................................................................................. 146

    7.3.6 GModal Simple (GNXGModalSimple); Simple Modal Display Part ........................................................ 147 7.3.6.1 Property Settings ........................................................................................................................ 147 7.3.6.2 Complements ............................................................................................................................. 148

    7.3.7 LoadMeter (GNXLoadMeter); Load Meter Display Part ......................................................................... 149 7.3.7.1 Property Settings ........................................................................................................................ 149 7.3.7.2 Complements ............................................................................................................................. 150

    7.3.8 MSTB (GNXMSTB); MSTB display part ................................................................................................. 151 7.3.8.1 Property Settings ........................................................................................................................ 151 7.3.8.2 Complements ............................................................................................................................. 153

    7.3.9 ONB (GNONB); ONB Display Part ........................................................................................................ 154 7.3.9.1 Property Settings ........................................................................................................................ 154 7.3.9.2 Complements ............................................................................................................................. 155

    7.3.10 ProgramBuffer (GNXPrgBuff); Program Buffer Display Part ................................................................ 156 7.3.10.1 Property Settings ...................................................................................................................... 156 7.3.10.2 Complements ........................................................................................................................... 157

    7.3.11 SPCommand (GNXSPCommand); S Display Part .............................................................................. 158 7.3.11.1 Property Settings ...................................................................................................................... 158 7.3.11.2 Complements ........................................................................................................................... 159

    7.3.12 PLC Button Object (GNCPLCButton) ................................................................................................... 160 7.3.12.1 Property Settings ...................................................................................................................... 160 7.3.12.2 Complements ........................................................................................................................... 164

    7.3.13 PLC Text Box Object (GNCPLCTextBox) ............................................................................................ 169 7.3.13.1 Property Settings ...................................................................................................................... 169 7.3.13.2 Complements ........................................................................................................................... 171

    7.3.14 NC Data Textbox (GNCDataTextBox) ................................................................................................. 175 7.3.14.1 Property Settings ...................................................................................................................... 175 7.3.14.2 Complements ........................................................................................................................... 178

    7.3.15 PLC extension button (GNCPLCExButton) .......................................................................................... 182

  • 7.3.15.1 Property Settings ...................................................................................................................... 182 7.3.15.2 Complements ........................................................................................................................... 187

    7.3.16 PLC Message (GNCPLCMessage) ..................................................................................................... 194 7.3.16.1 Property Settings ...................................................................................................................... 194 7.3.16.2 Complements ........................................................................................................................... 197

    7.3.17 Menu (GNXMenu) ; Menu display part ................................................................................................. 199 7.3.17.1 Property Settings ...................................................................................................................... 199 7.3.17.2 Complements ........................................................................................................................... 200

    7.3.18 FileInOut (GNXFileTransfer) ; Input/Output Control ............................................................................. 201 7.3.18.1 Property Settings ...................................................................................................................... 201 7.3.18.2 Complements ........................................................................................................................... 202

    7.3.19 AlarmMessage (GNXAlarmMessage) ; Alarm Display Part ................................................................. 204 7.3.19.1 Property Settings ...................................................................................................................... 204 7.3.19.2 Complements ........................................................................................................................... 205

    7.3.20 MonitorStatus (GNXMonitorStatus) ; Operation Status Display Part ................................................... 207 7.3.20.1 Property Settings ...................................................................................................................... 207 7.3.20.2 Complements ........................................................................................................................... 208

    7.3.21 Time (GNXTime) ; Time Display Part ................................................................................................... 209 7.3.21.1 Property Settings ...................................................................................................................... 209 7.3.21.2 Complements ........................................................................................................................... 209

    7.3.22 Page Change Button (GNCPageChangeButton) ............................................................................... 210 7.3.22.1 Property Settings ...................................................................................................................... 210 7.3.22.2 Compliments ............................................................................................................................ 213

    7.3.23 Stacked Graph (GNCStackedGraph) ................................................................................................... 217 7.3.23.1 Property settings ...................................................................................................................... 217 7.3.23.2 Complements ........................................................................................................................... 219

    7.3.24 Statistics Graph (GNCStatisticsGraph) .............................................................................................. 220 7.3.24.1 Property settings ...................................................................................................................... 220 7.3.24.2 Compliments ............................................................................................................................ 221

    8. Parts Library ................................................................................................................................................................ 223 8.1 Operation Screen .............................................................................................................................................. 224

    8.1.1 Image List Dialogue ............................................................................................................................... 224 8.2 Operation Procedure ......................................................................................................................................... 225 8.3 Precautions ....................................................................................................................................................... 227

    9. Figure .......................................................................................................................................................................... 228 9.1 What Is Figure? ................................................................................................................................................. 228 9.2 Figure Creation Method ..................................................................................................................................... 229

    9.2.1 Drawing a New Figure ........................................................................................................................... 229 9.3 Common Functions of Figure ............................................................................................................................ 231

    9.3.1 Position/Size .......................................................................................................................................... 231 9.3.2 Perimeter Line ....................................................................................................................................... 231 9.3.3 Color/Pattern .......................................................................................................................................... 232

    9.4 Figure Settings .................................................................................................................................................. 233 9.4.1 Rectangle ............................................................................................................................................... 233 9.4.2 Circle and Oval ...................................................................................................................................... 233 9.4.3 Line ........................................................................................................................................................ 233 9.4.4 Connected Line ...................................................................................................................................... 234 9.4.5 Sector .................................................................................................................................................... 234 9.4.6 Polygon .................................................................................................................................................. 234 9.4.7 Arc ......................................................................................................................................................... 235

    10. Screen Editing ........................................................................................................................................................... 236 10.1 Editing Operation............................................................................................................................................. 236

    10.1.1 Undo .................................................................................................................................................... 236 10.1.2 Redo .................................................................................................................................................... 236 10.1.3 Cut ....................................................................................................................................................... 237 10.1.4 Copy .................................................................................................................................................... 237 10.1.5 Paste .................................................................................................................................................... 238 10.1.6 Delete .................................................................................................................................................. 238 10.1.7 Find ...................................................................................................................................................... 239 10.1.8 Select All .............................................................................................................................................. 240 10.1.9 Repeat ................................................................................................................................................. 241

    10.2 Layout Function ............................................................................................................................................... 242 10.2.1 Size Change ........................................................................................................................................ 242 10.2.2 Move .................................................................................................................................................... 243 10.2.3 Arrangement and Alignment ................................................................................................................ 243 10.2.4 Arrange to Uniform Size ....................................................................................................................... 245 10.2.5 Order .................................................................................................................................................... 246

  • 10.2.6 Fine Adjustment ................................................................................................................................... 246 10.2.7 Rotation/Flip ......................................................................................................................................... 247 10.2.8 Deformation ......................................................................................................................................... 249 10.2.9 Grouping and Ungrouping .................................................................................................................... 251 10.2.10 Grid .................................................................................................................................................... 253

    10.3 Control List ...................................................................................................................................................... 254 10.4 Focus Setup .................................................................................................................................................... 255 10.5 Error Check ..................................................................................................................................................... 258

    10.5.1 Error Check Item List ........................................................................................................................... 259 10.5.2 Result of Error Check ........................................................................................................................... 260

    10.6 Development by Multiple Users ....................................................................................................................... 261 10.6.1 Option Setting ...................................................................................................................................... 261

    10.7 Sub Cursor Setting .......................................................................................................................................... 262 10.7.1 Screen Specifications .......................................................................................................................... 263 10.7.2 Sub cursor setting screen displaying method ...................................................................................... 267 10.7.3 Sub cursor setting procedure ............................................................................................................... 270

    10.7.3.1 Move the sub cursor by key input (arrow key, TAB key, input key) .......................................... 270 10.7.3.2 Set the input value to the target control .................................................................................... 272 10.7.3.3 Change the display start position ............................................................................................. 272 10.7.3.4 Transfer a key to other control .................................................................................................. 273

    10.7.4 Limitations ............................................................................................................................................ 276 11. Simulation .................................................................................................................................................................. 277

    11.1 Simulation Function ......................................................................................................................................... 277 11.1.1 Starting Simulation ............................................................................................................................... 277 11.1.2 Simulation Screen ................................................................................................................................ 277 11.1.3 Function List ........................................................................................................................................ 278 11.1.4 Quitting Simulation ............................................................................................................................... 278

    11.2 Simulation Tools .............................................................................................................................................. 279 11.3 Message Window ............................................................................................................................................ 280

    12. Generating a Document ............................................................................................................................................. 281 12.1 Document Generation Function ...................................................................................................................... 281

    12.1.1 Generating a Project Information Document ........................................................................................ 281 12.1.2 Generating a Screen Information Document ........................................................................................ 282 12.1.3 Output Image ....................................................................................................................................... 283

    13. Project Convert .......................................................................................................................................................... 285 13.1 Export for The Project Executing The Intepreter ............................................................................................. 285

    13.1.1 Export .................................................................................................................................................. 285 13.1.2 File Configuration ................................................................................................................................. 287

    13.2 Project Convert to the ND2 Format ................................................................................................................. 288 14. Source Code Generation ........................................................................................................................................... 289

    14.1 Generating Screen Data Source Codes .......................................................................................................... 289 14.2 User Code Protection ...................................................................................................................................... 293

    15. Features and Configuration of GUI Library ................................................................................................................ 295 15.1 Features of GUI Library ................................................................................................................................... 295 15.2 Configuration of GUI Library ............................................................................................................................ 296 15.3 Folder Configuration for Data File ................................................................................................................... 297

    16. Application Execution Method ................................................................................................................................... 298 16.1 Application Execution Method ......................................................................................................................... 298

    16.1.1 Outline ................................................................................................................................................. 298 16.1.2 Independent/Combinational Execution ................................................................................................ 300

    16.2 Interpreter Method ........................................................................................................................................... 301 16.2.1 What Is Interpreter Method? ................................................................................................................ 301 16.2.2 Flow of Operation ................................................................................................................................ 301

    16.3 Compilation Method ........................................................................................................................................ 303 16.3.1 What Is Compilation Method? .............................................................................................................. 303 16.3.2 Flow of Operation ................................................................................................................................ 303

    16.3.2.1 Operation Procedure with Visual Studio2010 ........................................................................... 304 16.3.2.2 Operation Procedure with NC Compiler/NC Compiler2 ............................................................ 308

    16.4 Application Window ......................................................................................................................................... 311 16.4.1 What Is Application Window? .............................................................................................................. 311 16.4.2 Launching the Application Window ...................................................................................................... 312 16.4.3 Functions of Application Window ......................................................................................................... 312 16.4.4 Screen Configuration ........................................................................................................................... 313 16.4.5 Closing the Application Window ........................................................................................................... 313

    16.5 Screen Switching............................................................................................................................................. 314 16.5.1 Outline ................................................................................................................................................. 314 16.5.2 Screen Switching Method .................................................................................................................... 314

    16.5.2.1 Changing From the Custom Screen to the Standard Screen (F0 Release) .............................. 316

  • 16.5.2.2 Changing the Menu Name While Displaying Custom Screen (Menu Release) ........................ 318 16.5.2.3 Closing the Custom Screen (Menu Release) ........................................................................... 321

    16.5.3 Screen No. Designation Method .......................................................................................................... 322 16.5.4 Panel Switching History ....................................................................................................................... 323 16.5.5 Displaying Previously Displayed Custom Screen ................................................................................ 324

    16.6 Custom Release .............................................................................................................................................. 327 16.6.1 Outline ................................................................................................................................................. 327 16.6.2 S/W Configuration ................................................................................................................................ 329

    16.6.2.1 Necessary Applications ............................................................................................................ 329 16.6.2.2 Necessary Files ........................................................................................................................ 330

    16.6.3 Development Procedure of Custom Release S/W ............................................................................... 332 16.6.4 F0 Release .......................................................................................................................................... 333

    16.6.4.1 Interpreter Method .................................................................................................................... 333 16.6.4.1.1 Config.ini ....................................................................................................................... 333 16.6.4.1.2 customdef.ini ................................................................................................................. 335

    16.6.4.2 Compilation Method.................................................................................................................. 336 16.6.4.2.1 Config.ini ....................................................................................................................... 336 16.6.4.2.2 customdef.ini ................................................................................................................. 337

    16.6.4.3 Switching of "Onboard" and "Execution File by F0 Release" by Bit Selection Parameter (#6451 bit0) .............................................................................................................................. 338

    16.6.5 Menu Release ...................................................................................................................................... 339 16.6.5.1 Interpreter Method .................................................................................................................... 339

    16.6.5.1.1 Config.ini ....................................................................................................................... 339 16.6.5.1.2 customdef.ini ................................................................................................................. 339 16.6.5.1.3 Icon Image .................................................................................................................... 344

    16.6.5.2 Compilation Method.................................................................................................................. 345 16.6.5.2.1 Config.ini ....................................................................................................................... 345 16.6.5.2.2 customdef.ini ................................................................................................................. 345 16.6.5.2.3 Icon Image .................................................................................................................... 345

    16.6.5.3 Changing the Arrangement of the Main Menu .......................................................................... 346 16.6.5.3.1 customdef.ini ................................................................................................................. 346

    16.6.5.4 Focus while the instance is held ............................................................................................... 347 16.6.6 Limitation of Number of Project Registration ........................................................................................ 348

    16.6.6.1 Register Two or More Windows in One Project ........................................................................ 348 16.6.6.2 Register Two or More Screens in One Project ......................................................................... 349

    16.6.7 About the Switch of Display/Non-display of the Menu by the Parameter ............................................. 350 16.6.8 Parameter ............................................................................................................................................ 351 16.6.9 Limitations ............................................................................................................................................ 352

    16.7 Custom Release File Setting ........................................................................................................................... 353 16.7.1 Operation Screen ................................................................................................................................. 353

    16.7.1.1 Custom Screen Configuration Dialog ....................................................................................... 353 16.7.2 Operation Procedure............................................................................................................................ 361 16.7.3 Precautions .......................................................................................................................................... 364

    16.8 S/W Keyboard ................................................................................................................................................. 365 16.8.1 Outline ................................................................................................................................................. 365 16.8.2 Function Specifications ........................................................................................................................ 366 16.8.3 Programming Method .......................................................................................................................... 367

    16.8.3.1 Open S/W Keyboard Window ................................................................................................... 367 16.8.3.2 Close S/W Keyboard Window .................................................................................................. 368 16.8.3.3 Set S/W Keyboard Position ...................................................................................................... 369

    16.8.3.3.1 Set the initial display position of the S/W keyboard window .......................................... 369 16.8.3.3.2 Change the S/W keyboard window position arbitrarily while the window is being

    displayed ...................................................................................................................... 370 16.8.3.4 Set the Status of Entry Area of S/W Keyboard Window ........................................................... 371

    16.8.3.4.1 Display the entered characters on the entry area of S/W keyboard window ................. 372 16.8.3.4.2 Process when the [INPUT] key is pressed .................................................................... 373

    16.8.3.5 Get the Entry Area Status of S/W Keyboard Window ............................................................... 374 16.8.3.6 Clear S/W Keyboard Entry Area ............................................................................................... 375 16.8.3.7 Set Character String in S/W Keyboard Entry Area ................................................................... 376 16.8.3.8 Get Character String from S/W Keyboard Entry Area .............................................................. 377 16.8.3.9 Display S/W Keyboard Window in the Foreground ................................................................... 378

    16.8.4 Example ............................................................................................................................................... 379 17. Macro Function .......................................................................................................................................................... 383

    17.1 What Is the Macro Function? .......................................................................................................................... 383 17.2 Macro Execution Conditions ............................................................................................................................ 383

    17.2.1 Project Macro Execution Condition ...................................................................................................... 383 17.2.2 Screen Macro Execution Condition ...................................................................................................... 384 17.2.3 Macro Execution Timing ...................................................................................................................... 385

  • 17.3 Macro Editing .................................................................................................................................................. 386 17.3.1 Macro Editing ....................................................................................................................................... 386 17.3.2 Macro Editing Dialog Box ..................................................................................................................... 387 17.3.3 Event Creation Dialog Box ................................................................................................................... 388

    17.4 Macro Programming ........................................................................................................................................ 389 17.4.1 Macro Editing Area .............................................................................................................................. 389 17.4.2 Program Describing Method ................................................................................................................ 389 17.4.3 Programming Language ...................................................................................................................... 392

    17.5 Function Details............................................................................................................................................... 412 17.5.1 Normal Command ................................................................................................................................ 412 17.5.2 Control Common Command ................................................................................................................ 423 17.5.3 Button .................................................................................................................................................. 442 17.5.4 CheckBox ............................................................................................................................................ 459 17.5.5 Edit ....................................................................................................................................................... 471 17.5.6 HtmlBrowser ........................................................................................................................................ 495 17.5.7 Label .................................................................................................................................................... 502 17.5.8 List ....................................................................................................................................................... 506 17.5.9 Picture .................................................................................................................................................. 525 17.5.10 ProgressBar ....................................................................................................................................... 532 17.5.11 RadioButton ....................................................................................................................................... 539 17.5.12 ScrollBar ............................................................................................................................................ 552 17.5.13 TextBox .............................................................................................................................................. 565 17.5.14 NCPLCButton .................................................................................................................................... 590 16.5.15 NCPLCTextbox .................................................................................................................................. 620 17.5.16 NCDataTextBox ................................................................................................................................. 646 17.5.17 Menu .................................................................................................................................................. 678 17.5.18 FileInOut ............................................................................................................................................ 697 17.5.19 AlarmMessage ................................................................................................................................... 705 17.5.20 MonitorStatus ..................................................................................................................................... 706 17.5.21 Counter .............................................................................................................................................. 707 17.5.22 CycleTime .......................................................................................................................................... 709 17.5.23 LoadMeter .......................................................................................................................................... 710 17.5.24 SPCommand ..................................................................................................................................... 711 17.5.25 NCTable ............................................................................................................................................. 712 17.5.26 InputBox ............................................................................................................................................. 730 17.5.27 SoftKey .............................................................................................................................................. 744 17.5.28 Graph ................................................................................................................................................. 761

    17.6 NC Data Access Function ............................................................................................................................... 784 17.7 String Operation Functions .............................................................................................................................. 792 17.8 Error Message List .......................................................................................................................................... 800

    Appendix .......................................................................................................................................................................... 802 Appendix 1. Error Message List .............................................................................................................................. 802 Appendix 2. Shortcut Key List ................................................................................................................................. 806 Appendix 3. About NC Designer2 ........................................................................................................................... 807 Appendix 4. Pattern List .......................................................................................................................................... 808

    Appendix 4.1 Filling Pattern List ..................................................................................................................... 808 Appendix 4.2 Line Pattern List ........................................................................................................................ 808

    Appendix 5. Default Palette Color ........................................................................................................................... 809 Appendix 6. Data Type Definitions .......................................................................................................................... 811 Appendix 7. HTML Tag List ..................................................................................................................................... 819 Appendix 8. Executing File Registration Method ..................................................................................................... 821

    Appendix 8.1 F0 Release................................................................................................................................ 821 Appendix 8.1.1 melAppCtrl.ini ................................................................................................................ 821 Appendix 8.1.2 Details of melAppCtrl.ini ................................................................................................ 821 Appendix 8.1.3 Function of Update Cycle Setting .................................................................................. 827

    Appendix 8.2 Menu Release ........................................................................................................................... 828 Appendix 8.2.1 customdef.ini ................................................................................................................. 828 Appendix 8.2.2 Icon Image ..................................................................................................................... 828

    Appendix 8.3 Using a function key (screen switching key) in the custom screen ........................................... 829 Appendix 8.3.1 Utilization method 1 by adding a definition to melAppCtrl.ini

    (only the meaning of function key can be changed with "F0" key) ................................. 830 Appendix 8.3.2 Utilization method 2 by adding a definition to melAppCtrl.ini

    (changing to a specific standard screen with "F0" key) ................................................. 831 Appendix 8.3.3 Utilization method 3 by adding a definition to melAppCtrl.ini

    (changing to the specific standard screen with "Menu" key) .......................................... 833 Appendix 8.3.4 The standard screen after changing .............................................................................. 835

    Appendix 9. HMI Integrated Installer ....................................................................................................................... 836

  • Appendix 9.1 Outline ...................................................................................................................................... 836 Appendix 9.2 Configuration ............................................................................................................................. 837 Appendix 9.3 Screen Configuration ................................................................................................................ 838 Appendix 9.4 Operation Methods ................................................................................................................... 843

    Appendix 9.4.1 Installing the Application ................................................................................................ 843 Appendix 9.5 Details for Functions ................................................................................................................. 848

    Appendix 9.5.1 Installation Method ........................................................................................................ 848 Appendix 9.5.2 About the Memory Card for Upgrade ............................................................................. 850

    Appendix 9.6 Parameter ................................................................................................................................. 862 Appendix 9.7 Operation/Alarm Messages....................................................................................................... 863

    Appendix 10. Installing Custom Data (M70/M70V/M700VS/E70) ............................................................................ 864 Appendix 11. Installing Custom Data (M800S/M80) ................................................................................................ 867 Appendix 12. Entry Key Code List at KeyPress/KeyRelease .................................................................................. 870

  • 1

    NC Designer2 Instruction Manual 1. Outline

    IB-1501250-C

    1. Outline This section describes an outline of NC Designer2.

    1.1 What Is NC Designer2? NC Designer2 provides you with a GUI development environment consisting of a GUI design tool for generating the source code of host equipment on the drawn GUI screen and a GUI library that does not depend on specific platforms. NC Designer2 consists of a GUI design tool, which substantially reduces GUI development work-hours, and a fast and compact graphic library.

    GUI design tool

    GUI screen development Simulation of drawing screen Documentation of settings

    The source code is automatically generated.

    GUI library Window control Resource control Event control Fast drawing logic Part dependant on platform

    Source code (C++)

    Compilation

    Link

    The execution module is built in the target board.

    PC (Windows environment)

  • 2

    NC Designer2 Instruction Manual 1. Outline

    IB-1501250-C

    1.1.1 GUI Design Tool With NC Designer2, figures and parts having various functions are laid out on the screen during creation of screen data. Source codes (C++) matching the GUI library are automatically generated according to the created screen data. NC Designer2 has various functions such as the simulation function for the PC, so that the development process which required many work-hours with conventional development methods are now automated, and re-working after assembly in the actual machine is minimized.

    1.1.2 What Is the GUI Library? The GUI library strongly supports development of the graphic user interface. The GUI library contains functions for mouse and key events and window system, which are indispensable for the configuration of the GUI, as well as the drawing function.

    1.1.3 Interpreter Method and Compilation Method The screen development method includes two types: interpreter method (C++ language is not needed) and compilation method (C++ language is needed). The intended purposes etc. of these methods are the table below.

    Interpreter method Compilation method Purpose Development of comparatively

    simple screen Development of screen with more complex control operation

    Programming Unnecessary (with Macro function)

    C++ language programming

    Development (compilation) environment

    Unnecessary The compiler is necessary

    Execution speed Slower than the compilation method

    Faster than the interpreter method

  • 3

    NC Designer2 Instruction Manual 2. Features and Specifications of NC Designer2

    IB-1501250-C

    2. Features and Specifications of NC Designer2 In this section, what can be done with NC designer2 is described for those who operate NC Designer2 for the first time. Specifications and functions are referred to in the description.

    2.1 Features of NC Designer2 NC Designer2 has the following features. Ultimate GUI development framework applicable to various embedded systems (platforms)

    Automatic generation of source code Various source codes are automatically generated from the data created with NC Designer2.

    Possible to load various fonts GUI library which does not depend on the platform

    The GUI library allows you to match every platform through repetitive generation. Substantial improvement of GUI development efficiency through embedded system

    Powerful editing functions (cut, copy, paste, rotation, alignment, zoom, etc.) Automatic generation of development document NC Designer2 automatically creates documents such as the screen list and property data in a file (rich text format).

    Simulation function for PC Screens created with NC Designer2 can be simulated.

    Simple GUI simulation such as screen switching is realized. Using the simulation tool, you can change properties of the GUI part.

    (Modification event history is also supported.)

  • 4

    NC Designer2 Instruction Manual 2. Features and Specifications of NC Designer2

    IB-1501250-C

    2.2 Specifications of NC Designer2

    2.2.1 Screen Elements of NC Designer2 The screen elements displayed (that is, created) with NC Designer2 include the followings.

    Screen

    Panel

    Window

    Figure

    Control

    Screen element Description Screen Physical hardware display area. Available only one screen for each system.

    That is, only one screen for each project. Page Screen. The page includes the panel and the window. Panel Screen displayed in full size on the screen. Window Screen displayed in a window state on the screen. Object The object is a screen element arranged on the page. The object includes the

    control, figure and view frame. Control The control is a group of GUI functions including buttons and pictures. Figure The figure can be drawn with the basic drawing function of the GUI library. The

    figure includes rectangles, circles, lines, continuous lines, polygons, sectors and arcs.

    View frame The view frame is a display area in the page having multiple pages. Controls and figures can be arranged on each page of the view frame.

  • 5

    NC Designer2 Instruction Manual 2. Features and Specifications of NC Designer2

    IB-1501250-C

    2.2.2 What Is "Project"? With NC Designer2, a group of GUI screens used for a certain application is called "project." The project mainly consists of a folder of which screen files are stored and a project data file. When "M800/M80 Series" is selected in the model selection of the wizard creating new projects and a project "Sample" is created, a "Sample" folder and a "Sample.ND2" project data file are created in the folder designated as a destination of saving.

    Sample pnlpg###.ipw Screen file

    *.bmp,*.jpg, *.png, *.vgf

    Background, or BMP/JPG/PNG/VGF files set in control

    *.res Resource file

    Sample.ND2

    Project data file

    (Note 1): ###: A three-digit hexadecimal value indicating the page number (Note 2) When "M700V/M70V/E70 Series" is selected, a project with the IPP file extension,

    Sample.IPP, is created.

    To open an existing project, select the file having extension ND2.

    IMPORTANT To move or copy project data to another PC, select both the folder and project data file. Because the project

    consists of these two pieces of data, the project does not open with only one of them. Settings related to the screen size and display scale are stored in the CONFIG.INI file, that is in a same folder

    with melhi.exe. To modify the screen size or the display magnification, adjust the values in the [SCREEN]. [SCREEN] WIDTH = 640 HEIGHT = 480 SCALE = 100

  • 6

    NC Designer2 Instruction Manual 2. Features and Specifications of NC Designer2

    IB-1501250-C

    2.2.3 Operating Environment of NC Designer2 The system environment necessary for the operation of NC Designer2 is shown below.

    OS Windows® 7 Windows® 8 Windows® 8.1 Windows® 10

    CPU Processor with CPU clock 1 GHz or more HD 400MB or more (excluding the free space necessary for running the OS) Memory 2GB or more Screen Resolution : SVGA (800 × 600) or higher

    2.2.4 Specification List

    Function OutlineScreen 1 for each project Panel/window Max. 256 sheets of panels and windows in total for each project View frame Max. 10 frames for each panel or window Screen size Horizontal: 1 to 2560 dots

    Vertical: 1 to 1920 dots Number of controls that can be created on each page

    Max. 512

    Number of controls that can be created in each frame

    Max. 512. However, the maximum limit of the page (512) may not be exceeded inside the page of the frame.

    Number of locales Max. 32 Background image file BMP, JPG, PNG or VGF file Filling pattern Up to 38 types can be registered. Line pattern Up to 8 types can be registered.

  • 7

    NC Designer2 Instruction Manual 2. Features and Specifications of NC Designer2

    IB-1501250-C

    2.3 Menu List A list of pull-down menus of NC Designer2 and the usage of each item are described below.

    2.3.1 File

    Item Function New Project Create a new project. Open Project Open an existing project. Save Project Overwrite the project being edited. Save Project As Save the project being edited, under a new name. New Panel Add a new panel to the project being edited. New Window Add a new window to the project being edited. Open Panel/Window Open the panel/window of the project being edited. Close Panel/Window Close the panel/window being edited. Import Panel/Window Copy the panel/window of another project to the project being edited. Save Panel/Window Save the panel/window being edited. Save All Overwrite all the project data being edited. Source code generation Convert the created data into source code of various formats. Project convert Convert the created data into an interpreter method file.

    Convert the projects being edited into the ND2 form. Document generation Output project and window data into a file (rich text format). Custom screen configuration Create a setting file to display the customized screen on an NC display. Recent Projects Read and display up to four recently edited projects. Exit Exit from NC Designer2.

    2.3.2 Editing

    Item Function Undo Abandon changes and restore the original state. Redo Execute the operation canceled with "undo." Cut Delete the selected object and copy it in the clipboard. Copy Copy the selected object and copy it in the clipboard. Paste Paste the object from the clipboard. Delete Delete the selected object (without copying it in the clipboard). Find Search for a control or caption. Edit of a caption Edit the caption of each part directly on the editing screen. Select All Sele


Recommended