Hello Guest it is March 29, 2024, 08:04:12 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Feff

Pages: 1
1
Hi All,

I am building a mini 5 axis gantry mill (my third machine, previous 2 were straight forward 3 axis routers) I will use for making moulds. I am currently trying to figure out how to set up homing for b/c axis. I am thinking of using a hall affect magnetic switch sensors.

I have never done any vb script so I was wandering would it be possible to actually write a homing script for mach3 that would do something like this:

1. rotate axis until it trips the switch on
2. keep rotating until switch is off
3. count the steps between on and off position and divide by 2
4. move this number of steps back
5. set home

Since I am working with a b/c head and not a rotary table set up it is important that the homing routing places b axis parallel to z axis and c axis parallel to y axis. I can machine fixtures for the sensors and targets quite accurately in to actual structure of the head, however sensors have a field over which the target would activate the switch. This script would allow me to measure an arc of movement for the target inside the sensors field. Dividing number of steps it takes for the target to move through the sensors field and having it move this amount of steps back would allow me to place the target precisely over the center of the sensor.

Thanks in advance,

Fedor

Pages: 1