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 06-26-2009, 11:08 AM
 
Join Date: Jun 2009
Location: USA
Posts: 9
tizdall is on a distinguished road
Connecting hardware and software

I am in the process of constructing my first cnc machine and am at the final stage and could use some help troubleshooting my setup

When i load mach3 i cannot jog my motors although they seem to have power and everything on the software side has been set up.

I have checked the input voltages for the controllers and they are getting the necessary 5v and the red led indicates that there is power to the break out board and the 4 controllers.

When i plug in the power the motors cannot be turned so i think that means i have power to them as well.

i am using 4 Kieling 4030 controllers and a 115/230 v power supply and a parallel port breakout board. I have 4 stepper motors and my parallel port is connected the printer port on my sony vaio

Please help!!
Reply With Quote

  #2   Ban this user!
Old 06-27-2009, 07:34 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

I have no experience with mach3 so i can not address the software however do make sure the LPT on your laptop is not a 3.3 v interface. If it is You may find it can not interface with your breakout board.
Reply With Quote

  #3   Ban this user!
Old 06-28-2009, 10:00 AM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

Hi,
You don't mention what type of breakout board you are using, but a common feature of commercial parallel breakout boards is the charge pump safety switch. It requires the PC and control software to put out a stream of pulses on a parallel port pin to enable the motor step signals. Mach 3 is set up to deal with this, all you need to do is tell it which pin to drive. Missing the charge pump signal will do exactly what you have described.

Another thing to look at is the Emergency stop signal. The boards I have worked with require this input to be jumpered or have a closed switch contact on it to allow motion.

From your description, it sounds like you are almost there.

BobH
Reply With Quote

  #4   Ban this user!
Old 06-30-2009, 09:46 AM
 
Join Date: Jun 2009
Location: USA
Posts: 9
tizdall is on a distinguished road

Thanks for the advice, I think I have the charge pump activated but I could be mistaken. Here's what I know so far:

I am using a c10 bidirectional breakout board from cnc4pc.com and I have experimented a bit and isolated my problem.

I have isolated my electronic setup to deal with just 1 motor to simplify the arrangement. So right now i have a c10 bidirectional break out board connected to the computer with 1 controller, a 36 V power supply and a motor (the kind with the 4 wires)

And Bobh- the breakout board has an enable pin which I think is where one would connect a charge pump which I provide 5V when I test it.. or did you mean something else?

Here's what i know: the break out board needs its own supply of 5V in order to work, however, when I supply power to the board and try to jog the motor with mach3, all I get is a constant 5.08V from my 2pin and 3pin. What's weird though is that when I disconnect the power. The board still has a little bit of juice(from the computer), enough to register values from the 2 and 3 pins. So when I jog the motor in mach3 is show a distinct and constant change in voltage!

And, when i have my ground pin connected on the board and the 5V going to my EN pin but not the 5V pin I can register a change in voltage when I jog the motors but a lot less distinct this time (like .02V per change in jogging direction)

I've tried both arrangements with the pulse and direction supplied to the controller and then to the motor but neither allows me to control the motor itself with the jogging. I think because there isn't the right Voltage change in supplied to the controller to tell the motor to spin. And when all 5V are provided its as if the system is flooded and no change can be registered.

So, why when I give the board power does it not register a change, but when I give it just a little bit the board performs its function? I have ordered a new breakout board, parallel cable and power adapter to see if any of these three items are broken.

I also noticed that when I have my 5V adapter plugged in to the outlet but disconnected from the break out board I can get my motor to spin randomly when I go to connect it. The motor doesn't spin efficiently or anything but it turns both directions randomly until the wire is completely anchored to the pins.

Can anyone explain this or give me any other ideas for troubleshooting?
Reply With Quote

  #5  
Old 06-30-2009, 10:11 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by tizdall View Post

Here's what i know: the break out board needs its own supply of 5V in order to work, however, when I supply power to the board and try to jog the motor with mach3, all I get is a constant 5.08V from my 2pin and 3pin.
You can't actually measure the step pin, but thew direction pin (3?) should change from 0V to 5V when you change directions. One direction is 0V, the other is 5V. Make sure you're getting that first. Check at the port, at the breakout board, and at the drive. Make sure all 3 are the same.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-30-2009, 10:50 AM
 
Join Date: Jun 2009
Location: USA
Posts: 9
tizdall is on a distinguished road

Hey Gerry-

I checked the output of the breakout board for all of the direction pins as configured in mach3 but all of them remained constant at 5.08V... does this mean my cable is the problem?
Reply With Quote

  #7   Ban this user!
Old 06-30-2009, 02:44 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

I looked at the docs for the C10 and it does not have a charge pump safety on board, the EN input is their EStop input. If the EN pin is not tied to +5V, none of the outputs do anything. Connecting the +5V power supply to the EN pin without connecting it to the +5V input on the board might be hard on the board, it depends on how defensively the guy designed it.

You have to set jumper X6 to the 1-2 positon for the step and direction signals to be outputs.

Looking at the Keling docs, it looks like the common lead for the step and direction will need to be set to +5V with the X7 jumper on the C10 board set 2-3. The step and direction outputs from the board should be tied to the CP- and CW- terminals on the Keling boards and the common +5V from the C10 board to the CP+ and CW+ terminals on the Keling boards. The polarity (+/-) matters on this wiring.

Not powering the C10 board properly can make random stuff happen, the C10 manual cautions against this.

Make sure you have the correct parallel port selected in Mach, I think it defaults to port 0 and it should be port 1 or maybe 2, depending on how the PC is set up.

Gerry's advice on measuring the the direction line and getting it working is good. You can't really measure the step line without an o'scope. I think that once you get the direction lines working, other stuff will work too.

That is about all I can suggest from a distance, good luck,
BobH
Reply With Quote

  #8   Ban this user!
Old 07-01-2009, 03:53 PM
 
Join Date: Jun 2009
Location: USA
Posts: 9
tizdall is on a distinguished road

Thanks for the input bh I think I have tried every possible configuration I can think of but it never really changes a whole lot.

I tested the female connectors on both of the computers and could only register a constant 5V from the desktop and a constant 4.3V for the laptop. My testing procedure was as follows: inserting two 22 gauge wires into pin 3 and pin 20 as those pins are traditionally labeled on a dc25 connector. I then connected a voltmeter and ran mach3 with the 3 pin configured for direction of the x axis. Jogging does not change the output of my voltmeter it stays constant at either 5 or 4.3V. I would expect to register a change in voltage coming out of this pin... no?

I am wondering about my procedure, if those pins I'm using should be giving me a change in voltage or if I'm using the wrong setup.

I doubt that 2 computers would have a malfunctioning printer ports...

Any thoughts?
Reply With Quote

  #9   Ban this user!
Old 07-01-2009, 05:36 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

Assuming that pin 3 is configured as your direction pin for the axis you are jogging, you should be able to see the voltage change as you change direction of jogging. Pin 20 is listed as a ground in my docs, so 3 and 20 sound right. It should go down below 0.8V in one direction and be up in the 4 to 5 volt range in the other direction. The step signals need a scope to make sense of.

Measuring the pins at the connector on the PC would be a good thing. A hosed parallel cable might do many unpleasant things.

You know about reseting the software EStop switch in Mach don't you? Nothing happens untill you do.

In the ports and pins menu, the port selection and pin selection must match the hardware in the PC. If you go into the Windows driver manager, it will tell you which LPT port you have configured in your machine.

I think that you have a Mach setup problem. Until you can see the direction pins move under the control of Mach, there is nothing that the hardware can do. I would look at the EStop input configuration in Mach, it might have the polarity wrong and prevent the software from starting.

What operating system are you running? One machine I tried had Vista on it and apparantly it is possible to get Mach to work but something extra has to be done. I have had success with 2000 and XP with Mach.

I am not a Mach wizard. I have put a couple of machines together for a friend and gotten them working under Mach, but I don't have it at home or use it regularly. There is a Mach support group here and the phone support is very good.

I agree, it seems unlikely that two computers would have bad parallel ports.

Good Luck,
BobH
Reply With Quote

  #10   Ban this user!
Old 07-03-2009, 04:22 PM
 
Join Date: Jun 2009
Location: USA
Posts: 9
tizdall is on a distinguished road

IT WORKS!!!

Thanks for all of the support and advice. I received a new breakout board and parallel cable the other day and replaced them in my electronics and voila! I think my problem was the cable and when I was troubleshooting the original breakout board I put a voltage where it shouldn't be.

All the axes are connected and operational and I got it to draw the classic roadrunner with a pencil last night.

Thanks again (especially Bobh) for sticking with me through this and good luck to everyone else out there!

tiz
Reply With Quote

Sponsored Links
Reply

Tags
electronics, hardware, troubleshooting




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
Lady needs Hardware/Software Advice :) virtualoha General CAM Discussion 9 09-02-2008 08:46 PM
Alien hardware and software Ecclesiastes General CAM Discussion 0 01-06-2008 08:03 PM
hardware/software for new machine captahab CNC Wire Foam Cutter Machines 16 03-19-2007 07:41 AM
CNC tube profiler software/hardware IronDesign General CNC (Mill and Lathe) Control Software (NC) 5 02-17-2007 08:38 AM
Question About CNC And Software/Hardware tarasan Machine Problems, Solutions , Wireless DNC, serial port 4 08-28-2006 08:23 PM




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