Mitsubishi M70 Programming Manual
![Mitsubishi M70 Numerical Control manual cover](/images/DLTIvfpqefskXeCmkdXmYOoV/thumbs/thumb175x175.webp)
![English English](/static/img/blank.webp)
MELSEC and MELDAS are registered trademarks of Mitsubishi Electric Corporation. Microsoft, Windows and Microsoft Windows NT are registered trademarks of Microsoft Corporation in the United States and/or other countries. Pentium is a registered trademark of Intel Corporation in the United States and/or other countries. PC-9800 is a registered trademark of NEC Corporation. All other company names and product names in this document are trademarks or registered trademarks of the respective companies.
Introduction These specifications are the programming manual used when creating the sequence program with the PLC development software, or Mitsubishi Electric Co.'s integrated FA software MELSOFT series (GX Developer). The PLC (Programmable Logic Controller) instructions are largely categorized into the basic instructions, function instructions and exclusive instructions. There are many types of instructions. The instructions can be used according to the purpose and application such as the PLC support function used when supporting the user PLCs. In addition to the explanation of instructions and functions, the environment to develop the user PLC using GX Developer, especially the usage unique to MITSUBISHI CNC, is described. Explanations on the built-in PLC edit function (onboard PLC edit function) operations are also given. Details described in this manual
CAUTION An effort has been made to describe special handling of this machine, but items that are not
described must be interpreted as "not possible". Some screens and functions may differ or some functions may not be usable depending on
the NC version. General precautions
Refer to each manual for details on the MITSUBISHI CNC Series PLC, and for details on the various tools in this manual. The explanations and screens for the various tools in this manual may differ slightly according to the tool version. Refer to the respective manual for details. [MELSEC Series Software Package Manual]
GX Developer Version 8 Operating Manual (Startup Section) GXDEV8-0-IN-E 13JU40 SH-080372E GX Developer Version 8 Operating Manual GXDEV8-0-E 13JU41 SH-080373E GX Converter Version 1 Operating Manual SW0D5-CNVW (OPE)-E 13J949 IB-080004E
(Caution) The version numbers are current as of the editing of this manual, but may be updated in
the future. GX Developer Version 8 (Model SW8D5C-GPPW) is the new name of the old "Windows
Version GPP Function Software package" (common name GPPW).
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".
When there is a great risk that the user could be subject to fatalities or serious injuries if handling is mistaken. When the user could be subject to fatalities or serious injuries if handling is mistaken. When the user could be subject to injuries or when physical damage could occur if handling is mistaken.
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
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.
An effort has been made to describe special handling of this machine, but items that are not described must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added. Refer to the specifications issued by the machine tool builder before starting use.
Refer to the Instruction Manual issued by each machine tool builder for details on each machine tool.
Some screens and functions may differ or some functions may not be usable depending on the NC version.
2. Items related to start up and maintenance Read this manual carefully and confirm the safety enough before executing the operation
of the program change, forced output, RUN, STOP, etc. during operation. Operation mistakes may cause damage of the machine and accidents.
(To be continued to the next page.)
DANGER
WARNING
CAUTION
CAUTION 3. Items related to program development
Always observe the cautions before development to develop a program. If the data transferred does not follow the file name rule, the CNC will mistake it for another
data, resulting in unexpected operation, e.g. PLC program erasure. Do not read a sequence program on which a conversion error occurred into the GX
Developer. The file may include unexpected contents to result an illegal operation. When an error occurred at GX Developer On-line function, the error message may not
explain exactly the state in the CNC side. Always refer to the error list.
Contents I OUTLINE 1. System Configuration....................................................................................................................1
1.1 System Configuration for PLC Development ...........................................................................1 1.2 User PLC (Ladder) Development Procedure...........................................................................2
II PROGRAMMING EXPLANATION 1. Outline.................................................................................................................................................1 2. PLC Processing Program...................................................................................................................2
2.1 PLC Processing Program Level and Operation.......................................................................2 2.2 Outline of PLC Processing Program (Two Program Method) ..................................................3 2.3 Independent Program Method .................................................................................................3 2.4 Multi-program Method..............................................................................................................3
2.4.1 Number and Types of Registerable Programs ..................................................................4 2.4.2 Program Execution Order..................................................................................................4
2.5 User Memory Area Configuration and Size .............................................................................5 2.5.1 Independent Program Method...........................................................................................5 2.5.2 Multi-program Method .......................................................................................................5
2.6 Storing PLC Processing Program and Execution Mode ..........................................................6 2.6.1 Path from Storage to Execution.........................................................................................6 2.6.2 Conversion of Instruction Code at Execution ....................................................................6 2.6.3 How to Confirm the Number of Steps at Storage/Execution..............................................6
3. Input/Output Signals ...........................................................................................................................7 3.1 Input/Output Signal Types and Processing..............................................................................7 3.2 Handling of Input Signals Designated for High-speed Input ....................................................8 3.3 High-speed Input/Output Designation Method.........................................................................9
4. Parameters .......................................................................................................................................10 4.1 PLC Constants.......................................................................................................................10 4.2 Bit Selection Parameters .......................................................................................................12 4.3 Other Parameters ..................................................................................................................15
4.3.1 PLC Startup Condition Switchover ..................................................................................15 5. Explanation of Devices ...............................................................................................................16
5.1 Devices and Device No. ........................................................................................................16 5.2 List of Devices .......................................................................................................................16 5.3 Detailed Explanation of Devices ............................................................................................17
5.3.1 Input/Output X, Y .............................................................................................................17 5.3.2 Internal Relays M and F, Latch Relay L...........................................................................18 5.3.3 Special Relay for Link (SB), Special Register for Link (SW)............................................18 5.3.4 Link Relay B, Link Register W.........................................................................................19 5.3.5 Special Relay SM, Special Register SD ..........................................................................19 5.3.6 Edge relay V....................................................................................................................20 5.3.7 Timer T ............................................................................................................................21 5.3.8 Integrated Timer ST.........................................................................................................23 5.3.9 Counter C ........................................................................................................................24 5.3.10 Data Register D .............................................................................................................25 5.3.11 File Register R ...............................................................................................................26 5.3.12 Index register Z..............................................................................................................26 5.3.13 Nesting N.......................................................................................................................27 5.3.14 Pointer P........................................................................................................................28
5.3.14.1 General Pointers .....................................................................................................29 5.3.14.2 Local Pointers .........................................................................................................29
5.3.14.3 Common Pointers ...................................................................................................30 5.3.14.4 Reserved Pointers...................................................................................................31
5.3.15 Decimal Constant K.......................................................................................................33 5.3.16 Hexadecimal Constant H...............................................................................................33
6. Explanation of Instructions..........................................................................................................34 6.1 Compatible Instructions and Extended Instructions...............................................................34 6.2 Instruction Tables...................................................................................................................36
6.2.1 How to Read Instruction Table.........................................................................................36 6.2.2 Basic instructions.............................................................................................................38 6.2.3 Comparison Instructions..................................................................................................40 6.2.4 Arithmetic Operation Instructions.....................................................................................41 6.2.5 BCD<->BIN Conversion Instructions ...............................................................................43 6.2.6 Data Transmission Instructions .......................................................................................44 6.2.7 Program Branch Instruction.............................................................................................45 6.2.8 Logical Operation Instructions .........................................................................................46 6.2.9 Rotation Instructions........................................................................................................48 6.2.10 Data Processing Instructions.........................................................................................49 6.2.11 Other Function Instructions............................................................................................50 6.2.12 Special Instructions for Old Machine Type Compatible .................................................51 6.2.13 Exclusive Instructions ....................................................................................................51
6.3 Data Designation Method ......................................................................................................52 6.3.1 Bit Data............................................................................................................................52 6.3.2 Word (16-bit) Data ...........................................................................................................53 6.3.3 Using double word data (32 bits).....................................................................................55
6.4 Index Qualification .................................................................................................................57 6.5 Operation Error ......................................................................................................................58 6.6 Execution Condition of Instruction .........................................................................................59 6.7 Counting Step Number ..........................................................................................................60 6.8 Operations when the OUT, SET/RST, or PLS/PLF instruction of the same device is used ...61 6.9 How to Read Instruction Tables .............................................................................................63
7. Basic Instructions........................................................................................................................64 8. Function Instructions.................................................................................................................103 9. Exclusive Instructions ...............................................................................................................217
9.1 ATC Exclusive Instruction ....................................................................................................218 9.1.1 Outline of ATC Control...................................................................................................218 9.1.2 ATC Operation ...............................................................................................................218 9.1.3 Explanation of Terminology ...........................................................................................218 9.1.4 Relationship between Tool Registration Screen and Magazines...................................219 9.1.5 Use of ATC and ROT Instructions .................................................................................220 9.1.6 Basic Format of ATC Exclusive Instruction....................................................................221 9.1.7 Instruction List ...............................................................................................................222 9.1.8 Control Data Buffer Contents.........................................................................................222 9.1.9 File Register (R Register) Assignment and Parameters................................................223 9.1.10 Details of Each Instruction...........................................................................................227 9.1.11 Precautions for Using ATC Exclusive Instructions .......................................................236 9.1.12 Examples of Tool Registration Screen.........................................................................236 9.1.13 Display of Spindle Tool and Standby Tool ....................................................................238
9.2 ROT Instructions..................................................................................................................239 9.2.1 Instruction List ...............................................................................................................239
10. PLC Help Function..................................................................................................................244 10.1 Tool Life Management (Machining Center System)...........................................................245
10.1.1 Outline of Tool Life Management Function ..................................................................245 10.1.2 Tool Life Management Methods ..................................................................................246 10.1.3 Procedure when tool command is executed................................................................246
10.1.4 Procedure When Spindle Tool is Changed ..................................................................247 10.1.5 Tool Life Management II Method .................................................................................247 10.1.6 Maximum Number of Registerable Tools.....................................................................248 10.1.7 Tool Data .....................................................................................................................249 10.1.8 Usage Time, Work Count ............................................................................................251 10.1.9 Tool Data Flow (R Register) ........................................................................................252 10.1.10 User PLC processing.................................................................................................254 10.1.11 Interface with PLC .....................................................................................................255
10.2 External Search .................................................................................................................258 10.2.1 Detailed Explanation....................................................................................................258 10.2.2 PLC NC Interface Signal.........................................................................................259 10.2.3 NC PLC Interface Signal.........................................................................................260 10.2.4 Timing Chart ................................................................................................................260 10.2.5 External Search Status ................................................................................................260 10.2.6 Precautions..................................................................................................................261 10.2.7 Usage Example ...........................................................................................................261
10.3 PLC Axis Control .....................................................................................................................262 10.3.1 Specifications ..............................................................................................................262 10.3.2 Detailed explanation ....................................................................................................263 10.3.3 PLC Interface...............................................................................................................264 10.3.4 Details of PLC Axis Control Information Data..............................................................266 10.3.5 Timing Chart ................................................................................................................273 10.3.6 Reference Position Return Near Point Detection ........................................................278 10.3.7 Handle Feed Axis Selection.........................................................................................278 10.3.8 Single Mode.................................................................................................................279 10.3.9 Buffering Mode ............................................................................................................279 10.3.10 PLC Axis Monitor .......................................................................................................282 10.3.11 Absolute Position Detection .......................................................................................282 10.3.12 Usage Example .........................................................................................................282
10.4 External Machine Coordinate System Compensation .......................................................283 10.5 Alarm Message Display .....................................................................................................284
10.5.1 Interface.......................................................................................................................284 10.5.2 Screen Display ............................................................................................................286 10.5.3 Message creation ........................................................................................................286 10.5.4 Parameters ..................................................................................................................287
10.6 Operator Message Display ................................................................................................289 10.6.1 Interface.......................................................................................................................289 10.6.2 Operator Message Preparation ...................................................................................290 10.6.3 Operator Message Display Validity Parameter............................................................290
10.7 PLC Switches ....................................................................................................................291 10.7.1 Explanation of Screen .................................................................................................291 10.7.2 Explanation of Operation .............................................................................................292 10.7.3 Signal Processing........................................................................................................293 10.7.4 Switch name preparation.............................................................................................297
10.8 Load Meter Display............................................................................................................298 10.8.1 Interface.......................................................................................................................298
11. Appendix .................................................................................................................................302 11.1 Example of Faulty Circuit ...................................................................................................302
III PERIPHERAL DEVELOPMENT ENVIRONMENT 1. Outline...........................................................................................................................................1
1.1 Software Configuration ............................................................................................................2 1.2 Operating Environment............................................................................................................3
2. GX Developer Functions Supported by MITSUBISHI CNC ..........................................................4 2.1 Function Support Conditions (General Section) ......................................................................4 2.2 Function Support Conditions (Online Section).........................................................................8
3. Preparation .................................................................................................................................12 3.1 Installing the Tools .................................................................................................................12 3.2 Preparation for Serial (RS-232C) Communication.................................................................12
3.2.1 Connecting the Serial Cable............................................................................................12 3.2.2 Setting the Connection Target .........................................................................................13
3.3 Preparation for Ethernet Communication ..............................................................................14 3.3.1 Confirming IP address of the CNC unit ...........................................................................14 3.3.2 Setting IP address for the Personal Computer Side........................................................14 3.3.3 Connecting the Ethernet Cable .......................................................................................14 3.3.4 Setting the Connection Target .........................................................................................15
4. Common Items............................................................................................................................16 4.1 Precautions before Development ..........................................................................................16 4.2 NC-related Parameters..........................................................................................................17 4.3 PLC Data Storage Areas........................................................................................................18 4.4 File Name ..............................................................................................................................21
4.4.1 File name rule for sequence program, parameter, and device comment ........................21 4.4.2 File name rule for message data .....................................................................................22
4.5 Creating a Project ..................................................................................................................24 4.5.1 Project .............................................................................................................................24 4.5.2 Operating Procedures .....................................................................................................25
4.6 Setting the Parameters ..........................................................................................................26 4.6.1 Parameter Setting Screen ...............................................................................................26 4.6.2 Setting the Number of Device Points...............................................................................27 4.6.3 Setting the Number of Common Pointer Points...............................................................28 4.6.4 Setting the Program Execution Order..............................................................................29 4.6.5 Writing and Reading Parameters to and from the CNC Controller..................................30
4.7 Starting/Stopping the PLC of the CNC Controller ..................................................................31 4.7.1 Operation Procedure .......................................................................................................31
4.8 Keyword Registration.............................................................................................................32 4.8.1 Data Protected by a Keyword..........................................................................................32 4.8.2 Operations Prohibited by a Keyword ...............................................................................32 4.8.3 Structure of the Keyword Function ..................................................................................32 4.8.4 File Names Excluded from the Target of Keyword Protection .........................................33 4.8.5 Compatibility and Precautions when Using the System with No Keyword Support.........33 4.8.6 Registering a Keyword ....................................................................................................34 4.8.7 Canceling the Keyword....................................................................................................35 4.8.8 Disabling the Keyword.....................................................................................................35 4.8.9 Disabling the Keyword as Required when Accessing to CNC.........................................36
5. Sequence Program Development...............................................................................................37 5.1 Development Procedures ......................................................................................................37
5.1.1 Method for Using Sequence Program Developed with PLC4B .......................................37 5.2 Writing the Sequence Program to the CNC Controller ..........................................................38
5.2.1 Operation Procedure .......................................................................................................38 5.2.2 Writing Operation.............................................................................................................38 5.2.3 Operations and Check Items at Conversion Error...........................................................39 5.2.4 Operations and Check Items at the Other Errors ............................................................41
5.3 Reading the Sequence Program from the CNC Controller....................................................43 5.3.1 Operation Procedure .......................................................................................................43
5.4 Verifying the Sequence Programs .........................................................................................45 5.4.1 Operation Procedure .......................................................................................................45
5.5 Using Sequence Programs from Older Models .....................................................................46
5.5.1 Starting GX Converter and Specifying the File to be Converted......................................46 5.5.2 Conversion Format Setting..............................................................................................46
5.6 Monitoring the Sequence Program........................................................................................49 5.6.1 Operation Procedure .......................................................................................................49
5.7 Executing Sampling Trace on Device ....................................................................................50 5.7.1 Basic Operation ...............................................................................................................51 5.7.2 Basic Specifications.........................................................................................................52 5.7.3 Status of Special Relay during Sampling Trace...............................................................55 5.7.4 Sampling Trace Operation Screen ..................................................................................56
5.7.4.1 Sampling Trace Main Screen ....................................................................................57 5.7.4.2 Wizard Setting/Execution Screen..............................................................................58 5.7.4.3 Trace Setting .............................................................................................................59 5.7.4.4 Trace Execution ........................................................................................................65 5.7.4.5 Trace Result ..............................................................................................................67
5.7.5 Operation at Error............................................................................................................68 5.7.6 Operation Example..........................................................................................................69 5.7.7 Precautions......................................................................................................................71
6. PLC Message Development .......................................................................................................72 6.1 Development Procedure ........................................................................................................72
6.1.1 Using a General Text Editor.............................................................................................73 6.1.2 Entering Messages Directly from GX Developer .............................................................73
6.2 Message Data Description Method........................................................................................74 6.2.1 Description Format ..........................................................................................................74 6.2.2 Description Method..........................................................................................................75 6.2.3 Precautions......................................................................................................................76
6.3 Converting Data into GX Developer Format ..........................................................................77 6.3.1 Starting GX Converter and Specifying the File to be Converted......................................77 6.3.2 Conversion Format Setting..............................................................................................77
6.4 Entering/Editing Data using GX Developer............................................................................79 6.4.1 Interlinear Statement Display using Circuit Display .........................................................79 6.4.2 Interlinear Statement Display using List Display..............................................................80 6.4.3 Editing of Integrated Type Interlinear Statements............................................................81
6.5 Writing to the CNC Controller ................................................................................................82 6.5.1 Operation Procedure .......................................................................................................82 6.5.2 Writing Operation.............................................................................................................82 6.5.3 Operation at Write Error ..................................................................................................83 6.5.4 How to Confirm the Error Position ...................................................................................84
6.6 Reading and Verifying from the CNC Controller ....................................................................85 6.6.1 Menu Selection/Screen Operation...................................................................................85
7. Device Comment Creation..........................................................................................................86 7.1 Development Procedure ........................................................................................................86 7.2 Description Method for Indirect Entry ....................................................................................87 7.3 Converting Comment Data into GX Developer Data .............................................................88
7.3.1 Starting GX Converter and Specifying the File to be Converted......................................88 7.3.2 Conversion Format Setting..............................................................................................88
8. Troubleshooting ..........................................................................................................................91 8.1 List of Errors During GX Developer Online Operations .........................................................91 8.2 Confirmation of PLC Alarms on CNC Controller Side............................................................93
8.2.1 Operating Procedures .....................................................................................................93 8.2.2 Details of Each Display....................................................................................................94 8.2.3 Detailed Error Information Display...................................................................................94 8.2.4 Display of the Error-generated Ladder ............................................................................95 8.2.5 List of Corresponding PLC Alarms ..................................................................................95
8.3 Initialization for PLC Data Storage Area ................................................................................97
8.3.1 Operation Procedure .......................................................................................................97 9. Procedures for Backing Up Data Such as Sequence Programs.................................................98
9.1 Backup Target Data ...............................................................................................................98 9.2 Backup Procedures ...............................................................................................................98 9.3 Restoring Backed Up Data ....................................................................................................99
IV Explanation of built-in editing function 1. Outline...........................................................................................................................................1 2. Starting and Ending Onboard........................................................................................................6
2.1 Starting.....................................................................................................................................6 2.1.1 Startup with Standard Operation Mode..............................................................................6 2.1.2 Startup with Simple Operation Mode .................................................................................7 2.1.3 70 Series Startup ...............................................................................................................8
2.2 Ending......................................................................................................................................9 2.3 Switching from Simple Operation Mode to Standard Operation Mode ..................................10 2.4 Switching from Standard Operation Mode to Simple Operation Mode .................................. 11
3. Screens.......................................................................................................................................12 3.1 Screen Resolution .................................................................................................................12 3.2 Types .....................................................................................................................................12 3.3 Full Screen Display................................................................................................................12 3.4 Color-coded Display of "LADDER" Screen............................................................................15 3.5 Split Display ...........................................................................................................................16 3.6 Popup Screen ........................................................................................................................17 3.7 Confirmation Popup Screen...................................................................................................18 3.8 Error Display Popup Screen ..................................................................................................18 3.9 Screen Title Display ...............................................................................................................19 3.10 Menu Key Display................................................................................................................19 3.11 Basic Screen Operations .....................................................................................................20 3.12 Language.............................................................................................................................25
3.12.1 Screen Display Language .............................................................................................25 3.12.2 Comment (Statement, Note, Comment, Device Name) Language................................25
4. PLC Data ....................................................................................................................................26 4.1 PLC Data Storage Area .........................................................................................................26 4.2 Type of Data ..........................................................................................................................28
4.2.1 Program Data ..................................................................................................................29 4.2.2 Device Comment Data ....................................................................................................30 4.2.3 Parameter Data ...............................................................................................................30
5. Explanation of Keys (Keys Related to Onboard).........................................................................31 5.1 Basic Operation Keys ............................................................................................................31 5.2 Menu Keys.............................................................................................................................32
5.2.1 Menu Keys in Standard Operation Mode and Simple Operation Mode...........................32 5.2.2 Menu Key Hierarchies and Movement ............................................................................32
5.2.2.1 Menu keys in standard operation mode ....................................................................32 5.2.2.2 Menu keys in simple operation mode........................................................................32 5.2.2.3 Menu Keys in 70 Series ............................................................................................33
5.2.3 Details of Menu Keys.......................................................................................................34 5.2.3.1 Menu keys in standard operation mode ....................................................................34 5.2.3.2 Menu keys in simple operation mode........................................................................38 5.2.3.3 Menu Keys in 70 Series ............................................................................................41
6. Environment Setting....................................................................................................................45 6.1 Setting the Connected NC Control Unit .................................................................................46
6.1.1 Arbitrary Switchover of Connected NC............................................................................47 6.1.2 Information to be updated at connection switchover .......................................................47
6.2 NC File Operation Setting......................................................................................................48
6.2.1 Setting the Storage Destination of Device Comment ......................................................48 6.3 Simple Operation Mode Menu Key Switchover .....................................................................49 6.4 Ladder Display Setting...........................................................................................................50
6.4.1 Maximum Number of Contacts ........................................................................................50 6.4.2 Zoom Display...................................................................................................................50 6.4.3 Current Monitor Value Display.........................................................................................50
6.5 Comment Display Setting ......................................................................................................51 6.5.1 Comment Line .................................................................................................................51 6.5.2 Various Displays ..............................................................................................................51 6.5.3 Common Comment File...................................................................................................52
7. Basic Operations.........................................................................................................................53 7.1 Basic Operations 1 (Steps for Creating a Program for the First Time) ..................................53 7.2 Basic Operations 2 (Creating, Monitoring and Testing Programs).........................................54 7.3 Basic Operations 3 (Correcting Programs Stored in NC) ......................................................55 7.4 Basic Operations 4 (Creating Multiple Programs with Multi-program Method)......................56 7.5 Basic Operations 5 (Creating Device Comments) .................................................................57 7.6 Basic Operations 6 (Upgrading the Program Version)...........................................................58 7.7 Bas