Linear Encoder Position Feedback 6i25 - How To Set Up and Connect in LInux?!

More
15 Jan 2018 13:27 #104499 by Chriscore
Hi Guys!

I ve got an 3 axis cnc mill.

i have the following questions:
I want to use my internal connector on my mesa 6i25 for A/B 5v ttl Linear Scales for each axis.
So i need to flash the card and set it up in the hal files - thats what i know.
i also have a direction /pulse

I was looking for info at the linux wiki... youtube tutorials and everything else but i cant find the info what i have to add / load and the connect.

i even cannot find any commands which are imprtant to "activate" the linear feedback mode.... i always just find ".. set stepgen to 1.. velocity mode..." there is no complete how to even if i type in how to set up PID in linux.



I often saw that its workin by somebody.

so if i would have the most important things i could finish...

thank u very much

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

More
15 Jan 2018 17:54 #104502 by PCW
If you have a pncconf created config, its basically replacing the feedback source from the stepgen with feedback from the
encoder, you must set the encoder and stepgen scale so they match ( proper number of counts per machine unit for both )
The PID tuning will also need to be changed

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

More
15 Jan 2018 18:27 #104503 by Chriscore
thx for reply, thats what i want to here :)

but how does the syntax look like? there has to be a standard or not? how to write the lines and how the signals get connected... is there no library or something ?? i need to look up the commands too.

regards chris

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

More
15 Jan 2018 19:19 #104508 by PCW
There is a hal tutorial here:

linuxcnc.org/docs/html/hal/tutorial.html

For what you are doing I would look at the connecting pins with signals section:

linuxcnc.org/docs/html/hal/tutorial.html...ng_pins_with_signals

Note that pin names are determined by the components and hardware drivers (so typically fixed and unchanging)
but signal names are arbitrary and typically chosen to represent their function to make reading the hal file easier
The following user(s) said Thank You: Chriscore

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

More
16 Jan 2018 06:02 #104540 by Chriscore

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

Moderators: cmorley
Time to create page: 0.063 seconds
Powered by Kunena Forum