1751
VB and the development of wizards / Re: Terminating Script
« on: January 15, 2008, 06:05:55 PM »
Do you have a Z homing switch?
Is the switch you want to trigger the zero return switch?
If you have zero return switches then you can use G53 and a set position from zero return for the tool change position.
If the switch is the zero return switch then you can use G28.1 Z0 to go there or G53 Z0
If none of these are true then look at using G31 Z201. and check the parameter #2002 for the trigger point in Z. Set up a user macro and call it with Mnnn P#2002
Pick up param(1) in the macro and check its value. work your magic as needed.
Graham.
Is the switch you want to trigger the zero return switch?
If you have zero return switches then you can use G53 and a set position from zero return for the tool change position.
If the switch is the zero return switch then you can use G28.1 Z0 to go there or G53 Z0
If none of these are true then look at using G31 Z201. and check the parameter #2002 for the trigger point in Z. Set up a user macro and call it with Mnnn P#2002
Pick up param(1) in the macro and check its value. work your magic as needed.
Graham.