Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: Oldraven on June 09, 2012, 05:02:52 AM
-
Hi,
I am trying to get my M6Start.m1s macro to home at tool #1.
I am using these lines to have the macro look at INPUT1 (port 1, pin 13)
Code "G00 A360" 'Rotate the ATC
While Not IsActive(INPUT1) ' Look for ATC Home pulse
Wend 'Input #1 must be active now
However INPUT1 LED lights up but no reaction. The ATC keeps on turning.
What is happening? Is the input pulse too short?
Any help would be greatly appreciated.
Jos
Holland
-
The G0 A360 command will cause the Axis to rotate to either A360 or cause it to rotate 360 degrees depending on if you are in abs or inc mode.
Nothing in your Macro will stop it from running to completion.
IF you want it to REF HOME to the switch use
Code"G28 A0.000" it will move to the switch then back off the switch untill it remakes.
(;-) TP
-
@ TP,
I found that too, later I used G00 A10
Thanks for your code, I'll give that a try tomorrow.
This macro stuff is very difficult.
Jos
Holland
The G0 A360 command will cause the Axis to rotate to either A360 or cause it to rotate 360 degrees depending on if you are in abs or inc mode.
Nothing in your Macro will stop it from running to completion.
IF you want it to REF HOME to the switch use
Code"G28 A0.000" it will move to the switch then back off the switch untill it remakes.
(;-) TP