CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > TurboCNC


TurboCNC Discuss TurboCNC controller software here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-10-2003, 08:13 AM
WOODKNACK's Avatar  
Join Date: Mar 2003
Location: Maine
Posts: 271
WOODKNACK is on a distinguished road
Trying to make this work- G code

Hey guys,
Maybe someone out here can figure this one out. I have a program that is suppose to move my x axis 4 inches one way and then back again 50 times! But I cant seem to get it to repeat? Anybody have any ideas?

F10
G20 G90
M98 P1234 Q50
o1234
G1 x4
G1 x0
m99
__________________
My little piece of the web!
http://users.adelphia.net/~wjdupont

Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 06-10-2003, 09:31 AM
 
Join Date: Apr 2003
Location: UK
Posts: 1,080
kong is on a distinguished road
I don't understand g-code that well, but I'll tell you what I know!
Firstly, you cannot have 2 g's on the same line, so you will have to seperate G20 and G90.
Secondly, I have just looked through the turbocnc manual, and it does not mention M98 and M99. In the turbocnc example (sample.cnc) the writer uses M60 and M62 to call sub-routines, so maybe this should be used instead.
Like I said, I do not know g-code, I have only read the instructions!
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 06-10-2003, 09:38 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road
Re: Trying to make this work- G code

Originally posted by WOODKNACK

F10
G20 G90
M98 P1234 Q50
o1234
G1 x4
G1 x0
m99
the "O"1234 is for a seperate program.
Do this;

Code:
%
O1
F10.
G20 G90
M98 P1234 Q50
M30

O1234
G91
G1X4.
X-4.
M99 
%
Assuming you're on a Fanuc compatable, make it just like that. You don't have decimal points on your feeds and X moves either.

The G90 and G20 are ok on the same line, G20 is (likely, depending on the control,) Inch programming, the G90 is Aboslute.

:edit:
If you're typing this in at the controller, you'll need to remove the "%"'s, and seperate the program. Create a new program, using 1234 as the number, and put the "lower" code in that program.
:/edit:

'Rekd teh B.U.M.A.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 06-10-2003, 10:00 AM
WOODKNACK's Avatar  
Join Date: Mar 2003
Location: Maine
Posts: 271
WOODKNACK is on a distinguished road
Still cant get it to work. Stops at m30 code?
__________________
My little piece of the web!
http://users.adelphia.net/~wjdupont

Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 06-10-2003, 10:52 AM
 
Join Date: Apr 2003
Location: UK
Posts: 1,080
kong is on a distinguished road
Rekd, when you say it's ok to have the two g's on the same line, are you talking about TurboCNC, or g-code in general? Also, I have re-read the instructions, and I have also noticed this:
************
Code letters:
************
Blah, blah....

D,L,H,Q Future Use
etc...
So does this mean that the Q values are not implemented yet?
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 06-10-2003, 10:53 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
You have to read the manual

There is no way we could possibly guess what gcodes and associated parameters will work unless you can quote the relevant pages from your manual. Computers are very unforgiving of syntax errors!
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 06-10-2003, 11:05 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road
Rekd, when you say it's ok to have the two g's on the same line, are you talking about TurboCNC, or g-code in general? Also, I have re-read the instructions, and I have also noticed this
that's on a fanuc or most fanuc compatables.

Try replacing the "Q" with an "L" and see if that works.
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-10-2003, 11:11 AM
CAMmando's Avatar  
Join Date: May 2003
Location: Phila PA, USA
Posts: 146
CAMmando is on a distinguished road
What Rekd Said
__________________
Wee aim to please ... You aim to ... PLEASE.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 06-10-2003, 11:21 AM
WOODKNACK's Avatar  
Join Date: Mar 2003
Location: Maine
Posts: 271
WOODKNACK is on a distinguished road
nope! no go. like I said it doesnt seem to be on that line. its the M30 line that it stops at.
__________________
My little piece of the web!
http://users.adelphia.net/~wjdupont

Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 06-10-2003, 11:26 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road
:edit:
Keep in mind, you need two programs to do this. The first program, O1, calls the second program, O1234 via M98 P1234 L50 (The L50 repeats 50 times.)

The M30 is the end of all programs. The M99 is the end of sub program, with loopback to the calling program, O1 in this case. When it stops at the M30, has it gone thru the 2 X moves?
:/edit:

Do you have a sample program? Perhaps a sample with sub programs or sub routines?

'Rekd
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-10-2003, 11:28 AM
WOODKNACK's Avatar  
Join Date: Mar 2003
Location: Maine
Posts: 271
WOODKNACK is on a distinguished road
No this is just something I found on the internet and was trying to get it going in turbocnc..
Attached Images
 
__________________
My little piece of the web!
http://users.adelphia.net/~wjdupont

Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 06-10-2003, 11:28 AM
balsaman's Avatar  
Join Date: Mar 2003
Location: Canada
Posts: 2,139
balsaman is on a distinguished road
stops and says what? Any error?

Eric
__________________
I wish it wouldn't crash.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 10:21 PM
How do you make Bridgeport execute program? Bill Gillen Bridgeport and Hardinge Mills 10 06-14-2005 09:26 AM
parametric programming Karl_T CamSoft Products 21 05-24-2005 03:58 PM
Time to make it work DESERT RAT DIY-CNC Router Table Machines 8 02-22-2005 08:30 AM
Work Holding Methods InventIt DIY-CNC Router Table Machines 13 09-14-2004 04:13 AM




All times are GMT -5. The time now is 05:41 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353