Mitsubishi Look-Ahead Block Count Settings: G05 and G08 Guide
Configure Mitsubishi look-ahead parameters like F41 bit 2 to prevent coordinate shifts. Diagnose P790 and P34 alarms during high-speed machining.
Introduction to Mitsubishi Look-Ahead Control
An unexpected shift in the active coordinate system during look-ahead machining is a severe hazard that risks driving the cutting tool directly into a vise jaw, clamp, or chuck, resulting in a catastrophic turret collision and a scrapped workpiece. In Mitsubishi CNCs, look-ahead block processing aggressively buffers upcoming blocks to compute optimal deceleration and acceleration profiles across complex tool paths. However, if the read-ahead behavior is improperly configured, the control may pre-read a work offset rewrite command prematurely. This premature execution changes coordinates while the tool is still in motion. To prevent these mechanical crashes, operators must carefully configure look-ahead parameters and establish proper physical barriers.
Technical Summary of Look-Ahead Parameters
| Technical Specification | Details |
|---|---|
| Command Code | G05 P_, G05.1 Q_, G08 P_, G61.1 |
| Modal Group / Modality | High-Speed / High-Accuracy Control Mode (Modal) |
| Brands Covered | Mitsubishi (brand-filtered) |
| Critical Parameters | F41 bit 2, B84 bit 3, 047 bit 7, 066 bit 6 |
| Main Constraint | Look-ahead mode is incompatible with thread cutting (G32/G34), milling interpolation (G12.1), or exponential interpolation (G02.3/G03.3), instantly triggering alarms. |
Quick Read: High-Priority Operational Constraints
- Set Offset Prohibition: Ensure parameter F41 bit 2 is set to 1 to prohibit read-ahead of G10 work offset rewriting, preventing premature coordinate shifts.
- Control optional stops: Configure parameter B84 bit 3 to 1 if look-ahead buffering should be prevented through M00 and M01 optional stop commands.
- Avoid specialized G-codes: Deactivate high-speed look-ahead using G05 P0 before commanding specialized cycles like G32 thread cutting or G12.1 interpolation to avoid P790/P791 alarms.
- Define safety limits: Implement Chuck/Tailstock Barrier Check (G22/G23) to establish physical clearance boundaries, protecting the turret from crashes due to read-ahead coordinate changes.
- Check machine capacities: Be aware that processing capacity ranges from 33.7 to 168 kBPM (kilo Blocks Per Minute) depending on the series (M80V vs. M850V) and active part systems.
- Establish modal syntax: Command G05 P10000 or G05.1 Q1 to turn on the respective high-accuracy modes, and cancel them using G05 P0 or G05.1 Q0.
Basic Concepts of Look-Ahead and Path Accuracy
In Mitsubishi CNCs, look-ahead block processing is fundamentally tied to high-speed, high-accuracy control modes which aggressively buffer upcoming blocks to calculate optimal deceleration and acceleration profiles across complex micro-segment tool paths. The practical programming effect of this buffering is exceptionally smooth cornering and fairing, eliminating tool hesitation during complex 3D contouring. However, programmers and operators must watch for the exact parameters governing read-ahead behavior. If the pre-read prohibition parameter for work offset rewriting (F41 bit 2) is improperly set or ignored, the control may buffer a G10 offset change prematurely.
This premature buffering can shift the coordinate system unexpectedly while the tool is still actively cutting, causing the tool to plunge into the workpiece or resulting in a hard collision with physical machine components such as a chuck, clamp, or vise jaw. To ensure safe use, operators must configure physical clearance boundaries using the Chuck/Tailstock Barrier Check (G22/G23). By limiting the tool nose point move range, this function stops the tool at the barrier boundaries before the turret can crash into the chuck if a look-ahead coordinate error occurs.
Command Structure and Programming Syntax
The command structure for Mitsubishi look-ahead control leverages modal G-codes to switch high-speed and high-accuracy processing modes. When look-ahead mode is initialized, the system begins reading blocks of the G-code program ahead of the tool's current position to smooth out coordinate transitions and compute precise acceleration ramps. This prevents jerky machine motions that could leave dwell marks on the workpiece surface.
The cancel command G05 P0 cancels high-speed high-accuracy control and clears the buffered look-ahead queue. Programmers must ensure that the cancellation command is issued as a clean block without other coordinates or parameters, returning the control system to standard processing rules. This division of commands is critical to prevent syntax conflicts and axis coordination faults during transition phases.
Syntax
G05 P10000 ; Activate high-speed high-accuracy control II (look-ahead buffering)
G01 X100. Y50. F3000 ; Execute linear milling feed with deep buffering
G05 P0 ; Deactivate high-speed high-accuracy control II
Parameters
| Command Option | Description | Function and Value Range |
|---|---|---|
G05 P10000 | Activates High-speed high-accuracy control II for deep block buffering. | Mode 10000 enables advanced micro-segment acceleration profiles. |
G05 P1 / G05 P2 | Activates High-speed machining mode I / II. | Used for standard look-ahead and contour control. |
G05.1 Q1 | High-speed high-accuracy control I ON. | Enables look-ahead control mode I. Cancel with Q0. |
G08 P1 | High-accuracy control ON. | Enables high-accuracy interpolation. Cancel with G08 P0. |
Brand Applications
Mitsubishi
Mitsubishi CNC controllers implement look-ahead buffering under specific high-speed high-accuracy control modes (G05 or G05.1). To govern how far the CNC reads ahead, several key parameters must be configured. Setting parameter F41 bit 2 determines if work offset changes (G10 blocks) are prohibited from being read ahead. Setting parameter B84 bit 3 controls look-ahead behavior through M00 and M01 codes, which is essential to prevent look-ahead calculations from bypassing safety stops. Parameter 047 bit 7 controls EIA direct unit pre-read processing in MAZATROL programs, and parameter 066 bit 6 configures macro modal call pre-reading.
Version and Series Comparison
| Mitsubishi Series | Processing Capacity | Part-System Constraints | Feature Differences |
|---|---|---|---|
| M850V / M830V | Up to 168 kBPM (kilo Blocks Per Minute) | 1-part system configurations | Provides maximum look-ahead buffering for rapid processing of complex 3D tool paths. |
| M80V (Type A) | 101 kBPM | Depends on active systems and axes | Intermediate look-ahead processing suitable for standard production. |
| M80V (Type B) | 67.5 kBPM or 33.7 kBPM | Scales dynamically with part systems | Capacity scales down based on active part-systems and axes, limiting processing velocity. |
Technical Analysis of Processing Capacity and Logic
A common failure cause in Mitsubishi systems arises when programmers attempt to combine deep look-ahead modes with incompatible commands, instantly triggering alarm codes like P790, P791, or P34, which halt the machine mid-cut and can easily yield a scrap part. Mitsubishi distinguishes itself from other control brands in three distinct ways regarding look-ahead settings. First, rather than simply defining an arbitrary block count limit, Mitsubishi explicitly classifies look-ahead capabilities via processing capacities measured in kilo Blocks Per Minute (kBPM)—scaling dynamically from 33.7 kBPM up to 168 kBPM based on the specific CNC series hardware (M80V vs. M800V) and the active part-system configuration.
Second, the controller offers highly granular parameter toggles, such as B84 bit 3, which explicitly dictates whether the system is permitted to continue look-ahead buffering through M00 and M01 optional stop commands. Third, Mitsubishi enforces extremely strict read-ahead modal rules, instantly throwing a P790 or P791 alarm if high-accuracy look-ahead buffering attempts to overlap with complex specialized interpolations like exponential interpolation or threading, whereas other controls might silently suppress the buffer or execute the block with degraded contouring performance.
Program Examples
; Mitsubishi CNC Look-Ahead Activation Example
G90 G17 G21 ; Set absolute positioning, XY plane, and metric units
G00 X0 Y0 Z50. ; Rapid to safe coordinate position
S12000 M03 ; Start spindle clockwise at 12000 RPM
G05 P10000 ; Activate High-speed high-accuracy control II (look-ahead active)
G01 X50. Y25. F3000 ; Linear cutting feed executed with deep block buffering
Y50. ; Execute contoured feed with look-ahead acceleration control
G05 P0 ; Deactivate High-speed high-accuracy control II
G00 Z100. ; Retract axis to safe height
M30 ; Program end and reset
Dry Run Execution Procedure
Perform the following dry run steps on the Mitsubishi CNC to verify look-ahead behavior and avoid axis collisions:
- Verify Machine Clearance: Remove the workpiece and ensure the cutting tool is far from the chuck, turret, and vise jaw.
- Activate Dry Run Mode: Turn the Dry Run switch on the controller panel to the ON position.
- Enable Single Block: Toggle the Single Block switch to ON to step through the program line-by-line.
- Execute Setup Block: Press Cycle Start to execute the preparatory G-codes and start the spindle at 12000 RPM.
- Initialize Look-Ahead: Press Cycle Start to execute the
G05 P10000command. Check that no alarm is displayed on the screen. - Monitor Buffered Feed: Press Cycle Start to run the
G01 X50. Y25. F3000feed block. Observe that the axis glides smoothly under look-ahead deceleration/acceleration curves. - Deactivate Look-Ahead: Press Cycle Start to run the
G05 P0command, ensuring the buffer cancels correctly. - Verify Retract: Execute the retraction block and program end, verifying normal machine behavior.
Error Analysis
| Alarm Code | Trigger Condition | Operator Symptom | Root Cause / Fix |
|---|---|---|---|
| Mitsubishi P790 / P791 | Incompatible G-code commanded while high-speed high-accuracy control is active. | The machine halts mid-cut, interrupting axis synchronization and leaving the tool engaged. | Verify G32/G34 thread cutting, G12.1 milling interpolation, or G02.3/G03.3 exponential interpolation are not active. Command G05 P0 to cancel look-ahead before these cycles. |
| Mitsubishi P34 | Invalid combination of high-speed machining modes and high-accuracy control commands specified. | The controller halts execution, displays a syntax alarm, and disables cycle start. | Avoid overlapping commands. Ensure G05.1 Q1 or G05 P10000 is not commanded while another high-accuracy mode is active. |
| Mitsubishi coordinate shift | Work offset G10 is read ahead because parameter F41 bit 2 is set to 0. | The tool plunges unexpectedly into the workpiece, vise jaw, or chuck. | Set parameter F41 bit 2 to 1 (prohibit pre-read) or deactivate look-ahead before the G10 block. |
Application Note
A hard collision where the turret crashes into the chuck, clamp, or vise jaw is the direct physical consequence of allowing premature work offset changes during look-ahead processing. If the pre-read prohibition parameter for work offset rewriting (F41 bit 2) is set to 0, the controller buffers the coordinate shift (G10) while the cutting path is active, moving the tool axis unexpectedly. To guarantee shop safety, operators must configure physical clearance boundaries using the Chuck/Tailstock Barrier Check (G22/G23). This boundary check limits the tool nose range and halts the feed before a physical crash can occur.
Related Command Network
G05 P1 / G05 P2: Commands used to activate basic high-speed machining modes I and II with intermediate look-ahead buffering.G05.1 Q1: Activates high-speed high-accuracy control mode I for complex path contouring.G08 P1: Turns on high-accuracy control to maintain close tolerances on micro-segment curves.G61.1: Commands high-accuracy mode to control corners and prevent contour deviations.G10: Establishes programmatic work offset rewriting, which must be coordinate-controlled and prevented from look-ahead pre-reading.- mitsubishi-vibration-suppression-parameters: To coordinate look-ahead with vibration damping, configure the vibration suppression parameters to suppress mechanical resonance.
- m19-spindle-orientation: For orientation control during tool changes or spindle positioning, command spindle orientation after look-ahead mode is fully canceled with G05 P0.
- mitsubishi-high-speed-control-iii-g5p20000: For ultra-high-speed machining, Mitsubishi controls utilize High-Speed Control III commands to maximize throughput.
Conclusion
Proper configuration of look-ahead block settings on Mitsubishi controllers is essential to balance high-speed contouring accuracy with hardware safety. Programmers must enforce strict separation between high-accuracy G05 commands and incompatible cycles, and technicians must set parameter F41 bit 2 to 1 to prevent unexpected coordinate shifts. Validating these settings through a structured dry run ensures smooth machine operation and protects physical components from crash damage.
Frequently Asked Questions
Why does a Mitsubishi controller trigger a P790 or P791 alarm during look-ahead machining?
This alarm is triggered because the program commanded a specialized cycle—such as G32/G34 thread cutting, G12.1 milling interpolation, or G02.3/G03.3 exponential interpolation—while high-speed high-accuracy control (G05 or G05.1) was active. These cycles are incompatible with look-ahead buffering. Practical Action: Deactivate look-ahead mode by programming G05 P0 before commanding specialized cycles, and re-enable it afterward.
What is the function of parameter F41 bit 2 on a Mitsubishi CNC?
This parameter controls the read-ahead prohibition for work offset rewriting (G10 or system variables). When set to 0, the controller pre-reads G10 blocks, which shifts coordinates prematurely while cutting is active; setting it to 1 prohibits pre-reading. Practical Action: Set F41 bit 2 to 1 to ensure that coordinate changes are executed only in their exact sequential order.
How does look-ahead capacity differ between Mitsubishi M80V and M850V controllers?
Mitsubishi measures look-ahead capacity in kilo Blocks Per Minute (kBPM) processing speed instead of block count. The high-performance M850V/M830V supports up to 168 kBPM in one-part systems, whereas the M80V is capped at 101, 67.5, or 33.7 kBPM depending on system setup. Practical Action: Match program feedrates and curve micro-segment lengths to your specific controller's kBPM capacity to prevent axis hesitation.
Still not resolved?
Ask our AI assistant about this topic in natural language. Grounded in verified sources, no hallucinations.

- CNC CARE Co-Founder (May 2025 - Present)
- Mitsubishi Electric NC Sales & Service Section Manager (2008 - 2025)
- Reis CNC Service Engineer (2003 - 2008)
- Ören Kalıp CNC Mold Line Team Leader (1999 - 2002)
With over 25 years of experience working in all areas of the CNC machine industry, I continue my activities as a co-founder of CNC CARE, where we offer brand-independent consulting, engineering, and original spare parts services.
Related Articles
Other articles on this topic
G27 Reference Position Return Check: CNC Guide for Multi-Brand Systems
Master the CNC G27 reference position return check on Fanuc, Siemens, and Mitsubishi controls. Learn parameters like MD 34100 and fix Alarm 61816.
G26 Spindle Speed Fluctuation Detection ON: CNC Programming Guide
Learn how to configure G26 on Fanuc, Siemens, and Mitsubishi CNC controls to prevent spindle speed fluctuations, set travel limits, and avoid tool crashes.
G25 Spindle Speed Fluctuation Detection OFF: CNC Programming Guide
Learn how to program G25, G163, and G26 spindle speed fluctuation detection OFF commands on Fanuc, Siemens, and Mitsubishi CNC controls to prevent machine crashes.
Deactivating CNC Stored Stroke Limit Checks with G23 and WALIMOF
Learn how to program the G23 command to turn off stored stroke limit checks and workpiece barriers on Fanuc, Siemens, and Mitsubishi CNC controllers safely.