![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Milltronics Discuss Milltronics Machines |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| 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? |
|
#4
| |||
| |||
| 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? |
|
#5
| ||||
| ||||
| 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. |
| Sponsored Links |
|
#6
| ||||
| ||||
| 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |