Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: lethang85 on May 27, 2015, 12:54:51 PM

Title: How to setup Home Neg in Mach3 with Macro Programing?
Post by: lethang85 on May 27, 2015, 12:54:51 PM
Hi,

I find in document "Mach3_V3.x_Macro_Prog_Ref", no any funtion set Home Neg in Mach3. Please help me setup  Home Neg in Mach3 with Macro Programing.

Rgs.
Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: ger21 on May 27, 2015, 12:57:29 PM
I don't think that you can.
Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: lethang85 on May 27, 2015, 01:21:27 PM
Hi,

Sadly. My machine have sensor home of Axis X in center.

Limit X-  -->  X Home -->  Limit X+

I want to write macro: If Curent Postion X between X Home --> LinitX, I call function: Home X normal. If Curent Postion X between Limit X- --> Home X, I setup Home Neg X and call function Home X. But I can not find any funtion set Home Neg in Mach3.

Have you solution in my machine?

Rgs






Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: BR549 on May 27, 2015, 08:39:36 PM
That is WHY you do not set up homing to be mid table.  Simply change the home switch to ether left or right side of the table and you are good to go.

(;-) TP
Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: BR549 on May 27, 2015, 09:01:41 PM
Another solution is to simply MOVE the table to the correct side BEFORE you home it. That ensures that it will move in the correct direction everytime.

IF table is offside then move to other side
   then Home the axis
 Else Home the axis.

(;-) TP
Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: ger21 on May 27, 2015, 09:35:58 PM
And if your goal is to have your home position (Machine 0,0) in the  center of the table, you can use Home Offsets to achieve that with the switch at the end.
Title: Re: How to setup Home Neg in Mach3 with Macro Programing?
Post by: lethang85 on May 28, 2015, 01:35:13 AM
Dear BR549 & ger21,

Thank for your help.

Rgs