Pcmcia parallel card

More
29 Jul 2013 18:52 #37210 by andypugh
Replied by andypugh on topic Pcmcia parallel card

parport 30764 2 ppdev,lp


I think the problem is "lp"

Try rebooting the computer (some of the errors you have printed look to be due to a "crashed" rtai and that can only be recovered by rebooting.
Then:
sudo rmmod ppdev
sudo rmmod lp
Then try running the parport tester on the 0x5020 address.
It might also be worth trying 0x5000

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

More
29 Jul 2013 19:32 #37212 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
Well at last i got a reaction on 0x5020, the Input Pins react on grounding them. Now i was starting emc2.

emc2 is starting, trying to move the motors with reference they wont move. Problems with latency , should start dmesg for more information.

[ 337.163099] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 337.163240] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 337.163245] RTAI[sched]: hard timer type/freq = APIC/8312470(Hz); default timing: periodic; linear timed lists.
[ 337.163249] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1729154000 hz.
[ 337.163252] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 337.163351] RTAI[usi]: enabled.
[ 337.235365] RTAI[math]: loaded.
[ 337.321485] config string '0x5020 out '
[ 357.315603]
[ 357.315606] In recent history there were
[ 357.315607] 1727128, 1725776, 1726504, 1726400, and 1726023
[ 357.315608] elapsed clocks between calls to the motion controller.
[ 357.315613] This time, there were 2417480 which is so anomalously
[ 357.315614] large that it probably signifies a problem with your
[ 357.315615] realtime configuration. For the rest of this run of
[ 357.315616] EMC, this message will be suppressed.
[ 357.315617]

Am i right that the Port is working now but i have other Problems now. :blink:

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

More
29 Jul 2013 19:48 #37214 by andypugh
Replied by andypugh on topic Pcmcia parallel card

Well at last i got a reaction on 0x5020, the Input Pins react on grounding them.

That's good news at least.
You need to "blacllist" lp and ppdev to avoid having to do the rmmod process every time:
Some instructions here: www.linuxcnc.org/index.php/english/forum...nc-not-opening#34675

Now i was starting emc2.

[ 357.315606] In recent history there were
[ 357.315607] 1727128, 1725776, 1726504, 1726400, and 1726023
[ 357.315608] elapsed clocks between calls to the motion controller.
[ 357.315613] This time, there were 2417480 which is so anomalously
[ 357.315614] large that it probably signifies a problem with your
[ 357.315615] realtime configuration.
Am i right that the Port is working now but i have other Problems now. :blink:


After all this effort that is rather disappointing.
There are some things that you can try to solve latency problems on that WIki page that I linked to earlier.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Troubl...ck_dmesg_for_details

Have you run the latency test? (from the CNC menu)? What were the numbers?

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

More
29 Jul 2013 20:26 #37221 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
Max Interval Servo/Base 1486938/545646
Max Jitter Servo/Base 916552/920208

Still raising.

Ive disabled the Audio Card first.

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

More
29 Jul 2013 20:36 #37223 by andypugh
Replied by andypugh on topic Pcmcia parallel card
[quote="unbekannt 0815" post=37221Max Jitter Servo/Base 916552/920208[/quote]

Those are horrible numbers.

As you have a PCMCIA card, I am guessing this is a laptop. Turning off all the power management features in the BIOS might be a good place start.

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

More
29 Jul 2013 21:28 #37227 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I cant configure anything like that in the laptop. It is an Acer Extensa 5220 with 1,7Ghz Celeron.

Is it right that with this latency the motors wont move?

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

More
29 Jul 2013 23:01 #37231 by jmelson
Replied by jmelson on topic Pcmcia parallel card

I cant configure anything like that in the laptop. It is an Acer Extensa 5220 with 1,7Ghz Celeron.

Is it right that with this latency the motors wont move?


No, poor latency will niot prevent the motors from moving, but it may make
their movement jerky. First, make sure you have the hal file loading the
right port address for the parport module. Then, make sure the right
port pins are selected for the step and direction signals. Then, make sure
the pulse width settings are compatible with your motor drives. You
can just make the widths very large to see if you can get movement.
If not, check the voltages on the dir pins while commanding movement
in both directions. The driver may need more current than the port
can deliver, (You check the direction pin as that just stays at one
state continuously, so you are not fooled by short pulses that the
mter won't react to.)

Jon

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

More
29 Jul 2013 23:09 #37233 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I have a config File from a friend who has the same mill. So it should work but i never saw it move.

From the Latency it looks like that are SMI Issues. I was trying it out but now i think i have to move the motors first. :S

So ground the Input Pins shows a reaction but when starting emc with that port adress nothing happens, only emc2 will start.

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

More
29 Jul 2013 23:35 #37236 by andypugh
Replied by andypugh on topic Pcmcia parallel card

So ground the Input Pins shows a reaction but when starting emc with that port adress nothing happens, only emc2 will start.


Do the motors lock when you power up the system, or are they free to turn? This idicates whether the drives are being enabled or not.

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

More
30 Jul 2013 01:53 #37241 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
They lock when i power up the System. The also stutters shortly when booting up. I can use it under Windows with Winpc-nc so the mill is running.

I am really stuck now....no not true...i am stuck the whole time. :whistle:

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

Moderators: PCWjmelson
Time to create page: 0.253 seconds
Powered by Kunena Forum