Hello,

I have Proxxon mf 70 cnc-ready and limit switches are X+ Y+ Z+

I made next configuration

[AXIS_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 = 50.0
MAX_ACCELERATION = 5.0
# Set Stepgen max 20% higher than the axis
STEPGEN_MAX_VEL = 100.0
STEPGEN_MAX_ACC = 6.0

BACKLASH = 0.000

# scale is 200 steps/rev * 5 revs/inch
SCALE = -160

MIN_LIMIT = -1.0
MAX_LIMIT = 150.0

FERROR = 1.0
MIN_FERROR = 0.25

HOME = 0.000
HOME_OFFSET = 0.00
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0

# Set to zero if you don't have physical home/limit switches
# Set to the desired homing and latch velocity if you have switches
# See: https://github.com/machinekit/machinekit-docs
HOME_SEARCH_VEL = 10.0
HOME_LATCH_VEL = -10.0

# these are in nanoseconds
DIRSETUP = 3000
DIRHOLD = 3000
STEPLEN = 3000
STEPSPACE = 3000

# ################
# X [0] Axis
# ################

# axis enable chain
newsig emcmot.00.enable bit
sets emcmot.00.enable FALSE

net emcmot.00.enable <= axis.0.amp-enable-out
net emcmot.00.enable => hpg.stepgen.00.enable


# position command and feedback
net emcmot.00.pos-cmd <= axis.0.motor-pos-cmd
net emcmot.00.pos-cmd => hpg.stepgen.00.position-cmd

net motor.00.pos-fb <= hpg.stepgen.00.position-fb
net motor.00.pos-fb => axis.0.motor-pos-fb


# timing parameters
setp hpg.stepgen.00.dirsetup        [AXIS_0]DIRSETUP
setp hpg.stepgen.00.dirhold         [AXIS_0]DIRHOLD

setp hpg.stepgen.00.steplen         [AXIS_0]STEPLEN
setp hpg.stepgen.00.stepspace       [AXIS_0]STEPSPACE

setp hpg.stepgen.00.position-scale  [AXIS_0]SCALE

setp hpg.stepgen.00.maxvel          [AXIS_0]STEPGEN_MAX_VEL
setp hpg.stepgen.00.maxaccel        [AXIS_0]STEPGEN_MAX_ACC

#setp hpg.stepgen.00.step_type       0
# P8.9
setp hpg.stepgen.00.steppin          0x65
# P8.7
setp hpg.stepgen.00.dirpin           0x62

# invert the home input signals
setp bb_gpio.p9.in-11.invert 0
setp bb_gpio.p9.in-13.invert 0
setp bb_gpio.p9.in-15.invert 1

# wire the home inputs
net Xhome bb_gpio.p9.in-11 => axis.0.home-sw-in
net Zhome bb_gpio.p9.in-13 => axis.1.home-sw-in
net Yhome bb_gpio.p9.in-15 => axis.2.home-sw-in


and in application I have HOME X- Y- Z- in Proxxon X- Y- Z+
X and Y are OK I mean moves without problem but Z I cannot move down. How 
to set homing to Z+?

Next I have dividing head I configured A axis

# ################
# A [3] Axis
# ################

# axis enable chain
newsig emcmot.03.enable bit
sets emcmot.03.enable FALSE

net emcmot.03.enable <= axis.3.amp-enable-out
net emcmot.03.enable => hpg.stepgen.03.enable


# position command and feedback
net emcmot.03.pos-cmd <= axis.3.motor-pos-cmd
net emcmot.03.pos-cmd => hpg.stepgen.03.position-cmd

net motor.03.pos-fb <= hpg.stepgen.03.position-fb
net motor.03.pos-fb => axis.3.motor-pos-fb


# timing parameters
setp hpg.stepgen.03.dirsetup        [AXIS_3]DIRSETUP
setp hpg.stepgen.03.dirhold         [AXIS_3]DIRHOLD

setp hpg.stepgen.03.steplen         [AXIS_3]STEPLEN
setp hpg.stepgen.03.stepspace       [AXIS_3]STEPSPACE

setp hpg.stepgen.03.position-scale  [AXIS_3]SCALE

setp hpg.stepgen.03.maxvel          [AXIS_3]STEPGEN_MAX_VEL
setp hpg.stepgen.03.maxaccel        [AXIS_3]STEPGEN_MAX_ACC

#setp hpg.stepgen.03.step_type       0
# P8.14
setp hpg.stepgen.03.steppin          0x3A
# P8.16
setp hpg.stepgen.03.dirpin           0x4E


# home switches

# invert the home input signals
setp bb_gpio.p9.in-11.invert 0
setp bb_gpio.p9.in-13.invert 0
setp bb_gpio.p9.in-15.invert 1
#setp bb_gpio.p8.in-17.invert 1

# wire the home inputs
net Xhome bb_gpio.p9.in-11 => axis.0.home-sw-in
net Zhome bb_gpio.p9.in-13 => axis.1.home-sw-in
net Yhome bb_gpio.p9.in-15 => axis.2.home-sw-in
#net Ahome bb_gpio.p8.in-17 => axis.3.home-sw-in

[TRAJ]

AXES =                  4
COORDINATES =           X Y Z A
MAX_ANGULAR_VELOCITY = 45.00
DEFAULT_ANGULAR_VELOCITY = 4.50
LINEAR_UNITS =          mm
ANGULAR_UNITS =         degree
CYCLE_TIME =            0.010
DEFAULT_VELOCITY = 20.00
MAX_LINEAR_VELOCITY = 10.00

[AXIS_3]

#
# 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 =              ANGULAR
MAX_VELOCITY =       50.0
MAX_ACCELERATION =   1000.0
# Set Stepgen max 20% higher than the axis
STEPGEN_MAX_VEL =    240.0
STEPGEN_MAX_ACC =    3600.0

BACKLASH =           0.000

# scale is 200 steps/rev * 5 revs/inch
SCALE =  -160

MIN_LIMIT =             -1.0
MAX_LIMIT =             220.0

FERROR =     1.0
MIN_FERROR = 0.25

HOME =                  0.000
HOME_OFFSET =           0.00
HOME_IGNORE_LIMITS =    YES
HOME_USE_INDEX =        NO
HOME_SEQUENCE =         0

# Set to zero if you don't have physical home/limit switches
# Set to the desired homing and latch velocity if you have switches
# See: https://github.com/machinekit/machinekit-docs
HOME_SEARCH_VEL =       10.0
HOME_LATCH_VEL =        -10.0

# these are in nanoseconds
DIRSETUP   =              200
DIRHOLD    =              200
STEPLEN    =              1000
STEPSPACE  =              1000

How to disable homing only for A axis. I try comment

#setp bb_gpio.p8.in-17.invert 1

#net Ahome bb_gpio.p8.in-17 => axis.3.home-sw-in

but this didnt solve the problem

Next I have another cnc controller with arduino and GRBL and in Universal 
Gcode Sender present beautiful button - Reset Zero. I mean when I need 
drill something small I put material in center, move axis, set my zero 
position and start the program. Machinekit has the same implementation?




-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to