Chiron FZ12W tool changer with spindle rotation?
29 Jan 2015 23:00 #55450
by nooob
Chiron FZ12W tool changer with spindle rotation? was created by nooob
Hi guys,
my retrofit is almost done i programmed the tool-changer in classic ladder the only thing left is to rotate the spindle with 223rpm when making a tool change.
how can i programm that?, in hal maybe? andwhat should it look like?
the best thing for me is an output in classic ladder wich i switch from false to true, then the spindle starts rotating clockwise at 223rpm is that possible?.
i hope you understand what i want
greetings from Germany
my retrofit is almost done i programmed the tool-changer in classic ladder the only thing left is to rotate the spindle with 223rpm when making a tool change.
how can i programm that?, in hal maybe? andwhat should it look like?
the best thing for me is an output in classic ladder wich i switch from false to true, then the spindle starts rotating clockwise at 223rpm is that possible?.
i hope you understand what i want
greetings from Germany
Please Log in or Create an account to join the conversation.
29 Jan 2015 23:24 #55451
by PCW
Replied by PCW on topic Chiron FZ12W tool changer with spindle rotation?
One option would be the mux2 component with:
in0 connected to motion.spindle-speed
in1 set to 223
out connected to whatever controls your spindle speed
sel connected to your classic ladder bit
in0 connected to motion.spindle-speed
in1 set to 223
out connected to whatever controls your spindle speed
sel connected to your classic ladder bit
Please Log in or Create an account to join the conversation.
30 Jan 2015 00:12 #55452
by nooob
Replied by nooob on topic Chiron FZ12W tool changer with spindle rotation?
thx for the fast response,
im not familiar with mux2 component do you have any examples?
maybe with classic ladder connections?
im not familiar with mux2 component do you have any examples?
maybe with classic ladder connections?
Please Log in or Create an account to join the conversation.
30 Jan 2015 01:43 #55457
by PCW
Replied by PCW on topic Chiron FZ12W tool changer with spindle rotation?
Not sure if you have done any hal programming , but if not, this is a good introduction:
linuxcnc.org/docs/html/hal/basic_hal.html
For a (very short) manual for the mux2 component:
man mux2
in a terminal window
linuxcnc.org/docs/html/hal/basic_hal.html
For a (very short) manual for the mux2 component:
man mux2
in a terminal window
Please Log in or Create an account to join the conversation.
30 Jan 2015 20:10 #55485
by nooob
Replied by nooob on topic Chiron FZ12W tool changer with spindle rotation?
the only things iv'e done in hal was linking signals from mesa cards and to classic ladder
the basic hal pages is for me like chinese and the exampels
the things i know so far is that i need to load mux2 with this commmand
loadrt mux2 count=2
i have to set new signalt right?!
one in bit for true false and one for Spindle speed with u32?
newsig in0 bit
newsig in1 u32
then i can set motion.spindle-speed with in1 ?
how do i link these and how do they interact with classic ladder sry im an noob i need ur help
the whole should act like this:
classic ladder OutXX=true
-->
Hal file:
if classic ladder OutXX=true
motion.spindle-speed 223
else classic ladder OutXX=false
Stop Spindle
endif
sry for such many questions ^^
the basic hal pages is for me like chinese and the exampels
the things i know so far is that i need to load mux2 with this commmand
loadrt mux2 count=2
i have to set new signalt right?!
one in bit for true false and one for Spindle speed with u32?
newsig in0 bit
newsig in1 u32
then i can set motion.spindle-speed with in1 ?
how do i link these and how do they interact with classic ladder sry im an noob i need ur help
the whole should act like this:
classic ladder OutXX=true
-->
Hal file:
if classic ladder OutXX=true
motion.spindle-speed 223
else classic ladder OutXX=false
Stop Spindle
endif
sry for such many questions ^^
Please Log in or Create an account to join the conversation.
30 Jan 2015 23:25 - 31 Jan 2015 00:51 #55495
by PCW
Replied by PCW on topic Chiron FZ12W tool changer with spindle rotation?
Probably more like this:
loadrt mux2 count= 1
addf mux2.0 servo-thread
net running-spindle-speed motion.spindle-speed-out => mux2.0.in0
setp mux2.0.in1 223
net spindle-speed mux2.0.out => whatever-sets-the-hardware-spindle-speed
net select-orient-speed some-classic-ladder-output-bit => mux2.0.sel
loadrt mux2 count= 1
addf mux2.0 servo-thread
net running-spindle-speed motion.spindle-speed-out => mux2.0.in0
setp mux2.0.in1 223
net spindle-speed mux2.0.out => whatever-sets-the-hardware-spindle-speed
net select-orient-speed some-classic-ladder-output-bit => mux2.0.sel
Last edit: 31 Jan 2015 00:51 by PCW. Reason: missing mux number
The following user(s) said Thank You: nooob
Please Log in or Create an account to join the conversation.
31 Jan 2015 20:42 #55505
by nooob
Replied by nooob on topic Chiron FZ12W tool changer with spindle rotation?
Hi,
thx alot PCW for your help Works perfectly i will upload a video and photos from the finished retrofit soon.
Greetings from Germany
thx alot PCW for your help Works perfectly i will upload a video and photos from the finished retrofit soon.
Greetings from Germany
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.068 seconds