Trouble receiving inputs over parallel port

More
04 Feb 2019 21:32 #125690 by F4br1c4t3D
Currently, If I put a probe between those pins (sensor input and ground) and close the switch I'm reading a drop from 24V to 0V across the screw terminals. Doesn't seem to trigger the optos though. I'm reading no change on their output and if I probe the pins on the bobs paraport out I'm just getting a constant 4.7V out of pins 11,12, 13... etc

I'll add resistors as described and see if that solves my problem.

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

More
05 Feb 2019 23:00 #125775 by F4br1c4t3D
I tried a range of resistors and no joy.

The input is already being pulled to 0V on the machine side of the optos when an input is triggered.

I don't see any change on the computer side of the optos. Both the collector and emitter pins read 0v when referenced to ground. The paraport pins on the bob that connect the input signals to the computer are always reading 4.7V. They should be being pulled low when the switch is triggered I'd imagine but no.

Starting to think the optocouplers are just borked. Any other clues about the probelm given the symptoms?

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

More
06 Feb 2019 00:26 #125777 by tommylight
Get a short piece of wire and insert it into one of the input pins on the parallel port, touch the other side of the wire to the parallel port shield, it should give you a signal in Linuxcnc when you choose to watch a hal pin. Just make sure you are watching the same pin you are shorting.
If that works, check the BOB. If it does not, change the parallel port card.
The following user(s) said Thank You: F4br1c4t3D

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

More
06 Feb 2019 01:20 #125780 by F4br1c4t3D
Dang! Well I just tried this. Looks like my on board parallel port card and the additional one I've installed are both goosed.

Shorting the input pins to ground didn't result in a signal being received when watching the pins in hal.

Are there any other settings in software, bios or elsewhere that I can check before resorting to new hardware?

Also, it seems unlikely that both these ports were defective, with the same problem of working outputs and broken inputs. I'm guessing I've caused the fault if it is a hardware problem. What could I have done to fry the inputs? So far as I can tell the bob just sinks them to ground when a switch is triggered it doesn't have any way to cause damage to the PC hardware.

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

More
06 Feb 2019 05:17 #125786 by Todd Zuercher
Before you give up on your existing ports. Try shorting one of the output pins to one of the inputs. Then open the parallel port tester in Linuxcnc and press the button to trigger the output you shorted to and see if the input changes. (Assuming you've defined the port address correctly. )
The following user(s) said Thank You: F4br1c4t3D

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

More
06 Feb 2019 08:11 #125789 by Clive S

Also, it seems unlikely that both these ports were defective, with the same problem of working outputs and broken inputs. I'm guessing I've caused the fault if it is a hardware problem. What could I have done to fry the inputs? So far as I can tell the bob just sinks them to ground when a switch is triggered it doesn't have any way to cause damage to the PC hardware.


Just throwing this in. The PP cable is a 25pin cable with all 25 pins connected have you verified that.?
The following user(s) said Thank You: F4br1c4t3D

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

More
06 Feb 2019 09:37 #125790 by F4br1c4t3D
If you re-read my original post, sorry I know it was information dense, I mentioned that I already tried this:

"I tried "piping" this signal back in to one of the input pins to see if it would change it's state when I triggered the output but all pins remain active."

Was just clutching at straws when I tried it but it seemed like a logical enough thing. No change is state of the input pins in paraport tester though.Good to know it's actually a viable diagnostic technique though.

I'm pretty certain I've defined the ports correctly I wouldn't be getting step and dir signals to my motors otherwise, right?

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

More
06 Feb 2019 09:41 #125791 by F4br1c4t3D

Also, it seems unlikely that both these ports were defective, with the same problem of working outputs and broken inputs. I'm guessing I've caused the fault if it is a hardware problem. What could I have done to fry the inputs? So far as I can tell the bob just sinks them to ground when a switch is triggered it doesn't have any way to cause damage to the PC hardware.


Just throwing this in. The PP cable is a 25pin cable with all 25 pins connected have you verified that.?


Now that's something I've not checked. Just assumed that the cable would be wired 1-1 2-2 etc and all pins would be connected. Are there cables out there that don't have all 25 pins connected to their corresponding pins on the other side of the cable?

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

More
06 Feb 2019 10:05 #125795 by Clive S


Just throwing this in. The PP cable is a 25pin cable with all 25 pins connected have you verified that.?


Are there cables out there that don't have all 25 pins connected to their corresponding pins on the other side of the cable?


Yes there are.

The following user(s) said Thank You: F4br1c4t3D

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

More
06 Feb 2019 13:32 #125804 by tommylight


Just throwing this in. The PP cable is a 25pin cable with all 25 pins connected have you verified that.?


Are there cables out there that don't have all 25 pins connected to their corresponding pins on the other side of the cable?


Yes there are.

I have one ( a high quality one, mind you) that has only 8 wires plus shielding, and they are wired as 4 and 4 crossed over on the DATA pins. Used for high speed data transfer 20 something years ago, using a DOS software named "FX".
Back on topic,
In BIOS set it to EPP or ECP, in the ini file after the port address add "out" and check it again. Add "in" and check the pins 2 to 9 as inputs, but most probably it will work.
You can also try "X" instead of IN or OUT, that should give you 4 more inputs on pins 1,14,16,17, if i remember correctly.
Above is valid only for the built in port, some add on PCI cards do not support changing the mode, but some do support it, i know all the ones i have with the NETMOS chip do.

The following user(s) said Thank You: F4br1c4t3D

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

Time to create page: 0.081 seconds
Powered by Kunena Forum