Hardinge turret encoder with wsum: 'Wsum.0.bit.0.in' does not exist
07 Jul 2017 19:57 - 07 Jul 2017 20:07 #95481
by Vitran
I am following along some tutorials and notes online about how to control a Hardinge Superslant turret in LinuxCNC.
As is, the code for my pins is the following I have some code in the HAL file that is the following:
What I am planning on doing is compare the result, raise the turret, rotate the turret, lower. I received the above turret code and have only modified it to my inputs. I receive a "'Wsum.0.bit.0.in' does not exist" in the debug. What am I doing wrong?
As well, does anyone else have code that could help? This is a Hardinge Superslant 3 axis with a 8 turret head and a 8 turret tailstock. I am floundering on this and progress is slow.
EDIT: This is in Custom.hal. Should this code be in Postgui.hal? When should code be in Custom vs Postgui? I have code to open and close the collet in custom.hal that I have been testing and running.
As is, the code for my pins is the following I have some code in the HAL file that is the following:
################
# Decode for turrets
################
# Tool 1 2 3 4 5 6 7 8
# BitD 0 0 0 0 0 0 0 1
# BitC 0 0 0 1 1 1 1 0
# BitB 0 1 1 0 0 1 1 0
# BitA 1 0 1 0 1 0 1 0
################
net t1-bit-0 wsum.0.bit.0.in <= hm2_5i25.0.7i64.0.2.input-19_not
net t1-bit-1 wsum.0.bit.1.in <= hm2_5i25.0.7i64.0.2.input-20_not
net t1-bit-2 wsum.0.bit.2.in <= hm2_5i25.0.7i64.0.2.input-21_not
net t1-bit-3 wsum.0.bit.3.in <= hm2_5i25.0.7i64.0.2.input-22_not
net turret1-num wsum.0.sum => classicladder.0.s32in-02
What I am planning on doing is compare the result, raise the turret, rotate the turret, lower. I received the above turret code and have only modified it to my inputs. I receive a "'Wsum.0.bit.0.in' does not exist" in the debug. What am I doing wrong?
As well, does anyone else have code that could help? This is a Hardinge Superslant 3 axis with a 8 turret head and a 8 turret tailstock. I am floundering on this and progress is slow.
EDIT: This is in Custom.hal. Should this code be in Postgui.hal? When should code be in Custom vs Postgui? I have code to open and close the collet in custom.hal that I have been testing and running.
Last edit: 07 Jul 2017 20:07 by Vitran.
Please Log in or Create an account to join the conversation.
08 Jul 2017 14:40 - 08 Jul 2017 14:42 #95504
by PCW
Replied by PCW on topic Hardinge turret encoder with wsum: 'Wsum.0.bit.0.in' does not exist
Where is the weighted_sum component loaded?
You would need something like this:
loadrt weighted_sum wsum_sizes=4
and
addf process_wsums servo-thread
You would need something like this:
loadrt weighted_sum wsum_sizes=4
and
addf process_wsums servo-thread
Last edit: 08 Jul 2017 14:42 by PCW.
Please Log in or Create an account to join the conversation.
10 Jul 2017 12:19 #95592
by andypugh
Replied by andypugh on topic Hardinge turret encoder with wsum: 'Wsum.0.bit.0.in' does not exist
Please Log in or Create an account to join the conversation.
10 Jul 2017 13:09 #95598
by Vitran
Replied by Vitran on topic Hardinge turret encoder with wsum: 'Wsum.0.bit.0.in' does not exist
Thank you for the info.
At this point I am still learning the formatting rules that are required. Simple rules that are obvious once done.
The above code I received in an email word-for-word and was trying it out. When I was reading I was following the info below to try to get it to work. I can now see how I have to write the lines you provided at the start.
linuxcnc.org/docs/html/man/man9/weighted_sum.9.html
At this point I am still learning the formatting rules that are required. Simple rules that are obvious once done.
The above code I received in an email word-for-word and was trying it out. When I was reading I was following the info below to try to get it to work. I can now see how I have to write the lines you provided at the start.
linuxcnc.org/docs/html/man/man9/weighted_sum.9.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds