triac changer tool
23 Oct 2018 12:13 #119259
by gmarconi2
triac changer tool was created by gmarconi2
Good morning
I have a working configuration with mesa 6i26 7i76 step dir XYZA
I would like some information on how to correctly install triacchanger.comp and ioControll.cc attached to triacchanger.
I used "sudo halcompile --triacchanger.comp"
but I do not know how to do with ioControl.cc
How do I then know which pin output and pin input for the tool change
Thank you in advance
gmarconi2
NB my tool changer is a carousel with 10 positions and an arm that moves horizontally, so the spindle must be raised and lowered
I have a working configuration with mesa 6i26 7i76 step dir XYZA
I would like some information on how to correctly install triacchanger.comp and ioControll.cc attached to triacchanger.
I used "sudo halcompile --triacchanger.comp"
but I do not know how to do with ioControl.cc
How do I then know which pin output and pin input for the tool change
Thank you in advance
gmarconi2
NB my tool changer is a carousel with 10 positions and an arm that moves horizontally, so the spindle must be raised and lowered
Please Log in or Create an account to join the conversation.
23 Oct 2018 15:47 #119269
by andypugh
Replied by andypugh on topic triac changer tool
You can probably use the already-existing "carousel" HAL component in place of triacchanger.
linuxcnc.org/docs/2.7/html/man/man9/carousel.9.html
Axis moves as part of a tool change are best handled by a G-code subroutine.
Load the sim/axis/vismach/VMC-toolchange sample config for an example (this can run on your installed system without harm, it will not attempt to move any hardware).
The G-code subroutine looks like this:
github.com/LinuxCNC/linuxcnc/blob/master...hange/toolchange.ngc
linuxcnc.org/docs/2.7/html/man/man9/carousel.9.html
Axis moves as part of a tool change are best handled by a G-code subroutine.
Load the sim/axis/vismach/VMC-toolchange sample config for an example (this can run on your installed system without harm, it will not attempt to move any hardware).
The G-code subroutine looks like this:
github.com/LinuxCNC/linuxcnc/blob/master...hange/toolchange.ngc
Please Log in or Create an account to join the conversation.
23 Oct 2018 16:13 #119272
by gmarconi2
Replied by gmarconi2 on topic triac changer tool
Thanks for reply
I've already tried and I have a simulated VMC-toolchange configuration and I think that's the solution for me.
My problem is that I do not understand how to go from simulation to the real machine.
Greetings gmarconi
I've already tried and I have a simulated VMC-toolchange configuration and I think that's the solution for me.
My problem is that I do not understand how to go from simulation to the real machine.
Greetings gmarconi
Please Log in or Create an account to join the conversation.
23 Oct 2018 20:26 #119282
by gmarconi2
Replied by gmarconi2 on topic triac changer tool
Ok andypugh I read your previous posts then:
In the toolchange.ngc
M64 P2 #mute high digital output 2 to move the arm) I read well?
In the toolchange_index.hal
net arm-act motion.digital -out 02 #how I know in my mesa card that pin is
or how do I connect it to an output, I have to make a connection hal ??
Excuse the questions but I'm a beginner (a 62-year-old beginner)
Greetings gmarconi2
In the toolchange.ngc
M64 P2 #mute high digital output 2 to move the arm) I read well?
In the toolchange_index.hal
net arm-act motion.digital -out 02 #how I know in my mesa card that pin is
or how do I connect it to an output, I have to make a connection hal ??
Excuse the questions but I'm a beginner (a 62-year-old beginner)
Greetings gmarconi2
Please Log in or Create an account to join the conversation.
23 Oct 2018 23:19 - 23 Oct 2018 23:20 #119298
by andypugh
You would need to choose an output pin, for example on my lathe it might be hm2_5i24.0.7i84.0.1.output-12
So either add another line somewhere else in the HAL,
or modify the line above to put it all on one line
You can ignore everything in sim_vmc.hal, that is a bunch of components that do various time-delays to simulate the inputs and outputs of a real machine. You have a real machine to do that.
Replied by andypugh on topic triac changer tool
In the toolchange_index.hal
net arm-act motion.digital -out 02 #how I know in my mesa card that pin is
or how do I connect it to an output, I have to make a connection hal ??
You would need to choose an output pin, for example on my lathe it might be hm2_5i24.0.7i84.0.1.output-12
So either add another line somewhere else in the HAL,
net arm-act hm2_5i24.0.7i84.0.1.output-12
or modify the line above to put it all on one line
net arm-act motion.digital-out 02 => hm2_5i24.0.7i84.0.1.output-12
You can ignore everything in sim_vmc.hal, that is a bunch of components that do various time-delays to simulate the inputs and outputs of a real machine. You have a real machine to do that.
Last edit: 23 Oct 2018 23:20 by andypugh.
Please Log in or Create an account to join the conversation.
23 Oct 2018 23:20 #119299
by andypugh
Replied by andypugh on topic triac changer tool
In the toolchange_index.hal
net arm-act motion.digital -out 02 #how I know in my mesa card that pin is
or how do I connect it to an output, I have to make a connection hal ??
You would need to choose an output pin, for example on my lathe it might be hm2_5i24.0.7i84.0.1.output-12
So either add another line somewhere else in the HAL,
net arm-act hm2_5i24.0.7i84.0.1.output-12
or modify the original HAL line to put it all on one line
net arm-act motion.digital-out 02 => hm2_5i24.0.7i84.0.1.output-12
You can ignore everything in sim_vmc.hal, that is a bunch of components that do various time-delays to simulate the inputs and outputs of a real machine. You have a real machine to do that.
Please Log in or Create an account to join the conversation.
23 Oct 2018 23:48 #119302
by gmarconi2
Replied by gmarconi2 on topic triac changer tool
Yes andypugh I do not have a real real machine, already mounted, but I have drivers and engines running in the my home lab.
So what I would like to do is test the various output signals and generate the input signals.
However, thanks to your answers to my question and reading in the forum today I learned something.
However, I will continue to ask questions to complete the retrofit project of a vertical BF400 milling machine produced in Italy by Meccanica Cortini
Greetings gmarconi2
So what I would like to do is test the various output signals and generate the input signals.
However, thanks to your answers to my question and reading in the forum today I learned something.
However, I will continue to ask questions to complete the retrofit project of a vertical BF400 milling machine produced in Italy by Meccanica Cortini
Greetings gmarconi2
Please Log in or Create an account to join the conversation.
27 Oct 2018 21:06 #119519
by gmarconi2
Replied by gmarconi2 on topic triac changer tool
Andy pugh help me
In my working configuration I added the following file:
toolchange.ncg (your macro for output and tool change input)
toolchangeindex.hal In this file this is right:
(charge in rt carousel function with 10 pockets, bidirectional and one sensor each pocket)
(upload to rt conversion function to convert what?)
(hook servo-thread frequency function)
(hook servo-thread frequency function)
(this line what does it mean ??)
in my configuration I have to add this?
However, I tried to start the configuration without changing anything and stop with this error:
for now I stop here
Greetings gmarconi2
In my working configuration I added the following file:
toolchange.ncg (your macro for output and tool change input)
toolchangeindex.hal In this file this is right:
loadrt carousel pockets = 10 dir = 2 encoding = index
loadrt conv_float_s32
addf carousel.0 servo-thread
addf conv-float-s32.2 servo-thread
net car-enable motion.digital-out-00 carousel.0.enable
in my configuration I have to add this?
net car-enable motion.digital-out-00 carousel.0.enable => hm2_5i25.0.7i76.0.0.output - 00
However, I tried to start the configuration without changing anything and stop with this error:
Debug file information:
.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/conv_float_s32.ko: Unknown symbol in module
./toolchange_index.hal:2: exit value: 1
./toolchange_index.hal:2: insmod for conv_float_s32 failed, returned -1
See the output of 'dmesg' for more information.
5029
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Greetings gmarconi2
Please Log in or Create an account to join the conversation.
27 Oct 2018 23:12 #119526
by andypugh
Replied by andypugh on topic triac changer tool
The documentation for all the HAL components is in this page:
linuxcnc.org/docs/2.7/html/
Scroll to the bottom, and press "expand man pages". You will find carousel and conv_float_s32 in "Realtime components and kernel modules"
[code]Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/conv_float_s32.ko: Unknown symbol in module[code]Is an odd error. Is there any chance that the file has been edited on a Windows PC and the line-end character has been changed?
What is your actual "loadrt conv_float_s32" line?
linuxcnc.org/docs/2.7/html/
Scroll to the bottom, and press "expand man pages". You will find carousel and conv_float_s32 in "Realtime components and kernel modules"
[code]Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/conv_float_s32.ko: Unknown symbol in module[code]Is an odd error. Is there any chance that the file has been edited on a Windows PC and the line-end character has been changed?
What is your actual "loadrt conv_float_s32" line?
Please Log in or Create an account to join the conversation.
28 Oct 2018 08:05 #119541
by gmarconi2
Replied by gmarconi2 on topic triac changer tool
This is toolchange_index.hal
After rewriting files without using "windows"
this is the mistake
Greetings gmarconi2
loadrt carousel pockets=10 dir=2 encoding=index
loadrt conv_float_s32
addf carousel.0 servo-thread
addf conv-float-s32.2 servo-thread
net car-enable motion.digital-out-00 carousel.0.enable
net car-ready carousel.0.ready motion.digital-in-00
net car-fwd carousel.0.motor-fwd
net car-rev carousel.0.motor-rev
net car-pos-req motion.analog-out-00 conv-float-s32.2.in
net car-pos-s32 conv-float-s32.2.out carousel.0.pocket-number
net index carousel.0.sense-0
net pulse carousel.0.sense-1
net car-lock motion.digital-out-01
net car-locked motion.digital-in-01
net arm-act motion.digital-out-02
net arm-in motion.digital-in-02
net arm-out motion.digital-in-04
net tool-release motion.digital-out-03
net tool-released motion.digital-in-03
net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed
loadusr sim_pin carousel.0.jog-fwd carousel.0.jog-rev
After rewriting files without using "windows"
this is the mistake
Debug file information:
.
HAL: ERROR: function 'conv-float-s32.2' not found
./toolchange_index.hal:4: addf failed
5721
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Greetings gmarconi2
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds