Macro overview

The macro is intended for use on 3-axis machining centers to perform a hexagon whose axis is parallel to the Z axis.

The purpose is to greatly simplify the programming side since in order to execute a simple figure like that of the hexagon, the lines of code to be written can become several!

In fact, it is necessary to calculate the positions of the vertices of the hexagon and program the profile which must then be repeated several times until reaching the desired depth.

All this can be replaced instead with a single line of code!

Description of the parameters

Here is an example of the line of code to call the macro.
Example: G65P8002A60B32C16D2R1X50Y50Z-30F600

  • P = program number where the macro resides in memory
  • A =  raw diameter
  • B = key measure hexagon
  • C = end mill diameter
  • D = depth of pass
  • R = Approaching start of processing
  • X = hexagon center position X
  • Y = hexagon center position Y
  • Z = height of the hexagon
  • F = feedrate