No Input Signals

More
21 Oct 2015 01:44 - 21 Oct 2015 03:29 #64013 by alfongs
No Input Signals was created by alfongs
Hello @all,
I'm new to this forum and recently began building my own cnc-mill. I have a PC connected to a quality chinese breakoutboard (the 5-axis controller things which are to find on various sites). The motor setup works like a charm through stepconf wizard but the input signals seem to be missing. I have inductivity sensors set-up as limit switches and home switches. Because there is a power requirement for these inductivity switches I connected them to a power supply with 24 VDC. I have a common ground with power supply (-24V) and breakout board. The ground is shared with inductivity switches. As I thought there would be a potential of 24V between open switch pin and ground on the break out board. But nothing happens. Now I've already looked for that specific problem and found a promising solution mentioned here: linuxcnc.org/index.php/english/forum/18-...rport?start=10#58885
. My question: Is it safe to do this wiring to +5VDC computer power if I'm a) powering the board with the USB port and b) have a 24V potential between the input pins and gnd? Should I alter resistance values or solder as seen in mentioned picture?

The inductivity sensors definitely work (I troubleshot them) and also the analogous emergency kill switch (Connecting gnd with pin 10) does not work in any way.

Thank you very much in advance


~Alfongs :silly:

Edit: I hope this fits in here because the issue is concerning the parallel port. if not please move this thread to the corresponding subforum.
Last edit: 21 Oct 2015 03:29 by alfongs. Reason: added some info for clarification

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 08:28 #64029 by PCW
Replied by PCW on topic No Input Signals
A key question here is:

Are your Proximity switches NPN or PNP type?

On NPN types the output is a switch to ground so inputs need a pullup (this can be to 5V if the inputs only take 5V maximum)

On PNP types the output is a switch to V+ (24V in your case) so inputs need a pulldown and need to accept a 24V input without damage

The pullups added to the breakout board you referenced are on the parallel port side, not the machine side of the breakout
The following user(s) said Thank You: alfongs

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 14:44 #64032 by alfongs
Replied by alfongs on topic No Input Signals
They are NPN proximity switches, so I'm going for the solution mentioned above. In Wikipedia a maximum of 5V is rated for parallel port, so I'm connecting it to the 5v computer power. Thank you very much, I'm heading to the store to buy me some resistance B)

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 17:47 - 21 Oct 2015 17:48 #64045 by alfongs
Replied by alfongs on topic No Input Signals
Well, I've soldered and connected all, but same error appears. Also the manual emergency kill switch is not registered in any way. I also tried to invert input signals (in stepconf manager) but this results only in shutting the cnc permanently off (I have to disable the emergency switch for this, but when turning on with inverted signals, the program says : "Error: Joint 0 / 1 / 2 at limit") or on. I also watched the input pins in the HAL window, and nothing changed or changes...


I don't know what could be wrong with this, but maybe my installation is faulty? I downloaded the ISO image with a debian OS on it. I've heard there is also a Ubuntu version of this system. Maybe it will suffice to install a new OS?
Last edit: 21 Oct 2015 17:48 by alfongs.

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 18:09 #64046 by ArcEye
Replied by ArcEye on topic No Input Signals

I have a PC connected to a quality chinese breakoutboard (the 5-axis controller things which are to find on various sites).


Something of a contradiction in terms, 'quality' and 'Chinese'. Is it a BOB or actually a TB6600 type driver?

Without knowing what it is, very hard to assist.

I don't know what could be wrong with this, but maybe my installation is faulty? I downloaded the ISO image with a debian OS on it. I've heard there is also a Ubuntu version of this system. Maybe it will suffice to install a new OS?


If that were the case, no one using the Wheezy image would be able to get it to work.

If you have not already blown everything by connecting 24v to 5v (or even 3.3v) TTL circuits, the problem will be your wiring or your BOB or the connections between.

Please attach your ini and hal files and tell us what you are connecting to.

regards

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 18:36 - 21 Oct 2015 18:38 #64047 by alfongs
Replied by alfongs on topic No Input Signals
I have the same BOB (as far as I can tell, knowing there may be a difference because it is probably from a different producer) as the one in linked topic. The "quality" is a joke ;) . I have this bob attached to 3 motor-drivers.

I also got a wiring diagram (see attachment).

Where do I find my .ini and .hal files?

The proximity switches are NPN NO
Attachments:
Last edit: 21 Oct 2015 18:38 by alfongs.

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 20:53 #64058 by andypugh
Replied by andypugh on topic No Input Signals

They are NPN proximity switches, so I'm going for the solution mentioned above.


It isn't entirely clear what you have done, but the Proximity switches are likely to need 24V (or at least 12V) to work.

So, you wire 24V to the Prox V+, wire the Prox 0V to the common BoB and 24V gnd. (no way to keep separate GND with this setup) then wire the prox output to the BoB input terminal.
You then need a connection (1k or so) from the BoB input terminal to +5V.

Rather than have the complexity of LinuxCNC to confuse matters, get the inputs working with the parallel port tester first:

wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester
The following user(s) said Thank You: alfongs

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 21:02 - 21 Oct 2015 21:05 #64061 by alfongs
Replied by alfongs on topic No Input Signals

It isn't entirely clear what you have done


Maybe the drawing is unclear, I try to explain. The switches next to the pins (10-15) are except from the emergency switch just a placeholder (due to limited space on this drawing). The real cabling is shown below (with the caption Proximity sensor).

It isn't entirely clear what you have done, but the Proximity switches are likely to need 24V (or at least 12V) to work.

They have a range from 6V-36V. I'm downloading this tester and then hope to see the problem.

no way to keep separate GND with this setup


yes, my intention is to have one common gnd for all. :cheer:
Last edit: 21 Oct 2015 21:05 by alfongs.

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 22:01 #64065 by ArcEye
Replied by ArcEye on topic No Input Signals

Where do I find my .ini and .hal files?


/home/<user-name>/linuxcnc/configs/<config-name>
The following user(s) said Thank You: alfongs

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 22:15 - 21 Oct 2015 22:16 #64070 by alfongs
Replied by alfongs on topic No Input Signals
Thanks to the paraport debug programme, problems with linuxcnc or my mobo paraport can be excluded.

: Still no Input signals, so I used a wire and connected pin 25 (gnd) sequentially with the input pins 10, 11, 12, 13, 15. And voila, it shows up in the programme!

That means something of my wiring is bad or the bob is not okay.

I also connected the pc gnd to the 24V power supply gnd.

See attachment for most recent version of my connections
Attachments:
Last edit: 21 Oct 2015 22:16 by alfongs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum