Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: giannis121 on May 23, 2007, 07:54:22 AM
-
I have a program that produces G code from drawings ("Promotion Nest").
The programs sets at the begining of the program M28 and at the end M29.
So, i created two new macros (in the macros folder) M28 and M29.M1S .
M28 contains only that: ActivateSignal(output1)
and M29 contains: DeActivateSignal(output1)
Now when i open a file (any file), the toolpath screen does not show the drawing, and sometimes if i try to move by right clicking, goes back to the first screen.
If i delete these two files, the screen shows the drawings as well.
Do you have any idea of what is going on?
-
Are your macros in the profile you are using?
or you can try this.
in your macro type :-
If not IsLoading() then
activatesignal(output1)
end if
Graham.
-
Yes the macros are in the profile that i'm using.
Graham, the first line produces compilation error:
If not Isloading() Then
.
.
.
Endif
Why is that?
-
OK, try it this way
If IsLoading() then
else
activatesignal(output1)
end if
Graham.
-
Graham, still has compilation error.
Why is it so difficult for the program to do it?
Its a simple code.
-
They work here, here are the 2 macros :-
Try them and let me know.
Graham.
-
Braham, thanks!
Its fine!