[EMC] # The version string for this INI file. VERSION = 1.0 # Name of machine, for use with display, etc. MACHINE = HM2_rpspi-Stepper # Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others #DEBUG = 0x00000003 #DEBUG = 0x00000007 DEBUG = 0 [DISPLAY] # set desired spindle speed for first click DEFAULT_SPINDLE_SPEED = 100 # Name of display program, e.g., tklinuxcnc #DISPLAY = tklinuxcnc DISPLAY = axis LATHE = 1 # Cycle time, in seconds, that display will sleep between polls CYCLE_TIME = 0.0500 # Path to help file HELP_FILE = tklinuxcnc.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/pi/linuxcnc/nc_files INCREMENTS = 1.0000 .5000 .2000 .1000 .0500 .0200 .0100 .0050 .0020 .0010 # Introductory graphic INTRO_GRAPHIC = linuxcnc.gif INTRO_TIME = 4 # draw the tach dial and status buttons PYVCP = pyvcp-panel-tach-status.xml #PYVCP = pyvcp-test-multilabel.xml [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 [RS274NGC] # File containing interpreter variables PARAMETER_FILE = hm2-stepper.var [EMCMOT] EMCMOT = motmod # Timeout for comm to emcmot, in seconds COMM_TIMEOUT = 1.0 # Interval between tries to emcmot, in seconds COMM_WAIT = 0.010 # Servo task period, in nanoseconds #BASE_PERIOD = 100000 # set servo-thread at 1KHz, and jog-thread to 200 Hz SERVO_PERIOD = 1000000 [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 [HAL] TWO_PASS = tryme # 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-7i90-stepper.hal POSTGUI_HALFILE = postgui_call_list.hal # list of halcmd commands to execute # commands are executed in the order in which they appear #HALCMD = save neta [HALUI] #No Content yet [TRAJ] COORDINATES = X Z #HOME = 0 0 0 LINEAR_UNITS = inch ANGULAR_UNITS = degree CYCLE_TIME = 0.010 # 75 ipm MAX_LINEAR_VELOCITY = 1.250 # 30 ipm DEFAULT_LINEAR_VELOCITY = 0.5000 MAX_LINEAR_ACCELERATION = 2.7500 [EMCIO] # Name of IO controller program, e.g., io EMCIO = io # cycle time, in seconds CYCLE_TIME = 0.0500 # tool table file TOOL_TABLE = tool.tbl [KINS] KINEMATICS = trivkins coordinates=XZ JOINTS = 2 [AXIS_X] MIN_LIMIT = -5.050 MAX_LIMIT = 0.05 MAX_VELOCITY = 0.75 MAX_ACCELERATION = 3.75 [JOINT_0] TYPE = LINEAR MAX_VELOCITY = 0.75 MAX_ACCELERATION = 3.75 # Set Stepgen max 20% higher than the axis STEPGEN_MAX_VEL = 0.75 STEPGEN_MAX_ACC = 7.50 BACKLASH = 0.0045 # scale is 200 steps/rev * 5 revs/inch SCALE = 25685.0000 MIN_LIMIT = -5.050 MAX_LIMIT = 0.05 FERROR = 0.0010 MIN_FERROR = 0.00010 HOME = 0.000 HOME_IS_SHARED = 0 HOME_OFFSET = 0.10 HOME_SEARCH_VEL = 0.50 HOME_LATCH_VEL = -0.01 HOME_FINAL_VEL = 0.30 #HOME_USE_INDEX = YES #HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 0 # these are in nanoseconds, DM860's have glacial opto's. DIRSETUP = 5000 DIRHOLD = 3500 STEPLEN = 2700 STEPSPACE = 2700 [AXIS_Z] MIN_LIMIT = -40.0 MAX_LIMIT = 40.0 MAX_VELOCITY = 1.25 MAX_ACCELERATION = 3.75 [JOINT_1] TYPE = LINEAR MAX_VELOCITY = 1.250 MAX_ACCELERATION = 3.75 # Set Stepgen max 20% higher than the axis STEPGEN_MAX_VEL = 1.750 STEPGEN_MAX_ACC = 7.60 BACKLASH = 0.003 SCALE = 21789.46623 MIN_LIMIT = -40.0 MAX_LIMIT = 40.0 FERROR = 0.0010 MIN_FERROR = 0.0001 HOME = 0.000 HOME_IS_SHARED = 0 HOME_OFFSET = 2.500 HOME_SEARCH_VEL = -0.50 HOME_LATCH_VEL = -0.01 #HOME_USE_INDEX = YES #HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 # these are in nanoseconds DIRSETUP = 5000 DIRHOLD = 2500 STEPLEN = 2250 STEPSPACE = 2250 [SPINDLE_9] # 16.6 is close to 100 revs per click in LOW belt position PWMGEN_S_SCALE = 16.6 # make it run in PDM mode, is self smoothing then PWMGEN_S_FREQ = 1 PWMGEN_OUTPUT_TYPE = 3 PDMGEN_PDM_FREQUENCY = 10000 ENCODER_SAMPLE = 500000 ENCODER_S_SCALE = 240 [HOSTMOT2] DRIVER=hm2_rpspi BOARD=7i90 CONFIG="num_encoders=4 num_pwmgens=1 num_stepgens=4" SPICLK=33000