Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: RenatoMasias on January 17, 2020, 03:01:09 PM
-
Hello good day. i am probing this code in Mach3.040 and 041:
macro M40:
------------
Message "perfil 1"
Code "G64"
Code "M3"
F=100
pk1=10
pk2=10
Code "G1 A" & pk1 & " Z" & pk2 & " F" & F
pk1=0
pk2=0
Code "A" & pk1 & " Z" & pk2
While IsMoving()
Sleep(100)
Wend
Code "M5"
Code "M30"
Message "perfil 2"
this no work, no movement, no turn on spindle, but when i take off:
'While IsMoving()
' Sleep(100)
'Wend
then the macro run, but the message "perfil 2" appears inmediately, even while the axis are still moving.
Some solution suggestions ?
thanks
-
hello,
tested your code on Version R3.043.022 and on Version R3.043.062 no Problem, just as expected.