× Forum Header

Please help, I need some addvise

More
29 Apr 2013 17:39 #33376 by ArcEye

I'm curious, why is there no command for step pule generation step type in your file and I have one in mine?


I just posted a relevant snippet from the file.
If you mean addf stepgen.make-pulses base-thread there is a command, but it is not in the same place as yours because my file was not generated by stepconf.

Quick question, on the “Port Tester”, When I click and hold the button on the out puts the colour changes, but returns to red when I release the mouse button.
Is this the result we are looking for? Or should it remain green after release?


First you have to edit the ptest.hal file to ensure that the parport specified is the address you are testing

When you click on an out pin button, the change in led colour indicates that the relevant pin is now set as TRUE
This means if you test that pin with a voltmeter between it and the ground pins (18-25), it should show close to 5v or 3.3v depending on the port type
The led will change colour irrespective of whether that pin exists or not in reality, so you need to test voltage.

You could do exactly the same with the commandline in the Show window of Hal Configuration, with setp parport.0.pin-14-out true for example,
but the tester can be easier so long as you have crocodile clip probes or 6 hands :laugh:
If you test a couple of out pins and they show voltage when clicked on and none when released, you have identified the port address

Just be sure you are testing the pin you think you are

This link has a clear picture of pin nos
www.pstnet.com/support/kb.asp?TopicID=1320

regards

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

More
30 Apr 2013 07:03 #33418 by allenwg2005
What dose it mean when I hook up an analog volt meter to a LPT port cable and I get:
10v on pin 1-9, 2v on 10-13,
10v on 14, 2v on 15, 10v on 16,
and I haven't even got JT's test meter running yet?

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

More
30 Apr 2013 07:11 #33419 by andypugh

What dose it mean when I hook up an analog volt meter to a LPT port cable and I get:
10v on pin 1-9, 2v on 10-13,
10v on 14, 2v on 15, 10v on 16,
and I haven't even got JT's test meter running yet?


It means that your meter is broken :-)

The pattern you are seeing is consistent with the parallel port pinout, you are seeing 10V on the ouptputs and 2V on the inputs.

However, there shouldn't be any voltage higher than 5V on any of the pins. Perhaps you are reading the wrong scale?

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

More
30 Apr 2013 15:03 #33427 by ArcEye
If it is an analogue meter, the adjustment screw for the dial could be turned way across
Or it could have been dropped at some point

Stick it on a good dry cell battery and adjust the dial accordingly.
It does not really matter if it is completely accurate as long as it shows 0 when there is nothing there and a consistant voltage reading when there is.

The port is in an unknown state until hal_parport has taken control of it, you can't tell anything until you run the port tester on the correct port and test the appropriate D25 socket

regards

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

More
01 May 2013 06:31 #33470 by allenwg2005
OK, I dug out a digital meter, the analog meter was only purchased slightly before my first son was bore, and he is now 34.
What was I thinking! :S

I pulled the cables for all three ports out were I could check all of them.
I had the voltage mentioned last time on two, and a dead stick on the one I fried earlier.
I moved the cable from the cooked one to the LPT on the mother board, shazzam, I got the following readings
off of that port:
4.6v on pins 2-9 when toggled by the tester.
I was looking for the voltage limits I know I saw somewhere in the course of all this, I can't recall the document they were in. Are these within limits or not?
Seems like 2v was all you could have. Given this is the integrated board it's no surprise if not.

So, what do I change in order to test the other ports again?

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

More
01 May 2013 12:54 - 01 May 2013 22:54 #33476 by ArcEye

4.6v on pins 2-9 when toggled by the tester.
I was looking for the voltage limits I know I saw somewhere in the course of all this, I can't recall the document they were in. Are these within limits or not?
Seems like 2v was all you could have. Given this is the integrated board it's no surprise if not.

ArcEye wrote:
......if you test that pin with a voltmeter between it and the ground pins (18-25), it should show close to 5v or 3.3v depending on the port type


You have probably been reading about TTL threshold voltages, < 0.8V = L, 2.0V > = H , MAX = 5V+/- 10%

So, what do I change in order to test the other ports again?


ArcEye wrote:
First you have to edit the ptest.hal file to ensure that the parport specified is the address you are testing

Last edit: 01 May 2013 22:54 by ArcEye.

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

More
02 May 2013 00:11 #33498 by allenwg2005
Arceye,

I have to make a confession.
I have had to turn my full attention back to generating a living at my work bench.
I will not be able to give this the focus I have been, and probably should be to get it going.
Not that my focus was helping all that much!
I'll need specific instruction if that's possible, as I am way to distracted to rely on my memory.
Without taking the time to learn the language you're speaking (Unix-linux/Linuxcnc/Hal) I am flying blind and relying on what I'm told to do.
I realize this isn’t fair to you but I would like to get this going without taking the time to learn all this.
So the questions are going to get even more redundant than earlier. Apologies.

What changes do I need to make to “ptestx” to go forward?

I've tried a couple things and the change is the mother board LPT port no longer reads voltage and the other ports have the voltage I mentioned before, nothing else.

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

More
02 May 2013 02:09 #33501 by Todd Zuercher
The second line in the file ptestx.hal is:
loadrt hal_parport cfg="0x378 X"
the 0x378 is the port address that is being tested.
Change that to the address number that you want to test.
If the address you want to test is 8000, you would make that line read
loadrt hal_parport cfg="0x8000 X"
(I might be wrong about the 0x part, it could also be 08000 or just 8000)

I think I've been told that trying to use a port that is incompatible with X-mode could fry it.
(part of the reason for using a resistor to test with)
As easily as wires can be moved from one pin to the next on your breakout boards, I think it would be advisable to give up trying to use the X-mode, and just use the ordinary out setting for your ports, You can down load a test program for that here:
www.linuxcnc.org/index.php/english/forum...parallel-port-tester
Down load ptest.zip and extract and run just like the ptestx.zip
Then like I mentioned earlier in this thread just move the wires from the screw terminals 1,14,16,17 to 10,11,12,13. This should then work with any lpt port, (once you know its address).
The following user(s) said Thank You: allenwg2005

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

More
02 May 2013 02:16 #33502 by andypugh

the 0x378 is the port address that is being tested.
Change that to the address number that you want to test.
If the address you want to test is 8000, you would make that line read
loadrt hal_parport cfg="0x8000 X"
(I might be wrong about the 0x part, it could also be 08000 or just 8000).


0x means the number is in hex. If you see any ABCDEF digits in any of the other numbers you can be confident that the computer is using hex, and so you need to use 0x at the beginning
Slightly more confusing, 08000 would probably be interpreted as octal. Except that you can't have an "8" in octal.
8000 would be a decimal number.
The following user(s) said Thank You: Todd Zuercher, allenwg2005

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

More
02 May 2013 03:58 #33505 by allenwg2005
Thanks Andy, this was one of the concerns I had, very very helpful.

Todd, I was rereading this thread yesterday and saw the post you mention, I had the thought why didn't I pursue this? It's the kind of thing I can get a hold of (it's more physical in nature) and make work.

I think the “Step Configuration Wizard” didn't allow me to set the pin functions I needed.
At that point I figured I needed to alter the pin functions.
I am going to revisit this tonight, Thanks to Arceye's help I see a little more clearly how these port assignments work
in the wizard.

First I will change the addresses to see what I get.

I think if I was going to toast the LPT port on the Mboard it would have gone crisspy by now.
The "ptestx.hal" currently reads- loadrt hal_parport cfg="0x378 X", so it must be in Xmod.

Thanks to you both.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum