# This config file was created 2018-11-29 07:14:37.977298 by the update_ini script # The original config files may be found in the /home/peter/linuxcnc-dev/configs/CNCLathe/CNCLathe.old directory [APPLICATIONS] DELAY = 3 # For assessing system accel/vel: # (particularly when using func3 square wave modulation) APP = sim_pin ini.x.max_acceleration ini.x.max_velocity [HAL] # The run script first uses halcmd to execute any HALFILE # files, and then to execute any individual HALCMD commands. # list of hal config files to run through halcmd # files are executed in the order in which they appear HALFILE = hm2-stepper.hal HALUI = halui #HALFILE = opa_cmds.hal HALFILE = opa.hal POSTGUI_HALFILE = opa_panel.hal # list of halcmd commands to execute # commands are executed in the order in which they appear #HALCMD = save neta [HALUI] #No Content [EMC] # The version string for this INI file. VERSION = 1.1 # Name of machine, for use with display, etc. MACHINE = CNCLathe # Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others #DEBUG = 0x00000003 #DEBUG = 0x00000007 DEBUG = 0 [DISPLAY] # Name of display program, e.g., tkemc DISPLAY = axis PYVCP = opa_panel.xml # Cycle time, in seconds, that display will sleep between polls CYCLE_TIME = 0.0500 # Path to help file HELP_FILE = tklinucnc.txt # Initial display setting for position, RELATIVE or MACHINE POSITION_OFFSET = RELATIVE # Initial display setting for position, COMMANDED or ACTUAL POSITION_FEEDBACK = ACTUAL # Highest value that will be allowed for feed override, 1.0 = 100% MAX_FEED_OVERRIDE = 1.5 # Prefix to be used PROGRAM_PREFIX = /home/peter/linuxcnc/nc_files INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm # Introductory graphic INTRO_GRAPHIC = linuxcnc.gif INTRO_TIME = 1 MIN_LINEAR_VELOCITY = 0 MAX_LINEAR_VELOCITY = 25.00 LATHE=1 #OPEN_FILE = opa_demo.ngc GEOMETRY = CXZ #MAX_LINEAR_VELOCITY = 2 MAX_ANGULAR_VELOCITY = 60 TKPKG = Ngcgui 1.0 NGCGUI_FONT = Helvetica -12 normal NGCGUI_SUBFILE = circles.ngc [TASK] # Name of task controller program, e.g., milltask TASK = milltask # Cycle time, in seconds, that task controller will sleep between polls CYCLE_TIME = 0.010 [RS274NGC] # File containing interpreter variables PARAMETER_FILE = hm2-stepper.var SUBROUTINE_PATH = . USER_M_PATH = . PARAMETER_FILE = sim.var [EMCIO] EMCIO = io # cycle time, in seconds CYCLE_TIME = 0.100 #TOOL_TABLE = tool.tbl TOOL_TABLE = eoffset.tbl [EMCMOT] EMCMOT = motmod # Timeout for comm to emcmot, in seconds COMM_TIMEOUT = 1.0 BASE_PERIOD = 50000 # Servo task period, in nanoseconds SERVO_PERIOD = 1000000 [TRAJ] # this value based on fastest single axis MAX_LINEAR_VELOCITY = 25 AXES = 3 COORDINATES = XZC #HOME = 0 0 0 LINEAR_UNITS = mm ANGULAR_UNITS = degree [KINS] #This is a best-guess at the number of joints, it should be checked JOINTS = 3 KINEMATICS = trivkins coordinates=XZC [AXIS_X] OFFSET_AV_RATIO = 0.5 MIN_LIMIT = -100.0 MAX_LIMIT = 100.0 MAX_VELOCITY = 25 #Check this max accel value MAX_ACCELERATION = 100 ####################################### ###### Z AXIS ####################################### [AXIS_Z] MIN_LIMIT = -100.0 MAX_LIMIT = 300.0 MAX_VELOCITY = 25 MAX_ACCELERATION = 100 [AXIS_C] MAX_VELOCITY = 60 MAX_ACCELERATION = 600 [JOINT_0] # # Step timing is 40 us steplen + 40 us stepspace # That gives 80 us step period = 12.5 KHz step freq # # Bah, even software stepping can handle that, hm2 doesnt buy you much with # such slow steppers. # # Scale is 200 steps/rev * 5 revs/inch = 1000 steps/inch # # This gives a maxvel of 12.5/1 = 12.5 ips # TYPE = LINEAR MAX_VELOCITY = 25 MAX_ACCELERATION = 50 # Set Stepgen max 20% higher than the axis STEPGEN_MAX_VEL = 28 STEPGEN_MAX_ACC = 55 BACKLASH = 0.000 # scale is 200 steps/rev * 5 revs/inch SCALE = 1600 MIN_LIMIT = -100.0 MAX_LIMIT = 100.0 FERROR = 1 MIN_FERROR = 0.1 #HOME = 0.000 #HOME_OFFSET = 0.10 #HOME_SEARCH_VEL = 0.10 #HOME_LATCH_VEL = -0.01 #HOME_USE_INDEX = YES #HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 # these are in nanoseconds DIRSETUP = 200 DIRHOLD = 200 STEPLEN = 3000 STEPSPACE = 3000 [JOINT_1] TYPE = LINEAR MAX_VELOCITY = 40 MAX_ACCELERATION = 200 # Set Stepgen max 20% higher than the axis STEPGEN_MAX_VEL = 40 STEPGEN_MAX_ACC = 250 BACKLASH = 0.000 SCALE = 640 MIN_LIMIT = -100.0 MAX_LIMIT = 300.0 FERROR = 0.1 MIN_FERROR = 0.01 #HOME = 0.000 #HOME_OFFSET = 0.10 #HOME_SEARCH_VEL = 0.10 #HOME_LATCH_VEL = -0.01 #HOME_USE_INDEX = YES #HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 # these are in nanoseconds DIRSETUP = 200 DIRHOLD = 200 STEPLEN = 3000 STEPSPACE = 3000 [JOINT_2] TYPE = ANGULAR HOME_SEQUENCE = 0 MAX_VELOCITY = 60 MAX_ACCELERATION = 600 FERROR = 1 MIN_FERROR = 0.1 [HOSTMOT2] DRIVER=hm2_7i43 BOARD=7i43 CONFIG="firmware=hm2/7i43-4/SVST4_4.BIT num_encoders=1 num_pwmgens=1 num_stepgens=3" [SPINDLE_0] INPUT_SCALE=4000 OUTPUT_SCALE=4000 PWM_FREQUENCY=50 DEADBAND=0.01 [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image PROGRAM_EXTENSION = .py Python Script png = image-to-gcode gif = image-to-gcode jpg = image-to-gcode py = python