Hello Guest it is April 25, 2024, 04:22:16 PM

Author Topic: its gonna be one of those days.  (Read 7032 times)

0 Members and 1 Guest are viewing this topic.

its gonna be one of those days.
« on: January 12, 2007, 09:59:35 AM »
now i will dmit im new at this. but i had this program working fine a few months ago. now for some reason the controller wont recognize my subprograms. it just skips over them. can someone load this and see if Im doing something wrong. its pretty much my first real attempt at writting a program so be gentle pkease. ;)

Offline Scott

*
  •  139 139
    • View Profile
Re: its gonna be one of those days.
« Reply #1 on: January 12, 2007, 12:17:42 PM »
Hi guynamedbathgate,

You need to remove the line number in front of the sub routines and it should work then.  The O line cannot have a line number.

Regards,
Scott
Re: its gonna be one of those days.
« Reply #2 on: January 12, 2007, 12:38:06 PM »
yep that was it.
wonder how it even worked before?
thanks anyway. I promise ill never do it again. :P

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: its gonna be one of those days.
« Reply #3 on: March 03, 2008, 02:03:57 PM »
I have the same problem with version 3.037.  Version 3.032 works fine though.
Sample--2 simple squares.
Any help is appreciated.

G90 G01 X0.0 Y0.0 F1000
M98 P1
M98 P2
M30
O1
X0.0 Y0.0
X1.0 Y0.0
X1.0 Y1.0
X0.0 Y1.0
X0.0 Y0.0
M99
O2
X2.0 Y0.0
X3.0 Y0.0
X3.0 Y1.0
X2.0 Y1.0
X2.0 Y0.0
M99
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: its gonna be one of those days.
« Reply #4 on: March 03, 2008, 04:55:56 PM »
Always make sure you have a return on the last line, that is the most common cause of non running subs.

Putting a % at the start and end of the programs helps.

Graham.

%
G90 G01 X0.0 Y0.0 F1000
M98 P1
M98 P2
M30

O1
X0.0 Y0.0
X1.0 Y0.0
X1.0 Y1.0
X0.0 Y1.0
X0.0 Y0.0
M99

O2
X2.0 Y0.0
X3.0 Y0.0
X3.0 Y1.0
X2.0 Y1.0
X2.0 Y0.0
M99
%
Without engineers the world stops

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: its gonna be one of those days.
« Reply #5 on: March 03, 2008, 05:15:35 PM »
Still a no-go.
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."

vmax549

*
Re: its gonna be one of those days.
« Reply #6 on: March 04, 2008, 12:28:11 PM »
COuld it be that your are using an OH instead of a ZERO???
Re: its gonna be one of those days.
« Reply #7 on: March 04, 2008, 12:36:13 PM »
should be OH...shouldn't it ?

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: its gonna be one of those days.
« Reply #8 on: March 04, 2008, 12:41:50 PM »
Add the red bits and it works, I don't know what has changed in Mach .037 but I will have a word with Brian about it.

Graham.

%
G90 G01 X0.0 Y0.0 F1000
M98 P1 L1
M98 P2 L1
M30

O1
X0.0 Y0.0
X1.0 Y0.0
X1.0 Y1.0
X0.0 Y1.0
X0.0 Y0.0
M99

O2
X2.0 Y0.0
X3.0 Y0.0
X3.0 Y1.0
X2.0 Y1.0
X2.0 Y0.0
M99
%
Without engineers the world stops

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: its gonna be one of those days.
« Reply #9 on: March 04, 2008, 01:26:29 PM »
Thank you Graham. Works great. How you figured that one out I'll never know.
« Last Edit: March 04, 2008, 01:28:09 PM by Sam »
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."