Mori MVJR Build Log

More
12 Sep 2011 20:23 #13138 by schmidtmotorworks
The good news is I finally found a wiring diagram for the limit/homing switches

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?
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Sep 2011 20:24 #13139 by BigJohnT
Replied by BigJohnT on topic Re:Mori MVJR Build Log
Yes, that looks good except for the => on the net axis.0.jog-enable => select_axis.0.axis1 and which means nothing are backwards :)

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.

More
12 Sep 2011 20:27 #13140 by BigJohnT
Replied by BigJohnT on topic Re:Mori MVJR Build Log
For homing you approach the home switch and one velocity (faster than a snail but not so fast that you damage something) and when found normally back off the switch till it changes states then go again to the home switch at a slower velocity (one that gives you the accuracy you want.

John

Please Log in or Create an account to join the conversation.

More
12 Sep 2011 21:20 #13144 by clkeck1
Replied by clkeck1 on topic Re:Mori MVJR Build Log
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

Please Log in or Create an account to join the conversation.

More
13 Sep 2011 07:06 #13151 by schmidtmotorworks
clkeck1 wrote:

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.

More
13 Sep 2011 07:41 - 13 Sep 2011 07:41 #13152 by schmidtmotorworks
I have been looking at the UI pages for Axis and Touchy and didn't find anything about rapid velocity control.

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?
Last edit: 13 Sep 2011 07:41 by schmidtmotorworks.

Please Log in or Create an account to join the conversation.

More
13 Sep 2011 08:19 #13153 by cmorley
Replied by cmorley on topic Re:Mori MVJR Build Log
In EMC there is a non standard way.
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.

More
13 Sep 2011 12:07 #13163 by BigJohnT
Replied by BigJohnT on topic Re:Mori MVJR Build Log
schmidtmotorworks wrote:

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.

More
13 Sep 2011 17:13 #13179 by schmidtmotorworks
How does this look to control maximum feed velocity?

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.

More
13 Sep 2011 18:14 #13180 by BigJohnT
Replied by BigJohnT on topic Re:Mori MVJR Build Log
You can just use mux2 for that one and the magic pin is

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.

Moderators: cncbasher
Time to create page: 0.123 seconds
Powered by Kunena Forum