Hello Guest it is May 23, 2019, 05:26:38 AM

Author Topic: Pin Test  (Read 2899 times)

0 Members and 1 Guest are viewing this topic.

Pin Test
« on: September 04, 2016, 11:57:56 PM »
Hi group, had a quick clarification.  I'm trying to set up my Mini CNC and was checking the voltage on my 25 pin port in back of my computer.  According to what I have read so far I should be able to read apx 5 volts when pressing the arrow keys.  I just tested my top row 1-13 right to left and all are reading 5+ volts without touching any arrows.  Any ideas?

A quick addition, my bottom row 14-25 left to right is reading pin 14-22 is reading 00 and pins 23-25 read 5+ volts with no arrows pressed.


Thanks Wayne
« Last Edit: September 05, 2016, 12:04:31 AM by wadeanres »

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Pin Test
« Reply #1 on: September 05, 2016, 01:24:49 AM »
Welcome to the forum.

Something is not quite right there as pins 18 to 25 are defined as signal GND so I think they should all be at the same potential (they are all at the same potential on my PC but perhaps some PC's are different ?).

Please see section 4 of the Mach3 manual http://www.machsupport.com/help-learning/product-manuals/

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Pin Test
« Reply #2 on: September 05, 2016, 11:46:32 AM »
Thanks for your reply,  I have read the manualseveral times and that is why I think something is not right but not sure what.  The download went well my test run with the Road Runner
G-Code went well.  When I test my arrow keys my axis move in the program.  However I'm not getting movement on my stepper motors.  So I tested my port pins in the back of my computer.  As I said my entire top row 1-13 are hot with 5V my bottom pins are 25-16 are 00 and pins 17-14 are 5V (I had the bottom row info reversed in my first post.)
So see if I understood,  pins 1-9 are output, pins 2-7 are XYZ outputs these should only have voltage when the corresponding arrows are pressed.  Pins 10-13 are input, The input should read 00 since there are no signals being sent from the cnc board back to the computer.  My 10 pin is my E-Stop.  Pins 25-18 are common and should read 00. 17-16 are output 15 input and 14 output.  Am I correct ??

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Pin Test
« Reply #3 on: September 05, 2016, 12:17:11 PM »
You are correct regarding which pins are inputs, outputs and GND.

However, I don't think that all unconnected input and output pins will automatically be at 0 volts.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Pin Test
« Reply #4 on: September 05, 2016, 12:49:56 PM »
From what I have read and viewed on the tutorials  there should be a 00-5v difference in a pin when the + and -  arrows are pressed.  for example pin 2 and 3 are the X Axis pins.  when pressing  the +X arrow testing  pin 2 you should read 5v.  When you push the -X arrow pin 2 should now read 00.  I have a constant 5V. 

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Pin Test
« Reply #5 on: September 06, 2016, 01:30:14 AM »
If you have set up Mach3 so that pin 2 is the X axis Direction pin and you have set the Step port to 1 & Direction port to 1 then yes the pin voltage should toggle between TTL high and TTL low (measured between pin 2 and pin 25) when pressing the left and right arrow keys - provided; the X axis direction pin is enabled, Jog on/off is enabled, the X axis DRO changes value (increase/decrease) and that the correct address has been entered for Port #1 also that it has been enabled.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Pin Test
« Reply #6 on: September 07, 2016, 03:38:59 AM »
Hi wadeanres,
are you using a breakout board?

Directly probing D connectors is a good way of making problems rather than solving
them. Often the smallest of slips and two adjacent pins are shorted together any very
tender TTL circuits wont survive.

The breakout boards I use have an LED for each I/O and make diagnosing faults SO
much easier. Not all BOB's have them but most do. Worth every cent!

Craig
My wife left with my best friend...
     and I miss him!
Re: Pin Test
« Reply #7 on: September 07, 2016, 06:49:46 PM »
I'm isolating my pins by inserting a paper clip into the individual pin holes on the Db25port in the back of my comp.   My card is fine my drivers checkout.  I have a BOB and power source isolated inside a metal CNC control box.  Since I'm not even hooked up to the BOB none of that is an issue.  I can't get any reading off any pins .  I have 5v on pins 1-13 but can not get a change on any of them when testing my X Dir Pin.  I've tried setting each pin to my X Dir Pin setting.  None have given me any change in voltage.  I understand my step pins won't give me any readings because I'm not using an oscilloscope but my Dir pins should have a voltage reading and show a 00v reading when pressing the - arrow to that axis.  I'm working with  Mach support to see what I can try.

Offline olf20

*
  •  317 317
    • View Profile
Re: Pin Test
« Reply #8 on: September 07, 2016, 06:56:51 PM »
Do you have Mach3 running? Just a thought.
If the parallel port driver is not running you will not
get any expected response.
olf20 / Bob
Mach3, Atlas Knee Mill, 4th Axis, VcarvePro, ESS, Super PID.
Been Heating with corn since 1998
Re: Pin Test
« Reply #9 on: September 07, 2016, 07:09:58 PM »
I've tested my drivers, drivers are good,  my port settings are set to port 2 and my I/O is 800. Port 1 has been disabled and port 2 is enabled.  My Mach3 program is fine, pins 1-13 have 5v so I'm getting current out of my Db25 port in the back of my comp.