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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-06-2004, 11:00 AM
 
Join Date: Jun 2004
Location: United States
Posts: 16
Citron is on a distinguished road
G codes

i am new here and i don't want to beat a dead horse but this g code thing i don't understand. i thought there was many different g code formats.

i also want to say i have been using camsoft for a while and i really like the flexibility. i would recommend the product. they have been good to me. i guess you can say the out of the box CBK screens do work but it took me a while to it set up just the way i wanted it and it is working just the way i want.

best of luck to you camsoft. you still have the best product i have found.

my two cents. john c.
Tweet this Post!Share on Facebook

  #2   Ban this user!
Old 06-06-2004, 11:12 AM
 
Join Date: Sep 2003
Location: ADDISON, Illinois
Posts: 17
Jim Cooper is on a distinguished road

Welcome John,

You're right John there are many G code formats. I have used several G code programs on different machines. They are not all the same. CamSoft has a standard default set in their default CBK, but I agree with Hu I think it's an asset to be able to customize or improve them. It's all about choice. I think I read where CamSoft has 700 G code formats to choose from. I personally made all my machines use the same G code format. I could have even made the machine run the original G code programs if I wanted.

Jim
Tweet this Post!Share on Facebook

  #3  
Old 06-06-2004, 12:37 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

John,

I guess that the most basic logic of the standard set of Gcodes is what we would all try to adhere to, in order to have some uniformity and compatability with all other machine tools, and cadcam programs that are designed to output and to read standard ISO nc code programs (in order to do a backplot, for example, G00, G01, G02, G03 must mean the same thing to everyone).

But, when it comes down to the way that your particular machine operates when a given Gcode number is used, that is up to us to configure and optimize in Camsoft's gui. That is what I absolutely love about the PC based cnc system such as this.

For example, you may have noticed a problem if you forget to program a feedrate when running a program that you create right at the control. With the standard G01 logic, I believe the control just kind of "hangs" because the motors take a really long time to get somewhere at zero feedrate So in an example such as this, it is a simple matter to add logic to the G01 to tell the operator that he forgot to program a feedrate, and to auto-abort the current nc program. This "extra logic" is not part of the meaning of a standard G01, but is nonetheless, is a valuable convenience to have in place for the operator's sake.

There are also lots of "empty gcode slots", for which, as far as I know, there is no recognised standard of programming. For those who like macro type operations, this is a great asset to be able to make up their own special routines, that fit the type of work that is common in their shop. You probably have seen many of these as examples in the various Camsoft cbk files.

And don't get me started on how exciting it was to develop my own G81, G83 cycles, and G33 lathe threading cycles. There are simply limitless tweaks and improvements to be made (depending on your imagination and ability to write logic), yet still, the net result of that particular gcode still would be the production of holes or threads, or whatever, just like the standard gcode intends to see happen.
__________________
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

  #4   Ban this user!
Old 06-06-2004, 12:45 PM
 
Join Date: Apr 2003
Location: United States
Posts: 267
camsoft is on a distinguished road

Thumbs way up to you Murray.

Solutions and good advice.

To all, here is a published list of G codes. CamSoft does offer the standard G codes and then some. All are fully user customizable table of 199 G's plus 199 M's.

http://www.cnccontrols.com/cncpro_gmcodes.asp

This way you can set it up to run the existing G code programs the original machine used.

We also provide a standard set of G codes for 9 machine types. Everyone knows that there is no single standard all companies use, but wish there were. So will allow people to customize the G and M codes to match your original brand.


Tech Support
CamSoft Corp.
(909) 674-8100
support@camsoftcorp.com
www.cnccontrols.com
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Last edited by camsoft; 06-14-2004 at 11:33 AM.
Tweet this Post!Share on Facebook

  #5  
Old 06-06-2004, 01:32 PM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 529
HillBilly is on a distinguished road

One question which CBK are the good drill cycles like G73 or G81 on with version 14.6? The ones I started with included with the handheld CBK did not function properly in single step. I also wonder about the the way after the tool offset was picked up if the next line did not contain a Z move it assumed Z zero on its own. (The most common move after a tool change is to rapid from the safe zone to the work zone then move Z)

Darek
Tweet this Post!Share on Facebook

Sponsored Links
  #6   Ban this user!
Old 06-06-2004, 01:53 PM
 
Join Date: Apr 2003
Location: United States
Posts: 267
camsoft is on a distinguished road

Darek,

Honestly, we can't be sure for V14.6, but it's safe to say that while things have changed since then, the standard drilling and pecking were always there working fine in Single Step or Auto mode. A bunch of other G codes can be found in the MACRO.MAC file as well as the DEFAULT.CBK.

Z moves, offsets after tool changes in any mode are working fine. No problem reported with these. GW has the new stuff try it out when you get there.

Tech Support
CamSoft Corp.
(909) 674-8100
support@camsoftcorp.com
www.cnccontrols.com
__________________
(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

  #7   Ban this user!
Old 06-06-2004, 03:08 PM
 
Join Date: Mar 2004
Location: United States
Posts: 36
intrusion is on a distinguished road

Standards are a funny thing from one side of the contry to the other and then from this part of the world all the way to the other side. Standards have changed over time and from one machine to the next. I do not know how many different CNC controllers Fanuc has for all kinds of machines even for 3-axis machining centers they have several controls with all kinds of different options. I guess what I am trying to say is where do standards start and where do standards end. I think the best way to start is what CamSoft has done to give the end user the ability to decide in logic what is best and standard for them on any given machine. I think that this is great for newbies like myself and so many others.

I have see logic for simple G01 a page long on some machines and on other similar machines it could be simply a one liner. A guess a lot of it depends on what an operator excpects to happen when he programs a certain way from past experienc on other machines, like Hu Flung Dung said - he can place feed rate check logic in his code to allert the operator if a Feed Rate was not entered, very clever!. When we talk about NC programming formats and standard practices there is another whole discussion and a new thread should be started if someone wants to hear more about that, however there are books that are offered that one can buy for this as well. I like the CNC Programmers Handbook from Industrial Press. Excelent resorce for any programmer or retrofitter.

In conclusion I think what CamSoft has started is definitly on the right track to allow us begginers and experts the opertunity to delve deep into our machine code and customize it. It seems pretty easy and strait forward compared to Fanuc ladder logic. I mean how many guys in this forum even know how to write Fanuc ladder logic ?, certainly not me!, if you do then thats great. With the age of the PC-Based controls on the rise I see no reason to start learning.

Of course this is only my opinion.
Pardon my intrusion.
Tweet this Post!Share on Facebook

  #8  
Old 06-06-2004, 03:50 PM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 529
HillBilly is on a distinguished road

Any new system is hard to learn, even CamSoft for me.

In my opinion there has never been a better diagnostics tool than a highlighted ladder screen, no matter whose control it was on.

Darek
Tweet this Post!Share on Facebook

  #9  
Old 06-06-2004, 05:28 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

I guess I am one of those with the opposite view as why you should need or have to modify G codes, as I believe that G codes are not machine specific only as far as to what type of machine i.e. Mill, Lathe, EDM etc. and that a package together with the appropriate G codes should be supplied by the System supplier.
I think you will find this issue of standard G codes drawn accross two lines, those that are DIY'ers and hobbyists and the retrofitters that make a living at it.
If I install a Fanuc or Mitsubishi system I do not have to, or expect to tinker with the G code part of the installation. And the fact that both of these systems are complete down to the amps and motors makes no difference.
Fanuc or Mitsubishi do not know any details of the machine or system (only type) I am installing on. As long as I carry out my side of the installation correctly, sizing motors and tuning etc. Then I expect the neccessary G code to perform as outlined in the RS-274 standard.
For example if I retrofit a Lathe and I want to use G84 threading option. If I have the required hardware in place I have never come across any frustration in wanting to get into the G code to change anything.
The point of having to modify the G01 command is an example of what I mean. The G01 F command is usually modal, so once I have issued it I do not have to specify it again unless I want to change it.
Fanuc & Mitsubishi and others will give me a warning alarm if I have not issued an F command greater than zero at first G01 .
For several years Fanuc & Mitsubishi (Mazak) sold 85 to 90% of the CNC market so the standards have evolved through them to a certain extent and for better or worst, most of the major followers have followed their lead.
I always hear cries about ladder logic, Ladder is based on the diagramatic display of what was once the wiring schematic for a machine in order for maintenance personell to become familiar with what they already knew, unfortunately the functions and commands became much more than the average electrician could follow or was familiar with.
All ladder is, is a diagramatic form of booleian** logic which has been around for years. And is a form of mathematics that is used to express functions in electronic circuitry.
As hillbilly mention, the ladder display is very usefull when diagnosing a machine fault to find out what piece of logic is causing the problem.
I have programmed with Fanuc Ladder and Mitsubishi and many other PLC's and most give you the option of ladder or Boolean and will convert one to the other and I am no math whizz by any means but do not find this any more difficult than the logic used by Camsoft et.al.
There is a learning curve to any thing worthwhile.
We beg to differ.
AL.
**George Boole, english mathematican, died 1864, invented Boolean arithmetic, unfortunately there was no use for it in his lifetime, computers came along later and the rest is history.
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(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

  #10   Ban this user!
Old 06-06-2004, 07:44 PM
 
Join Date: Mar 2004
Location: United States
Posts: 36
intrusion is on a distinguished road

I guess I am one of those with the opposite view as why you should need or have to modify G codes, as I believe that G codes are not machine specific only as far as to what type of machine i.e. Mill, Lathe, EDM etc. and that a package together with the appropriate G codes should be supplied by the System supplier.
I would not doubt that this would be the easiest solution for the end user of any control. This is why I guess Fanuc and Mitsubishi have so many different controlers for so many different machines across the board. However in the retrofit market I see more than just Fanuc and Mitsubishi that are good canidates for a control retrofit. There are other Japanees controls, German, American and Italian controls out there that not one Fanuc 10T or 6T or OT (and the list goes on) that could replace them without the flexibility of an open PC-Based system that so many manufactures are getting into like CamSoft, Centroid, AJax and Flash Cut to name a few.

There are Boring Mills, VMC, VTL's, Certerless Grinders, Single Head Routers, Multi-Head Routers, Mulit-Attachement Routers, Cutter Grinders and many more, I think for one company to have a control specific for each of these would be a nightmer especially for the smaller developers of PC- based controls verses large competitors like Fanuc and Mitsubishi, where they no doutably have the capital and work force to do so for so many years. The PC-Based market is fairly new compared to those guys.

Again I am fairly new to this stuff and please correct me if I am wrong or over speak on a subject, however I have been a cnc programmer for many years using various Cad/Cam systems on many cnc machines althought I do not have the experties in electrical or mechanical stuff, but learning. I have been researching for a while now on these control system and will continue to do so.

Thanks for your thoughts Al_The_Man and Darek. I see this forum is going to be a weath of information from all aspects of controller background.

intrusion
Tweet this Post!Share on Facebook

Sponsored Links
  #11   Ban this user!
Old 06-06-2004, 08:05 PM
 
Join Date: Mar 2004
Location: United States
Posts: 36
intrusion is on a distinguished road

I forgot to mentien that I am getting into the software development a bit as well as continued learning on the computer end of things. It is very interesting to see the interworkings of a cnc control and how everything functions as well as it's complexities. Thought I should mentien this to support some of my comments anyway.

intrusion
Tweet this Post!Share on Facebook

  #12  
Old 06-07-2004, 01:38 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Al,

I am confused on your stance on standard G and M codes? Are you defending the rather simple logic that is used in the sample Camsoft controller files? If so, where do you expect these error codes to come from, since there is often nowhere else for the errors to be trapped, than during the execution of a Gcode or an Mcode, standard or otherwise?

I felt a bit let down by how much logic I still had to write when I really got into my retrofit. In particular, there are many logical interlocks to be created between many of the common operator panel buttons, and the execution of an nc program.

As an example, logic needs to protect the machine (during automatic or continuous mode) from accidental spindle stops, reversals, no power, wrong gear range, recovering from Feedhold, locking out Feedhold, Feedrate and Spindle speed overides while threading, missing gcode parameters, etc, etc. There simply is often nowhere else to do this checking other than in the Gcode and Mcode files. This is why I say that modification of the Gcode and Mcode files is mandatory, because the naked files we are given to start with, lack nearly all of this protective logic.

One might well say, "Well, why would your operator press the Spindle Stop while the machine is in operation?" Why, indeed! Don't ask me!

Now, I really don't know if an attempt has ever been made by Camsoft to write a really indepth Inputio.fil to take care of the protective logic for a fairly standard operator panel, and its buttons. It could be argued that everyone's installation is different. Yes, but it is far easier to remark out unneeded logic, than to invent it. And, it is quite a simple matter to do a search and replace if your particular I/O numbers are different than those within the sample file.
__________________
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

Closed Thread




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
AutoCAD14 "Splines" > G Codes ??? DanO Autodesk Software (Autocad, Inventor etc) 7 01-22-2005 10:59 AM
Using "M" codes jimglass TurboCNC 5 06-17-2003 07:31 AM




All times are GMT -5. The time now is 12:17 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