Hello Guest it is April 20, 2024, 11:44:07 AM

Author Topic: Simple Code No run  (Read 1368 times)

0 Members and 1 Guest are viewing this topic.

Simple Code No run
« 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

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Simple Code No run
« Reply #1 on: January 17, 2020, 03:36:39 PM »
hello,

tested your code on Version R3.043.022 and on Version R3.043.062 no Problem, just as expected.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.