Mori MVJR Build Log
- schmidtmotorworks
- Offline
- Elite Member
- Posts: 281
- Thank you received: 6
The bad news is I don't understand how the control can tell if the machine is near home and slow down and stop at the right point from what appears to be only one wire from each axis.
Could it be that maybe it has three voltage outputs 0,24 and something in between?
Please Log in or Create an account to join the conversation.
Oh and you forgot a signal name!
net signal name pins
net ext-x-jog axis.0.jog-enable <= select_axis.0.axis0
John
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
The Dec switch shown there in the diagram are proximity switches. Im not sure how well they will work for a accurate homing switch.
There are limit switches tied to the estop circuit you could posibly use.
Cory
Please Log in or Create an account to join the conversation.
- schmidtmotorworks
- Offline
- Elite Member
- Posts: 281
- Thank you received: 6
Jon
The Dec switch shown there in the diagram are proximity switches. Im not sure how well they will work for a accurate homing switch.
There are limit switches tied to the estop circuit you could posibly use.
Cory
OK thanks, thanks to wiki now I know what a proximity sensor is.
en.wikipedia.org/wiki/Proximity_sensor
That must be what tells the machine to slow down for the final homing.
So I think what I have to do now is figure out what wires to each of the proximity and limit switches and then figure out what to do in HAL.
I think there is just one proximity and one limit switch for each axis on my machine, not sure about that yet.
Thanks for the help.
Jon Schmidt
Please Log in or Create an account to join the conversation.
- schmidtmotorworks
- Offline
- Elite Member
- Posts: 281
- Thank you received: 6
My machine had a rotary switch that has 4 choices feed, 25%, 50% and 100% or rapid.
I almost always used feed or 25%, I can't imagine running rapid at 100% for most of the one-off projects that I do.
What are other people doing for control of rapid velocity?
Please Log in or Create an account to join the conversation.
There is a setting max velocity that caps _any movement_ (feed or rapid) to that maximum.
you can access it thru HALUI:
www.linuxcnc.org/docs/2.5/html/gui/halui.html#_max_velocity
It doesn't mention the direct-value option but its there (allows using a switch instead of MPG).
You may use a rotary switch just like you did for spindle override.
Please Log in or Create an account to join the conversation.
What are other people doing for control of rapid velocity?
I run at max velocity on all my CNC machines when doing G0...
In 2.5 you can use your switch as Chris said, the pins are in the man page...
www.linuxcnc.org/docview/2.5/html/man/man1/halui.1.html
John
Please Log in or Create an account to join the conversation.
- schmidtmotorworks
- Offline
- Elite Member
- Posts: 281
- Thank you received: 6
HAL
##############################################################
# ---Maximum Feed Velocity 4 Position Rotary Switch---
##############################################################
setp halui.max-velocity.direct-value true
#Set the max feed rate choices (inches per minute)
setp select_max_feed.0.in00 #??????current feed rate available as a pin??????
setp select_max_feed.0.in01 25
setp select_max_feed.0.in02 50
setp select_max_feed.0.in03 100
net set_max_velocity_0 select_max_feed.0.sel0 <= hm2_5i23.0.7i64.0.0.in-not
net set_max_velocity_1 select_max_feed.0.sel1 <= hm2_5i23.0.7i64.0.0.in-not
net set_max_velocity halui.max-velocity.value <= select_max_feed.0.out-s
Comp
component select_max_feed "Select max feed based on BCD input";
pin in bit sel0;
pin in bit sel1;
pin in float in0;
pin in float in1;
pin in float in2;
pin in float in3;
function _;
license "GPLv2 or greater";
;;
FUNCTION(_) {
if(sel1) {
if(sel0) out = in3;
else out = in2;
} else {
if(sel0) out = in1;
else out = in0;
}
}
Please Log in or Create an account to join the conversation.
motion.requested-vel OUT float
The requested velocity with no adjustments for feed override
I think it is .50 .75 and 1 for all the overrides.
John
Please Log in or Create an account to join the conversation.