Analog Overrides? 5i25+7i77 Mode 3

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.
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.

More
8 years 9 months ago #104341 by andypugh
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.

More
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

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
The spindle part working, when I comment out the "Analog in 1 Feed" part.

For now I'm using one input for both.
Attachments:
Last edit: 6 years 1 month ago by xenon-alien.

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

More
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.

More
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

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

More
6 years 1 month ago #181659 by xenon-alien
Replied by xenon-alien on topic Analog Overrides? 5i25+7i77 Mode 3

cmorley wrote: hyphen looks different in direct-value

Thanks!
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
Powered by Kunena Forum