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 10-24-2011, 08:46 AM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road
Need help with manual pulse generator

I have a plug-in pendant:

CNC4PC

This is the board that connects it to the2nd parallel port:

CNC4PC

The problem is, it will only jog in one direction.

When it is turned clockwise, the machine will go in the -neg direction.

When turned CCW, nothing??

I have traced down the wire and they appear to be on the correct pins.

How do you test an MPG?

If it pulses clockwise, shouldn't CCW be ok also?

Does it require A & B both to pulse?


Thanks for the help,

JAckal
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

  #2   Ban this user!
Old 10-24-2011, 08:50 AM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

A and B are required to determine direction of rotation. If A is logic high when B goes high, it is going one direction. When A is logic low when B goes high, it is going the other direction. You need both connected. To troubleshoot, you could swap the A and B wires where they connect to the board. If its still clockwise only, your software or board probably has an issue. If it will only go CCW, then the encoder probably has a problem.

Matt
Reply With Quote

  #3  
Old 10-24-2011, 09:30 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

The symptom is what you would expect with one channel missing, most MPG's use a 100p/rev quadrature encoder as a source, and has been said, you need both A & B.
to count up and down.
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

  #4   Ban this user!
Old 10-24-2011, 11:09 AM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road

Thanks Keebler & Al.


I reversed the wires A&B on the back of the Hedds Encoder (handwheel).

It still only jogs in the -neg direction, but with a CCW rotation of handwheel.

JAckal
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

  #5  
Old 10-24-2011, 11:26 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

You can use a meter from common to each A & B output and if you turn VERY slowly while monitoring the A pulse, as soon as it goes high, check the B it should always be low in one direction and always high in the opposite dir, whenever the A transitions to +5v.
Easier with a 'scope though.
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

Sponsored Links
  #6   Ban this user!
Old 10-24-2011, 04:50 PM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road

Al,

I tried checking itwith a meter. When the (A) side is at 4.87 volts+, the (B) is at 0.08 volts or 2.87v max.

It was real tricky to hold the (A) at the certain click where it would stay at high side.

Something that I did notice in the Mach diagnostics page:

Click image for larger version

Name:	Mach diagnostic   leds.JPG
Views:	12
Size:	12.7 KB
ID:	144659

The (2) LEDs that are circled, were flickering.

It was like a Morse-code or something. They would go back and forth making long or short flashes while the hand-wheel was being turned.

They did this in both dir. of the hand-wheel.


Thanks,

JAckal
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

  #7  
Old 10-24-2011, 06:13 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

They should both transition from 0v to +5v, or close, these are not open collector outputs by any chance?
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

  #8   Ban this user!
Old 10-24-2011, 07:00 PM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road

Al,

I'm not sure. I don't really know enough to say either way.

Here is the technical data for the encoder in the pendant:

Click image for larger version

Name:	MPG  specs.jpg
Views:	17
Size:	91.6 KB
ID:	144669


Hope that helps.

If not, maybe Arturo at CNC4PC can give me more info.

Thanks,

Jack
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

  #9   Ban this user!
Old 10-24-2011, 09:00 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

This is what the encoder should output: http://upload.wikimedia.org/wikipedi...re_Diagram.svg The flickering LED's should also blink in this pattern. If they are not, the voltage level you are seeing may not be sufficient. It appears that your encoder has a line driver output rather than an open collector output. That is good for you. You could also try to disconnect the A and B wires and measure the voltages without anything connected to them. You could further emulate the encoder action by jumpering the B signal to either the common or the 5v encoder supply and pulsing the A input by rapidly connecting and disconnecting it from the 5v supply. It should make the axis move one direction when B is held low and the other when B is held high.

Matt

Last edited by keebler303; 10-24-2011 at 09:03 PM. Reason: Forgot the quadrature example
Reply With Quote

  #10   Ban this user!
Old 10-25-2011, 01:29 PM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road

Keebler,

I am getting pretty much the same pattern in clockwise to CCW direction.

Cw is:

left
left
left then >right on same click
right
right
both
right right
none

Ccw is the same pattern, with a couple of differences.

I am going to reload my brains in Mach3, for about the 5th or 6th time.

All of the sites keep saying to do that as many times as it takes.

I'll keep everyone posted,

Thanks for everyone's help,

JAckal
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-25-2011, 01:38 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

I realize now my link was not good. This is what I meant: File:Quadrature Diagram.svg - Wikipedia, the free encyclopedia

So your pattern should be:

right
both
left
none
right
both
left
none

and the other way:

left
both
right
none
left
both
right
none
Reply With Quote

  #12   Ban this user!
Old 10-25-2011, 02:28 PM
 
Join Date: Sep 2006
Location: US
Posts: 285
Jackal66 is on a distinguished road

After jumping the wires manually ( momentary short pulses) it still only works in one direction. (With "B" at both neg- and at 5+pos)

I'll check the LED pattern again, compared to the sample you gave me.

Does the 5 volts have to be exactly 5?

The voltage reading was 4.82 to 4.89.

Does the parallel port need to be EPP or SPP?

Mach was communicating perfectly through this parallel port.

Could it be the c-22 interface board is bad?

Next, I will connect the MPG directly to the parallel-port and get 5 volts to it.

Any other ideas are welcome.

Thanks a lot,

Jack
__________________
Everything is bio-degradable, if you run over it enough times with the lawnmower.
Reply With Quote

Reply




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
Need Help!- Tickle Pulse Generator. Tweakie Laser Engraving & Cutting Machines 6 09-05-2010 12:37 PM
Manual Pulse Generator for K2CNC Mike Stevenson K2CNC 6 09-03-2009 03:23 PM
Need Help!- Manual Pulse Generator widgitmaster General Electronics Discussion 29 06-12-2008 08:31 PM
Adding a manual pulse generator to my home CNC glentner General Electronics Discussion 1 10-01-2007 09:30 AM
Manual Pulse generator? phantomcow2 General Electronics Discussion 10 07-23-2006 10:10 PM




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