× Forum Header

Wantai SS880 drivers with DB25-1205 BOB

More
29 Jan 2020 18:17 #156100 by hIGGI
Todays progress :

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 01:24 #156128 by tommylight

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 06:45 #156145 by hIGGI
Mymill.ini

# Generated by stepconf 1.1 at Fri Jan 24 16:38:53 2020
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = my-mill1
DEBUG = 0

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 8.00
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 80.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/dusan/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = custompanel.xml
EMBED_TAB_NAME=Probe Screen
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} -u python/probe_screen.py -H probe_icons/probe_screen.hal probe_icons/probe_screen.glade


[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
FEATURES=30
SUBROUTINE_PATH = macros
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=manual_change epilog=change_epilog


[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = my-mill1.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 8.00
MAX_VELOCITY = 80.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_0]
TYPE = LINEAR
HOME = 277.5
MAX_VELOCITY = 80.0
MAX_ACCELERATION = 550.0
STEPGEN_MAXACCEL = 687.5
SCALE = 80.0
FERROR = 4
MIN_FERROR = .25
MIN_LIMIT = 0.0
MAX_LIMIT = 575.0
HOME_OFFSET = 575.500000
HOME_SEARCH_VEL = 5.000000
HOME_LATCH_VEL = 5.000000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
BACKLASH = 0.12

[AXIS_1]
TYPE = LINEAR
HOME = 155.0
MAX_VELOCITY = 80.0
MAX_ACCELERATION = 550.0
STEPGEN_MAXACCEL = 687.5
SCALE = 80.0
FERROR = 4
MIN_FERROR = .25
MIN_LIMIT = 0.0
MAX_LIMIT = 310.0
HOME_OFFSET = 310.500000
HOME_SEARCH_VEL = 5.000000
HOME_LATCH_VEL = 5.000000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2
BACKLASH = 0.12

[AXIS_2]
TYPE = LINEAR
HOME = 200.0
MAX_VELOCITY = 40.0
MAX_ACCELERATION = 40.0
STEPGEN_MAXACCEL = 687.5
SCALE = 80.0
FERROR = 4
MIN_FERROR = .25
MIN_LIMIT = 0.0
MAX_LIMIT = 484.0
HOME_OFFSET = 484.500000
HOME_SEARCH_VEL = 5.000000
HOME_LATCH_VEL = 5.000000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
BACKLASH = 0.08


[TOOLSENSOR]
# Absolute coordinates of the toolsetter pad
X = 10
Y = 10
# Absolute Z start search coordinates
Z = 60
# Maximum search distance and direction (sign)
MAXPROBE = -60
# Speed of movements during working in Probe Screen
RAPID_SPEED = 600
# Diameter of toolsetter pad
TS_DIAMETER = 10
# The speed of the reverse rotation of the spindle when measuring the tool diameter
REV_ROTATION_SPEED = 300

[CHANGE_POSITION]
# Abs coordinates tool change point
X = 10
Y = 10
Z = 60


[PYTHON]
PATH_PREPEND = ./python
TOPLEVEL = python/toplevel.py

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 06:46 #156146 by hIGGI
Mymill.hal :

# Generated by stepconf 1.1 at Wed Jan 29 06:53:52 2020
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 2500
loadrt stepgen step_type=0,0,0
loadrt pwmgen output_type=1
loadrt classicladder_rt numPhysInputs=15 numPhysOutputs=15 numS32in=10 numS32out=10 numFloatIn=10 numFloatOut=10

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf pwmgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf classicladder.0.refresh servo-thread
addf stepgen.update-freq servo-thread
addf pwmgen.update servo-thread

net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 100.0
setp pwmgen.0.scale 1166.66666667
setp pwmgen.0.offset 0.114285714286
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm <= motion.spindle-speed-out
net spindle-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-cmd-rps <= motion.spindle-speed-out-rps
net spindle-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-at-speed => motion.spindle-at-speed
net spindle-cw <= motion.spindle-forward

net probe-in => motion.probe-input

net estop-out => parport.0.pin-01-out
setp parport.0.pin-02-out-invert 1
net xdir => parport.0.pin-02-out
setp parport.0.pin-03-out-invert 1
net xstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
net ydir => parport.0.pin-04-out
setp parport.0.pin-05-out-invert 1
net ystep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
net zdir => parport.0.pin-06-out
setp parport.0.pin-07-out-invert 1
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net astep => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net adir => parport.0.pin-09-out
net spindle-cw => parport.0.pin-14-out
net spindle-pwm => parport.0.pin-16-out
net xenable => parport.0.pin-17-out
net both-home-z <= parport.0.pin-11-in-not
net both-home-x <= parport.0.pin-12-in-not
net both-home-y <= parport.0.pin-13-in-not
net probe-in <= parport.0.pin-15-in

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 20000
setp stepgen.0.dirsetup 23000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable
net both-home-x => axis.0.home-sw-in
net both-home-x => axis.0.neg-lim-sw-in
net both-home-x => axis.0.pos-lim-sw-in

setp stepgen.1.position-scale [AXIS_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 20000
setp stepgen.1.dirsetup 23000
setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable axis.1.amp-enable-out => stepgen.1.enable
net both-home-y => axis.1.home-sw-in
net both-home-y => axis.1.neg-lim-sw-in
net both-home-y => axis.1.pos-lim-sw-in

setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 20000
setp stepgen.2.dirsetup 23000
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.2.amp-enable-out => stepgen.2.enable
net both-home-z => axis.2.home-sw-in
net both-home-z => axis.2.neg-lim-sw-in
net both-home-z => axis.2.pos-lim-sw-in

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

#loadusr -W hal_manualtoolchange
#net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
#net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
#net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

# Load Classicladder without GUI (can reload LADDER GUI in AXIS GUI
loadusr classicladder --nogui custom.clp

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 07:57 #156150 by bbsr_5a
HI on that Backlash Q: is it a Ballscrew with that amount 0,12
YOU need DOUBLE the Value of STEPGEN_MAXACCEL = to the MAXACCEL =

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 11:07 #156159 by tommylight
As bbsr_5a mentioned, you need to have STEPGEN_MAXACCEL set to 1100 for the X and Y axis.

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 11:46 #156166 by bbsr_5a
With your setup you can do all LIMIT an Home to one PIN and take 2 more inputs free for Spindle encoder and Toolprobe

Please Log in or Create an account to join the conversation.

More
30 Jan 2020 20:42 #156202 by hIGGI
yeah, bearing blocks are cause of the backlash, trying to fix it with different bearing setup

its all work in progress :)

thanks

Please Log in or Create an account to join the conversation.

More
12 Feb 2020 18:47 #157207 by hIGGI
So, first chips yesterday fairly ok but after hour or so of 3000 rpm machining, spindle bearings went bust. Time to change them, AC bearings on order.

In meantime friend promised to bring VFD and question is now following. Can i control Spindle via this BOB or its time to upgrade to MESA ?

Thanks :)

Please Log in or Create an account to join the conversation.

More
12 Feb 2020 19:40 #157208 by tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum