Am Samstag, 28. Dezember 2013 schrieb Gene Heskett:
> On Saturday 28 December 2013 14:36:50 Paul Midgley did opine:
> > Hello
> >
> > I have been trying to set up my home built cnc mill to run on linuxcnc,
> > but with no success.
> >
> > I have a controller card that I bought of ebay a 3 axis TB6560 driver
> > board.
> >
> > Has any one had any success setting up these controller cards, they
> > appear to have an drive enable function, but I do not know how to set
> > this up under linuxcnc.
> >
> > Thanks for any help.
>
> Linuxcnc can do that if your interface card can.  I am not fam with that
> particular motor controller its too small even for my toy mill, so about
> all I can do is have your check the voltage on the enable pin with a
> digital meter, if under a volt from ground, wire it to 5 volts to enable,
> or if its 2.5 volts or more, wire it to the minus (0 volts/ground) rail.
> One or the other should enable it and as long as you limit the applied
> voltage to zero or 5 volts, you shouldn't be able to damage it.
>
> Be aware that this motor driver, like the Allegro A-3977 versions will spit
> out the smoke and mirrors that make it work if there is even a hint of a
> loose connection between it and the motors when its powered up.  It also is
> afraid of more than about 27 volts to run the motors, 24 max recommended,
> and that will limit the motors top speed.
>
> The 2M542 driver costs more, capable of handling 4.2 amp motors and a 50
> volt supply.  But I bought 7 of them, 4 for the mill and 2 for the lathe.
> 2+ years later, the 7nth one is still in its box in a toolbox drawer next
> to the lathe. Bulletproof. $45-$50/copy on fleabay.  They Just Work(TM).
>
> Cheers, Gene

I have 2 of these TB6560 driver cards, both kind of work. But there are about 
4 different pinouts aroundof the sub-d connector around. The enable-Pin is 
somewhere on the 15-pole sub-d, but it's tied to +5V via a resistor.

I've attatched the hal-file of my router, maybe the pinout matches yours. 

Nik

-- 
Please do not email me anything that you are not comfortable also sharing with 
the NSA.
# Erstellt von stepconf am Sat Feb 23 15:13:42 2013
# Änderungen an dieser Datei werden beim nächsten
# Aufruf von stepconf überschrieben.
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD 
servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg="0x378 out  "
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0
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 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
net spindle-cmd <= motion.spindle-speed-out
net spindle-on <= motion.spindle-on

setp parport.0.pin-01-out-invert 1
net xdir => parport.0.pin-01-out
net spindle-on => parport.0.pin-02-out
net zstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
net xenable => parport.0.pin-04-out
net zenable => parport.0.pin-05-out
net zdir => parport.0.pin-06-out
net ydir => parport.0.pin-07-out
net ystep => parport.0.pin-14-out
setp parport.0.pin-14-out-reset 1
net xstep => parport.0.pin-16-out
setp parport.0.pin-16-out-reset 1
net yenable => parport.0.pin-17-out


net max-home-x <= parport.0.pin-10-in
net max-home-y <= parport.0.pin-11-in
net max-home-z <= parport.0.pin-12-in


setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 28000
setp stepgen.0.dirsetup 28000
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 max-home-x => axis.0.home-sw-in
net max-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 28000
setp stepgen.1.dirsetup 28000
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 max-home-y => axis.1.home-sw-in
net max-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 28000
setp stepgen.2.dirsetup 28000
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 max-home-z => axis.2.home-sw-in
net max-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
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to