To report machine data to your applications you have to be able to acquire it from your devices. For machines equipped with Mitsubishi controllers connected to your company network you can use the utility program MitsubishiM70M80.exe to do so. The program uses the most recent version of Mitsubishi’s M700/70 - M800/80 API (Application Program Interface) functions to access the controller and query data.
To directly read/write data from/to machines with Mitsubishi controllers connected to CNCnetPDM with your applications you can use our free Open Source Client (C-Sharp)
To be able to verify the results it is recommended to use this utility on a laptop with a network connection at the shop-floor in front of the machine.
FIG 1: Mitsubishi M700 CNC
If you have installed CNCnetPDM on your PC with a license other than a ‘free license’ and run this program from the folder where CNCnetPDM is installed you get unlimited output. Otherwise the program outputs a restricted set of items. Please see licensing for details or contact us if you have any questions.
Note: If you like to run this program from a different location on your PC you can simply copy your CNCnetPDM.ini file to this directory.
Extract all contents of mitsubishi.zip to a folder on your Laptop.
As the program identifies and accesses controllers by using machine numbers the first thing you have to do is to edit the configuration file melcfg.ini.
Machine numbers are defined in sections, one for each device. The machine number is the numeric part after Machine, e.g. [Machine01] = 1. Note: The second part of this numeric value uses hexadecimal notation from 1 to F, e.g. 01 = 1 and 0F = 15, remember your math lessons.
If you’re testing with one machine it is recommended to leave section [Machine01] as it is. Only in case it doesn’t work you can change the value for Controller from M8NX to NCXJ, NCXK, M6B, NX or M7NX.
It is necessary to adjust section [HOSTS] according to your setup e.g. TCP1=192.168.100.1,683 means that the IP Address of your controller is 192.168.100.1 683 after the comma is the port to be used to access the controller, do not change that.
For additional machines you have to copy and paste the whole section [Machine01], then change its name e.g. [Machine02] and Device= to a different device in section [HOSTS] e.g. Device=TCP2. In section [HOSTS] you have to add a new device e.g. TCP2=192.168.100.2,683.
In Windows Explorer double click MitsubishiM70M80.exe
In field ‘Mitsubishi Machine Number’ enter the number as defined in melcfg.ini.
Check ‘Basic Test Only’.
Click on button ‘Query’.
If you don’t get an error, repeat the test with ‘Basic Test Only’ unchecked.
FIG 2: Output of MitsubishiM70M80.exe (full test)
MitsubishiM70M80.exe outputs the following data:
Running Status (= Basic Test)
NC Program Number (Main)
NC Program Sequence (Main)
NC Program Block (Main)
NC Program Number (Sub)
NC Program Sequence (Sub)
NC Program Block (Sub)
Number of controlled Axes
Number of Spindles
Number of NC-Axes
Commanded Feed Rate
FC (Combined speed)
Alarm (0-10): Displays up to 10 active alarms sorted by priority
Block number of the currently active NC Program
Current block outputs up to 10 lines of the current NC Program block
STATUS AND MODE OUTPUT
The following tables shows possible values for ‘Running Status’ and ‘Running Mode’:
In Automatic running
The program was tested and works with the following controllers: