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! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-21-2011, 04:09 AM
 
Join Date: Nov 2011
Location: Australia
Posts: 2
DanielF is on a distinguished road
Smile Improving your CNC3040/3020

G'day all. I joined CNCzone only a week or two ago, and this is my first post (which I hope will put a stop to the almost daily e-mails imploring me to activate my account, which I did the day after I received the activation instructions!). There's a bewildering choice of forums to post to on this site, and I'm not sure which is the best one to post my multi-topic information. And since it's all related, I don't want to split it into multiple posts. Let's see how I go here.

But let me start by introducing myself...

I'm a retired electronics engineer, with no previous experience in CNC machining. I did a little manual machining as prac work in my uni course (in the 60s), but nothing since then. So consider me a complete novice in machining! For an electronic (hobby) project I'm currently designing, I wanted to have more professional front & rear panel legends than my usual self-adhesive paper labels, so investigated engraving (the panels are black-painted aluminium). After a quick search on eBay, I decided that, rather than paying someone hundreds of $ to program and engrave my panels, I'd be better off putting those hundreds towards my own engraving machine! I was going to get a Chinese CNC3020 (about all I was prepared to pay), but spotted a bargain CNC3040T for the same price, and snapped it up.

As usual, 'Ya gets what ya pays for' - it arrived slightly damaged (inadequately packed), and the Hong Kong seller, who had only just started with this line of products (which is possibly why they made a mistake with the price) offered no support whatsoever. After repairing the slight damage, I started playing with the machine, using Mach3 (v3.042.040). I noticed a few problems with the design/construction of the control box, and set about fixing them. At the same time, I was coming to grips with G-code programming, having already 'mastered' BASIC, C and Assembly language as part of my previous work.

I looked around for a G-code quick-reference I could keep with the machine in the workshop, but didn't find one to my satisfaction. Those I found covered instructions that Mach3 didn't support, and missed some that Mach3 did support. So I wrote my own quick-reference! I've attached it as 'G-code_Quick-Reference(DF).pdf'. While I'm currently using Mach3, I know many people use EMC2 (it's free, after all!), so I've included in my QR instructions supported by Mach3 and/or EMC2. The QR is intended to be printed in colour, double-sided on A3 paper in booklet mode, so after laminating and folding it in half, you have a 4-page A4 booklet. [This and the other stuff I'm offering (below), are aimed primarily at CNC hobbyists like myself.]

My second contribution is details of a useful modification to the CNC3040 (and also CNC3020?) control box, so that the spindle motor can be turned on and off by the computer. The circuit diagram ('schematic' if you're American) is also attached, as 'Spindle_drive_mod.pdf'. Apart from the portion showing my additions, consider the rest of the diagram 'tentative'. The manufacturer has scrubbed all the semiconductor identifications off the devices, making it hard to know what each device is. Q1 in particular puzzled me, being connected in a strange way. The only thing that made sense from its connections was a current-sink as I've shown, but even that makes no sense with the parallel diodes clamping Q2's base to 1.2V. So I'm not at all sure what Q1 is doing.

Note that the added LED (if used) should be a low-current type (good brightness at 5–10mA). If you choose to omit the LED, change R19 to 680 ohms (instead of 150). I've also attached a block diagram of the CNC3040 control box (CNC3040T_block.pdf), for those interested (NB: this diagram is of the original box, before my modifications). One of the few things I did like about this box is that all the computer inputs are opto-isolated from the power circuits, so there's no need for an external isolation board between a PC and the CNC3040.

I've also done a number of other modifications to my machine, and made a few videos about them (including the spindle control mod), and placed them on YouTube:
CNC3040T gantry improvement - YouTube - mechanical mods to gantry to achieve full Z range over full X range (Part 1: 2 min 3 sec)
CNC3040T control box improvements - YouTube - five mods (including safety issues!) to control box (Part 2: 6 min 39 sec)

Having finished all the mods, I wrote a short G-code program to test my understanding of circular arc programming, parameter setting and using, and sub-routine calling. It also tests program control of the spindle motor, with my control-box modification. This last video will be of little interest to experienced users, but was made more for people looking to buy a desktop machine, to show one of the many things it can do with very simple programming:
CNC3040T G-code demonstration - YouTube - a demo of the machine (and Mach3) running some G-code, with spindle on/off control (4 min 55 sec)

[All these videos were shot on a cheap 'point-and-shoot' (still) camera, using its internal microphone, so apologies for the low video and (especially) audio quality. :-(]

OK, that's enough blab for a first post. I'll let you absorb all this, and then later start picking other members' brains!

Regards, Daniel
(Gerroa, Australia)
Attached Files
File Type: pdf G-code_Quick-Reference(DF).pdf‎ (205.9 KB, 42 views)
File Type: pdf Spindle_drive_mod.pdf‎ (50.0 KB, 44 views)
File Type: pdf CNC3040T_block.pdf‎ (70.3 KB, 44 views)
Reply With Quote

  #2   Ban this user!
Old 04-29-2012, 09:03 AM
 
Join Date: Apr 2012
Location: Russland
Posts: 2
ZZZAMK is on a distinguished road
Cool in case someone needs to know replacement parts for ECU

Thank you for the circuit diagram you posted. This was greatly helpful to fix my unit. You see, in case of a short at output sometimes fuse won't help. And 2 power thyristors inside block for CNC3020 don't have marking (its erased by chinese).
I e-mailed chinese manufacturer and they told me that MFG# of thyristors are S2516BH, as well as I got info about spindle motor, its max 95V DC and max speed 8000rpm.
So, you can now easily fix the ECU module if needed. Thanks
Reply With Quote

  #3   Ban this user!
Old 04-29-2012, 09:13 AM
 
Join Date: Apr 2012
Location: Russland
Posts: 2
ZZZAMK is on a distinguished road
Settings for Mach3 are incorrect for CNC3020

Settings for Mach3 are incorrect for CNC3020 also. I mean the number if steps required to move 1mm. Correct values are 800 steps per 1mm for all axises. Also Mach3 is glitching a bit. It needs a restart to accept correct values and start moving precisely.
Attached Thumbnails
Click image for larger version

Name:	motor_setup_correct_CNC3020.jpg‎
Views:	4
Size:	130.0 KB
ID:	158689  
Reply With Quote

  #4   Ban this user!
Old 04-29-2012, 07:41 PM
 
Join Date: Nov 2011
Location: Australia
Posts: 2
DanielF is on a distinguished road

Originally Posted by ZZZAMK View Post
--- snip --- that MFG# of thyristors are S2516BH, as well as I got info about spindle motor, its max 95V DC and max speed 8000rpm.
Thanks ZZZAMK, useful info. I've updated my circuit diagram (attached) with the thyristor part No.
Attached Files
File Type: pdf Spindle_drive_mod(2).pdf‎ (48.9 KB, 8 views)
__________________
Regards, Daniel
(Gerroa, Australia)
Reply With Quote

Reply

Tags
cnc3020, cnc3040, g-code, modifications, quick reference




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
Problem- VMC 3020 issues fixtureguy Bridgeport and Hardinge Mills 11 05-27-2011 03:08 PM
Improving the Bosch Colt mickelsen DIY Discussion 0 05-14-2011 07:27 PM
New Machine Build- Improving my MDF build......Need opinions. tskguy DIY-CNC Router Table Machines 0 05-05-2010 09:22 AM
Improving my latency figures greybeard LinuxCNC (formerly EMC2) 5 07-23-2009 02:30 PM
In need of help improving cold saw repeatabilty rkremser General Metal Working Machines 5 01-28-2008 07:42 AM




All times are GMT -5. The time now is 10:45 PM.





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