What are MAR alarms?
The MAR (Macro Alarms) section contains errors related to the execution of CNC macro functions and specialized operations. According to the provided table, MAR alarms are divided into three main categories: milling machines (Mill), lathes (Lathe), and the common section (Common).
For milling machines, the list includes errors related to PROFILE parameters, arc geometry, drilling cycles, feed depth and step values, machining direction, tool dimensions, automatic centering, tool measurement, and configuration of specific machining parameters.
For lathes, MAR covers errors related to toolpath geometry, initial movements along the X and Z axes, tool numbers, drilling cycles, G12.1 mode, threading, elliptical interpolation, and parabolic interpolation.
The common section of the provided table contains errors related to matching the spindle tool number when resuming operation and axis requirements for the tool retract function.
Which alarm groups are included in MAR?
Based on the provided AlarmID list, MAR alarms cover the following main areas:
- PROFILE and contour geometry
Errors involving profile position, PROFILE path, G02/G03 arcs, radii, and other geometric machining parameters. - Drilling and boring cycles
Errors involving the R approach plane, hole bottom depth, Q peck increment, and other cycle parameters. - Feed, depth, and machining step
Invalid feed, depth, or step values for individual axes and planes. - Tool and machining geometry
Errors involving tool diameter, corner radius, tool number, and tool setup parameters. - Automatic centering
Errors involving the starting point, length, width, safety distance, safety height, and speed during automatic centering. - Tool measurement
Errors involving the distance to the tool setter, estimated tool length, and deviations between consecutive measurements. - Coordinate systems and setup
Errors involving the work coordinate system, tool setup, tool setting mode, and use of the reference point. - Turning toolpath
Errors involving initial movements and toolpath geometry along the X and Z axes. - G12.1 and related modes
Errors involving the use of G12.1 together with G41/G42 and G96, as well as the absence of the required axis in the machine configuration. - Threading
Errors involving thread infeed, retract, and position parameters. - Elliptical and parabolic interpolation
Errors involving semi-axis dimensions, focal distance, start and end points, and geometric interpolation conditions. - Common tool functions
Tool number monitoring and conditions for executing the tool retract function.
CNC Macro Function
↓
Machine Type / Function
↓
Mill / Lathe / Common
↓
Macro Function Parameters
↓
Geometry / Cycle / Tool / Measurement
↓
Execution Condition Check
↓
MAR AlarmID
How to use MAR AlarmID for diagnostics
When a MAR AlarmID appears, first identify the exact alarm number and the category to which it belongs: Mill, Lathe, or Common. Then identify the specific macro function or operation associated with that AlarmID.
The next step is to check the parameters explicitly indicated by the alarm description. Depending on the AlarmID, these may include coordinates, radii, depth, feed step, R or Q parameters, workpiece dimensions, tool measurement parameters, G-code modes, or geometric toolpath conditions.
MAR Alarm
↓
Identify AlarmID
↓
Identify the Category
↓
Mill / Lathe / Common
↓
Identify the Macro Function
↓
PROFILE / Drilling
Feed / Depth / Step
Automatic Centering
Tool Measurement
WCS / Tool Setup
Turning Toolpath
G12.1 / Threading
Ellipse / Parabola
Common Tool Functions
↓
Check the Parameters of the Corresponding Function
Example of a diagnostic direction
For example, MAR 013 in the Mill category indicates that the Q peck increment has not been specified for the peck drilling cycle. In this case, the diagnostic direction is determined by the machining cycle parameters rather than by the machine's electrical or mechanical systems.
MAR 013
Mill
↓
Peck Drilling Cycle
↓
Q Parameter
↓
Check the Peck Increment Value
Important: the same AlarmID number may appear in different MAR categories and have a different meaning. For example, AlarmID 001 appears in both the Mill and Lathe categories, but represents different conditions. Therefore, diagnostics must consider not only the AlarmID number, but also the machine or function category to which it belongs.
A MAR AlarmID identifies a condition detected during execution of the corresponding macro function or operation. The cause should be determined from the specific AlarmID, its category, and the parameters of the corresponding function, without assigning meanings to codes that are absent from the source table.
MAR Alarm Table
The table below contains the AlarmIDs from the provided MAR (Macro Alarms) table, divided according to the original structure into Mill, Lathe, and Common. The numbering contains gaps: if a particular AlarmID is not present in the source list, it should not be added artificially.
Milling Machines — Mill
铣床 (Mill)
| AlarmID | Category / Original Description (Chinese) | English Translation | Diagnostic Meaning / Notes |
|---|---|---|---|
001 | PROFILE中最低点低于平台 | Lowest point in the profile is below the platform | Check the profile coordinates relative to the working plane. |
002 | 垂直轴或延伸轴的每次的进刀量小于或等于0 | Feed amount per pass for the vertical or extension axis is less than or equal to 0 | Set a positive feed depth value. |
003 | 最大圆弧弦长小于或等于0 | Maximum arc chord length is less than or equal to 0 | Invalid arc chord length parameter for processing. |
004 | 最大圆弧半径小于或等于0 | Maximum arc radius is less than or equal to 0 | Specify a valid arc radius greater than zero. |
005 | 指定的PROFILE路径有误 | Specified PROFILE path is incorrect | Error in the geometry or syntax of the given contour. |
006 | PROFILE中G02或G03的指定有误 | G02 or G03 specification in PROFILE is incorrect | Error in interpolation direction (clockwise or counterclockwise). |
007 | 最小圆弧半径小于或等于0 | Minimum arc radius is less than or equal to 0 | Check the minimum corner rounding radius settings. |
011 | 钻(塘)孔循环进刀平面R低于孔底平面 | Drilling (boring) cycle approach plane R is lower than the hole bottom plane | Check coordinate parameters of the drilling cycle (G81/G83). |
012 | 钻(塘)孔循环没有指定孔底平面 | Drilling (boring) cycle did not specify the hole bottom plane | Add the required hole depth parameter. |
013 | 啄式钻孔循环没有指定进刀量Q | Peck drilling cycle did not specify the feed increment Q | Specify the incremental depth Q. |
015 | 多孔钻孔孔数不可为零 | Number of holes for multi-hole drilling cannot be zero | Enter a valid number of holes. |
016 | 快钻G81更改上拉速度的F2自变量必须为整数 | F2 argument for changing pull-up speed in rapid drilling G81 must be an integer | Provide an integer value for the F2 parameter. |
031 | XY平面进给深度太小 | Feed depth in the XY plane is too small | Increase the feed step value in the XY plane. |
032 | Z进给深度太小 | Z-axis feed depth is too small | Increase the feed step value along the Z-axis. |
040 | 加工方向未指定 | Machining direction not specified | Set a valid cutting direction in the macro. |
041 | 刀具直径太大,超出加工物 | Tool diameter is too large, exceeding the workpiece boundaries | Decrease the cutter diameter or recalculate the tool path. |
042 | 圆角半径太小比刀径小,或太大无法加入角隅 | Corner radius is too small (smaller than tool diameter) or too large to fit into the corner | Adjust the corner fillet radius. |
051 | X轴步进值超过限定值 | X-axis step value exceeds the limit | Reduce the X-axis offset step. |
052 | Y轴步进值超过限定值 | Y-axis step value exceeds the limit | Reduce the Y-axis offset step. |
053 | Z轴步进值超过限定值 | Z-axis step value exceeds the limit | Reduce the Z-axis offset step. |
054 | X轴长度小于0 | X-axis length is less than 0 | Check the dimensional parameters along the X-axis. |
055 | Y轴长度小于0 | Y-axis length is less than 0 | Check the dimensional parameters along the Y-axis. |
056 | Z轴最大深度小于0 | Maximum depth along the Z-axis is less than 0 | Check the machining depth value. |
057 | 棋盘孔X轴起始孔不可小于等于0 | Starting hole along the X-axis for staggered hole patterns cannot be less than or equal to 0 | Specify a positive starting value. |
058 | 棋盘孔Y轴起始孔不可小于等于0 | Starting hole along the Y-axis for staggered hole patterns cannot be less than or equal to 0 | Specify a positive starting value. |
059 | 棋盘孔自动补偿孔数不可小于等于0 | Number of holes for automatic compensation in a staggered pattern cannot be less than or equal to 0 | Fix the number of holes in the cycle settings. |
300 | 自动分中,起始点错误 | Auto-centering: starting point error | Move the tool closer to the workpiece being measured. |
301 | 自动分中,(长度)或(安全距离)输入错误 | Auto-centering: input error in (length) or (safety distance) | Check measurement macro parameters. |
302 | 自动分中,(宽度)或(安全距离)输入错误 | Auto-centering: input error in (width) or (safety distance) | Check measurement macro parameters. |
303 | 自动分中,(安全高度)输入错误 | Auto-centering: input error in (safety height) | Check the clearance height value. |
304 | 自动分中,(速度)输入错误 | Auto-centering: input error in (speed) | Specify an allowable measurement speed. |
305 | 自动分中,(安全距离)输入错误 | Auto-centering: input error in (safety distance) | Adjust the safety clearance. |
306 | 自动分中, (长度)或(宽度)输入错误 | Auto-centering: input error in (length) or (width) | Check the part overall dimensions in the macro. |
307 | 自动分中时发生错误 | Error occurred during auto-centering | Check probe contact and sensor status. |
320 | 主轴至对刀仪距离输入错误 | Distance from spindle to tool setter entered incorrectly | Check calibration constants. |
321 | 预估刀长输入错误 | Estimated tool length entered incorrectly | Specify a correct approximate tool length. |
322 | 主轴至对刀仪距离或预估刀长输入错误 | Spindle-to-tool-setter distance or estimated tool length entered incorrectly | Check both parameters in the setting table. |
323 | 第一次与第二次探测的误差超过容许范围 | Error between the first and second probing exceeds the allowable range | Check tool and tool setter clamping stability. |
324 | 刀具量测时发生错误 | Error occurred during tool measurement | Check the operation of the touch probe/tool setter. |
330 | Z轴最低机机械坐标设定错误 | Z-axis lowest machine coordinate setting error | Check the system software limits for the Z-axis. |
331 | 刀具量测过程遇到错误 | Error encountered during the tool measurement process | Ensure the path leading to the tool setter is clear. |
332 | 第二次与第三次探测误差超过设定范围 | Error between the second and third probing exceeds the set range | Possible probe contact bounce or dirty stylus. |
333 | Z轴起始点错误 | Z-axis starting point error | Adjust the Z-axis starting position. |
401 | 输入错误的工件坐标系设定 | Incorrect workpiece coordinate system (WCS) setting entered | Check the selected work coordinate system number (G54-G59). |
402 | 输入错误的刀具设定 | Incorrect tool setting entered | Check tool offset and wear compensation parameters. |
403 | 输入错误的对刀模式 | Incorrect tool setting mode entered | Select the appropriate tool setup method. |
404 | 是否使用参考点设定错误 | Reference point usage setting error | Check the reference return flag or parameter. |
405 | 非一般铣床请使用自定义暂停点回归程序 | For non-standard milling machines, please use a custom breakpoint return program | A special sub-macro is required for non-standard kinematics. |
Lathes — Lathe
车床 (Lathe)
| AlarmID | Category / Original Description (Chinese) | English Translation | Diagnostic Meaning / Notes |
|---|---|---|---|
001 | 第一个单节在Z轴上没有净移动量 | First block has no net movement along the Z-axis | Add movement along the Z-axis at the beginning of the turning program. |
002 | 车削路径X,Z轴只允许单方向增加或减少 | Turning path X and Z axes only allow monotonic increase or decrease (one-way only) | Correct the machining profile to avoid invalid reversals. |
003 | 第一个单节在X轴上没有净移动量 | First block has no net movement along the X-axis | Add movement along the X-axis at the beginning of the turning program. |
004 | 车削路径Z轴只允许单方向增加或减少 | Turning path Z-axis only allows monotonic increase or decrease | Correct the motion trajectory along the Z-axis. |
005 | 车削起始点低于路径 | Turning starting point is lower than the path | Adjust the initial position of the cutting tool. |
006 | 刀号只允许使用4位数字 | Tool number must be a 4-digit number | Specify the tool number in a 4-digit format. |
011 | 钻(塘)孔循环进刀平面R低于孔底平面 | Drilling (boring) cycle approach plane R is lower than the hole bottom plane | Check cycle coordinate parameters on the lathe. |
012 | 钻(塘)孔循环没有指定孔底平面 | Drilling (boring) cycle did not specify the hole bottom plane | Set the final hole depth. |
013 | 啄式钻孔循环没有指定进刀量Q | Peck drilling cycle did not specify the feed increment Q | Specify the plunge increment Q. |
014 | G41/G42模式下不可启动G12.1 | G12.1 cannot be activated while cutter radius compensation (G41/G42) is active | Cancel tool radius compensation before turning on G12.1. |
015 | G96模式下不可启动G12.1 | G12.1 cannot be activated under constant surface speed mode (G96) | Switch to constant spindle speed mode (G97) before activating G12.1. |
016 | G12.1轴向不存在 | G12.1 axis does not exist in the configuration | Check for the presence of the polar axis in machine parameters. |
017 | G41/G42模式下不可结束G12.1 | G12.1 cannot be ended while cutter radius compensation (G41/G42) is active | Turn off G41/G42 first, then deactivate G12.1. |
018 | G73/G74 H 值输入错误 | G73/G74 H value input error | Verify the correctness of the H argument. |
019 | 螺纹进刀/退刀倒角长度输入错误 | Thread infeed/outfeed chamfer length input error | Specify the correct thread lead-in/lead-out chamfer length. |
020 | 螺纹X轴方向进刀位置高于起始点 | Thread infeed position in the X-axis direction is higher than the starting point | Check the initial threading diameter. |
022 | 椭圆插补的Z,X半轴长未输入或小于等于零 | Elliptical interpolation Z and X semi-axis lengths not entered or less than or equal to zero | Enter positive semi-axis values for the ellipse. |
023 | 椭圆插补的起终点距离大于椭圆长轴长 | Distance between start and end points of elliptical interpolation is greater than the major axis length | Check the ellipse contour geometry. |
024 | 拋物线插补的焦距未输入或小于等于零 | Parabolic interpolation focal length not entered or less than or equal to zero | Specify a valid parabola focal length. |
025 | 拋物线插补的起终点联机平行于对称轴 | Line connecting the start and end points of parabolic interpolation is parallel to the axis of symmetry | Modify the start and end points of the parabola. |
026 | 椭圆与拋物线插补的起终点Z坐标不可为同一点 | Ellipse and parabola interpolation start and end points cannot have the same Z coordinate | Ensure start and end points differ along the Z-axis. |
027 | 拋物线终点不在为拋物线上 | Parabola end point does not lie on the parabola curve itself | Recalculate the end point coordinates. |
Common Section — Common
共通部分 (Common)
| AlarmID | Category / Original Description (Chinese) | English Translation | Diagnostic Meaning / Notes |
|---|---|---|---|
451 | 主轴刀号与断刀点的刀号不一致 | Tool number in the spindle does not match the tool number at the breakpoint | Check the tool magazine state and current tool when resuming operation. |
452 | 刀具回退功能,刀具收回轴向必须为X Y Z | For the tool retraction function, the retraction axes must be strictly X, Y, and Z | Ensure standard Cartesian axes are assigned for safe retraction. |