Write Pin halui.rapid−override.value
27 Jan 2020 15:29 #155915
by chris@cnc
Write Pin halui.rapid−override.value was created by chris@cnc
Hi there,
I'm currently install a 4 bit rotary switch to regulate the rapid feed rate. But I don't want to go through a counter. The disadvantage is that I always have to switch to 100% after machine start and back until it counts correctly. My idea is to write the pin halui.rapid − override.value directly with the result from the mux register. But the error is
./my_LinuxCNC_machine.hal:98: Signal 'eilgang-incr' can not add OUT pin 'halui.rapid-override.value', it already has OUT pin 'eilgang.out-f'
Example now working:
setp halui.rapid-override.direct-value true
setp halui.rapid-override.scale 0.01
net eilgang-incr <= eilgang.out-s
net eilgang-incr => halui.rapid-override.counts
net eilgang-bit0 => eilgang.sel0
net eilgang-bit1 => eilgang.sel1
net eilgang-bit2 => eilgang.sel2
setp eilgang.debounce-time 0.200000
setp eilgang.use-graycode False
setp eilgang.suppress-no-input False
setp eilgang.in00 0
setp eilgang.in01 25
setp eilgang.in02 50
setp eilgang.in03 75
setp eilgang.in04 100
example whish:
setp halui.rapid-override.direct-value true
net eilgang-incr <= eilgang.out-f
net eilgang-incr => halui.rapid-override.value
net eilgang-bit0 => eilgang.sel0
net eilgang-bit1 => eilgang.sel1
net eilgang-bit2 => eilgang.sel2
setp eilgang.debounce-time 0.200000
setp eilgang.use-graycode False
setp eilgang.suppress-no-input False
setp eilgang.in00 0
setp eilgang.in01 0.25
setp eilgang.in02 0.50
setp eilgang.in03 0.75
setp eilgang.in04 1
I'm currently install a 4 bit rotary switch to regulate the rapid feed rate. But I don't want to go through a counter. The disadvantage is that I always have to switch to 100% after machine start and back until it counts correctly. My idea is to write the pin halui.rapid − override.value directly with the result from the mux register. But the error is
./my_LinuxCNC_machine.hal:98: Signal 'eilgang-incr' can not add OUT pin 'halui.rapid-override.value', it already has OUT pin 'eilgang.out-f'
Example now working:
setp halui.rapid-override.direct-value true
setp halui.rapid-override.scale 0.01
net eilgang-incr <= eilgang.out-s
net eilgang-incr => halui.rapid-override.counts
net eilgang-bit0 => eilgang.sel0
net eilgang-bit1 => eilgang.sel1
net eilgang-bit2 => eilgang.sel2
setp eilgang.debounce-time 0.200000
setp eilgang.use-graycode False
setp eilgang.suppress-no-input False
setp eilgang.in00 0
setp eilgang.in01 25
setp eilgang.in02 50
setp eilgang.in03 75
setp eilgang.in04 100
example whish:
setp halui.rapid-override.direct-value true
net eilgang-incr <= eilgang.out-f
net eilgang-incr => halui.rapid-override.value
net eilgang-bit0 => eilgang.sel0
net eilgang-bit1 => eilgang.sel1
net eilgang-bit2 => eilgang.sel2
setp eilgang.debounce-time 0.200000
setp eilgang.use-graycode False
setp eilgang.suppress-no-input False
setp eilgang.in00 0
setp eilgang.in01 0.25
setp eilgang.in02 0.50
setp eilgang.in03 0.75
setp eilgang.in04 1
Please Log in or Create an account to join the conversation.
27 Jan 2020 15:36 #155917
by bbsr_5a
Replied by bbsr_5a on topic Write Pin halui.rapid−override.value
did you doe this in the postgui HAL file
then the interpreter accepts from outer world
the Postgui is detach from the startup
then the interpreter accepts from outer world
the Postgui is detach from the startup
Please Log in or Create an account to join the conversation.
27 Jan 2020 15:52 #155924
by chris@cnc
Replied by chris@cnc on topic Write Pin halui.rapid−override.value
i try it but same message
custom_postgui.hal:10: Signal 'eilgang-incr' can not add OUT pin 'halui.rapid-override.value', it already has OUT pin 'eilgang.out-f'
It seems pin 'halui.rapid-override.value', is not writeable. OUT Pin only...?
custom_postgui.hal:10: Signal 'eilgang-incr' can not add OUT pin 'halui.rapid-override.value', it already has OUT pin 'eilgang.out-f'
It seems pin 'halui.rapid-override.value', is not writeable. OUT Pin only...?
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
27 Jan 2020 17:38 #155935
by Mike_Eitel
Replied by Mike_Eitel on topic Write Pin halui.rapid−override.value
Hi Chris
Can't remember exactly how i did with an analog potentiometer. But it is based on Norberts gui as he has that solution in his gmoccappy. Maybe you have a look into the gmoccapy examples
Mike
Can't remember exactly how i did with an analog potentiometer. But it is based on Norberts gui as he has that solution in his gmoccappy. Maybe you have a look into the gmoccapy examples
Mike
Please Log in or Create an account to join the conversation.
27 Jan 2020 20:10 #155944
by chris@cnc
Replied by chris@cnc on topic Write Pin halui.rapid−override.value
hello mike, hello bbsr,
found it by accident. I created a new config and accidentally overwritten my test hal. So that it does not happen again, I wrote all changes in the postgui. Now it works with the counter. shortly after the start, the rapid traverse jumps to the set value. before that, it was always 100% after the start.
found it by accident. I created a new config and accidentally overwritten my test hal. So that it does not happen again, I wrote all changes in the postgui. Now it works with the counter. shortly after the start, the rapid traverse jumps to the set value. before that, it was always 100% after the start.
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
27 Jan 2020 20:26 #155950
by Mike_Eitel
Replied by Mike_Eitel on topic Write Pin halui.rapid−override.value
Good, congrats
Please Log in or Create an account to join the conversation.
28 Jan 2020 10:51 #155986
by bbsr_5a
Replied by bbsr_5a on topic Write Pin halui.rapid−override.value
so the Error has only been to be configured in the wrong file ?
Please Log in or Create an account to join the conversation.
28 Jan 2020 17:59 #156031
by chris@cnc
Replied by chris@cnc on topic Write Pin halui.rapid−override.value
That's how you can say it. The reason why I wanted to write the variable is that after machine start I have to turn the override so that it is displayed correctly. If you write the override section in the post gui, it will be corrected shortly after the start. I don't understand it but am happy that it works ...
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds