INTRODUCTION
Thank you for purchasing the Mitsubishi CNC communication software FCSB1224W000. This user's
reference manual describes how to use the OLE/COM interface of FCSB1224W000.
Read this manual before use to get familiar with and correctly use the functions of FCSB1224W000.
Precautions for Safety
(Read carefully before use.)
Before using the product, read the user's reference manual and other related manuals. Pay careful attention to
safety when using the product.
The safety instructions in this manual are intended for this product. Do not use this product until you have a full
knowledge of general and safety information and precautions about the computerized numerical controller.
In this manual, the safety instruction levels are classified into "WARNING" and "CAUTION".
!
危険
!
注意
Note that even items ranked as
!
注意
, may lead to major results depending on the situation. In any case,
important information that must always be observed is described.
Keep this manual in a safe place for future reference.
[Mechanical precautions]
!
危険
[Startup and maintenance precautions]
!
注意
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 medium or slight injuries or when physical
damage could occur if handling is mistaken.
When connecting the product with the computerized numerical controller, consider the risk of external
power supply failure and computer malfunction, and install the external safety circuit as fail-
safe of the
entire system.
There is a risk of accident due to output error or malfunction.
Writing to the computerized numerical controller will directly be reflected in machine control.
Input error of setup or other parameter may cause accidental operation.
Check all things before execution.
Operation error may cause machine damage or accident.
Some functions may be different or unavailable depending on the version of the computerized numerical
controller.
DANGER
CAUTI
ON
CAUTION
CAUTION
DANGER
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®, Windows, Visual C++® and Visual Basic® are either trademarks or registered trademarks of
Microsoft Corporation in the United States and/or other countries.
CompactFlash and CF are either trademarks or registered trademarks of SanDisk Corporation in the United
States and/or other countries.
SD Logos are trademarks or registered trademarks of SD-3C, LLC in the United States, other countries or
both.
Other company and product names that appear in this manual are trademarks or registered trademarks of the
respective companies.
CONTENTS
1. OUTLINE
1.1 Features ................................................................................................................................................... 1-1
1.2 Applicable Models .................................................................................................................................... 1-1
1.3 Connection Configuration ......................................................................................................................... 1-1
1.3.1 Connection with M700 series ........................................................................................................... 1-2
1.3.2 Connection with M800 series ........................................................................................................... 1-2
1.3.3 Connection with C70 ........................................................................................................................ 1-3
1.4 Development Environment ....................................................................................................................... 1-5
1.5 Installation ................................................................................................................................................ 1-6
1.6 Preparation for Use .................................................................................................................................. 1-6
1.7 Interface .................................................................................................................................................... 1-7
1.7.1 Custom interface .............................................................................................................................. 1-7
1.7.2 Automation interface ........................................................................................................................ 1-8
1.8 Program Flow ........................................................................................................................................... 1-9
1.8.1 VC++ program flow .......................................................................................................................... 1-9
1.8.2 VB program flow ............................................................................................................................ 1-10
2. I/F DETAILED SPECIFICATIONS
2.1 Common Items ......................................................................................................................................... 2-1
2.2 Method List ............................................................................................................................................... 2-3
2.3 IEZNcCommunication3 Interface ............................................................................................................. 2-6
2.4 IEZNcSystem Interface .......................................................................................................................... 2-20
2.5 IEZNcPosition Interface .......................................................................................................................... 2-25
2.6 IEZNcCommand2 Interface .................................................................................................................... 2-45
2.7 IEZNcProgram2 Interface ....................................................................................................................... 2-51
2.8 IEZNcTime Interface ............................................................................................................................... 2-58
2.9 IEZNcAxisMonitor Interface .................................................................................................................... 2-68
2.10 IEZNcRunStatus Interface .................................................................................................................... 2-91
2.11 IEZNcFile6 Interface ............................................................................................................................. 2-98
2.12 IEZNcCommonVariable2 Interface ..................................................................................................... 2-123
2.13 IEZNcLocalVariable2 Interface ........................................................................................................... 2-129
2.14 IEZNcTool3 Interface .......................................................................................................................... 2-132
2.15 IEZNcATC3 Interface.......................................................................................................................... 2-165
2.16 IEZNcParameter3 Interface ................................................................................................................ 2-175
2.17 IEZNcOperation Interface ................................................................................................................... 2-183
2.18 IEZNcDevice Interface ....................................................................................................................... 2-186
2.19 IEZNcSubFunction3 Interface ............................................................................................................ 2-196
3. ERROR CODE LIST
4. API OPERATING PROCEDURE
4. API OPERATING PROCEDURE .............................................................................................................. 4-1
4.1 API Operating Procedure ........................................................................................................................ 4-1
4.2 Initialization for Enabling OLE/COM Interface .......................................................................................... 4-2
4.3 Object Creation......................................................................................................................................... 4-3
4.4 Include Files ............................................................................................................................................. 4-3
4.5 Overview of VB Programming of Automation Interface ............................................................................ 4-4
4.5.1 Using OLE automation interface with VB ........................................................................................ 4-4
4.5.2 VB program flow (1) ......................................................................................................................... 4-6
4.5.3 VB program flow (2) ......................................................................................................................... 4-7
- 1
- 2
- 3
- 4
- 5
前往页