PathScripts.post.heidenhain_post Namespace Reference

Functions

def export (objectslist, filename, argstring)
 
def HEIDEN_Arc (arc_Params, arc_direction, arc_comp, arc_feed, arc_rapid, arc_M_funct, Cmd_Number)
 
def HEIDEN_Begin (ActualJob)
 
def HEIDEN_Drill (drill_Obj, drill_Params, drill_Type, drill_feed)
 
def HEIDEN_End (ActualJob)
 
def HEIDEN_Format (formatType, formatValue)
 
def HEIDEN_LBL_Get (GetPoint=None, GetLevel=None, GetAddit=0)
 
def HEIDEN_LBL_Replace ()
 
def HEIDEN_Line (line_Params, line_comp, line_feed, line_rapid, line_M_funct, Cmd_Number)
 
def HEIDEN_Numberize (GCodeStrings)
 
def HEIDEN_PolarArc (pol_cc_X, pol_cc_Y, pol_X, pol_Y, pol_Z, pol_Axis, pol_Incr)
 
def HEIDEN_ToolCall (tool_Params)
 
def processArguments (argstring)
 

Variables

 action
 
int AXIS_DECIMALS = 3
 
list COMPENSATION_DIFF_STATUS = [False, True]
 
 default
 
int FEED_DECIMALS = 0
 
int FEED_MAX_SPEED = 8000
 
int FIRST_LBL = 1
 
dictionary G_FUNCTION_STORE
 
 help
 
bool LBLIZE_ACTIVE = False
 
int LBLIZE_PATH_LEVEL = 99999
 
bool LBLIZE_STAUS = False
 
int LINENUMBER_INCREMENT = 1
 
bool LINENUMBERS = True
 
dictionary MACHINE_CYCLE_DEF
 
dictionary MACHINE_LAST_CENTER
 
dictionary MACHINE_LAST_POSITION
 
bool MACHINE_SKIP_PARAMS = False
 
int MACHINE_SPINDLE_DIRECTION = 3
 
list MACHINE_STORED_PARAMS = ["", -1, ""]
 
list MACHINE_TRASL_ROT = [0, 0, 0, 0]
 
bool MACHINE_USE_FMAX = False
 
int MACHINE_WORK_AXIS = 2
 
 parser = argparse.ArgumentParser(prog="heidenhain", add_help=False)
 
list POSTGCODE = []
 
 pythonopen = open
 
bool SHOW_EDITOR = True
 
bool SKIP_WARNS = False
 
bool SOLVE_COMPENSATION_ACTIVE = False
 
int SPINDLE_DECIMALS = 0
 
int STARTLINENR = 0
 
dictionary STORED_CANNED_PARAMS
 
tuple STORED_COMPENSATED_OBJ = ()
 
list STORED_LBL = []
 
string TOOLTIP
 
 TOOLTIP_ARGS = parser.format_help()
 
string UNITS = "MM"
 

Function Documentation

◆ export()

◆ HEIDEN_Arc()

def PathScripts.post.heidenhain_post.HEIDEN_Arc (   arc_Params,
  arc_direction,
  arc_comp,
  arc_feed,
  arc_rapid,
  arc_M_funct,
  Cmd_Number 
)

◆ HEIDEN_Begin()

def PathScripts.post.heidenhain_post.HEIDEN_Begin (   ActualJob)

◆ HEIDEN_Drill()

def PathScripts.post.heidenhain_post.HEIDEN_Drill (   drill_Obj,
  drill_Params,
  drill_Type,
  drill_feed 
)

◆ HEIDEN_End()

def PathScripts.post.heidenhain_post.HEIDEN_End (   ActualJob)

◆ HEIDEN_Format()

◆ HEIDEN_LBL_Get()

def PathScripts.post.heidenhain_post.HEIDEN_LBL_Get (   GetPoint = None,
  GetLevel = None,
  GetAddit = 0 
)

◆ HEIDEN_LBL_Replace()

def PathScripts.post.heidenhain_post.HEIDEN_LBL_Replace ( )

◆ HEIDEN_Line()

def PathScripts.post.heidenhain_post.HEIDEN_Line (   line_Params,
  line_comp,
  line_feed,
  line_rapid,
  line_M_funct,
  Cmd_Number 
)

◆ HEIDEN_Numberize()

def PathScripts.post.heidenhain_post.HEIDEN_Numberize (   GCodeStrings)

◆ HEIDEN_PolarArc()

def PathScripts.post.heidenhain_post.HEIDEN_PolarArc (   pol_cc_X,
  pol_cc_Y,
  pol_X,
  pol_Y,
  pol_Z,
  pol_Axis,
  pol_Incr 
)

◆ HEIDEN_ToolCall()

def PathScripts.post.heidenhain_post.HEIDEN_ToolCall (   tool_Params)

◆ processArguments()

def PathScripts.post.heidenhain_post.processArguments (   argstring)

Variable Documentation

◆ action

PathScripts.post.heidenhain_post.action

◆ AXIS_DECIMALS

int PathScripts.post.heidenhain_post.AXIS_DECIMALS = 3

◆ COMPENSATION_DIFF_STATUS

list PathScripts.post.heidenhain_post.COMPENSATION_DIFF_STATUS = [False, True]

◆ default

PathScripts.post.heidenhain_post.default

◆ FEED_DECIMALS

int PathScripts.post.heidenhain_post.FEED_DECIMALS = 0

◆ FEED_MAX_SPEED

int PathScripts.post.heidenhain_post.FEED_MAX_SPEED = 8000

◆ FIRST_LBL

int PathScripts.post.heidenhain_post.FIRST_LBL = 1

◆ G_FUNCTION_STORE

dictionary PathScripts.post.heidenhain_post.G_FUNCTION_STORE
Initial value:
1= {
2 "G90": False,
3 "G91": False,
4 "G98": False,
5 "G99": False,
6 "G81": False,
7 "G82": False,
8 "G83": False,
9}

◆ help

PathScripts.post.heidenhain_post.help

◆ LBLIZE_ACTIVE

bool PathScripts.post.heidenhain_post.LBLIZE_ACTIVE = False

◆ LBLIZE_PATH_LEVEL

int PathScripts.post.heidenhain_post.LBLIZE_PATH_LEVEL = 99999

◆ LBLIZE_STAUS

bool PathScripts.post.heidenhain_post.LBLIZE_STAUS = False

◆ LINENUMBER_INCREMENT

int PathScripts.post.heidenhain_post.LINENUMBER_INCREMENT = 1

◆ LINENUMBERS

bool PathScripts.post.heidenhain_post.LINENUMBERS = True

◆ MACHINE_CYCLE_DEF

dictionary PathScripts.post.heidenhain_post.MACHINE_CYCLE_DEF
Initial value:
1= {
2 1: "CYCL DEF 1.0 FORATURA PROF."
3 + "\n"
4 + "CYCL DEF 1.1 DIST"
5 + "{DIST}\n"
6 + "CYCL DEF 1.2 PROF"
7 + "{DEPTH}\n"
8 + "CYCL DEF 1.3 INCR"
9 + "{INCR}\n"
10 + "CYCL DEF 1.4 SOSTA"
11 + "{DWELL}\n"
12 + "CYCL DEF 1.5 F"
13 + "{FEED}",
14 2: "",
15 7: "",
16}

◆ MACHINE_LAST_CENTER

dictionary PathScripts.post.heidenhain_post.MACHINE_LAST_CENTER
Initial value:
1= { # CC initial values to overwrite
2 "X": 99999,
3 "Y": 99999,
4 "Z": 99999,
5}

◆ MACHINE_LAST_POSITION

dictionary PathScripts.post.heidenhain_post.MACHINE_LAST_POSITION
Initial value:
1= { # axis initial values to overwrite
2 "X": 99999,
3 "Y": 99999,
4 "Z": 99999,
5 "A": 99999,
6 "B": 99999,
7 "C": 99999,
8}

◆ MACHINE_SKIP_PARAMS

bool PathScripts.post.heidenhain_post.MACHINE_SKIP_PARAMS = False

◆ MACHINE_SPINDLE_DIRECTION

int PathScripts.post.heidenhain_post.MACHINE_SPINDLE_DIRECTION = 3

◆ MACHINE_STORED_PARAMS

list PathScripts.post.heidenhain_post.MACHINE_STORED_PARAMS = ["", -1, ""]

◆ MACHINE_TRASL_ROT

list PathScripts.post.heidenhain_post.MACHINE_TRASL_ROT = [0, 0, 0, 0]

◆ MACHINE_USE_FMAX

bool PathScripts.post.heidenhain_post.MACHINE_USE_FMAX = False

◆ MACHINE_WORK_AXIS

int PathScripts.post.heidenhain_post.MACHINE_WORK_AXIS = 2

◆ parser

PathScripts.post.heidenhain_post.parser = argparse.ArgumentParser(prog="heidenhain", add_help=False)

◆ POSTGCODE

list PathScripts.post.heidenhain_post.POSTGCODE = []

◆ pythonopen

PathScripts.post.heidenhain_post.pythonopen = open

◆ SHOW_EDITOR

bool PathScripts.post.heidenhain_post.SHOW_EDITOR = True

◆ SKIP_WARNS

bool PathScripts.post.heidenhain_post.SKIP_WARNS = False

◆ SOLVE_COMPENSATION_ACTIVE

bool PathScripts.post.heidenhain_post.SOLVE_COMPENSATION_ACTIVE = False

◆ SPINDLE_DECIMALS

int PathScripts.post.heidenhain_post.SPINDLE_DECIMALS = 0

◆ STARTLINENR

int PathScripts.post.heidenhain_post.STARTLINENR = 0

◆ STORED_CANNED_PARAMS

dictionary PathScripts.post.heidenhain_post.STORED_CANNED_PARAMS
Initial value:
1= { # Store canned cycles for match
2 "DIST": 99999,
3 "DEPTH": 99999,
4 "INCR": 99999,
5 "DWELL": 99999,
6 "FEED": 99999,
7}

◆ STORED_COMPENSATED_OBJ

tuple PathScripts.post.heidenhain_post.STORED_COMPENSATED_OBJ = ()

◆ STORED_LBL

list PathScripts.post.heidenhain_post.STORED_LBL = []

◆ TOOLTIP

string PathScripts.post.heidenhain_post.TOOLTIP
Initial value:
1= """
2This is a postprocessor file for the Path workbench. It is used to
3take a pseudo-gcode fragment outputted by a Path object, and output
4real GCode suitable for a heidenhain 3 axis mill. This postprocessor, once placed
5in the appropriate PathScripts folder, can be used directly from inside
6FreeCAD, via the GUI importer or via python scripts with:
7
8import heidenhain_post
9heidenhain.export(object,"/path/to/file.ncc","")
10"""

◆ TOOLTIP_ARGS

PathScripts.post.heidenhain_post.TOOLTIP_ARGS = parser.format_help()

◆ UNITS

string PathScripts.post.heidenhain_post.UNITS = "MM"