Microsoft®, Visual C++® and Windows® are either registered trademarks or trademarks of M icrosoft
Corporation in the United States and/or other countries.
MELDAS is a registered trademark of Mitsubishi Electric Corporation.
Windows, Pentium and other product names and company names are tra demarks or registered trademarks of
their respective companies.
Introduction
This manual is a guide for users of NC Designer for the Mitsubishi CNC M700V/M70V series.
This manual explains how to operate the NC Designer, so read this thoroughly before using.
Fully understand "Precautions for Safety" on the next page to use the Mitsubishi CNC
M700V/M70V series safely.
Details described in this manual:
CAUTION
For items described as "Restrictions" or "Usable State" in this manual, the instruction
manual issued by the machine tool builder takes precedence over this manual.
Items that are not described in this manual must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added. Confirm the
specifications issued by the machine tool builder before use.
Some screens and functions may differ depending on each NC system (or version), and
some functions may not be possible. Please confirm the specifications before use.
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 in spection to ensure correct use.
Understand this numerical controller, safety items and cautions before using the unit.
This manual ranks the safety precautions into "DANGER", "WAR NING" and "CAUTION".
DANGER
When the user may be subject to imminent fatalities or major injuries if handling is
mistaken.
WARNING
CAUTION
Note that even items ranked as "
case, important information that must always be observed is described.
Not applicable in this manual.
Not applicable in this manual.
When the user may be subject to fatalities or major injuries if handling is mistaken.
When the user may be subject to injuries or when property damage may occur if
handling is mistaken.
CAUTION ", may lead to major results depending on the situation. In any
DANGER
WARNING
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.
CAUTION
Disposal
(Note) This symbol mark is for EU countries only.
This symbol mark is according to the directive 2006/66/EC Article 20 Information for endusers and Annex II.
Your MITSUBISHI ELECTRIC product is designed and manufactured with high quality materials and
components which can be recycled and/or reused.
This symbol means that batteries and accumulators, at their end-of-life, should be disposed of
separately from your household waste.
If a chemical symbol is printed beneath the symbol shown above, this chemical symbol means that the
battery or accumulator contains a heavy metal at a certain concentration. This will be indicated as
follows:
Hg: mercury (0,0005%), Cd: cadmium (0,002%), Pb: lead (0,004%)
In the European Union there are separate collection systems for used batteries and accumulators.
Please, dispose of batteries and accumulators correctly at your local community waste collection/
recycling centre.
Please, help us to conserve the environment we live in!
CONTENTS
1. Outline.............................................................................................................................................1
1.1 What Is NC Designer?................................................................................................................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 Designer .............................................................................. 3
2.1 Features of NC Designer............................................................................................................3
2.2 Specifications of NC Designer....................................................................................................4
2.2.1 Screen Elements of NC Designer.........................................................................................4
2.2.2 Control..................................................................................................................................5
2.2.3 Configuration of Data File Created With NC Designer.........................................................7
2.2.4 Operating Environment of NC Designer...............................................................................7
2.2.5 Specification List...................................................................................................................8
2.2.6 Function List.........................................................................................................................8
2.3 Menu List....................................................................................................................................9
2.3.1 File........................................................................................................................................9
2.3.2 Editing...................................................................................................................................9
2.3.3 View....................................................................................................................................10
2.3.4 Control................................................................................................................................ 11
2.3.5 Figure .................................................................................................................................12
2.3.6 Setting ................................................................................................................................12
2.3.7 Layout.................................................................................................................................12
2.3.8 Tool.....................................................................................................................................13
2.3.9 Window...............................................................................................................................13
2.3.10 Help..................................................................................................................................13
2.4 Flow of Development Using NC Designer................................................................................14
3. Startup and Termination of NC Designer...................................................................................15
3.1 Starting NC Designer................................................................................................................15
3.2 Exiting From NC Designer........................................................................................................16
3.3 User Interface...........................................................................................................................17
3.3.1 Function of Each Part of Basic Screen............................................................................... 17
3.3.2 Operation Method in Dialog Box and Property Window.....................................................21
4. Creating a Project ........................................................................................................................22
4.1 What Is "Project"?.....................................................................................................................22
4.2 Creating a New Project.............................................................................................................23
4.3 Entering Project Properties.......................................................................................................25
4.4 Changing the Color Setting Method..........................................................................................27
4.5 Saving the Project.....................................................................................................................28
4.6 Saving the Project as ...............................................................................................................28
4.7 Opening a Project..................................................................................................................... 29
4.8 Opening a Recently Used Project.............................................................................................30
5. Creating and Saving the Page ....................................................................................................31
5.1 What Is Page?..........................................................................................................................31
5.2 Creating a New Panel...............................................................................................................31
5.3 Creating a New Window...........................................................................................................32
5.4 Entering Panel Properties.........................................................................................................33
5.5 Entering Window Properties.....................................................................................................34
5.6 Saving the Panel/Window.........................................................................................................36
5.7 Save All.....................................................................................................................................36
5.8 Opening a Panel/Window.........................................................................................................37
5.9 Closing the Panel/Window........................................................................................................38
5.10 Switching the Editing Window.................................................................................................39
5.10.1 Previous Screen...............................................................................................................39
5.10.2 Next Screen......................................................................................................................39
5.10.3 Cascade ...........................................................................................................................39
5.10.4 Tile....................................................................................................................................40
5.10.5 Arrange Icons ...................................................................................................................40
5.10.6 Switching Locale...............................................................................................................40
5.10.7 Zoom ................................................................................................................................41
5.10.8 Refresh.............................................................................................................................41
5.11 Creating View Frame..............................................................................................................42
5.11.1 Switching the View Frame................................................................................................44
6. Registering the Resource ...........................................................................................................45
6.1 Resource ..................................................................................................................................45
6.2 Resource View..........................................................................................................................45
6.3 Locale.......................................................................................................................................46
6.3.1 Creating a New Locale.......................................................................................................46
6.3.2 Deleting a Locale................................................................................................................46
6.3.3 Locale Setup.......................................................................................................................47
6.3.4 Switching the Locale...........................................................................................................47
6.4 Character Sequence Resource ................................................................................................48
6.4.1 Creating a New Character String Resource.......................................................................48
6.4.2 Editing or Creating Character String Resource..................................................................49
6.4.3 Replacing the Character String Resource.......................................................................... 50
6.4.4 Deleting Character String Resource...................................................................................50
6.4.5 Importing or Exporting Character String Resource.............................................................51
6.5 Font Resource..........................................................................................................................56
6.5.1 Creating a New Font Resource..........................................................................................56
6.5.2 Deleting Font Resource...................................................................................................... 56
6.5.3 Specifying Font Resource...................................................................................................57
6.6 Image Resource .......................................................................................................................58
6.6.1 Creating a New Image Resource ....................................................................................... 58
6.6.2 Deleting an Image Resource.............................................................................................. 58
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 Palette Resource....................................................................................................................64
6.10.1 Creating a New Palette Resource....................................................................................64
6.10.2 Deleting the Palette Resource.......................................................................................... 64
6.10.3 Palette Setting..................................................................................................................64
6.10.4 Editing the Palette ............................................................................................................65
6.10.5 Importing/Exporting Palette Setting.................................................................................. 66
6.11 HTML File Name Resource.....................................................................................................67
6.11.1 Creating a New HTML File Name Resource.....................................................................67
6.11.2 Deleting the HTML File Name Resource..........................................................................67
6.11.3 Specifying the HTML File Name Resource.......................................................................67
7. Creating Controls.........................................................................................................................68
7.1 Common Functions of Controls................................................................................................68
7.1.1 Control Name .....................................................................................................................68
7.1.2 Position/Size.......................................................................................................................70
7.1.3 Color/Pattern ......................................................................................................................71
7.1.4 Color Setup.........................................................................................................................72
7.1.5 Image..................................................................................................................................73
7.1.6 Character String .................................................................................................................74
7.1.7 Character Attribute..............................................................................................................75
7.1.8 Scrolling Caption Character String.....................................................................................76
7.1.9 Blink....................................................................................................................................77
7.1.10 Solid Frame......................................................................................................................78
7.1.11 Callback Function.............................................................................................................79
7.1.12 Event List Dialog Box .......................................................................................................80
7.1.13 Switch Screen Dialog Box................................................................................................81
7.1.14 Show/Hide........................................................................................................................81
7.1.15 Input Permission...............................................................................................................81
7.2 Standard Control.......................................................................................................................82
7.2.1 Basic Control Object (GCBasicControl)..............................................................................82
7.2.1.1 Property Settings..........................................................................................................82
7.2.2 Button Object (GCButton)...................................................................................................83
7.2.2.1 Property Settings..........................................................................................................83
7.2.3 Text Box Object (GCTextBox).............................................................................................86
7.2.3.1 Property Settings..........................................................................................................86
7.2.4 Label Object (GCLabel)...................................................................................................... 88
7.2.4.1 Property Settings..........................................................................................................88
7.2.5 List Object (GCList)............................................................................................................89
7.2.5.1 Property Settings..........................................................................................................89
7.2.6 Picture Object (GCPicture).................................................................................................91
7.2.6.1 Property Settings..........................................................................................................91
7.2.7 Check Box Object (GCCheckBox)......................................................................................93
7.2.7.1 Property Settings..........................................................................................................93
7.2.8 Radio Button Object (GCRadioButton)...............................................................................95
7.2.8.1 Property Settings..........................................................................................................95
7.2.9 Progress Bar Object (GCProgressBar) .............................................................................. 97
7.2.9.1 Property Settings..........................................................................................................97
7.2.10 HTML Browser Object (GCHtmlBrowser).........................................................................99
7.2.10.1 Property Settings........................................................................................................99
7.2.11 Scroll Bar Object (GCScrollBarEx).................................................................................102
7.2.11.1 Property Settings......................................................................................................102
7.2.12 Edit Control Object (GCEdit) .......................................................................................... 105
7.2.12.1 Property Settings......................................................................................................105
7.2.13 Table Object (GNCTable)................................................................................................108
7.2.13.1 Property Settings......................................................................................................108
7.2.13.2 Compliments............................................................................................................111
7.3 NC Control Object................................................................................................................... 118
7.3.1 Counter (GNXCounter); Counter Display Part.................................................................. 118
7.3.1.1 Property Settings........................................................................................................118
7.3.1.2 Complements.............................................................................................................120
7.3.2 CycleTime (GNXCycleTime); Cycle Time Display Part ....................................................123
7.3.2.1 Property Settings........................................................................................................123
7.3.2.2 Complements.............................................................................................................124
7.3.3 Feedrate (GNXFeedrate); F Display Part......................................................................... 125
7.3.3.1 Property Settings........................................................................................................125
7.3.3.2 Complements.............................................................................................................126
7.3.4 GModal M (GNXGModal); M System Modal Display Part................................................127
7.3.4.1 Property Settings........................................................................................................127
7.3.4.2 Complements.............................................................................................................128
7.3.5 GModal L (GNXGModal_L); L System Modal Display Part ..............................................134
7.3.5.1 Property Settings........................................................................................................134
7.3.5.2 Complements.............................................................................................................135
7.3.6 GModal Simple (GNXGModalSimple); Simple Modal Display Part..................................143
7.3.6.1 Property Settings........................................................................................................143
7.3.6.2 Complements.............................................................................................................144
7.3.7 LoadMeter (GNXLoadMeter); Load Meter Display Part ................................................... 147
7.3.7.1 Property Settings........................................................................................................147
7.3.7.2 Complements.............................................................................................................148
7.3.8 MSTB (GNXMSTB); MSTB display part...........................................................................150
7.3.8.1 Property Settings........................................................................................................150
7.3.8.2 Complements.............................................................................................................152
7.3.9 ONB (GNONB); ONB Display Part...................................................................................156
7.3.9.1 Property Settings........................................................................................................156
7.3.9.2 Complements.............................................................................................................158
7.3.10 ProgramBuffer (GNXPrgBuff); Program Buffer Display Part..........................................159
7.3.10.1 Property Settings......................................................................................................159
7.3.10.2 Complements...........................................................................................................160
7.3.11 SPCommand (GNXSPCommand); S Display Part.........................................................161
7.3.11.1 Property Settings......................................................................................................161
7.3.11.2 Complements...........................................................................................................162
7.3.12 PLC Button Object (GNCPLCButton).............................................................................163
7.3.12.1 Property Settings......................................................................................................163
7.3.12.2 Complements...........................................................................................................167
7.3.13 PLC Text Box Object (GNCPLCTextBox).......................................................................172
7.3.13.1 Property Settings......................................................................................................172
7.3.13.2 Complements...........................................................................................................174
7.3.14 NC Data Textbox (GNCDataTextBox)............................................................................. 179
7.3.14.1 Property Settings......................................................................................................179
7.3.14.2 Complements...........................................................................................................182
7.3.15 PLC extension button (GNCPLCExButton)....................................................................187
7.3.15.1 Property Settings......................................................................................................187
7.3.15.2 Complements...........................................................................................................192
7.3.16 PLC Message (GNCPLCMessage)................................................................................199
7.3.16.1 Property Settings......................................................................................................199
7.3.16.2 Complements...........................................................................................................203
7.3.17 Menu (GNXMenu) ; Menu display part...........................................................................205
7.3.17.1 Property Settings......................................................................................................205
7.3.17.2 Complements...........................................................................................................206
7.3.18 FileInOut (GNXFileTransfer) ; Input/Output Control.......................................................209
7.3.18.1 Property Settings......................................................................................................209
7.3.18.2 Complements...........................................................................................................211
7.3.19 AlarmMessage (GNXAlarmMessage) ; Alarm Display Part............................................214
7.3.19.1 Property Settings......................................................................................................214
7.3.19.2 Complements...........................................................................................................215
7.3.20 MonitorStatus (GNXMonitorStatus) ; Operation Status Display Part..............................217
7.3.20.1 Property Settings......................................................................................................217
7.3.20.2 Complements...........................................................................................................218
7.3.21 Time (GCNXTime) ; Time Display Part........................................................................... 220
7.3.21.1 Property Settings......................................................................................................220
7.3.21.2 Complements...........................................................................................................220
8. Figure..........................................................................................................................................221
8.1 What Is Figure? ......................................................................................................................221
8.2 Figure Creation Method..........................................................................................................222
8.2.1 Drawing a New Figure......................................................................................................222
8.3 Common Functions of Figure ................................................................................................. 224
8.3.1 Position/Size.....................................................................................................................224
8.3.2 Perimeter Line..................................................................................................................225
8.3.3 Color/Pattern ....................................................................................................................225
8.4 Figure Settings........................................................................................................................226
8.4.1 Rectangle .........................................................................................................................226
8.4.2 Circle and Oval.................................................................................................................226
8.4.3 Line...................................................................................................................................227
8.4.4 Connected Line ................................................................................................................227
8.4.5 Sector...............................................................................................................................228
8.4.6 Polygon.............................................................................................................................228
8.4.7 Arc ....................................................................................................................................229
9. Screen Editing............................................................................................................................230
9.1 Editing Operation.................................................................................................................... 230
9.1.1 Undo.................................................................................................................................230
9.1.2 Redo.................................................................................................................................230
9.1.3 Cut....................................................................................................................................231
9.1.4 Copy.................................................................................................................................232
9.1.5 Paste ................................................................................................................................233
9.1.6 Delete...............................................................................................................................234
9.1.7 Find...................................................................................................................................235
9.1.8 Select All...........................................................................................................................237
9.1.9 Repeat..............................................................................................................................238
9.2 Layout Function......................................................................................................................239
9.2.1 Size Change.....................................................................................................................239
9.2.2 Move................................................................................................................................. 240
9.2.3 Arrangement and Alignment ............................................................................................. 240
9.2.4 Arrange to Uniform Size...................................................................................................242
9.2.5 Order ................................................................................................................................243
9.2.6 Fine Adjustment................................................................................................................243
9.2.7 Rotation/Flip .....................................................................................................................244
9.2.8 Deformation......................................................................................................................246
9.2.9 Grouping and Ungrouping................................................................................................248
9.3 Control List..............................................................................................................................250
9.4 Focus Setup............................................................................................................................251
9.5 Error Check.............................................................................................................................253
9.5.1 Error Check Item List........................................................................................................ 254
9.5.2 Result of Error Check.......................................................................................................255
9.6 Development by Multiple Users..............................................................................................256
9.6.1 Option Setting...................................................................................................................257
10. Simulation.................................................................................................................................258
10.1 Simulation Function..............................................................................................................258
10.1.1 Starting Simulation..........................................................................................................258
10.1.2 Simulation Screen ..........................................................................................................259
10.1.3 Function List...................................................................................................................260
10.1.4 Quitting Simulation .........................................................................................................260
10.2 Simulation Tools....................................................................................................................261
10.3 Message Window .................................................................................................................262
11. Generating a Document...........................................................................................................263
11.1 Document Generation Function............................................................................................26
1
1.1.1 Generating a Project Information Document
..................................................................264
3
11.1.2 Generating a Screen Information Document..................................................................265
11.1.3 Output Image..................................................................................................................266
12. Project Convert ........................................................................................................................268
12.1 Export ...................................................................................................................................268
12.2 File Configuration..................................................................................................................269
13. Source Code Generation.........................................................................................................270
13.1 Generating Screen Data Source Codes...............................................................................270
13.2 Source File Format (C++ language version).........................................................................273
13.2.1 GCXXX.cxx (XXX: project name)................................................................................. 273
13.2.2 GCSampleScreen.cxx....................................................................................................275
13.2.3 GCXXX.cxx (XXX: window/panel name)...................................................................... 277
13.3 User Code Protection ...........................................................................................................280
14. Features and Configuration of GUI Library...........................................................................282
14.1 Features of GUI Library........................................................................................................282
14.2 Configuration of GUI Library.................................................................................................283
14.3 Folder Configuration.............................................................................................................284
14.4 File Configuration..................................................................................................................285
14.4.1 Header File.....................................................................................................................285
14.4.2 Library File......................................................................................................................285
15. Application Execution Method................................................................................................286
15.1 Application Execution Method...............................................................................................286
15.1.1 Outline............................................................................................................................286
15.1.2 Independent/Combinational Execution........................................................................... 288
15.2 Interpreter Method................................................................................................................289
15.2.1 What Is Interpreter Method?........................................................................................... 289
15.2.2 Flow of Operation...........................................................................................................289
15.3 Compilation Method..............................................................................................................292
15.3.1 What Is Compilation Method? ........................................................................................ 292
15.3.2 Flow of Operation...........................................................................................................292
15.3.3 Method of Compilation Environment Establishment in Windows CE .............................297
15.4 Application Window...............................................................................................................301
15.4.1 What Is Application Window?.........................................................................................301
15.4.2 Launching the Application Window................................................................................. 302
15.4.3 Functions of Application Window....................................................................................302
15.4.4 Screen Configuration...................................................................................................... 303
15.4.5 Closing the Application Window.....................................................................................304
15.5 Screen Switching.................................................................................................................. 305
15.5.1 Outline............................................................................................................................305
15.5.2 Screen Switching Method ............................................................................................... 305
15.5.2.1 Changing From the Custom Screen to 700 Series Standard Screen (F0 Release). 307
15.5.2.2 Changing the Menu Name While Displaying Custom Screen (Menu Release) ....... 309
15.5.2.3 Closing the Custom Screen (Menu Release)........................................................... 312
15.5.3 Screen No. Designation Method.....................................................................................313
15.5.4 Panel Switching History.................................................................................................. 315
15.5.5 Displaying Previously Displayed Custom Screen...........................................................316
15.6 Custom Release...................................................................................................................320
15.6.1 Outline............................................................................................................................320
15.6.2 S/W Configuration ..........................................................................................................322
15.6.2.1 Necessary Applications............................................................................................322
15.6.2.2 Necessary Files........................................................................................................323
15.6.3 Development Procedure of Custom Release S/W ......................................................... 325
15.6.4 F0 Release.....................................................................................................................326
15.6.4.1 Interpreter Method....................................................................................................326
15.6.4.1.1 Config.ini............................................................................................................326
15.6.4.1.2 customdef.ini......................................................................................................328
15.6.4.2 Compilation Method.................................................................................................329
15.6.4.2.1 Config.ini............................................................................................................329
15.6.4.2.2 customdef.ini......................................................................................................330
15.6.4.3 Switching of "Onboard" and "Execution File by F0 Release" by Bit Selection
Parameter (#6451 bit0)............................................................................................331
15.6.5 Menu Release ................................................................................................................332
15.6.5.1 Interpreter Method....................................................................................................332
15.6.5.1.1 Config.ini............................................................................................................332
15.6.5.1.2 customdef.ini......................................................................................................333
15.6.5.1.3 Icon Image.........................................................................................................338
15.6.5.2 Compilation Method.................................................................................................339
15.6.5.2.1 Config.ini............................................................................................................339
15.6.5.2.2 customdef.ini......................................................................................................339
15.6.5.2.3 Icon Image.........................................................................................................339
15.6.5.3 Changing the Arrangement of the Main Menu .........................................................340
15.6.5.3.1 customdef.ini......................................................................................................340
15.6.6 Limitation of Number of Project Registration.................................................................. 341
15.6.6.1 Register Two or More Windows in One Project .......................................................341
15.6.6.2 Register Two or More Screens in One Project......................................................... 342
15.6.7 About the Switch of Display/Non-display of the Menu by the Parameter.......................343
15.6.8 Parameter.......................................................................................................................344
15.6.9 Limitations ......................................................................................................................345
15.7 M70 S/W Keyboard...............................................................................................................346
15.7.1 Outline............................................................................................................................346
15.7.2 Function Specifications...................................................................................................347
15.7.3 M70 Programming Method............................................................................................. 348
15.7.3.1 Open S/W Keyboard Window ..................................................................................348
15.7.3.2 Close S/W Keyboard Window..................................................................................349
15.7.3.3 Set S/W Keyboard Position......................................................................................350
15.7.3.3.1 Set the initial display position of the S/W keyboard window..............................350
15.7.3.3.2 Change the S/W keyboard window position arbitrarily while the window is
being displayed.................................................................................................351
15.7.3.4 Set the Status of Entry Area of S/W Keyboard Window........................................... 352
15.7.3.4.1 Display the entered characters on the entry area of S/W keyboard window .....353
15.7.3.4.2 Process when the [INPUT] key is pressed.........................................................354
15.7.3.5 Get the Entry Area Status of S/W Keyboard Window ..............................................355
15.7.3.6 Clear S/W Keyboard Entry Area ..............................................................................356
15.7.3.7 Set Character String in S/W Keyboard Entry Area ................................................... 357
15.7.3.8 Get Character String from S/W Keyboard Entry Area.............................................. 358
15.7.3.9 Display S/W Keyboard Window in the Foreground..................................................359
15.7.4 Example..........................................................................................................................360
16. Macro Function ........................................................................................................................364
16.1 What Is the Macro Function?................................................................................................364
16.2 Macro Execution Conditions.................................................................................................364
16.2.1 Project Macro Execution Condition ................................................................................364
16.2.2 Screen Macro Execution Condition................................................................................365
16.2.3 Macro Execution Timing................................................................................................. 366
16.3 Macro Editing........................................................................................................................367
16.3.1 Macro Editing..................................................................................................................367
16.3.2 Macro Editing Dialog Box...............................................................................................368
16.3.3 Event Creation Dialog Box ............................................................................................. 369
16.4 Macro Programming.............................................................................................................370
16.4.1 Macro Editing Area.........................................................................................................370
16.4.2 Program Describing Method...........................................................................................370
16.4.3 Programming Language................................................................................................. 373
16.5 Function Details....................................................................................................................378
16.5.1 Normal Command ..........................................................................................................378
16.5.2 Control Common Command...........................................................................................388
16.5.3 Button.............................................................................................................................407
16.5.4 CheckBox.......................................................................................................................424
16.5.5 Edit .................................................................................................................................436
16.5.6 HtmlBrowser...................................................................................................................460
16.5.7 Label...............................................................................................................................467
16.5.8 List..................................................................................................................................471
16.5.9 Picture ............................................................................................................................490
16.5.10 ProgressBar..................................................................................................................497
16.5.11 RadioButton..................................................................................................................504
16.5.12 ScrollBar.......................................................................................................................517
16.5.13 TextBox................................................................................................................ .........530
16.5.14 NCPLCButton...............................................................................................................555
16.5.15 NCPLCTextbox.............................................................................................................585
16.5.16 NCDataTextBox............................................................................................................ 611
16.5.17 Menu.............................................................................................................................640
16.5.18 FileInOut.......................................................................................................................653
16.5.19 AlarmMessage.............................................................................................................. 661
16.5.20 MonitorStatus................................................................................................................662
16.5.21 Counter.........................................................................................................................663
16.5.22 CycleTime.....................................................................................................................665
16.5.23 LoadMeter ....................................................................................................................666
16.5.24 SPCommand................................................................................................................667
16.6 NC Data Access Function.....................................................................................................668
16.7 Error Message List................................................................................................................672
17. GWin (Window Control)........................................................................................................... 673
17.1 Outline ..................................................................................................................................673
17.2 Macro....................................................................................................................................678
17.3 GCBaseWindow (window control)........................................................................................679
17.4 GCPanel (panel)...................................................................................................................681
17.5 GCFrame (frame) .................................................................................................................682
17.6 GCSVFrame (view frame) ....................................................................................................683
17.7 GCScreen (screen)...............................................................................................................684
17.8 GCWindow (window)............................................................................................................686
17.9 GCWDC (drawing attribute control)......................................................................................687
18. GControl (control management)............................................................................................. 688
18.1 GCControl (control management).........................................................................................688
18.2 GCBasicControl (basic control) ............................................................................................ 689
18.3 GCButton (button).................................................................................................................694
18.4 GCPicture (picture)...............................................................................................................699
18.5 GCLabel (label).....................................................................................................................703
18.6 GCTextBox (text box)............................................................................................................707
18.7 GCList (list)........................................................................................................................... 712
18.8 GCCheckBox (checkbox) .....................................................................................................716
18.9 GCRadioButton (radio button)..............................................................................................720
18.10 GCProgressBar (progress bar)...........................................................................................724
18.11 GCHtmlBrowser (HTML browser).......................................................................................727
18.12 GCScrollBarEx (scroll bar)..................................................................................................730
18.13 GCEdit (edit control)...........................................................................................................735
18.14 GCNCControl (NC Control Management) ..........................................................................740
18.14.1 GNCDataTextBox (NC Data Textbox)........................................................................... 741
18.14.2 GCNXMenu (Menu Display)......................................................................................... 747
18.14.3 GNXFileInOut (Input/Output Control) ........................................................................... 752
18.14.4 GNXAlarmMessage (Alarm Display)............................................................................756
18.14.5 GNXMonitorStatus (Operation Status Display).............................................................757
18.14.6 GNXTime (Time Display)..............................................................................................758
19. GShape (figure control)...........................................................................................................764
19.1 GCShape (figure control)......................................................................................................764
19.2 GCSRect (rectangle) ............................................................................................................765
19.3 GCSOval (circle & oval)........................................................................................................766
19.4 GCSPoly (polygon)...............................................................................................................767
19.5 GCSPie (sector)....................................................................................................................768
19.6 GCLineShape (line drawing control).....................................................................................769
19.7 GCSLine (line)......................................................................................................................770
19.8 GCSLines (connected lines).................................................................................................771
19.9 GCSArc (arc)........................................................................................................................772
20. GDraw (drawing) ......................................................................................................................773
20.1 Outline ..................................................................................................................................773
20.2 Description of Function......................................................................................................... 782
21. GResource (resource control)................................................................................................789
21.1 Outline ..................................................................................................................................789
21.1.1 Font ................................................................................................................................789
21.1.2 Character String .............................................................................................................789
21.1.3 Palette ............................................................................................................................790
21.1.4 Image..............................................................................................................................790
21.1.5 Solid Frame....................................................................................................................791
21.1.6 HTML File Name ............................................................................................................791
21.1.7 Language Identification Character String ....................................................................... 791
21.2 Description of Function......................................................................................................... 792
21.2.1 Function List...................................................................................................................792
22. GEvent (event control) ............................................................................................................793
22.1 Outline ..................................................................................................................................793
22.2 Flow of Event Processing.....................................................................................................794
22.3 Event Function......................................................................................................................795
22.4 Event Message.....................................................................................................................797
22.5 Event Message Type............................................................................................................798
22.5.1 GM_QUIT.......................................................................................................................798
22.5.2 GM_TIMER.....................................................................................................................798
22.5.3 GM_CHAR......................................................................................................................799
22.5.4 GM_LBUTTONPRESS...................................................................................................799
22.5.5 GM_LBUTTONRELEASE .............................................................................................. 799
22.5.6 GM_RBUTTONPRESS..................................................................................................799
22.5.7 GM_RBUTTONRELEASE..............................................................................................800
22.5.8 GM_MBUTTONPRESS..................................................................................................800
22.5.9 GM_MBUTTONRELEASE ............................................................................................. 800
22.5.10 GM_KEYPRESS .......................................................................................................... 800
22.5.11 GM_KEYRELEASE......................................................................................................801
22.5.12 GM_USER....................................................................................................................801
22.5.13 GM_SHOWPANEL.......................................................................................................801
22.6 Timer Event...........................................................................................................................802
22.7 User Event............................................................................................................................804
22.7.1 GM_USER......................................................................................................................804
Appendix.........................................................................................................................................806
Appendix 1. Error Message List....................................................................................................806
Appendix 2. Shortcut Key List.......................................................................................................809
Appendix 3. About NC Designer...................................................................................................810
Appendix 4. Pattern List................................................................................................................ 811
Appendix 4.1 Filling Pattern List................................................................................................ 811
Appendix 4.2 Line Pattern List................................................................................................... 811
Appendix 5. Default Palette Color.................................................................................................812
Appendix 6. Data Type Definitions................................................................................................814
Appendix 7. Addition of Original User Event.................................................................................823
Appendix 8. HTML Tag List...........................................................................................................826
Appendix 9. Executing File Registration Method..........................................................................828
Appendix 9.1 F0 Release..........................................................................................................828
Appendix 9.1.1 melAppCtrl.ini................................................................................................828
Appendix 9.1.2 Details of melAppCtrl.ini................................................................................828
Appendix 9.1.3 Function of Update Cycle Setting.................................................................. 836
Appendix 9.2 Menu Release ..................................................................................................... 837
Appendix 9.2.1 customdef.ini.................................................................................................837
Appendix 9.2.2 Icon Image ....................................................................................................837
Appendix 10. HMI Integrated Installer ..........................................................................................838
Appendix 10.1 Outline...............................................................................................................838
Appendix 10.2 Configuration.....................................................................................................839
Appendix 10.3 Screen Configuration......................................................................................... 840
Appendix 10.4 Operation Methods............................................................................................ 845
Appendix 10.4.1 Installing the Application .............................................................................845
Appendix 10.5 Details for Functions.......................................................................................... 850
Appendix 10.5.1 Installation Method......................................................................................850
Appendix 10.5.2 About the Memory Card for Upgrade..........................................................852
Appendix 10.6 Parameter..........................................................................................................864
Appendix 10.7 Operation/Alarm Messages...............................................................................865
Appendix 11. M70/M700VS SETUP INSTALLER......................................................................... 866
1. Outline
1. Outline
This section describes an outline of NC Designer.
1.1 What Is NC Designer?
NC Designer 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.
The GUI library is compatible with every environment such as Windows CE.
NC Designer consists of a GUI design tool, which substantially reduces GUI development
work-hours, and a fast and compact graphic library.
PC (Windows environment)
1.1 What Is NC Designer?
GUI design tool
GUI screen development
Simulation of drawing screen
Documentation of settings
GUI library
Window control
Resource control
Event control
Fast drawing logic
Part dependant on platform
The source code is
automatically generated.
The software development kit
(SDK) generates source codes
matching the target board, and
it allows selection of the library.
Link
Source code
(C++)
Compilation
The execution module i
built in the target board.
1
1. Outline
1.1.1 GUI Design Tool
With NC Designer, 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 Designer 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 What Is NC Designer?
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
Programming Unnecessary (with Macro
function)
Development
(compilation)
environment
Execution speed Slower than the compilation
Unnecessary The compiler is necessary
method
Development of screen with more
complex control operation
C++ language programming
Faster than the interpreter
method
2
2. Features and Specifications of NC Designer
2. Features and Specifications of NC Designer
In this section, what can be done with NC designer is described for those who operate NC
Designer for the first time. Specifications and functions are referred to in the description.
2.1 Features of NC Designer
NC Designer has the following features.
Ultimate GUI development framework applicable to various embedded system s (platforms)
Automatic generation of source code
Various source codes are automatically generated from the data created with NC Designer.
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 Designer 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 Designer 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.)
2.1 Features of NC Designer
3
2. Features and Specifications of NC Designer
2.2 Specifications of NC Designer
2.2.1 Screen Elements of NC Designer
The screen elements displayed (that is, created) with NC Designer include the followings.
Control
Figure
2.2 Specifications of NC Designer
Window
Panel
Screen
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 include s 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 librar y. 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 mult iple pages. Controls
and figures can be arranged on each page of the view frame.
4
2. Features and Specifications of NC Designer
2.2.2 Control
The control is an object having the following functions.
●
Expression of GUI operation and retention of operation state
● Notification of GUI operation to user program
The control includes the following variations.
Name Outline
Basic control No function is provided for the basic control. The user creates display and event
processes.
Button The button realizes ON/OFF actions (changes in internal status) and switches
the display according to the status.
Check box The check box allows the user to select an item and retain the selected state.
Edit control The edit control displa ys, inserts or overwrites character strings in multiple lines.
Search and replace of a character string are also possible.
HTML browser The HTML browser displays HTML files.
Label The label displays a character string. The character string can be d ynamically
switched.
List In the list, several character strings are displayed for selection by the user.
Picture The picture switches the display according to the status. Simple animati on is
available by switching the design.
Progress bar The progress bar expresses the progress of a process with filling.
Radio button The radio button allows the user to select one of multiple selection items and
retain the selected state.
Text box Character strings and values are displayed and input in the text box. The value
is converted into a character string or binary data.
Scroll bar The scroll bar moves the display area. The scroll bar incl udes two variations:
vertical scroll bar for vertical movement and horizontal scroll bar for horizontal
movement.
NC data text box NC data text box is a control that enables reading and writing from and to the
NC's internal data.
PLC button The PLC button control enables to read and write data from/to the PLC bit
device of NC. It also enables to change the ON/OFF state of the button
according to the state of the bit device.
PLC extension button PLC extension button is a control equivalent to a PLC button control, but is
different from the PLC button in the following points.
・
・
・
PLC text box T he PLC text box control ena bles to read and write data from/to the PLC devic e
of NC.
PLC message PLC message is a control that displays a message according to the status of
PLC device in NC, by obtaining it from the message definition text file.
Table The table control uses cells with the number (n) of rows and columns to control
and display the character string data. Each row and column can have its own
title.
Counter The counter display part can display the current position, workpiece coordinate
position, etc.
"Actuator" has been added to the button types.
"Interlock", "Disable" and "Blink" have been added to PLC devices.
The group designation function has been added.
2.2 Specifications of NC Designer
5
2. Features and Specifications of NC Designer
Name Outline
CycleTime The cycle time display part is used to display the automatic start-up time and
the cycle time.
Automatic start time (STL)... Total accumulated time during the automatic
Cycle time (CYC).. The automatic operation time from when the automatic
Feedrate The F display part shows the vector direction speed currently being moved in
during interporation feed, the speed of the axis with highest speed during each
axis independent feed. This part also shows dwell (code: G04).
Setting the property (speed display type) enables the display of tool tip speed.
GModal M The G modal display part (M system) is used to show each modal state.
GModal L The G modal display part (L system) is used to show each modal state.
GModal Simple The G modal display part (simple) is used to show each modal state.
LoadMater The Load meter display part can display the spindle load and Z axis load in th e
bar graphs by using user PLC.
(When the load meter is not set by user PLC, these are not displayed on th e
screen.)
Two load meters are displayed by using four lines (the area of the spindle
standby and the load meter) when the spindle standby is not displayed.
One load meter is displayed by using two lines (the area of the spindle standby
and the load meter) when the spindle standby is displayed.
Menu The menu display part includes the menu ON , OFF and Disa ble statuses, which
can change the menu selection state.
Two types of settings are available for the menu: one-row menu (icon + menu
name) and two-row menu (two rows of menu name).
MSTB The MSTB display part can display each command of spindle function (S),
miscellaneous function (M), tool function (T) and 2nd miscellaneous function
(B).
ONB The ONB displa y part displays the program No., sequence No. and block No.
currently being executed.
When a subprogram is being executed, the subprogram's program No.,
sequence No. and block No. are displayed.
ProgramBuffer The program buffer display part displays the contents of the machining program
currently being executed.
The block being executed in the program currently is highlighted.
SPCommand This part can display the spindle modal (S) and the value of actual spindle
rotation speed.
FileInOut The input/output control part is used to input and output NC files between the
NC memory and an external device.
AlarmMessage The alarm display part is used to display the alarm No. and alarm message
character string when an alarm occurs.
This part displays NC alarms and PLC alarms, but does not dis play the stop
code.
MonitorStatus The operation status display part is used to display the NC operation status.
If the system controls multiple part systems, this part can display the operation
status of each part system.
Time The time display part is used to display the current time.
2.2 Specifications of NC Designer
operation, from when the automatic start-up
button is pressed in the memory (tape) mode
or MDI to when either of the feed hold stop,
block stop or reset button is pressed.
start-up button is pressed in the memory (tape)
mode or MDI to when either of the feed hold
stop, block stop or reset button is pressed.This
is preset to “0" by turning the power OFF.
6
2. Features and Specifications of NC Designer
2.2.3 Configuration of Data File Created With NC Designer
NC Designer handles a group of screen data displayed on the target board, as a project. The
project consists mainly of a folder of which screen files are stored and a project data file.
Suppose you save a project under the name "Sample", a "Sample" folder and a project data file
named "Sample.IPP" are created in the designated folder.
(Note)
Sample
Sample.IPP
: ###: A three-digit hexadecimal value indicating the page number
pnlpg###.ipw(###=000-0FF)
*.bmp,*.jpg
*.res
To open an existing project, select the file having extension IPP.
The screen data file having extension ipw is in the original format of NC Designer. When the user
builds screen data in the application, source codes are generated according to screen data and
they are embedded in the user program.
2.2.4 Operating Environment of NC Designer
The system environment necessary for the operation of NC Designer is shown below.
OS Windows NT/2000/XP
CPU Pentium III 600MHz or better
HD 100MB minimum
Additional disk capacity is necessary for various data files.
Memory 128MB minimum
Screen SVGA or better
2.2 Specifications of NC Designer
Screen data file
Background, or image files set in control
Resource file
Project data file
7
2. Features and Specifications of NC Designer
2.2.5 Specification List
Function Outline
Screen 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
Number of controls that can be
created in each frame
Number of locales Max. 32
Background image file BMP or JPG file
Filling pattern Up to 38 types can be registered.
Line pattern Up to 8 types can be registered.
Max. 512
Max. 512. However, the maximum limit of the page (512) may not be
exceeded inside the page of the frame.
2.2.6 Function List
Function Outline
Property window Specify the properties of the control, figure, project, screen, window and
frame.
Resource view The resource data is displayed in a tree. Registration of the resource is
available.
Source code generation Various source codes are generated according to the created screen
data.
Automatic generation of
development document
Simulation function The appearance and movement of the created screen data is simulated
Editing function Various editing functions such copying, cutting, pasting, search and
Layout function Positioning, resizing, rotation and other layout adjustment functions can
Locale switching Up to 32 locales can be set for each control, and they are switched on NC
Error check Various setting errors are checked.
Control list A list of created controls and property settings are displayed.
Project and window data is output in a file (rich text format).
on the PC.
replacement can be performed.
be performed.
Designer.
2.2 Specifications of NC Designer
8
2. Features and Specifications of NC Designer
2.3 Menu List
A list of pull-down menus of NC Designer 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 proje c t 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 pane l/window of the project being edited.
Close Panel/Window Close the panel/window 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 in an interpreter method file.
Document generation Output project and window data into a file (rich text format).
Recent Projects Read and display up to four recently edited projects.
Exit Exit from NC Designer.
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 obj ect 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 Select all objects or all controls or figures of the same type on the editing
page.
Repeat Copy the selected object by the designated number vertically or
horizontally.
2.3 Menu List
9
2. Features and Specifications of NC Designer
2.3.3 View
Item Function
Toolbars Select the tool bar displayed with NC Designer.
Resource Display or hide the resource view.
Property Display or hide the properties window.
Message Display or hide the message window.
Image Display or hide the image view.
Statusbar Display or hide the status bar.
Switch Locale Switch the locale being displayed.
Previous Screen Display the previous page.
Next Screen Display the next page.
Previous Frame Page Select the previous view frame.
Next Frame Page Select the next view frame.
Zoom Specify the zoom ratio of the page.
Refresh Redraw the page.
2.3 Menu List
10