logo资料库

三菱API接口PDF文档.pdf

第1页 / 共275页
第2页 / 共275页
第3页 / 共275页
第4页 / 共275页
第5页 / 共275页
第6页 / 共275页
第7页 / 共275页
第8页 / 共275页
资料共275页,剩余部分请下载后查看
Front cover
Trademarks
1. OVERVIEW
1.1 Features
1.2 Supported Products
1.3 Development Environment
1.4 Installation
1.5 Usage
1.6 Interface
1.6.1 Custom interface
1.6.2 Automation interface
1.7 Programming Procedure
1.7.1 Programming procedure with VC++ (1)
1.7.2 Programming procedure with VC++ (2)
1.7.3 Programming procedure with VB (1)
1.7.4 Programming procedure with VB (2)
2. DETAILS OF I/F SPECIFICATION
2.1 Common Items
2.2 Method List
2.3 IEZNcCommunication3 Interface
2.4 IEZNcSystem Interface
2.5 IEZNcPosition Interface
2.6 IEZNcCommand2 Interface
2.7 IEZNcProgram2 Interface
2.8 IEZNcTime Interface
2.9 IEZNcAxisMonitor Interface
2.10 IEZNcRunStatus Interface
2.11 IEZNcFile5 Interface
2.12 IEZNcCommonVariable2 Interface
2.13 IEZNcLocalVariable2 Interface
2.14 IEZNcTool3 Interface
2.15 IEZNcATC2 Interface
2.16 IEZNcParameter2 Interface
2.17 IEZNcOperation Interface
2.18 IEZNcDevice Interface
2.19 IEZNcGeneric2 Interface
2.20 IEZNcSubFunction2 Interface
3. ERROR CODE LIST
4. HOW TO USE API
4.1 API Operation Procedure
4.2 Initialization for OLE/COM Interface Use
4.3 Create the Object
4.4 Include Files
4.5 Programming Automation Interface by VB
4.5.1 How to use OLE automation interface by VB
4.5.2 How to program by VB (1)
4.5.3 How to program by VB (2)
5. APPLICATION INSTALLATION PROCEDURE
5.1 Overview
5.2 Redistribution by Using Installer for Redistribution
5.2.1 Path to the folder in which installer for redistribution is saved
5.2.2 Specification and processing of the installer for redistribution
5.2.3 Troubleshooting
5.3 Rules on Redistribution
5.3.1 Redistributable module group
5.3.2 Redistributable files
5.4 Installation
5.4.1 Upgrading redistributable files
5.4.2 Install destination directory of files
5.5 Structure of the Install Destination Directory
5.6 Registry Setting
5.6.1 Renewing registry
5.7 System Environment Variable Setting
5.8 COM Information Registry Setting
5.9 Precaution for Uninstalling
6. SAMPLE APPLICATION
6.1 Overview of Sample Application
6.2 Position Data Display Application
6.2.1 Performance environment
6.2.2 Installation and uninstallation
6.2.3 Executing sample application
6.2.4 Function list
6.2.5 Screen configuration and functions
6.2.6 Set project work space
6.2.7 IEZNcCommunication object
6.2.8 IEZNcPosition object
6.3 Monitoring Application
6.3.1 Performance environment
6.3.2 Installation and uninstallation
6.3.3 Executing sample application
6.3.4 Function list
6.3.5 Screen configuration and functions
6.3.6 Setting project work space
6.4 Macro Sample Program
6.4.1 Performance environment
6.4.2 Installation and uninstallation
6.4.3 Executing sample program
7. CONSOLE PROGRAM SAMPLE
7.1 The Console Program which Runs on the Computer on which the CNC Unit/Board is Mounted
7.2 The Console Program which Runs on the Remote Personal Computer Connected by Ethernet
7.3 The Macro Sample Program that Uses OLE Interface Macro
8. RESCTRICTION
8.1 Restriction in Performance on Server
Global Service Network
MITSUBISHI Mitsubishi communication software for CNC FCSB1224W000 Reference Manual (Draft edition) IB-1501209(ENG)-*
INTRODUCTION Thank you for choosing FCSB1224W000, the Mitsubishi communication software for CNC. In this user's reference manual, the usage of FCSB1224W000 OLE/COM interface is described. Always read through this manual before use and fully understand the FCSB1224W000 function to ensure correct use.
SAFETY PRECAUTIONS (Read these precautions before using.) When using this product, thoroughly read this manual and the associated manuals. Pay careful attention to safety and handle the product properly. The safety precautions described here are in relation to this product. Get acquainted with this CNC unit and thoroughly study the safety information and precautions before use. These SAFETY PRECAUTIONS classify the safety precautions into two categories: "DANGER" and "CAUTION". DANGER ! Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury. ! CAUTION Indicates that incorrect handling may cause hazardous conditions, resulting in medium or slight personal injury or physical damage. Note that the items under " situation. Please follow all items listed in "Safety Precautions" as they are equally important. Keep this manual handy for your future reference. ! CAUTION" could lead to serious consequences as well depending on the ! [DESIGN PRECAUTIONS] DANGER • When connecting with NC unit, install an external safety circuit so that the entire system performs on the safe side when malfunction occurs in the external power supply or personal computer body. • Incorrect input or incorrect operation may cause an accident. • Writing function to NC unit directly affects to machine control. • An unexpected operation may be resulted due to incorrect parameter setting. (EX. Setup) • Execute after careful check. [SETUP and MAINTENANCE PRECAUTIONS] CAUTION • Operation error could result in damage to machine or accident. • Some functions may be different or may not be available depending on the version of NC unit. !
Trademarks MELDAS, MELSEC, EZSocket, EZMotion, iQ Platform, MELSOFT, GOT, CC-Link, CC-Link/LT and CC-Link IE are either trademarks or registered trademarks of Mitsubishi Electric Corporation in Japan and/or other countries. Ethernet is a registered trademark of Xerox Corporation in the United States and/or other countries. Microsoft® and Windows® are either trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. CompactFlash and CF are either trademarks or registered trademarks of SanDisk Corporation in the United States and/or other countries. Other company and product names that appear in this manual are trademarks or registered trademarks of the respective companies.
CONTENTS 1. OVERVIEW ................................................................................................................................................ 1-1 1.1 Features.......................................................................................................................................................... 1-1 1.2 Supported Products ........................................................................................................................................ 1-1 1.3 Development Environment.............................................................................................................................. 1-2 1.4 Installation ....................................................................................................................................................... 1-2 1.5 Usage.............................................................................................................................................................. 1-3 1.6 Interface .......................................................................................................................................................... 1-4 1.6.1 Custom interface ...................................................................................................................................... 1-4 1.6.2 Automation interface................................................................................................................................. 1-5 1.7 Programming Procedure................................................................................................................................. 1-6 1.7.1 Programming procedure with VC++ (1) ................................................................................................... 1-6 1.7.2 Programming procedure with VC++ (2) ................................................................................................... 1-7 1.7.3 Programming procedure with VB (1)........................................................................................................ 1-8 1.7.4 Programming procedure with VB (2)........................................................................................................ 1-9 2. DETAILS OF I/F SPECIFICATION ............................................................................................................. 2-1 2.1 Common Items................................................................................................................................................ 2-1 2.2 Method List...................................................................................................................................................... 2-4 2.3 IEZNcCommunication3 Interface.................................................................................................................... 2-9 2.4 IEZNcSystem Interface ................................................................................................................................. 2-24 2.5 IEZNcPosition Interface ................................................................................................................................ 2-28 2.6 IEZNcCommand2 Interface .......................................................................................................................... 2-36 2.7 IEZNcProgram2 Interface ............................................................................................................................. 2-42 2.8 IEZNcTime Interface ..................................................................................................................................... 2-48 2.9 IEZNcAxisMonitor Interface .......................................................................................................................... 2-58 2.10 IEZNcRunStatus Interface .......................................................................................................................... 2-79 2.11 IEZNcFile5 Interface.................................................................................................................................... 2-85 2.12 IEZNcCommonVariable2 Interface ............................................................................................................2-111 2.13 IEZNcLocalVariable2 Interface ..................................................................................................................2-117 2.14 IEZNcTool3 Interface ................................................................................................................................ 2-120 2.15 IEZNcATC2 Interface ................................................................................................................................ 2-155 2.16 IEZNcParameter2 Interface ...................................................................................................................... 2-167 2.17 IEZNcOperation Interface ......................................................................................................................... 2-171 2.18 IEZNcDevice Interface .............................................................................................................................. 2-174 2.19 IEZNcGeneric2 Interface .......................................................................................................................... 2-182 2.20 IEZNcSubFunction2 Interface................................................................................................................... 2-189 3. ERROR CODE LIST................................................................................................................................... 3-1 4. HOW TO USE API...................................................................................................................................... 4-1 4.1 API Operation Procedure................................................................................................................................ 4-1 4.2 Initialization for OLE/COM Interface Use........................................................................................................ 4-2 4.3 Create the Object............................................................................................................................................ 4-3
分享到:
收藏