News CNCnetPDM About us Support  
         
  

DEVICE DRIVER | MITSUBISHI

This highly configurable device driver for CNCnetPDM enables you to acquire and output all items that can be read from Mitsubishi CNC controllers on machines other than from Citizen or Mazak. Here you can find a list of sections with all possible items that you can use with the driver: Sections

Output example

DOWNLOAD | LICENSING | SETUP CNCNETPDM | SETUP MITSUBISHI | USAGE | ADJUST ITEMS | TIPS | TROUBLESHOOTING | CONTROLLERS | UPGRADE DRIVER

You can dynamically define your own set of items (up to 30) that can be enabled and disabled on a per machine basis by an INI file that is automatically created for each machine configured. This INI file also allows you to define your own names for every signal.

  • Make sure that you have a connection from your PC to the machine and get data, use the MitsubishiM70 utility to do so. Please also open port 683 in your Firewall.
  • Please use the utility program Device Driver Tester to test this driver before setup of a device in CNCnetPDM. This tool enables you to quickly configure, build customized versions and verify correct functionality of your driver.
  • To directly read/write data from/to machines with Mitsubishi controllers with your applications you can use our free Open Source Client (C-Sharp)

TOP

DOWNLOAD DRIVER

TOP

LICENSING

This device driver requires the most recent version of CNCnetPDM and also works with a free license. However, in this mode you only get output for the first item configured in your INI file. With a valid license you are able to output the result of up to 30 functions per reading cycle, see licensing for details. TOP

SETUP CNCNETPDM

  • Download CNCnetPDM and install it as described in the quick-start-guide.
  • Download the Mitsubishi driver, extract all content of mitsubishi_dll.zip into the folder where you have CNCnetPDM installed.
  • Edit CNCnetPDM.ini and add a new device as described in the quick start guide point 6. If you already have an entry in section [RS232] for a machine with a Mitsubishi controller you can simply copy and paste this line and change its content. You may comment out the previous entry by prepending a semicolon ‘;’ if it’s the same machine.
  • Change the line as follows:

Configure CNCnetPDM.ini

FIG 1:    Configure device Mitsubishi in CNCnetPDM.ini

For Mitsubishi controllers the following 3 parameters are important

  1. Right to the IP Address of the controller enter number 683 (=port)
  2. Right to the DNS Hostname of your machine enter the Mitsubishi number as configured, see section ‘MITSUBISHI SETUP’.
  3. Change the driver name to mitsubishi.dll TOP

MITSUBISHI SETUP

  • Extract all contents of mitsubishi_dll.zip to the directory where CNCnetPDM is installed.
  • As the driver identifies and accesses controllers by using machine numbers the first thing you have to do is to edit the configuration file melcfg.ini.
  • Mitsubishi 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 working 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 network configuration 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.
  • Save melcfg.ini. TOP

USAGE

  • Start CNCnetPDM, foreground program is sufficient (Start thread)
  • CNCnetPDM automatically copies the original mitsubishi.dll and appends the machine number as configured in the INI file, e.g. mitsubishi_1000.dll for machine 1000.
  • In addition an INI file with the same name is created by the device driver, e.g. mitsubishi_1000.ini for your first machine.
  • Double click CNCnetControl, if your device number is 1000 and the device name is MITSUBISHI #1 the output should be similar to the one below:

CNCnetControl (Mitsubishi)

FIG 2:    CNCnetControl (Mitsubishi)

The machine (1) shows up as connected (2) which is good. On the right side (3) you see the acquired data:

  • The line starting with O contains most of items defined in the INI file of the device (e.g. Mitsubishi_1000.ini). If you didn’t change the ini file you get something like the following:

1000 08/29/2017 02:04:32 PM O STATN| 5| STATT| Error| MODEN| 2| MODET| ****| PRGCU| 1| PRGMN| 4712| SEQCU| 1| FEEDR| 0| SPSPD| 0| ALMST| 0| TOOL1| 0| TOOL2| 0| ALMTX| No alarm|  10000000002

Every item has a description followed by its value. All descriptions and values are delimited by pipe ‘|’ symbols. This allows the most recent version of CNCnetPDM to create a database record for every item.

With an unmodified INI file the initial items are:

ID

NAME

DESCRIPTION

1

STATN

Machine state number

2

MODEN

Controller mode number

3

PRGMN

Main NC program

4

SEQCU

Current sequence

5

BLKMN

Block main program

6

PRGSB

Current sub program

7

SEQSB

Sequence sub program

8

BLKSB

Block sub program

9

FEEDC

Command feed rate

10

FEEDR

Actual feed rate

11

SPDSP

Actual spindle speed

 

FIG 3:    IDs, names and description of items  TOP

ADJUST ITEMS

This device driver also enables you to dynamically select, group, enable or disable items and change their names. The INI file automatically created by the device driver for every machine contains sections that allow you to control its behavior.

Section [GENERAL] contains information about global parameters used by the driver on startup, usually there’s no need to change the preset values for Axisflag and System. Commands defines the number of commands you’d like to execute, maximum value = 30.

Numeric section [0] defines how you’d like to detect if the controller is accessible. If this command does not succeed the driver assumes that the controller is not accessible. In this case all other commands are not executed.

Description of the numeric sections:

Entry

Description

[0]

Section identifier, numbers > 0 are queried items

Axisflag

If column Axis in the documentation is marked with ‘O’ you can enter a number to get data related to a specific axis, e.g. 1

ParameterNumber

If column Command in the documentation ends with ‘(x)’ you can enter a number the driver should use for this command. If you enter 400 for M_SSEC_CMVRC_DAT(x) the driver queries common variable 400

Datatype

Datatype to be used for output as defined in column ‘Default Data Type’ e.g. T_DOUBLE for common variables

Command

Command to be executed e.g. M_SSEC_EXST_NC_RUN_STATUS for running status. To change a command first select a section. Then, simply copy the selected command (e.g. M_SSEC_CMVRC_DAT(x)) and paste it into the INI file. Make sure that you also enter the correct data type (e.g. T_DOUBLE) for the command in Datatype.

Active

If you set this to 0 the command is not executed

Name

A short name (max 5 characters) to describe the item e.g. STATN for status number

Comment

A comment that describes the command (optional)

Output section

You can output data to 3 sections that may contain up to 256 characters. 1 goes to section ‘O’, 2 to ‘A’ and 3 to ‘F’. If data in one section exceeds the maximum length you can send items to a different section. Make sure you have entries CollectOrders, CollectFeeder and CollectQuality enabled (=1) in CNCnetPDM.ini.

 

To change commands, switch items on or off or alter its name while CNCnetPDM is running open the ini file with a text editor such as notepad, make the desired changes and save the file. To apply the changes immediately you can click on the machine in CNCnetControl on the left side followed by clicking buttons ‘Close’ and ‘Open’ above the section ‘Devices’.  TOP

TIPS

An overview of all sections that lead to pages that contain commands belonging to the specific section can be found here.

It is recommended to start with simple commands in sections like Operation Status or CNC Information.

If you enter a wrong data type for output of data in the INI file you may get data but the values are incorrect.

If you want to add additional items first adjust the number of commands in section [GENERAL]. Then, copy and paste the last numeric section and adjust the section number and it’s content.  TOP

TROUBLESHOOTING

If the machine shows a red icon, state disconnected and you get just output E = 0 the machine is not reachable at all. This has nothing to do with the Mitsubishi API, it’s a network issue, DNS Hostname or IP Address is wrong.

If the machine shows a green icon, state connected but you just get output E = 1 the machine is reachable but the API does not respond to commands, check your Mitsubishi setup and the parameters used in CNCnetPDM.ini (esp. Port number). You can also use the tool MitsubishiM70.exe to check if the machine replies to commands.

If you do not get any of the preconfigured items please make sure that CollectOrders is set to 1 in section [General] of CNCnetPDM.ini. If you forced items to sections 2 or 3 set CollectQuality and CollectFeeder to 1.

If specific items are not acquired check first with MitsubishiM70.exe that you get output. Also make sure that the numeric section of the item in the device drivers ini file is activated and has an entry for ‘Name’, inactive or items with empty names are not acquired.  TOP

CONTROLLERS

The driver was tested and works with the following controllers, others may work as well:

Series M70

Machining center & Lathe system

  • FCA70P-2A
  • FCA70P-4A
  • FCA70P-2B
  • FCA70P-4B

Series M700

  • 720M
  • 730M
  • 750M
  • 720L
  • 730L
  • 750L

Series C6/C64 Series

  • C6L
  • C6T
  • C64M
  • C64L
  • C64T

Series C70

  • M system
  • L system

Series M70V

Machining Center & Lathe system

  • TypeB
  • TypeA

Series M700V

Machining Center & Lathe system

  • M720VS
  • M730VS
  • M750VS
  • M720VW
  • M730VW
  • M750VW TOP

UPGRADE DRIVER

If you already have a previous version of the driver installed and would like to upgrade to the most recent version proceed as follows:

  1. Stop any CNCnetPDM background service or foreground program that uses the device driver
  2. Extract all content of mitsubishi_dll.zip into the folder where you have CNCnetPDM installed, overwrite the existing files
  3. Delete all mitsubishi_NNNN.dll (NNNN = machine number) files. If you already have created adapted INI files for specific devices do NOT delete the mitsubishi_NNNN.ini files.
  4. After restarting CNCnetPDM upgraded device driver versions for all machines are automatically created. TOP

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/support/mitsubishi/device-driver
Support | Mitsubishi | Overview
Overview CNCnetPDM for machines with Mitsubishi controllers allows you to acquire machine-, process and quality-data from these devices in near real time and use it for your... [read more]
Overview
Support | Mitsubishi | Release Notes
(2/10/2019) We released updated versions of the diagnostic tools and CNCnetPDM device drivers for machines with Mitsubishi controllers from Citizen or Mazak and other vendors.... [read more]
Release Notes
Support | Mitsubishi | Machine Data
To report machine data to your applications you have to be able to acquire it from your devices. For machines equipped with Mitsubishi controllers you can use the utility program... [read more]
Machine Data
Support | Mitsubishi | Citizen Machine Data
To report machine data to your applications you have to be able to acquire it from your devices. For Citizen machines equipped with Mitsubishi controllers you can use the utility... [read more]
Citizen Machine Data
Support | Mitsubishi | Citizen Device Driver
This highly configurable device driver for CNCnetPDM enables you to acquire and output all items that can be read from Mitsubishi CNC controllers on CITIZEN and MAZAK machines.... [read more]
Citizen Device Driver
Modified: 2019-02-09