5i25 + 7i85s +....

More
9 years 10 months ago - 9 years 10 months ago #84690 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
Shouldn´t it be:
hm2_5i25.7i85s.encoder.01.position
instead of:
hm2_5i25.0.encoder.01.position?

No, theres no daughtercard name in the hostmot2 pin/parameter names except for sserial devices

For motion pins, you can read the motion man page:

man motion

For available Hostmot2 pins/parameters with you current hardware/firmware you can show them all with

halrun -I
halcmd: loadrt hostmot2
halcmd: loadrt hm2_pci
halcmd: show pin
halcmd show param
Last edit: 9 years 10 months ago by PCW.
The following user(s) said Thank You: Emanresu

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

More
9 years 10 months ago #84692 by Emanresu
Replied by Emanresu on topic 5i25 + 7i85s +....
Thx again, i really appreciate it!


Yep, i remember that from about two days ago. But it just gave me more questions.

In my firmware, i have 3 Step/Dir, 1 PWM, 4 Encoder.

Warning: Spoiler!


By "show pin show param" i still see 4 Step/Dir

Warning: Spoiler!


Well, lets make my Spoilers complete....

HAL - File
Warning: Spoiler!


Im just afraid to make a helping hand bugged with that many text to rawl through...
It has Time!

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

More
9 years 10 months ago #84780 by Emanresu
Replied by Emanresu on topic 5i25 + 7i85s +....
I got it!
Feels so good to see after being blind! I blame the X-mas trouble.... ;)

For some Reason i figured out "axis" as the "real world axis" not as the user interface.
And all my following confusion based on it....

Well then... just two more Question:

Whats the difference between hm2_5i25.0.stepgen.XX.position-fb and hm2_5i25.0.encoder.XX.position?

hm2_5i25.0.stepgen.XX.position-fb = "Hello im hm2_5i25, I sent my steps, so the axis should be at..." ?
hm2_5i25.0.encoder.XX.position = "Hello im hm2_5i25, Im counting the encoder and this is my result" ?

Where exactly does the PID "operate" ? Axis or FPGA

I guess axis. Otherwise you wont need to send hm2_5i25.0.encoder.XX.position to axis.X.motor-pos-fb by X-pos-fb right?

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

More
9 years 10 months ago #84781 by PCW
Replied by PCW on topic 5i25 + 7i85s +....

Whats the difference between hm2_5i25.0.stepgen.XX.position-fb and hm2_5i25.0.encoder.XX.position?


One is the local feedback from the stepgen the other is external position feedback from an encoder, they are used similarly


hm2_5i25.0.stepgen.XX.position-fb = Here's where the stepgen position is currently, use PID to check against the commanded position and adjust course as needed by adjusting the velocity

hm2_5i25.0.encoder.XX.position = Here's where the encoder position is currently, use PID to check against the commanded position and adjust course as needed by adjusting the velocity

Where exactly does the PID "operate" ? Axis or FPGA

I guess axis. Otherwise you wont need to send hm2_5i25.0.encoder.XX.position to axis.X.motor-pos-fb by X-pos-fb right?


Yes, the PID component performs the PID calculations every servo thread invocation in LinuxCNC
The following user(s) said Thank You: Emanresu

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

More
9 years 10 months ago #84782 by Emanresu
Replied by Emanresu on topic 5i25 + 7i85s +....
Check!

Hm,... so the most important controlling circuit happens Software based. Good to know!

And sorry, but i found something more....

Where is the "go to" Signal from Axis to 5i25?

I see:
net X-pos-cmd <= axis.2.motor-pos-cmd
net X-vel-cmd <= axis.2.joint-vel-cmd

But there is nothing like:
net z-pos-cmd => hm2_5i25.0.stepgen.XX.positon
net z-vel-cmd => hm2_5i25.0.stepgen.XX.velocity

Also there are more open links leading to nowhere. (as far as i notice) Like:

net z-vel-fb <= hm2_5i25.0.encoder.XX.velocity

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

More
9 years 10 months ago #84784 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
net z-pos-cmd => hm2_5i25.0.stepgen.XX.position is possible using the built in position mode of the
stepgen, it just not quite as robust as the PID mode so pncconf uses the PID mode

In the PID stepgen control mode the equivalent of net z-vel-cmd => hm2_5i25.0.stepgen.XX.velocity
happens automatically due the the FF1 term
The following user(s) said Thank You: Emanresu

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

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