Use of wsum in axis selection for MPG

  • schmidtmotorworks
  • Offline
  • Elite Member
  • Elite Member
More
24 Jul 2016 22:12 #77942 by schmidtmotorworks
Use of wsum in axis selection for MPG was created by schmidtmotorworks
I have a 3 axis setup using the following code to select the axis to be controlled by the MPG
(sorry code editor seems to be broken)
I am working to add a 4th and 5th axis but don't understand how wsum_sizes works.

<code>
loadrt weighted_sum wsum_sizes=5,3
addf process_wsums servo-thread

net axis-select-0 wsum.1.bit.0.in <= hm2_5i23.0.7i64.0.0.digin.09.in
net axis-select-1 wsum.1.bit.1.in <= hm2_5i23.0.7i64.0.0.digin.10.in
net axis-select-2 wsum.1.bit.2.in <= hm2_5i23.0.7i64.0.0.digin.11.in
</code>

I am working to expand to 5 axis.
To set up wsum for 5 axis, do I edit

wsum_sizes=5,3

to

wsum_sizes=5,5

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

  • schmidtmotorworks
  • Offline
  • Elite Member
  • Elite Member
More
25 Jul 2016 01:05 #77955 by schmidtmotorworks
Replied by schmidtmotorworks on topic Use of wsum in axis selection for MPG
Update,

I was able to determine using Hal Meter on axis-selected that it was working OK.

I didn't understand how wsum worked.

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

More
25 Jul 2016 11:51 #77972 by BigJohnT
Replied by BigJohnT on topic Use of wsum in axis selection for MPG
Here is a wsum example sim.
gnipsel.com/linuxcnc/configs/w-sum.zip

JT

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

Time to create page: 0.055 seconds
Powered by Kunena Forum