- Posts: 2203
- Thank you received: 0
BOXFORD 125 TLC Tool Changer Setup
tommylight wrote: Nice, so you just do
Halcompile --install toolchanger.comp
You asked me to do that A few post back. I have tried it again this is the result.
Attachment not found
This terminal was opened in the linuxcnc config folder with the toolchanger.comp in it.
I do appreciate the help Tom
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
Sorry, habit.
Please Log in to join the conversation.
tommylight wrote: Cr@p, lower case everything.
Sorry, habit.
Ok a bit nearer.
Attachment not found
sh: 1: make: not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
Try
sudo apt-get install build-essential
Please Log in to join the conversation.
tommylight wrote: Seems like a missing compiler, no idea what or how.
Try
sudo apt-get install build-essential
Getting better does this look like it's done it
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
In hal,
loadrt toolchanger
addf ....
and link hal pins.
Please Log in to join the conversation.
tommylight wrote: Yup, that is OK.
In hal,
loadrt toolchanger
addf ....
and link hal pins.
Ok I have 2 errors linuxcnc will load with them commented out
Attachment not found
Attachment not found
#################
# ATC
#################
setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 35000
setp stepgen.2.dirsetup 35000
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net apos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net apos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net astep <= stepgen.2.step
net adir <= stepgen.2.dir
net aenable joint.2.amp-enable-out => stepgen.2.enable
###########################################################
# loading the toolchange component in .hal file
###########################################################
loadrt toolchanger
addf toolchanger servo-thread
net tool-change iocontrol.0.tool-change => toolchanger.toolchange
net tool-changed iocontrol.0.tool-changed <= toolchanger.toolchanged
net tool-number iocontrol.0.tool-prep-number => toolchanger.toolnumber
net tool-oldnumber iocontrol.0.tool-number => toolchanger.currenttoolnumber
##net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd
net ahomed joint.2.homed => toolchanger.ishomed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => 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
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
Should be as simple as:Clive S wrote: ##net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd
net apos-cmd toolchanger.position-cmd
Delete or omit everything with manual tool change, it is an ATC so no need for it.Clive S wrote: 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
Please Log in to join the conversation.
tommylight wrote:
Should be as simple as:Clive S wrote: ##net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd
net apos-cmd toolchanger.position-cmdDelete or omit everything with manual tool change, it is an ATC so no need for it.Clive S wrote: 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
Thanks. Tom could not see the wood for the trees
I will have another go in the morning and report back
Please Log in to join the conversation.
net apos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd
The error is signal apos-cmd cannot add OUT pin "toolchanger.position-cmd" it already has OUT pin "stepgen.2.position-cmd "
So how do I solve this
Please Log in to join the conversation.
