For manufacturing machines equipped with Mitsubishi controllers this diagnostic tool enables you to test reading and writing operations by using all available commands for these devices. It enables to quickly setup customized Mitsubishi device driver INI files for CNCnetPDM. The program can be executed on a PC with MS Windows OS (>= XP SP3) connected to your controller via Ethernet. It can be used for machines other than from Citizen or Mazak.
Download and extract all contents of mitsubishicommands.zip to a folder on your PC
In this folder open file melcfg.ini with a text editor and scroll down to section [HOSTS] (1).
melcfg.ini comes with predefined entries for up to 54 machines, every line in section [HOSTS] contains Mitsubishi machine number (the number after TCP), IP Address and TCP Port of a single machine.
Replace the default IP Address 192.168.1.100 with the IP Address of your controller (2), note down the machine number (3) and save the file. If, for example, the IP Address of your first controller is 192.168.1.2 the line should look like TCP1=192.168.1.2,683
In field ‘Mitsubishi Machine Number’ (1) enter the machine number as defined in melcfg.ini
Initially the program starts with Mitsubishi Command (2) M_SSEC_EXST_NC_RUN_STATUS which returns the running status of the machine. You can also copy a command from a specific section f.i. 'Program execution status' and paste it into the input field by clicking on the button with 3 dots.
Clicking on button ‘Execute’ (3) shows the result of the operation, here 3, in the right area:
FIG 2: Output of MitsubishiCommands (Read Running Status)
Data Type (5): Allows you to adjust the data type for the command according to the ‘Default Data Type’ mentioned in the documentation of the respective command.
Parameter Value (X) (6): For commands that require a parameter value e.g. a common variable number M_SSEC_CMVRS_DAT(x) you can enter it’s number here. Input this parameter for commands that end with (x).
Axis number (7): For axis related commands e.g. Axis Name M_SSEC_AXISPRM_NAME a specific axis number has to be entered here.
Part System (8): If your machine has two or more part systems you can input it's number here and query data from the selected system. To detect the number of part systems on your controller execute MitsubishiM70M80 and note down the value of 'Nr. Part Systems'.
Note: Command M_SSEC_CUR_ALARMS with Data Type T_ALM can be used to query up to 10 active alarms from each part system.
FIG 3: Query active alarms from Mitsubishi CNC
WRITE DATA
MitsubishiCommands also allows you to change data at the controller by using commands with note ‘W’ or ‘RW’ in column R/W of their documentation e.g. M_SSEC_CMVRS_DAT(x).
To change the value of common variable 100, proceed as follows:
In field Mitsubishi Command (9) type in M_SSEC_CMVRS_DAT(x). You can also copy the command name and paste it into this field by clicking on the button with 3 dots right of the input field
As Data Type (10) select T_FLOATBIN
In field Parameter Value (11) enter 100
Activate checkbox ‘Write to Controller’ (12) and enter the new value for variable 100 in the input field below
If your machine has more than 1 part systems and you'd like to write to a part system other than 1 you can target it by input of it's number in field 'Part System'
Clicking on button ‘Execute’ (13) changes the variable value and shows the result in the right area
You can verify the new value for common variable 100 at the controller (14)
FIG 4: Change common variable 100 with MitsubishiCommands
FIG 5: Verify the new value for common variable 100 at the controller
LICENSING
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 functionality. Otherwise you can only read data and execute commands that require no additional input parameter (x). Please see licensing for details or contact us if you have any questions.
Note: If you like to run this program from a different folder on your PC you can simply copy your CNCnetPDM.ini file to this directory.
CONTROLLERS
The program was tested and works with the following controllers in production environments, others may work as well: