Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Julie on April 07, 2017, 08:44:01 AM
-
Hello,
I'm converting VB script to LUA script.
<VB script>
Call SetOEMDro(802, ZeroOffsetZ)
How can I change that by Lua script command?
-
I solved it. :)
-
Hyojung,
You should put your solution on this thread so others can see what works.
-
If you want to call a global function that has been put into the screen load script, is there a special way to call it from a script
I put a WriteRegister function in the load screen script but if I try to call it from a button script I always get the error
attempt to call global 'WriteRegister' (a nil value)...
Is there a special way to call functions that are in the screen load script or do I need to add it somewhere else also
it will run fine if I have the function in the button script and run debug...
Thanks
-
Cbyrdtopper, sorry.
I changed it as shown below.
mc.mcAxisSetPos(inst, 2, ZeroOffsetZ)
But I thought I solved it, but I do not know if it is correct.