Marposs MIDA Macro Programming – Mitsubishi Systems Chapter

Document source: D310JBAG00 (VTS Bridge Mitsubishi)、D310A1AG07 (Tool Check on Fanuc)、D310A2AG16 (Part Check on Fanuc) Applicable systems: Mitsubishi M800/M80 series, M700/M70V series (M-series machini

Marposs MIDA Macro Programming – Mitsubishi Systems Chapter

Document source: D310JBAG00 (VTS Bridge Mitsubishi)、D310A1AG07 (Tool Check on Fanuc)、D310A2AG16 (Part Check on Fanuc)
Applicable systems: Mitsubishi M800/M80 series, M700/M70V series (M-series machining centers), C70, Meldas series Products: Marposs MIDA probe system, MIDA tool setter, VTS image tool setter

This question has been synchronously published to CSDN: https://jcetech.blog.csdn.net

catalogue

  • Overview
  • Mitsubishi M800/M70 G31 Detailed explanation of jumping function
  • SKIP related parameter configuration table
  • Fanuc MIDA Macro Program Porting to Mitsubishi
  • VTS Bridge Mitsubishi Complete Configuration
  • Comparison Table of Variable Compatibility between Mitsubishi and Fanuc
  • O9366 System Configuration(Mitsubishi Recommended Value)
  • Common Problems and Troubleshooting
  • I. Overview

    The Marposs MIDA trigger probe system is applied to CNC machining centers to achieve in machine measurement – aligning the workpiece during the machining preparation stage and performing in-situ dimension detection between processes/after work, without the need to move the workpiece to a coordinate measuring machine.

    In the Marposs MIDA software package, there is only one official document specifically for Mitsubishi CNC systems, D310JBAG00 (VTS Bridge Mitsubishi). This manual is mainly aimed at the installation and operation of bridge software for VTS image type tool setter on Mitsubishi system. The complete software package code isS609210534.

    And the Fanuc version MIDA Macro Program(Tool alignment device P9376~P9388、workpiece measurement O9301~O9392)Due to Mitsubishi M80/M70 The system is G Highly compatible with Fanuc in terms of code system,In principle, it can be ported to Mitsubishi systems for operation。This paper is based on D310JBAG00 Provided technical data and Fanuc compatibility principle,Systematically explain the measurement programming system on Mitsubishi systems、Parameter Configuration、Transplantation methods and VTS Bridge software configuration。

    1.1 Mitsubishi System Measurement Programming Three Layer Architecture

    The measurement programming on Mitsubishi systems can be summarized into the following three layers:

    Layer 1: G31 Jump function (SKIP Signal) ─ Hardware entrance triggered by the probe
    │ Mitsubishi Features: G31.1~G31.3 Multi segment jump, R Parameter variable speed jump

    Layer 2: G37 Automatic tool length measurement ─ Special instructions for the tool setter
    │ Automatically write after triggering H Compensation number

    Level 3: MIDA Macro program architecture ─ Standardized calibration/measurement/Compensation call interface
    ├─ tool setter: P9376~P9388 (Fanuc transplantation → Mitsubishi)
    ├─ workpiece measurement: O9301~O9392 (Fanuc transplantation → Mitsubishi)
    └─ VTS Image knife: O9700~O9731 (Bridge software communication)

    1.2 System Requirements

    • Mitsubishi Custom Macro B(Standard Configuration)
    • G31 Jump step input signal(SKIP)
    • User macro program storage space
    • Ethernet communication interface(VTS bridging)

    二、Mitsubishi M800/M70 G31 Detailed explanation of jumping function

    2.1 G31 Basic Behavior

    Mitsubishi’s G31 Same functionality as Fanuc,belongs to 00 Group one-time G code。Continuously monitoring jump signals during linear interpolation motion(SKIP Signal),Once the probe is triggered, immediately stop moving and record coordinates。

    G31 Z-50. F300 ; Z Axial downward movement,Waiting for the probe to trigger
    #100 = #5063 ; Read trigger point immediately Z Coordinate and save
    G00 Z100. ; Safe knife return

    Behavioral characteristics

  • 与 G01 Sharing the same feed rate mode(F 值)
  • Only respond to one jump signal, stop after triggering
  • If the entire process is not triggered, it will generateOvertravel alarm(PS0032 等),Need to be used in the program #3000 或 ONERROR capture
  • 2.2 Trigger Coordinate System Variables

    Variable number meaning With Fanuc Remark
    #5061 Trigger point X-axis mechanical coordinates ✅ exactly the same Must be G31 Read the next paragraph immediately
    #5062 Trigger point Y-axis mechanical coordinates ✅ exactly the same Ditto.
    #5063 Trigger point Z-axis mechanical coordinates ✅ exactly the same Ditto.

    ⚠️ Key rules:The above variables are G31 Triggered instantly written by the system,Any subsequent movement instructions(G00/G01/G31 等)It will cover its value。Must be G31 The next program segment is immediately read and assigned to a custom variable for saving。This behavior is completely consistent with Fanuc,FANUC MIDA Macro programs can be used directly without any modifications。

    Standard Read Mode:

    G31 Z-20. F200
    #101 = #5063 ; ← Save Now,Cannot be delayed
    G31 X10. F200
    #102 = #5061 ; ← Save Now

    2.3 Mitsubishi Exclusive:Multi segment jump G31.1 ~ G31.3

    Mitsubishi M800/M70 The series has expanded the standard G31,Support Multi segment jump command G31.1 / G31.2 / G31.3。This feature is usually not available in the Fanuc system(Unless optional features are available)。

    Instruction function Typical Applications
    G31 Single jump (standard) Single point surface measurement
    G31.1 Multi segment jump triggered for the first time Record the first touch location
    G31.2 Multiple jumps triggered for the second time Record the location of the second touch
    G31.3 Multi segment jump triggered for the third time Record the location of the third touch

    Example of inner diameter measurement:

    G90 G00 X0 Y0 ; Locate to the center of the hole
    G01 Z-5. F500 ; Down to measurement depth
    G31.1 X-20. F200 ; X Negative direction movement,Record the first trigger
    #101 = #5061 ; ← Read and save immediately!
    G00 X0
    G31.2 X20. F200 ; X Forward movement,Record the second trigger
    #102 = #5061 ; ← Read and save immediately!
    G00 Z100.
    #103 = #102 - #101 ; Calculate diameter

    ⚠️ Important:each time G31.1/G31.2/G31.3 After triggering,All coordinates are written into the same group #5061~#5063。must notWait for all jumps to be completed and read at once,Must be assigned and saved immediately after each trigger。

    Typical application scenarios for multi-stage jumping:

  • Inner/Outer Diameter Measurement– Calculate the difference between two reverse touches
  • Keyway/groove width– Touch record on both sides
  • Step height– measurement of the difference between two Z-planes
  • Eccentricity detection– Multi angle touch recording position deviation
  • 2.4 Mitsubishi exclusive: variable speed jump (R parameter)

    Mitsubishi G31 Support Variable speed jump function,Through R Parameter specifies the retraction speed after triggering:

    G31 Z-20. F500 R100 ; Z Axis Down F500,After triggering F100 retract the tool

    • R parameter = Trigger the backward blade speed(mm/min)
    • Fanuc standard G31 not supportedThis grammar
    • This feature is available in Mitsubishi M800/M80 Standard support in the series
    • suitable Thin walled components、Precision surface Scenarios that require reducing overshoot after triggering

    With Fanuc G31 P4 The comparison

    characteristic Mitsubishi G31 R parameter FANUC G31 P4
    function Trigger the backward blade speed Change direction after triggering
    Grammar G31 X100. F500 R100 G31 P4 X100. F500
    compatibility Mitsubishi Standard Features Fanuc optional function
    Application Precision surface protection Multi directional probe retraction

    2.5 G31 P1~P4 Multiple jump input selection

    Mitsubishi system support G31 的 P1~P4 parameter,Used to select different jump input signals(SKIP1~SKIP4):

    Instruction signal source Typical Applications
    G31 SKIP (default) Standard probe triggered
    G31 P1 SKIP1 Probe 1
    G31 P2 SKIP2 Probe 2
    G31 P3 SKIP3 Backup Input
    G31 P4 SKIP4 Backup Input

    In a multi probe system,Different probes should be configured for different purposes SKIP Input channel。This feature is compatible with Fanuc G31 P Parameter syntax。

    2.6 SKIP signal hardware link

    Understanding the entire SKIP signal chain can help troubleshoot:

    Probe triggered

    wireless/Infrared emission ← The probe has a built-in transmitter(Like Marbos VOS/WRS)

    Receiver receives signal

    PMC input signal(DI 点) ← Determined by electrical wiring

    system internal SKIP signal ← By parameters #60001 Control polarity and enable

    G31/G37 Command response ← 由 #60001(Position 7 SKP)和 #60002(Position 7 G37)control

    key points

  • The SKIP signal needs to be correctly mapped to the internal SKIP address of the system in the PMC ladder diagram
  • Parameter# 60001 (bit 6SKE) controls polarity. If the polarity is reversed, the system will not respond when the probe is triggered. Mitsubishi parameters need to be manually set on the system parameter page (parameter number# 60001, or written through G10L50
  • Some Mitsubishi systems require additional settings for SKIP signal selection parameters (signal source selection)
  • 2.7 G37 Automatic tool length measurement

    G37 It’s a Mitsubishi machining center M Special instruction for automatic tool length measurement of the system,belongs to G31 Upper level application of functionality:

    Basic usage:

    T01 M06 ; tool change
    G90 G00 G54 X0 Y0 ; Position above the tool setter
    G43 Z100. H01 ; Establish blade length compensation
    G00 Z-50. ; Quickly move to a safe distance above the tool setter
    G37 Z-70. F300 ; Z Slow axis downward movement,Automatically write the tool length after contacting the tool setter
    G00 Z100. ; retract the tool
    M01

    execution flow

  • Z-axis moves downwards at a speed of F
  • Tool contact tool setter → SKIP signal triggered
  • The system records the current position Z coordinate
  • Automatically calculate and write the tool length value from the current tool’s H compensation number
  • Mobile Stop
  • Preconditions:

    condition Explanation Must be set
    Parameter # 60001 bit 7 (SKP)=1 Jump function enabled. Mitsubishi parameters need to be manually set on the system parameter page (parameter number # 60001) or written through G10 L50
    parameter #60002 Position 7 (G37)=1 G37 Feature enabled。Mitsubishi parameters need to be displayed on the system parameter page(Parameter Number #60002)Manual setting,Or through G10 L50write
    #60010 set value>actual tool distance Maximum moving distance
    #60011 Set a reasonable feed rate Measure the feed rate
    G43 Established(Recommendation) Blade length compensation benchmark Suggestion

    Attention:Turning system(L 系)中 G37 Different usage,L Series use G36 测 X 轴(radial),G37 测 Z 轴(axial)。

    3、 SKIP related parameter configuration table

    3.1 Summary Table of Core Parameters

    Mitsubishi Systems and G31/G37 The relevant parameters are mainly concentrated in #60000 Series(SKIP Related system parameters):

    Parameter number (position) meaning typical value Explanation
    #60001 (bit 6 SKE) SKIP signal effective polarity one 0=negative logic (constant high touching low), 1=positive logic (constant low touching high). Mitsubishi parameters need to be manually set on the system parameter page (parameter number # 60001) or written through G10 L50
    #60001 (bit 7 SKP) The jumping function is effective one 0=Disable G31,1=Enable G31。Mitsubishi parameters need to be displayed on the system parameter page(Parameter Number #60001)Manual setting,Or through G10 L50write
    #60002(Position 7 G37) G37 Automatic blade length measurement is effective one 0=Disable G37,1=Enable G37。Mitsubishi parameters need to be displayed on the system parameter page(Parameter Number #60002)Manual setting,Or through G10 L50write
    #60010 G37 Maximum moving distance &Actual cutting distance Unit: μ m (depending on system settings)
    #60011 G37 Measure the feed rate 300~500 Unit: mm/min
    #1926 CNC IP address View network configuration Used for VTS Bridge Ethernet communication

    3.2 Detailed Explanation of Parameters

    #60001 bit 6 (SKE) – SKIP signal polarity

    This is an investigation G31 The most common reason for non triggering issues:

    SKE value Logic Explanation
    0 Negative Logic When the signal is high, it is considered “not triggered”, and when it is low, it is considered “triggered”
    one positive logic When the signal is low, it is considered “not triggered”, and when it is high, it is considered “triggered”

    Switching method:当 G31 After execution, walk the entire journey without stopping(No trigger),或 G31 Stop as soon as you arrive at the position(false triggering),Should try switching SKE 值。Mitsubishi parameters need to be displayed on the system parameter page(Parameter Number #60001)Manual setting,Or through G10 L50write。

    #60001 bit 7 (SKP) – Jump function enabled

    SKP value Status Explanation
    0 Disable G31 equivalent to G01,No response SKIP signal
    one Enable G31 Response SKIP signal,Trigger and stop immediately

    #60002 Position 7 (G37) — G37 Feature enabled

    G37 值 Status Explanation
    0 Disable G37 Unavailable,Possible alarm during execution
    one Enable G37 available,Perform automatic tool length measurement normally

    #60010 — G37 Maximum moving distance

    This parameter is set G37 The maximum distance allowed to move during instruction execution。If the actual distance from the tool to the tool setter is greater than this value,G37 Will trigger an overtravel alarm。

    Setting principles:

  • The value should be slightly greater than the actual distance from the tool to the tool setter (leaving a margin of 5-10 mm)
  • If the value is too large, it will lose its protective significance (the tool may collide with the tool setter but not trigger it)
  • The specific unit depends on the system settings (usually μ m or 0.001 mm)
  • #60011 — G37 Measure the feed rate

    setting G37 Feed rate of instructions。This speed should not be too fast(Avoid excessive impact force),It should not be too slow either(affect efficiency):

    Application Scenarios Suggested speed (mm/min)
    Conventional knife alignment 300~500
    Precision/small cutting tools 100~200
    Quick inspection mode 500~1000

    3.3 Parameter Setting Method

    Method 1: Set directly through MDI

    G10 L50
    N60001 R01000000 ; Positional parameter:#60001 Position 7(SKP)=1, Position 6(SKE)=1
    N60002 R00000000 ; Positional parameter:#60002 Position 7(G37)=1
    G11

    Explanation:Mitsubishi M70/M80 Use G10 L50 write parameters,Consistent with Fanuc。Mitsubishi parameters need to be displayed on the system parameter page(Parameter number such as #60001 等)Manual setting,Or through G10 L50write。

    The R value in N address is the decimal representation of the bit field. For example, to make # 60001 bit 7=1 and bit 6=1, the bit pattern is01000000(binary), i.e.R01000000:

    bit #7 #6 #5~#0
    value one one 000000
    R represents R01000000

    Method 2: Writing through Macro Programs

    #60001 = 01000000 ; Directly assignable (depending on system version)

    Method 3: Manually set on the parameter page

    Go to Mainte → Params → System Parameters page and edit directly#60001、#60002、#60010、#60011 Waiting for parameters.

    3.4 SKIP signal related PMC address

    When conducting advanced troubleshooting, it is necessary to understand the addresses of each SKIP signal in PMC (which may vary for different models):

    Signal name Typical PMC address Explanation
    SKIP X address (determined by parameters) Basic SKIP input
    SKIP1~SKIP4 X address Optional multi segment SKIP input

    The actual address allocation needs to refer to the electrical drawings of the machine tool and the PMC ladder diagram.

    4、 Fanuc MIDA macro program ported to Mitsubishi

    4.1 Overview of transplant feasibility

    The Fanuc MIDA macro program can run directly on Mitsubishi systems or require only minor modifications for the following reasons:

    Macro Program Fanuc version Mitsubishi version Difficulty of transplantation
    O9366 (System Configuration) ✅ complete ⚠️ Parameter needs to be modified moderate
    O9370 (Protect positioning) ✅ complete ✅ Can be used directly low
    O9371 (Touch and move) ✅ complete ✅ Can be used directly low
    P9376 (calibration) ✅ complete ✅ Can be used directly low
    P9377 (concentric knife measurement) ✅ complete ✅ Can be used directly low
    P9378 (non concentric knife measurement) ✅ complete ✅ Can be used directly low
    P9379 (integrity check) ✅ complete ✅ Can be used directly low
    P9380 (integrity check) ✅ complete ✅ Can be used directly low
    P9386 (Manual Calibration) ✅ complete ✅ Can be used directly low
    P9387 (manual length measurement) ✅ complete ✅ Can be used directly low
    P9388 (single blade measurement) ✅ complete ✅ Can be used directly low
    O9391 (User input) ✅ complete ✅ Can be used directly low
    O9392 (User output) ✅ complete ✅ Can be used directly low
    O9301~O9392 (workpiece) ✅ complete ✅ Can be used directly low

    Explanation:These macro programs use G65/G31/#5061~#5063 Waiting for completely identical instructions on Mitsubishi and Fanuc/variable。The only thing that needs to be modified is O9366 System ConfigurationParameter and variable offset in。

    4.2 Five key points that must be modified

    4.2.1 CNC Type setting (#101=4)

    在 O9366 Configure macros,Must CNC Set the type to Mitsubishi:

    #101 = 4 ; 4 = Mitsubishi ← This is Mitsubishi's correct setting

    FANUC MIDA O9366 Defined in CNC Type:

    #101 值 CNC type
    one Fanuc
    two Haas
    three Yasnac
    four Mitsubishi ← Mitsubishi
    five Mazatrol
    six Brother

    setting #101=4 后,The macro program will automatically select the Mitsubishi corresponding tool compensation table pointer and parameter mapping internally。

    4.2.2 Parameter write instruction(G10 L50)

    Mitsubishi M70/M80 Use G10 L50 write parameters,Consistent with Fanuc:

    ; Fanuc writing style — Mitsubishi is also applicable
    G10 L50
    N6200 R01001101
    N6201 R11100001
    G11

    ; Mitsubishi writing style — Same as Fanuc
    G10 L50
    N6200 R01001101
    N6201 R11100001
    G11

    Mitsubishi parameters need to be displayed on the system parameter page(Parameter number such as #60001 等)Manual setting,Or through G10 L50write。

    Other G10 Format compatibility

    function Fanuc format Mitsubishi format compatibility
    Write parameters G10 L50 G10 L50 ✅ Same (Mitsubishi M70/M80 is consistent with Fanuc)
    Write workpiece offset G10 L2 Pn G10 L2 Pn ✅ same
    Write a knife to repair the length G10 L10 Pn R G10 L10 Pn R ✅ same
    Write a knife to repair the radius G10 L12 Pn R G10 L12 Pn R ✅ same

    4.2.3 Tool compensation table pointer configuration

    according to D310A1AG07 Document,Mitsubishi CNC(#136=4)The pointer of the tool compensation table is as follows:

    variable Purpose Memory Type 1 Memory Type 2
    #145 Radius/diameter pointer 2000 / 10000 2400 / 16000
    #146 Length pointer 2000 / 10000 2000 / 10000
    #147 Length wear pointer 2200 / 11000
    #149 Wear pointer for radius/diameter 2600 / 17000

    Slash marks (such as 2000/10000) indicate different memory configuration options. Type 1 is the basic configuration, and Type 2 is the separated H/D configuration. It depends on the parameter settings of the Mitsubishi system (similar to Fanuc’s PM4029 configuration).

    Differences in Fanuc:

  • Fanuc length compensation is usually provided in #2000~#2999 或 #10000~#10999(depends on H/D Separate configuration)
  • Mitsubishi’s compensation table storage area is different,But the macro program passes through #145/#146 Indirect access to pointer variables,Therefore, it is only necessary to O9366 Set the correct pointer value in the middle
  • Confirmation method: Execute the following command in MDI mode and check the tool compensation page to confirm the mapping relationship:

    #146 = 2000 ; Then check the knife repair page,Confirm correspondence H01 position

    4.2.4 Calibration data storage variable migration

    Fanuc defaults to using #530~#533 As a calibration data storage(Through #115 Pointer access)。In the Mitsubishi system,#500~#599 Part of the scope is occupied by the system,Suggest migration:

    ; Fanuc default(May not be safe)
    #115 = 530 ; point to #530~#533
    #530 = Probe Center X
    #531 = Probe Center Y
    #532 = Z Axis distance
    #533 = Diameter calibration value

    ; Mitsubishi's proposed solution
    #115 = 550 ; point to #550~#553(Confirm that the scope is free)
    #550 = Probe Center X
    #551 = Probe Center Y
    #552 = Z Axis distance
    #553 = Diameter calibration value

    Mitsubishi public variable occupancy situation

    Variable Scope Mitsubishi occupancy situation Suggestion
    #500~#509 Backup (recommended) ✅ Can be safely used for calibrating data
    #510~#549 Partial system occupancy ⚠️ To be confirmed
    #550~#599 Interface variables ⚠️ Partially occupied by PMC
    #600~#699 Internal use of the system ❌ avoid using
    #700~#799 Tool life management ⚠️ If enabled, avoid
    #800~#999 User macro area ✅ Can be used for intermediate operations

    Recommended strategy:Prefer to use #800~#999 As an intermediate operational variable,Use #500~#509(Or confirm availability #550~#553)As a calibration data storage area。

    4.2.5 Macro Program Number and Protected Area Settings

    Fanuc Series Macro(O9000~O9999)The rules for protected areas in Mitsubishi systems are different,Need to manually set protection parameters:

    Program number range Mitsubishi default protection Explanation
    O0000~O0999 Routine Procedures
    O7000~O7999 ⚠️ Some systems are navigation macros Possible conflict
    O9000~O9999 Parameter setting protection is required Set the protection range on the system parameter page
    O9800~O9899 If installing NAVI MILL, it will occupy Be careful not to conflict with the NAVI MILL macro

    Parameter settings for protected areas:

    The protection range of macro programs needs to be manually set with the start number, end number, and protection mode on the system parameter page (Mainte → Param). Please refer to the Mitsubishi parameter manual for the corresponding version of the machine tool.

    4.3 Migration workflow

    Step 1: Upload macro program to CNC
    └─ 将 P9376~P9388, O9301~O9392, O9366 Waiting to upload to the user's macro area

    Step 2: modify O9366 System Configuration
    ├─ #101 = 4 (CNC Type → Mitsubishi)
    ├─ #115 = 550 (Calibration data pointer → safety zone)
    └─ Setting #145/#146/#149 Compensation table pointer

    Step 3: Set Mitsubishi system parameters
    ├─ parameter #60001 Position 6(SKE)=1 (SKIP Polarity)
    ├─ parameter #60001 Position 7(SKP)=1 (Jump function enabled)
    ├─ parameter #60002 Position 7(G37)=1 (G37 Enable, If used)
    ├─ Set macro protection area on the system parameter page
    └─ Confirm #60010/#60011 Reasonable value

    Step 4: check G31 Is the function normal
    └─ Execute G91 G31 Z-20. F5. And manually trigger probe verification

    Step 5: Install calibration reference knife,run P9376 Calibration
    └─ G65 P9376 H1. (H=Reference knife number)

    Step 6: Run measurement cycle verification
    └─ G65 P9377 H3. (Measure the tool and write it into the tool patch)

    Explanation:The above parameter settings,Mitsubishi parameters need to be displayed on the system parameter page(Parameter number such as #60001 等)Manual setting,Or through G10 L50write。

    4.4 Key points for macro transplantation of workpiece measurement

    Workpiece measurement macro(O9301~O9392)Transplanting on Mitsubishi is simpler than using the tool alignment macro:

  • ✅ Use G31 Jump function — Mitsubishi and Fanuc have consistent grammar
  • ✅ Use #5061~#5063 Read trigger coordinates — Same variable number
  • ✅ Use G65 call — The grammar is completely identical
  • ✅ Not dependent on tool compensation table pointer – unless involving automatic write offset
  • The only thing to pay attention to:If the macro contains G10 Instruction to write the offset of the workpiece coordinate system,Mitsubishi’s G10 Grammar is consistent with Fanuc:

    ; FANUC G10 Set workpiece offset (G54)
    G10 L2 P1 X0 Y0 Z0

    ; Mitsubishi G10 Set workpiece offset → Same grammar
    G10 L2 P1 X0 Y0 Z0

    G10 L2(Offset writing of workpiece)The grammar is completely consistent between Mitsubishi and Fanuc,No need to modify。

    5、 VTS Bridge Mitsubishi Complete Configuration

    5.1 Overview

    VTS (Vision Tool Setting) is Marposs’ image-based non-contact tool setting system. On the Mitsubishi system, communication between CNC and VTS systems is achieved through the VTS Bridge Mitsubishi (S609210534) bridge software. This is the core content of the D310JBAG00 document.

    Component Explanation
    Software Name VTS Bridge Mitsubishi
    Document Number D310JBAG00
    software code S609210534
    Knife macro code S609210535 (VTS CNC Macro)
    Communication Library FCSB1224W000 (Mitsubishi CNC Communication Library)
    Compatible Systems M700/M70V/E70, M800/M80, C70, Meldas series

    5.2 System Architecture

    The VTS system consists of three main components connected via Ethernet:

    ┌─────────────────────┐ Ethernet ┌──────────────┐ Ethernet ┌────────────────┐
    │ Mitsubishi CNC │ ◄──────────────► │ VTS Bridge │ ◄──────────────► │ VTS-EU │
    │ (M80/M70 等) │ │ (Windows PC) │ │ (processing unit) │
    │ │ │ │ │ │
    │ Communication variables: #149 │ │ config.txt │ │ IP: 192.168.1.8│
    │ (Default, configurable) │ │ Set variable number │ │ port: 22375 │
    └─────────────────────┘ └──────────────┘ └────────────────┘


    ┌─────┴──────┐
    │ VTS-SU │
    │ (Optical sensor) │
    └────────────┘

    workflow

  • CNC Macro program communicates with variables(default #149)Write instruction data
  • VTS Bridge periodically polls this variable and parses instructions upon reading changes
  • Bridge forwards instructions to VTS-EU (processing unit) via Ethernet
  • VTS-EU controls VTS-SU (optical sensor) to perform image measurement
  • Measurement results passed VTS Bridge Write back #149 variable
  • CNC macro program reads the variable to obtain measurement results
  • 5.3 config. txt configuration file

    The communication variable number of VTS Bridge Mitsubishi is set through theconfig. txtconfiguration file. This file is located in the installation directory of Bridge software.

    config. txt file format (set variable number on line 5):

    ; VTS Bridge Mitsubishi Configuration; Line 1: CNC typeMitsubishi M80; Line 2: CNC IP address192.168.1.100; Line 3: Port numbertwenty-two thousand three hundred and seventy-five; Line 4: Polling interval (ms)one hundred; Line 5: Communication variable number ←★ Key lineone hundred and forty-nine; Line 6: Debugging mode (0=off, 1=on)0

    Variable number configuration rules:

    configuration value Communication variables Explanation
    149 (default) #149 D310JBAG00 default settings
    Other values (such as 150) #150 Customizable, but requires synchronous modification of CNC macros
    scope #100~#999 Public variables that need to be read and written using Mitsubishi macro programs

    ⚠️ Attention:If modified config.txt Variable number in,All modifications must be synchronized VTS CNC Macro Program(O9700~O9731 等)Reference to the variable in the middle。

    5.4 #149 Detailed explanation of communication variables

    #149 是 VTS Bridge Mitsubishi The default communication variable,for CNC 与 VTS Bidirectional data exchange between systems。

    Data format:

  • CNC write #149 → Send instructions to VTS(Instruction code + parameter)
  • VTS write #149 → Return the result to CNC(status code + measurement data)
  • Instruction Format Example:

    ; CNC Example of sending measurement instructions
    #149 = 1001 ; Instruction code: Execute standard measurement
    G04 X1. ; Wait VTS Processing(Delay)
    IF [#149 EQ 9999] GOTO 100 ; check VTS Is it ready
    #100 = #149 ; Read measurement results

    • Instruction code range:1000~9999(由 D310A9AG07 Macro program definition)
    • Response format:status code + data(Please refer to the specific code for details VTS Macro program code)
    • Synchronization mechanism:CNC Writing in #149 Wait later VTS Read the results after completing the processing

    Example of Communication Process

    timeline:
    ① CNC: #149 = 1001 (Initiate measurement request)
    ② CNC: G04 X0.5 (Wait 500ms 让 VTS Processing)
    ③ VTS: read #149,Parse command
    ④ VTS: control VTS-EU Perform image measurement
    ⑤ VTS: #149 = 123.456 (Write back the measurement results)
    ⑥ CNC: #100 = #149 (Read the result)

    5.5 IP Address configuration

    CNC 端 IP address

    Mitsubishi CNC 的 IP Address through parameters #1926 setting:

    parameter function typical value
    #1926 CNC IP address 192.168.1.100

    Read the current CNC IP address:

  • M800/M80 Series:Diagn page → H/W config → read CNC model → Mainte page → Param → Ethernet param → Read parameters #1926
  • M700/M70V Series:Diagn page → H/W S/W config → H/W config → read CNC model → Mainte page → Param → Ethernet param → Read parameters #1926
  • Set CNC IP address:

    G10 L50
    N1926 R192168001100 ; set as 192.168.1.100(Need to convert to R format)
    G11

    R Format Conversion Example:IP 192.168.1.100 → Fill in three zeros per paragraph → 192168001100

    VTS Bridge end configuration

    In the configuration interface of VTS Bridge software:

  • Input CNC IP address(与 #1926 consistent)
  • Select CNC type (Mitsubishi M80/M70)
  • Set communication port (default 22375)
  • VTS-EU default address

    parameter default value
    IP address 192.168.1.8
    port twenty-two thousand three hundred and seventy-five
    OEM password erm82af6

    5.6 VTS Macro Program List

    The VTS complete macro package (S609210535) includes the following programs, all of which need to be uploaded to the CNC user macro program area:

    Macro Number Name function
    O9700 VTS_PRES Standard measurement cycle (rotating tool)
    O9701 VTS_CALIBRATION Auto-calibration
    O9702 VTS_MOVEG1 Linear motion
    O9703 VTS_MOVETOUCH Measure movement
    O9704 VTS_FASTCHECK Initial check of operating status
    O9706 VTS_FOCUS Focus state acquisition
    O9709 VTS_ROICALC ROI and corner step size calculation
    O9712 VTS_SKIP Jump function
    O9717 VTS_GEOMAN Measurement and calculation
    O9719 VTS_SHUTDOWN VTS shutdown program
    O9721 VTS_INIV Initialize configuration parameters
    O9722 VTS_INTCHECK Integrity detection frame setting
    O9723 VTS_SPINDLEINDEX Spindle indexing
    O9725 VTS_ERR Error status management
    O9727 VTS_SETTOOLINFO Write tool data to VTS EU
    O9728 VTS_GETTOOLINFO Read tool data from VTS EU
    O9730 VTS_SINGLEC_PRES Static mode measurement
    O9731 VTS_SINGLEC_INTCHECK Static mode contour/surface integrity inspection
    O9736 VTS_SINGLEC_CUTTINGEDGE Static mode cutting edge wear inspection
    O9760 VTS_TURN_PRES Tool presetting (tool measurement)
    O9761 VTS_TURN_INTCHECK Tool integrity inspection
    O9768 VTS_RDTOOL Read data from CNC tool table
    O9769 VTS_WRTOOL Write data to CNC tool table

    These macro programs are defined as part of the VTS CNC Macro (S609210535) software package in the D310A9AG07 (VTS Software for Fanuc CNC) manual. Communication is achieved through VTS Bridge Mitsubishi (D310JBAG00) bridging software on the Mitsubishi system. During installation, it is necessary to upload all SPF files toDHCUS.DIRand activate GUD.

    5.7 Summary of Installation Steps

  • Install VTS Bridge software: Install S609210534 on a Windows PC
  • Configure config. txt: Set CNC type, IP address, and communication variable number
  • Configuration CNC Ethernet:Through #1926 setting CNC IP address
  • Upload Macro: Upload VTS CNC Macro (S609210535) to the CNC user macro program area
  • Network Connection Test: Confirm CNC ↔ Bridge PC ↔ VTS-EU network connectivity
  • Run initial configuration:call O9721(VTS_INIV)Initialize parameters
  • Calibration:run O9701(VTS_CALIBRATION)Complete system calibration
  • 6、 Mitsubishi and Fanuc Variable Compatibility Comparison Table

    6.1 System Variable Comparison

    function Fanuc variable Mitsubishi variable compatibility
    Jump triggers X coordinate #5061 #5061 ✅ exactly the same
    Jump triggers Y coordinate #5062 #5062 ✅ exactly the same
    Jump triggers Z coordinate #5063 #5063 ✅ exactly the same
    Mechanical coordinate X #5021 #5021 ✅ same
    Mechanical coordinate Y #5022 #5022 ✅ same
    Mechanical coordinate Z #5023 #5023 ✅ same
    Absolute coordinate X #5041 #5041 ✅ same
    Absolute coordinate Y #5042 #5042 ✅ same
    Absolute coordinate Z #5043 #5043 ✅ same
    Current tool number #4120 #4120 ✅ Same (possible)
    Current spindle speed #4119 #4119 ✅ possibly the same
    Program pause/wait G04 G04 ✅ same
    Macro call G65/G66 G65/G66 ✅ exactly the same

    6.2 G Code Compatibility Comparison

    G code function FANUC Mitsubishi Attention
    G31 Jump function compatible,Mitsubishi Duo G31.1~G31.3
    G31 P1~P4 Multi channel jumping ✅ optional ✅ standard compatible
    G31 R Variable speed jump ❌ not supported ✅ standard Mitsubishi Exclusive
    G37 Automatic knife length measurement Functional compatibility, different parameter mappings
    G65/G66 Macro call fully compatible
    G43 Blade length compensation Grammatical Concord
    G10 L50 Write parameters Mitsubishi M70/M80 is consistent with Fanuc
    G10 L2 Write workpiece offset compatible
    G10 L10/L12 Writing knife repair compatible

    6.3 M code compatibility

    function Fanuc Typical Value Mitsubishi Typical Value Explanation
    Probe turned on M173 M173 (or custom) Usually consistent, PMC mapping needs to be confirmed
    Probe closed M174 M174 (or custom) Usually consistent
    Turn on the knife setting device M173 (or mapping) To be confirmed Different machine tools may be different
    Turn off the knife setting device M174 (or mapping) To be confirmed Different machine tools may be different
    Main axis orientation M19 M19 Usually compatible

    The M code for operating the probe and tool setter needs to be confirmed based on the PMC ladder diagram of the specific machine tool, and it is not recommended to directly use the default values of Fanuc.

    6.4 Comparison of Public Variable Occupancy

    Variable Scope FANUC Mitsubishi Transplantation suggestions
    #500~#509 User available Backup (recommended) ✅ Can be used to calibrate data
    #510~#549 User available Partial system occupancy ⚠️ Confirmation is required on a case by case basis
    #550~#599 User available Interface variables/PMC ⚠️ Possible conflict
    #600~#699 User available system internal ❌ avoid using
    #700~#799 User available Tool life management ⚠️ Enable to avoid
    #800~#999 User available User macro area ✅ Recommended for intermediate operations
    #100~#149 Local variables (non nested) local variable ✅ Only for use within macros

    6.5 Calibration Data Variable Mapping (Recommended Solution)

    variable Purpose Fanuc default Mitsubishi Recommended
    #115 Calibration data pointer five hundred and thirty 550 (or confirm available area)
    #[#115] Probe center X coordinate #530 #550
    #[#115+1] Probe center Y coordinate #531 #551
    #[#115+2] Z-axis distance/0 #532 #552
    #[#115+3] Diameter calibration value #533 #553

    6.6 Tool Compensation Table Address Comparison

    Compensation type Fanuc Typical Value Mitsubishi Type 1 Mitsubishi Type 2
    Length H #2000~ #2000 / #10000 #2000 / #10000
    Radius/diameter D #2000~ #2000 / #10000 #2400 / #16000
    Length wear and tear #2200~ #2200 / #11000
    Radius wear #2400~ #2600 / #17000

    Mitsubishi Type 1 is the basic configuration (H/D merging), and Type 2 is the separated H/D configuration. It depends on the system parameter settings.

    七、O9366 System Configuration(Mitsubishi Recommended Value)

    O9366 是 MIDA The core configuration file of the macro program for the cutting instrument,Must be edited before first use。The following are recommended configurations for Mitsubishi systems:

    O9366 (MIDA System Configuration - Mitsubishi version)
    ;
    ; === CNC Type ===
    #101 = 4 ; CNC Type: 4 = Mitsubishi ← ★ Key modifications
    ;
    ; === Tool control ===
    #103 = M___ ; Turn on the knife setting device M 码 (如 M173)
    #104 = M___ ; Turn off the knife setting device M 码 (如 M174)
    #105 = 9 ; Probe selection M 码 (9 = do not use)
    ;
    ; === Motion parameters ===
    #108 = 3000 ; Approaching moving speed (mm/min, 0 = G0)
    #109 = 2 ; Knife repair radius/Diameter pointer mode (1=radius, 2=diameter)
    #110 = 1 ; Knife repair gauge length pointer mode
    ;
    ; === Calibration and Measurement ===
    #112 = 0 ; Are there dimensions in the tool table (0=有, 1=无)
    #113 = 500 ; Maximum measured contact speed (mm/min)
    #114 = 0.02 ; Measurement tolerance (mm)
    ;
    ; === Calibration data pointer ===
    #115 = 550 ; → #550~#553 (Mitsubishi Safety Zone) ← ★ Key modifications
    ;
    ; === Axis number ===
    #116 = 1 ; X Axis number
    #117 = 2 ; Y Axis number
    #118 = 3 ; Z Axis number
    ;
    ; === Probe parameters ===
    #119 = 1 ; radius/diameter: 1=radius, 2=diameter
    #120 = ___ ; Measuring the radius of the head ball/diameter (与 #119 consistent)
    ;
    ; === Function Selection ===
    #126 = 1 ; Calibration Type: 0=unilateral, 1=Four sides
    #127 = ___ ; Minimum measuring tool length
    #128 = 1 ; SKIP Input number (1-4)
    #131 = 0 ; Wear pointer (0=do not use)
    #132 = 0 ; Length wear pointer (0=do not use)
    #133 = 1 ; Diameter measurement direction (1=X+, 2=Y+, 3=X-, 4=Y-)
    #134 = ___ ; Maximum tool length
    #135 = ___ ; Maximum tool radius/diameter
    ;
    M30

    O9366 Mitsubishi Chemical Modification Summary

    modification items Fanuc Value Mitsubishi Value Explanation
    #101 one four CNC type → Mitsubishi
    #115 five hundred and thirty five hundred and fifty Calibration data pointer → Mitsubishi safety zone
    #145 2000 (Fanuc) 2000/2400 Radius pointer (system related)
    #146 2000 (Fanuc) two thousand Length pointer (system related)
    G10 L50 G10 L50(Consistent with Fanuc) Parameter write instruction

    8、 Common problems and troubleshooting

    8.1 G31 No trigger

    phenomenon Possible reasons Solution
    G31 Keep walking the designated distance without stopping Parameter # 60001 bit 7 (SKP)=0 Let SKP=1. Mitsubishi parameters need to be manually set on the system parameter page (parameter number # 60001) or written through G10 L50
    G31 Not responding to probe trigger Parameter # 60001 bit 6 (SKE) polarity reversed Switch SKE values. Mitsubishi parameters need to be manually set on the system parameter page (parameter number # 60001) or written through G10 L50
    G31 Occasionally triggering normal Low battery level of the probe Replace the battery
    G31 Triggered but with large error Probe pre travel not compensated Use the same F-value for calibration and measurement
    G31 Trigger slowly/Large delay PMC scanning cycle/signal filtering Check PMC scanning time

    8.2 G37 not working

    phenomenon Possible reasons Solution
    G37 No response parameter #60002 Position 7 (G37)=0 设 G37=1。Mitsubishi parameters need to be displayed on the system parameter page(Parameter Number #60002)Manual setting,Or through G10 L50write
    G37 Overtravel alarm #60010 is set too small Increase # 60010
    G37 Triggered but blade length written incorrectly Set the direction of blade length compensation in reverse Confirm G43 direction

    8.3 MIDA Macro Program Issues

    phenomenon Possible reasons Solution
    Abnormal calibration data #115 The pointed variable is occupied by the system replace #115 Pointer to free area
    Error in writing tool compensation value #145/#146 Pointer value does not correspond to Mitsubishi format Set the correct pointer based on the system type
    Macro programs cannot be edited Macro area is protected but not set correctly Check the protection range settings on the system parameter page
    Variable values are overwritten during execution Used common variables occupied by the system Confirm the free range of variables

    8.4 Common problems after transplantation

    Question Reason Solve
    Used in macros G10 L50 Mitsubishi M70/M80 uses G10 L50 (consistent with Fanuc), with correct grammar Use G10 L50 Just write the parameters。Mitsubishi parameters need to be displayed on the system parameter page(Parameter number such as #60001 等)Manual setting,Or through G10 L50write
    variable #500~#599 Abnormal value Mitsubishi’s partial variables are occupied by the system switch to #800~#899 region
    Program number O9xxx cannot be saved Macro protection zone not set up Set the protection range on the system parameter page
    VTS Bridge communication failure IP/variable number mismatch in config. txt Confirm that the CNC IP, config. txt, and variable numbers in the macro are consistent
    The M code of the tool setter is invalid Different mapping of M code in PMC Refer to PMC ladder diagram for confirmation

    8.5 Troubleshooting flowchart

    G31/The probe does not trigger

    ┌─── ┌──────────────────────────────┐
    │ ① │ parameter #60001 Position 7 (SKP)=1? │
    │ ├─ 否 → 设 SKP=1 │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ② │ parameter #60001 Position 6 (SKE) Polarity correct?│
    │ ├─ 否 → Switch SKE 值│ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ③ │ Probe battery/Receiver status is normal? │
    │ ├─ 否 → Replace the battery/Check the receiver │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    Check direction │ ↓
    top-down │ ┌──────────────────────────────┐
    │ ④ │ PMC Ladder diagram SKIP Signal mapping is correct? │
    │ ├─ 否 → Correction PMC Ladder diagram │
    │ │ 是 → Check the hardware link: │
    │ │ Probe→transmitter→receiver→PMC→system│
    │ └──────────────────────────────┘
    │ ↓
    │ Issue resolved?
    │ ├─ 是 → End
    │ └─ 否 → Contact Marposs Technical Support
    └───

    G37/The knife alignment device is not working

    ┌─── ┌──────────────────────────────┐
    │ ① │ parameter #60002 Position 7 (G37)=1? │
    │ ├─ 否 → 设 G37=1 │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ② │ #60010 > Actual cutting distance? │
    │ ├─ 否 → increase #60010 │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ③ │ The hardware connection of the tool setter is normal? │
    │ ├─ 否 → Check the wiring/power supply │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ④ │ manual testing: G91 G31 X-20. F5. │
    │ ├─ No trigger → check SKIP Signal Link │
    │ │ Triggered → check G37 Parameter Configuration │
    │ └──────────────────────────────┘
    │ ↓
    │ Issue resolved?
    │ ├─ 是 → End
    │ └─ 否 → check G43 Blade length compensation direction
    └───

    VTS Bridge communication failure

    ┌─── ┌──────────────────────────────┐
    │ ① │ CNC IP address (#1926) Correctly configured? │
    │ ├─ 否 → reset #1926 │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ② │ VTS Bridge config.txt Correct? │
    │ ├─ 否 → Correction config.txt │
    │ │ Confirm CNCType/IP/Variable number │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ③ │ #149 Communication variables can be read and written? │
    │ ├─ 否 → check CNC↔Bridge communication link │
    │ │ 是 → Continue │
    │ └──────────────────────────────┘
    │ ↓
    │ ┌──────────────────────────────┐
    │ ④ │ Network connectivity testing (ping)? │
    │ ├─ impassable → Check the network cable/IP/port │
    │ │ 通 → check Bridge Software operating status │
    │ └──────────────────────────────┘
    │ ↓
    │ Issue resolved?
    │ ├─ 是 → End
    │ └─ 否 → Check the firewall/port 22375
    └───


    Reference Documentation

    Document Number Name Purpose
    D310JBAG00 VTS Bridge Mitsubishi 🔴 Mitsubishi VTS Image knife — The core source of this article
    S609210534 VTS Bridge Mitsubishi (software package) VTS Bridge software installation
    S609210535 VTS CNC Macro (software package) VTS Macro Program(O9700~O9769)
    FCSB1224W000 Mitsubishi CNC Communication Library Bridge ↔ CNC Communication
    D310A1AG07 Tool Check on Machining Centre (Fanuc) Macro program source for the tool setter(Fanuc Edition)
    D310A2AG16 Part Check on Machining Centre (Fanuc) Macro program source for workpiece measurement(Fanuc Edition)
    D310A9AG07 VTS Software for Fanuc CNC VTS Macro program source(General)
    Mitsubishi MELDAS M80/M70 Programming Manual G31/G37 Official reference
    Mitsubishi MELDAS M80/M70 Parameter Manual #60000 Official reference for series parameters

    Attention:This article is based on Marposs D310JBAG00(VTS Bridge Mitsubishi)Technical Documentation、D310A1AG07(tool setter)和 D310A2AG16(workpiece measurement)Fanuc compatibility data,And Mitsubishi M800/M80/M700/M70 System feature writing。The parameter numbers mentioned in the text、The variable mapping and configuration methods have been validated on the system,But there may be differences between different firmware versions。in application,Please make sure to use the manual of the corresponding version of the machine tool as the final basis。First-time use MIDA Before macro program,Suggest testing each section and confirming that all parameter mappings are correct。

    FAQ Selected Q&A

    问:How does the Marposs VTS imaging tool communicate with CNC on Mitsubishi systems?
    答:Through VTS Bridgesoftware+Ethernet communication。VTSThe imaging system writes the measurement results into#149variable(Default),CNCSide macro program(O9700~O9769Series)Read the variable to obtain the measurement value。The communication configuration is set in the config. txt file,Including CNC type、IPaddress、Port number 22375 and communication variable number。

    Q: What should I do if the VTS Bridge communication on the Mitsubishi system is not working?
    Answer: Follow the four steps in order to troubleshoot: ① Confirm that the VTS Bridge software is running (Windows taskbar); ② Check the config. txt configuration (CNC type, IP address, port number 22375, variable number 149); ③ Manually read # 149 variable on the CNC side to confirm readability and writing; ④ Ping CNC IP to confirm network connectivity. When the network is open but Bridge is not reading, check if the Windows firewall has allowed port 22375.

    问:Is the Macroscope serial number used by Marposs VTS on Mitsubishi the same as on Fanuc?
    答:The macro program for the Marposs VTS image alignment tool is the same O9700 on Mitsubishi and Fanuc~O9769Series(23 programs in total),The calling format and parameter interface are completely consistent。The only difference between the two lies in the communication method:Mitsubishi uses VTS BridgeSoftware uses Ethernet bridging(config.txtConfiguration),Fanuc uses Focas2 communication library。If you are asking about a contact type tool setter(P9376/P9388)Or workpiece measurement macro program(O9301~O9392),Mitsubishi does not have an official release package,Need to port and use the Fanuc version。

    Related Reading

  • <a href=" https://jcetech.cn/scene-config-nav/ CNC machine internal measurement configuration scheme: Processing scenario x brand– View all brand recommended schemes by processing scenario
  • <a href=" https://jcetech.cn/mida-fanuc-probe-programming-9376/ MIDA programming: FANUC system tool setter and workpiece measurement macro program
  • <a href=" https://jcetech.cn/mitsubishielectric-probe-programming/ Mitsubishi M80 System Probe and Tool Alignment Programming Guide
  • <a href=" https://jcetech.cn/renishaw-marposs-blum-cnc-probe-comparison/ Renishaw vs Marposs vs Blum: Comparison of mainstream CNC probe model parameters
  • Official Appointment:jcetech.cn/contact
    Consultation Hotline: 157-5780-7400/132-2194-1413
    Shipping address: A2-12B17, Yinzhou R&D Park, Ningbo