BOXFORD 125 TLC Tool Changer Setup

More
6 years 2 weeks ago #185982 by Clive S

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.

More
6 years 2 weeks ago #185986 by tommylight
Cr@p, lower case everything.
Sorry, habit.

Please Log in to join the conversation.

More
6 years 2 weeks ago #185987 by Clive S

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.

More
6 years 2 weeks ago #185989 by tommylight
Seems like a missing compiler, no idea what or how.
Try
sudo apt-get install build-essential

Please Log in to join the conversation.

More
6 years 2 weeks ago #185990 by Clive S

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.

More
6 years 2 weeks ago #185992 by tommylight
Yup, that is OK.
In hal,
loadrt toolchanger
addf ....
and link hal pins.

Please Log in to join the conversation.

More
6 years 2 weeks ago #185996 by Clive S

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.

More
6 years 2 weeks ago #186024 by tommylight

Clive S wrote: ##net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd

Should be as simple as:
net apos-cmd toolchanger.position-cmd

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

Delete or omit everything with manual tool change, it is an ATC so no need for it.

Please Log in to join the conversation.

More
6 years 2 weeks ago #186031 by Clive S

tommylight wrote:

Clive S wrote: ##net apos-cmd toolchanger.position-cmd => stepgen.2.position-cmd

Should be as simple as:
net apos-cmd toolchanger.position-cmd

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

Delete or omit everything with manual tool change, it is an ATC so no need for it.



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.

More
6 years 2 weeks ago #186088 by Clive S
Ok it seem I need the manual tool change loaded as well as it does have a manual jog

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.

Time to create page: 0.282 seconds
Powered by Kunena Forum