Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Toshio.K on August 12, 2021, 07:52:22 AM
-
I want to attach ZERO All that was in Mach3 to Mach4.
Please let me know.
Is it possible to use Mach4's [Screen Scripts] to make it work? ??
Thank you for your cooperation.
-
Operator->Edit Screen
Create or select the button you want
In the properties tab for that button's left up script:
local rc = mc.mcAxisSetPos(mc.mcGetInstance(),mc.X_AXIS,0.0);
rc = mc.mcAxisSetPos(mc.mcGetInstance(),mc.Y_AXIS,0.0);
rc = mc.mcAxisSetPos(mc.mcGetInstance(),mc.Z_AXIS,0.0);
HTH
RT
-
Thank you.
Unfortunately, it looks like the picture.
It does not work.
Please tell me the solution.
-
I want to attach ZERO All that was in Mach3 to Mach4.
Please let me know.
Is it possible to use Mach4's [Screen Scripts] to make it work? ??
Thank you for your cooperation.
Yes you can, just put a button where you want and at Left up script put this:
inst = mc.mcGetInstance()
local rc = mc.mcAxisSetPos(inst, mc.X_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Y_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Z_AXIS,0.0);
-
Answer Hello Greekart.
Thank you for giving me the script.
It worked fine.
Please look at the photo.
My Mach4 (wx4) did not have a Zero All module.
Are you wx4?
-
Please look at the photo.My Mach4 (wx4) did not have a Zero All module.
Are you wx4?
No, that was a test screen. You need to find space and create a button or use other that you not use.
At w4x screenset is a button "Custom Button" that is for feature use (not do anything), use that.
-
thank you very much.