Hello Guest it is March 28, 2024, 10:30:13 PM

Author Topic: User macros that produce problems...  (Read 4356 times)

0 Members and 1 Guest are viewing this topic.

User macros that produce problems...
« 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?

Online Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: User macros that produce problems...
« Reply #1 on: May 23, 2007, 12:48:05 PM »
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.
« Last Edit: May 24, 2007, 12:48:29 PM by Graham Waterworth »
Without engineers the world stops
Re: User macros that produce problems...
« Reply #2 on: May 24, 2007, 01:27:56 AM »
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?

Online Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: User macros that produce problems...
« Reply #3 on: May 24, 2007, 02:33:53 AM »
OK, try it this way

If IsLoading() then
else
activatesignal(output1)
end if

Graham.
« Last Edit: May 24, 2007, 12:48:17 PM by Graham Waterworth »
Without engineers the world stops
Re: User macros that produce problems...
« Reply #4 on: May 24, 2007, 03:12:58 AM »
Graham, still has compilation error.
Why is it so difficult for the program to do it?
Its a simple code.

Online Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: User macros that produce problems...
« Reply #5 on: May 24, 2007, 12:52:21 PM »
They work here, here are the 2 macros :-

Try them and let me know.

Graham.
Without engineers the world stops
Re: User macros that produce problems...
« Reply #6 on: May 26, 2007, 04:27:46 AM »
Braham, thanks!
Its fine!