× Forum Header

2 Parport with step config

More
07 Aug 2012 08:46 #22935 by marcguenel
Hi all,

I have 2 parport cards one on board on in PCI slot.
I run step config and try all adresse i found with lspci -v.
The .hal look ok i have the line loadrt hal_parport cfg="0x378 0xa800 in"
and addf parport.1.read base-thread
addf parport.1.write base-thread

My question:
Can i configure the second parport pin (in and out) in step config ?
if yes did i'm suppose to get extra lines in the page or a second page for the pin config of the second parport.
Right now i can not see any diffrences in the pin page, i can see the same number pin ina nd pin out lines.

Anyone can help?

Thanks

Marco

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

More
07 Aug 2012 09:00 #22938 by ArcEye
Hi

I don't believe that stepconf has a pin allocation page for the second card, largely no doubt because it could be used for anything.

It is quite simple to edit the hal file to add them manually.

The entries for parport.0. will give you examples of the syntax and your second card is addressed as parport.1.

If you are stuck and have specifics of what you are trying to attach we can help you get started.

regards

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

More
07 Aug 2012 09:17 #22939 by marcguenel
All right,
I will have to go further as I was confortable with step config.
I was imagining this second page or lines because in step config we have second and third parport adresse menu.
But thanks for your answer !
I will try to edit my hal config manualy and come back to you if any troubles.
Did you think devolopers can ad extra page for extra parport in step config ?

Regards
Marco

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

More
07 Aug 2012 12:07 #22942 by ArcEye

Did you think devolopers can ad extra page for extra parport in step config ?

As it is, stepconf properly sets up each parport, attaches it to threads etc.

The type of connections on the first parport for a stepper machine can be pretty much guessed and are quite standard
(charge pump, home and limit switches, drive enable, 2 - 4 axes DIR and STEP, estop etc)

However beyond that nothing is standard, encoders for instance could be just Z, Z A B, Z A A- B B-, A B, A A- B B- etc etc

Depending upon what you want to attach on the second parport, there are wiki's and example code for a lot of them,
the others are just plumbing and someone will be able to assist you

regards

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

More
07 Aug 2012 13:19 #22945 by BigJohnT
marcguenel wrote:

Did you think developers can ad extra page for extra parport in step config ?

Regards
Marco


I doubt it because stepconf was intended for dead simple configurations and once you get past the very simple you need to learn what a couple of hal commands are and know what your doing in your hal file anyway.

John

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

More
07 Aug 2012 14:26 #22948 by marcguenel
Many thanks for your useful reply !

I will work on the hal config instead of only with step config.

I'm running 3 axes machines and i was limited by number of inputs
X home and limits
Y home and limits
Z home and limits
e stop
Z Touch

My idea was to use a separate parport for the spindle control in and out.

I go work on the .hal editing...

Thanks again

Regards

Marco

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

More
07 Aug 2012 16:06 - 07 Aug 2012 16:18 #22950 by BigJohnT
I recommend starting by reading this page a couple of times to get up to speed with hal. Programming in hal is one line at a time so once you understand the net command you have 75% under your belt... the rest is just picking the right pins to use.

John
Last edit: 07 Aug 2012 16:18 by BigJohnT.

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

Time to create page: 0.188 seconds
Powered by Kunena Forum