- Posts: 3
- Thank you received: 0
Analog Overrides? 5i25+7i77 Mode 3
- Ichzwei
- Offline
- New Member
-
Less
More
8 years 10 months ago - 8 years 10 months ago #103825
by Ichzwei
Replied by Ichzwei on topic Analog Overrides? 5i25+7i77 Mode 3
thanks henk,
you helpt me solving the problem.
i add this to the hal file... now i can chance the spindle override from 50%-100% on the potentiometer.
but i notice that on the start of linuxcnc the override is not the absolute value of the poti.
i need to rotate it and then the value in linuxcnc chanced.
greetings
michael
you helpt me solving the problem.
i add this to the hal file... now i can chance the spindle override from 50%-100% on the potentiometer.
Code:
loadrt conv_float_s32 count=1
loadrt scale names=spindle-scale
addf spindle-scale servo-thread
addf conv-float-s32.0 servo-thread
setp halui.spindle-override.direct-value false
setp halui.spindle-override.count-enable true
setp spindle-scale.gain 4.16666
setp spindle-scale.offset 0
setp halui.spindle-override.scale 0.005
net spindle-analogue hm2_5i25.0.7i77.0.0.analogin0 => spindle-scale.in
net spindle-convert spindle-scale.out conv-float-s32.0.in
net spindle-override conv-float-s32.0.out halui.spindle-override.counts
but i notice that on the start of linuxcnc the override is not the absolute value of the poti.
i need to rotate it and then the value in linuxcnc chanced.
greetings
michael
Last edit: 8 years 10 months ago by Ichzwei.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 9 months ago #104341
by andypugh
I think this should be "true"
Replied by andypugh on topic Analog Overrides? 5i25+7i77 Mode 3
Ichzwei wrote: setp halui.spindle-override.direct-value false
I think this should be "true"
Please Log in or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
-
Less
More
- Posts: 157
- Thank you received: 4
6 years 1 month ago - 6 years 1 month ago #181647
by xenon-alien
Replied by xenon-alien on topic Analog Overrides? 5i25+7i77 Mode 3
Can you help me out?
Did the same for feed override and have a halui.feed−override.direct−value not found error
The spindle part working, when I comment out the "Analog in 1 Feed" part.
For now I'm using one input for both.
Did the same for feed override and have a halui.feed−override.direct−value not found error
Code:
loadrt conv_float_s32 count=2
loadrt scale names=spindle-scale,feed-scale
# analog 0
addf spindle-scale servo-thread
addf conv-float-s32.0 servo-thread
# analog 1
addf feed-scale servo-thread
addf conv-float-s32.1 servo-thread
setp halui.feed−override.direct−value false
setp halui.feed−override.count−enable true
setp feed-scale.gain 4.16666
setp feed-scale.offset 0
setp halui.feed−override.scale 0.005
net feed-analogue hm2_7i76e.0.7i76.0.0.analogin0 => feed-scale.in
net feed-convert feed-scale.out conv-float-s32.1.in
net feed-override conv-float-s32.1.out halui.feed−override.counts
For now I'm using one input for both.
Last edit: 6 years 1 month ago by xenon-alien.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 1 month ago #181653
by cmorley
Replied by cmorley on topic Analog Overrides? 5i25+7i77 Mode 3
hyphen looks different in direct-value
The following user(s) said Thank You: xenon-alien
Please Log in or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
-
Less
More
- Posts: 157
- Thank you received: 4
6 years 1 month ago #181658
by xenon-alien
Replied by xenon-alien on topic Analog Overrides? 5i25+7i77 Mode 3
I have used copy/paste from halui manual.
Will try to manually correct them
Will try to manually correct them
Please Log in or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
-
Less
More
- Posts: 157
- Thank you received: 4
6 years 1 month ago #181659
by xenon-alien
It's helped!
Left to figure out the scaling function in LinuxCNC.
Replied by xenon-alien on topic Analog Overrides? 5i25+7i77 Mode 3
Thanks!cmorley wrote: hyphen looks different in direct-value
It's helped!
Left to figure out the scaling function in LinuxCNC.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.148 seconds