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! > MetalWorking Machines > Milltronics


Milltronics Discuss Milltronics Machines


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-09-2007, 07:48 PM
 
Join Date: Aug 2007
Location: US
Posts: 2
theragust is on a distinguished road
Red face Arguments for Subroutines (G65)

I'm programming in G-Code on a Milltronics Centurion 6 SLS controller. I like to call subroutines using G65, but all my efforts to pass arguments to subroutines have failed.

My program crashes when I try to reference a parameter within a subroutine. I get an "invalid numeric" error. I think the error code was 550. The failing subroutine block looks like this ....

G68 R#4 X0 Y0

I've got a Centurion 6 Manual for Conversational Programming. Has anyone seen a Centurion 6 Manual for G-code programming? I'd sure like to have something like that!

Has anyone ever connected a regular keyboard to a Centurion 6? Is that worth the trouble?

Is there any difference between a subroutine and a macro? Which word is preferable?

I appreciate your assistance.
Reply With Quote

  #2   Ban this user!
Old 10-10-2007, 08:52 AM
AMCjeepCJ's Avatar  
Join Date: Aug 2005
Location: US
Age: 36
Posts: 371
AMCjeepCJ is on a distinguished road

Hiya,

Is there ANY way you could do this is conversational and then open the program in text and just read how your machine automatically writes the code correctly?? I've done this on more than one occasion when I had to call up subroutines for a bobcad file that was generated in G-code and because of that I had to write a longhand program to rotate and call up the correct subs to cut the spokes on a motorcycle wheel~

Also, the sub might have to be something like ####.txt or something similar... In my case it was that added to the end in order to get it to work...

As for the keyboard on a Cent 6, I dunno except on my cent 5 it was just a simple matter of drilling a tiny hole and running the cord inside to plug it in!!
__________________
Gimpy aka 313 (three thirteen)

The early bird may get the worm, but the second mouse gets the cheese.
Reply With Quote

  #3   Ban this user!
Old 10-11-2007, 12:35 PM
 
Join Date: Aug 2007
Location: US
Posts: 2
theragust is on a distinguished road

Gimpy,

Thanks for your speedy response. I will try the converstational code as soon as I get some time to experiment.

I noticed that there is no "#" key on either of the Milltronics keypads. That would certainly suggest that Milltronics G-Code does not allow pound signs (#).

Do I need to do something like "G68 R*4 X0 Y0" or "G68 R[4] X0 Y0"? Have you ever passed an argument to a Milltronics subroutine. How did you do it?
Reply With Quote

  #4   Ban this user!
Old 10-11-2007, 04:56 PM
 
Join Date: Aug 2007
Location: US
Posts: 2
theragust is on a distinguished road

Gimpy,

I got it working today. I called the subroutine like this:

G65 P9100 R45.0

That will set "Argument R" to the value 45.0.
Since the letter "R" is the 18th letter of the alphabet, Argument R is now stored in the 18th parameter memory location, aka Parameter 18 or "P18".

Inside the subroutine, I referenced Argument R (aka P18) like this:

G68 R[P18] X0 Y0 <-- executes as G68 R45.0 X0 Y0

On a Centroid controller, one can refer to Argument R as "#R"

G68 R#R X0 Y0 <-- executes as G68 R45.0 X0 Y0 on Centroid

There has got to be a Milltronics syntax that is analagous to the Centroid "#R" syntax, but I haven't been able to figure it out. Do you know?
Reply With Quote

  #5   Ban this user!
Old 10-12-2007, 05:59 PM
AMCjeepCJ's Avatar  
Join Date: Aug 2005
Location: US
Age: 36
Posts: 371
AMCjeepCJ is on a distinguished road

LOL, oh my God!! I have no idea what you're talking about, that was so far over my head!! All I was referring to with the (####.txt) was that you could name the subroutine something like 1243 or any combination of numbers... In the case of Bobcad I used letters and numbers to reference different geometry I wanted to cut...

My code literally reads something like:

N1 CALL 1234

or

N1 CALL SPOKE3.txt

I forget exactly but I think if I generated code through conversational and wanted to call it as a sub in a text file I had to add something to the end like (.txt) except it was a different set of letters... Sorry bro if I wasn't much help, lol, all I know is I do it a lot and it works but I couldn't tell you what register in the computer it was using. (I thought registers were the things in the check out isle at Walmart, I know nothing about any other kind.)

I'm glad you got it figured out, sorry I'm not better versed in computer nomenclature~
__________________
Gimpy aka 313 (three thirteen)

The early bird may get the worm, but the second mouse gets the cheese.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-17-2007, 10:04 AM
single phase's Avatar  
Join Date: Feb 2006
Location: Pennsylvania
Age: 52
Posts: 318
single phase is on a distinguished road

I keep a small keyboard connected to my cent 6 all the time. I use it for editing. I also have my cent 6 on my Ethernet with my CAD-CAM PCs. I edit the g-code files on the windows machines too.

I thought the # was on shift 3, my machine is not running right now or I would go over and check.

Cheers
Dave
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
EMC and Subroutines? watchman LinuxCNC (formerly EMC2) 9 06-17-2007 02:30 PM
Oi subroutines help mishikwest Fanuc 1 08-01-2006 05:17 PM
passing arguments to a sub program kiprip Mazak, Mitsubishi, Mazatrol 1 07-13-2006 11:11 AM
Fanuc 15m Subroutines BROCD Fanuc 11 02-27-2006 07:04 AM
Subroutines in Mill Master Pro truline G-Code Programing 0 10-08-2005 12:37 AM




All times are GMT -5. The time now is 10:23 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 354 355 356 357 358 359 360 361