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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-22-2010, 11:09 PM
 
Join Date: Jun 2005
Location: canada
Posts: 4
servomec04 is on a distinguished road
galil motion control with visual Basic 6.0 activeX

I have a galil 4 axis card with visual Basic 6.0 ActiveX control Library
Does anybody can send me any programs done with Visual Basic 6.0?
It will be faster for me to learn by looking at real samples of programming
Alex
Reply With Quote

  #2  
Old 07-08-2011, 04:52 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?
Galil VB OCX?

An old post revived!
Is or has anyone doing a UI or MMI interface for Galil with VB using the OCX files, plus running a G code style interface or?
Just curious as to what had been achieved and some of the hic-ups met or overcome?
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 01-29-2012, 05:44 PM
 
Join Date: Jul 2009
Location: USA
Posts: 13
cnc4cheap is on a distinguished road

Originally Posted by Al_The_Man View Post
An old post revived!
Is or has anyone doing a UI or MMI interface for Galil with VB using the OCX files, plus running a G code style interface or?
Just curious as to what had been achieved and some of the hic-ups met or overcome?
Hello,

I have a CNC front end for the Galil DMC 1840 motion controller boards that was developed in VB6. It does not use any of Galil's activeX libraries because I discoved early in the project that they were either to slow or functionally lame. At the current stage of development the CNC front end will read RS274 format G code, translate G code to DMC board language, feed translated code to the DMC buffer, run the G code/DMC code and display axis positioning. (reads axis error due to no encoder feedback) As for the features the CNC front end it has Work Coordinates System, Tool Length Offsets, Cutter Dia/Radius Offsets, Cutter Compensation, Manual Data Input, Keyboard Jogging (variable increment & velocity), Pause, Stop & Resume, Drill Cycles, Graphic Tool Path Viewer, G code File Library Access, Integral G code editor. The G code translator will process 50,000 lines of G code in 30 seconds.

One of the short comings of the DMC controller boards is the limited number of free I/Os after the system has been fully integrated. My CNC front end will allow for the use of up to three printer ports for simple outputs thereby freeing up the Galil I/Os for complex functions. PCI dual parallel port boards can be bought through eBay for next to nothing as opposed to buying the Galil daughter board for expanded I/Os. The ports are automatically discovered by the CNC front end.

The Cutter Compensation is dynamic so it does not require that the G code file be re-loaded in order to calculate the cutter compensation. The cutter compensation is applied in real time at the DMC controller board.

I lost interest after a long period of health issues so I never got around to integrating a Galil system for the final development of the CNC front end on a machine.

Anyone that has basic knowledge of the Galil board language could easily finish the project. I'm an old guy so my GUI is tailored to look like it's a DOS window so you would more than likely want to design your own GUI. The CNC front end was developed in Windows XP Professional using Visual Basic 6 so designing a GUI is extremely easy. This project was my first experience with writing software. It took me three tries before I settled down and got serious about learning how to program. The problem was that I lacked the 'I REALLY WANTED TO DO IT' so I did not succeed the first two tries. Learning to program was one of the most rewarding accomplishment of my life time.

The motivation to succeed came after I purchased a copy of Camsoft CNC Professional. I installed it, I examined it, I un-installed it and I sold it through eBay. What an absolute PIECE OF CRAP! I liked to have died laughing when Gary Corey told me that Fanuc had threatened him with legal action because his GUI to closely resembled the Fanuc pendant. WFJ!

I have two DMC1840 boards that were re-man'd by Galil and have not been removed from the anti-static envelope since I received them. I have another board that was new prior to being installed in my PC that I used for developing the CNC front end. Each board has a like new ICM1900 breakout board and interconnection cable. The DMC1840 clock is more than adequate for use with servo drive systems such as the Yaskawa Sigma I series systems, but not with the Mitsubishi or other systems with extremely high PPR encoders.

A reasonable offer for the three sets of Galil hardware and the software is yours free of charge. The value of the software far exceeds the value of the hardware. I have spent 1000s of hours writing the CNC front end. I don't like giving my time away, but I would rather give it away as opposed to knowing that it was never put to use.

I can provide an executable copy of the CNC front end along with the dll files that I wrote if you would like to examine it.

Ron

Last edited by cnc4cheap; 01-30-2012 at 09:00 AM.
Reply With Quote

  #4  
Old 01-29-2012, 06:05 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

I am really interested, frankly I have a couple of systems using the Acroloop card under DOS which is perfectly adequate, I also tried Camsoft some time ago and was disillusioned for a few reasons.
What were the Galil cards re-man'd for?
What do you want for what you have?
send me a PM if you prefer.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 03-02-2012, 01:20 PM
 
Join Date: Mar 2012
Location: Canada
Posts: 3
hellguy10 is on a distinguished road
HElP

Hi Ron and Al

I'm an engineering student and trying to finish up a project. I have the Galil DMC-4143 controller and I'm also creating a front end to run a CNC wood lathe.

I would be really grateful if i could view the code and see if it is compatible with my controller. I'm making this as a project for a university so that underprivileged students would be able to access what we have. Learn all the same.

I'm stuck in a few spots - firstly I have 3 Stepper motors attached with encoders and I configured them and wired them to my lathe, however is when i search looked up the galil forums i couldn't find a proper PID error checking system and had to build one by myself, now I seem to have a few problems with calibrating my stepper motors steps to the inbuilt counts of the galil tools software. If i knew how that is done it would be much of an ease for me to progress.
Also any help from much better and more experienced CNC'ers would be much appreciated.

-Rajit
Reply With Quote

Sponsored Links
  #6  
Old 03-02-2012, 02:28 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

Personally I think it is a waste implementing steppers with a Galil card.
The PID loop cannot be used with steppers AFAIK.
I believe the only thing you can use the encoder input for is to know whether you have lost steps, and correct it? But this is after the fact.
Galil has PID tuning software for servo's.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7   Ban this user!
Old 03-02-2012, 03:26 PM
 
Join Date: Jul 2009
Location: USA
Posts: 13
cnc4cheap is on a distinguished road

Rajit,

Your Galil controller is either serial or ethernet and my CNC front end was developed for the Galil PCI bus seies controller. Excluding the type of interface the program would work for your application because all of Galil's controller use the same board language.

Ron
Reply With Quote

  #8   Ban this user!
Old 03-02-2012, 07:52 PM
 
Join Date: Jul 2009
Location: USA
Posts: 13
cnc4cheap is on a distinguished road

Rajit,

I stopped short of answering all of your questions. I will start by telling you that it is very obvious that you have not done your homework. If you expect to ever successfully integrate a CNC system then you best take advantage of the Galil documents that they so generously provide.
From the Galil manual:

*Using an Encoder with Stepper Motors*
An encoder may be used on a stepper motor to check the actual motor position with the commanded position. If an encoder is used, it must be connected to the main encoder input.

Note: The auxiliary encoder is not available while operating with stepper motors. The position of the encoder can be interrogated by using the command, TP. The position value can be defined by using the command, DE.

Note: Closed loop operation with a stepper motor is not possible.
No closed loop operation = no PID loop.

As for the calibration:
Steps per revolution of stepper motor x gear ratio between stepper motor and ball screw x number of ball screw turns per user unit (inch or millimeter) = steps per user unit.

As for viewing my code. My CNC front end has features that other Galil based CNC front ends do not have. I'm not going to publish my code and provide free upgrades for the other software companies. If you want to copy code then copy EMC as it is open source. That's what I would have done but I found it would have been easier to transcribe the Chinese constitution in english. In other words impossible.

I now have 7 years of programming experience and I still would not be able to copy and use any of the EMC code. If you understood the programming language then it would take you years to unravel the logic in the EMC software.

My CNC front end was my first experience with writing software. Originally I started with the Galil ActiveX toolkit, but as my code writing advanced I discovered that the Galil ActiveX libraries were functionally lame and slow. My software now uses DLLs that I wrote and none of Galil's ActiveX libraries.

The person that purchases my 3 sets of Galil DMC1840 controllers with ICM1900 breakout boards and interconnections cables will own the rights to my software. One of the controllers was purchased through eBay and it was new in the sealed Galil anti-static envelope. It was used to develop the CNC front end. The other two controllers were reman'd by Galil and they have not been removed from the anti-static envelop since they were returned to me. I have the documentation from Galil showing the serial number of the two boards and the work that was performed on them.

If you need help with your code then I will help you, but I will not write it for you.

Good Luck,
Ron
Reply With Quote

  #9   Ban this user!
Old 03-05-2012, 08:24 AM
 
Join Date: Mar 2012
Location: Canada
Posts: 3
hellguy10 is on a distinguished road
Unhappy I know what you mean

Hi guys, i know what you mean by wast of time.
However, I'm stuck with it and have to move on with the process unless i create my own driver-controller system, let's face it that's not happening.

So go you guys have any leads on a front end to the DMC-41X3 driver-controller? It would be a great deal of help.

Thanks in advance guys.

-Rajit
Reply With Quote

  #10   Ban this user!
Old 03-05-2012, 08:42 AM
 
Join Date: Mar 2012
Location: Canada
Posts: 3
hellguy10 is on a distinguished road
Unhappy

Originally Posted by cnc4cheap View Post

As for the calibration:
Steps per revolution of stepper motor x gear ratio between stepper motor and ball screw x number of ball screw turns per user unit (inch or millimeter) = steps per user unit.
Hi guys,
Thanks a lot Ron, for i didn't really understand that part of the calibration and you've made it clearer.

On the other hand, the rest of the parts such as connecting the encoder and getting the absolute position using the "TP" command was already under use.
I did use the main encoder in and out.

I know what you mean by wast of time.
However, I'm stuck with it and have to move on with the process unless i create my own driver-controller system, let's face it that's not happening.

Unfortunately Ron, I'm not allowed to make any purchases without some confirmation from the prof I'm working under and the bureaucracies involved with that would just take too long. Also this is a learning process for me, so as long as I am able to attain a workable reliable system I am happy and I am upto the challenges that i would face in trying to achieve this.

I will look up the EMC front-end, and try create something similar at best.
If I had the chance I would take you up on the offer.


-Rajit
Reply With Quote

Sponsored Links
Reply

Tags
activex, control, galil, motion, visual basic




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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
galil motion control active X toolkit servomec04 General Electronics Discussion 5 05-23-2011 10:19 PM
Visual Basic Express rweatherly Visual Basic 8 11-16-2006 12:02 PM
visual basic question keebler303 Visual Basic 5 09-05-2006 02:11 PM
Galil & Visual Basic? Al_The_Man General CNC (Mill and Lathe) Control Software (NC) 1 04-17-2006 01:32 PM
New Visual Basic forum CNCadmin Visual Basic 1 02-27-2005 07:36 PM




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