Linuxcnc not seeing limit switches

More
11 years 4 months ago #60301 by LearningLinuxCNC
I agree with Chris. The first thing to check is if the HAL pin for the input changes when the switch is manually tripped.

If the HAL pin changes when the switch is manually tripped, then start looking for configuration issues.

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

More
11 years 4 months ago #60302 by TarHeelTom
I haven't changed anything in the ini files

BUT

I've had hard drives crash on two different computers at the same time. I THOUGHT that I had stored the working ini files on a thumb drive, but there's no way to verifiy that.

Looks like I need to get my pipe and my Sherlock Holmes hat out and do lots of sleuthing.

Thanks

Tom

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

More
10 years 10 months ago #66774 by TarHeelTom
It occurs to me that not only have I changed the hard drives and motherboard (old rig was IDE, new is SATA) but I've also changed the parallel port card.

Ran the lspci utility, but I'm not able to identify the port addresses. This appears to be the applicable section, but I could be wrong...

04:00.0 Memory controller: NetMos Technology PCI 1 port parallel adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0010
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
Interrupt: pin A routed to IRQ 17
Region 0: I/O ports at 1010
Region 1: I/O ports at 1018
Region 2: I/O ports at 1020
Region 3: I/O ports at 1028
Region 4: I/O ports at 1030
Region 5: I/O ports at 1000
Kernel modules: parport_pc

Attached is the complete file.

File Attachment:

File Name: lspci-vv.txt
File Size:8.59 KB

Can someone help me decipher the actual port addresses for both parallel ports?

Thanks

Tom

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

More
10 years 10 months ago #66775 by tommylight
Net mos usually have the third memory bank assigned to parallel port, have plenty of them in use and all have the third.
In your case the 1020 so you will have to add that in your stepconfig or hal file.
Regards,
Tom

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

More
10 years 10 months ago #66778 by TarHeelTom
Will that get both parports?

Tom

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

More
10 years 10 months ago #66854 by tommylight
Oh you have the 2 paraport card !! how many serial ports and headers ? Picture of the card ?
Or you have to do a bit of testing to figure out the second address.
Make a test config with stepconf wizards, open the hal file and change the parport address to one you got from sudo lspci -v, save and start that config. If you get the error of "device is bussy" restart the computer before trying another address, anything after a bussy device will not work without a reboot on those cards.
To be sure, get an LED light from a toy or lighter or torch and stick one of the pins in the 2 or third output on paraport and the other pin to the screw or shielding of the paraport and IF the axis starts, press the left-right arrow keys on keyboard, If you get nothing, reverse the wires on the LED and try again.
You should get a little light on pin 2 and fully lit on pin3 when you press one direction and no light on pin3 when pressing the other direction.
Regards,
Tom

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

Time to create page: 0.062 seconds
Powered by Kunena Forum