- Posts: 617
- Thank you received: 0
Physical Feed override knob
7 years 6 months ago #130505
by OT-CNC
I'm sure you can and it works. My point that I was trying to make is, as an example say, your pot is set at 50% and you move your slider in the gui to 100% the pot is still at 50% in it's physical position and not at 100%. They will be mismatched.
Replied by OT-CNC on topic Physical Feed override knob
Hi OT-CNC
I can see in gmoccapy all trhre values I set via pots in realtime.
Mike
I'm sure you can and it works. My point that I was trying to make is, as an example say, your pot is set at 50% and you move your slider in the gui to 100% the pot is still at 50% in it's physical position and not at 100%. They will be mismatched.
Please Log in to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
-
Less
More
- Posts: 1018
- Thank you received: 0
7 years 6 months ago #130587
by Mike_Eitel
Replied by Mike_Eitel on topic Physical Feed override knob
Nop
If I draw my pot-button the view in gmoccappy changes and also slider plus digital value changes according pot position.
Mike
If I draw my pot-button the view in gmoccappy changes and also slider plus digital value changes according pot position.
Mike
Please Log in to join the conversation.
7 years 1 month ago #145789
by Erikcnc
Replied by Erikcnc on topic Physical Feed override knob
Hi All,
So i am was trying to copy - paste the feed override script to my other machine that uses the same board.
Only thing is i got this error says scale already exist.
Also, i see in hall show that the analog input is called input-00 instead of analogin0.
this pin is also not float value.
mean while i am also setting up a mpg with 2 switches for counts and X and Z.
not working either.
mpg is based on this. changed the inputs for my mesa 7i76e
mpg example
base-thread also does not exist ...
any one got a clue?
So i am was trying to copy - paste the feed override script to my other machine that uses the same board.
Only thing is i got this error says scale already exist.
Also, i see in hall show that the analog input is called input-00 instead of analogin0.
this pin is also not float value.
mean while i am also setting up a mpg with 2 switches for counts and X and Z.
not working either.
mpg is based on this. changed the inputs for my mesa 7i76e
mpg example
base-thread also does not exist ...
any one got a clue?
Please Log in to join the conversation.
7 years 1 month ago #145791
by PCW
Replied by PCW on topic Physical Feed override knob
7I76E analog inputs have these names:
hm2_7i76e.0.7i76.0.0.analogin0
hm2_7i76e.0.7i76.0.0.analogin1
hm2_7i76e.0.7i76.0.0.analogin2
hm2_7i76e.0.7i76.0.0.analogin3
You will need to include "sserial_port_0=20xxxxxx" in the config=" blah blah blah"
section of the hal file to enable the analog inputs (and the MPG encoder inputs)
The MPG example you show is for a parallel port, when using the 7I76E MPG inputs
you do not used the encoder component or the base thread, but rather use the MPG
encoder counts directly from the 7I76E:
hm2_7i76e.0.7i76.0.0.enc0.count
(first MPG counter)
hm2_7i76e.0.7i76.0.0.enc1.count
(second MPG counter)
hm2_7i76e.0.7i76.0.0.analogin0
hm2_7i76e.0.7i76.0.0.analogin1
hm2_7i76e.0.7i76.0.0.analogin2
hm2_7i76e.0.7i76.0.0.analogin3
You will need to include "sserial_port_0=20xxxxxx" in the config=" blah blah blah"
section of the hal file to enable the analog inputs (and the MPG encoder inputs)
The MPG example you show is for a parallel port, when using the 7I76E MPG inputs
you do not used the encoder component or the base thread, but rather use the MPG
encoder counts directly from the 7I76E:
hm2_7i76e.0.7i76.0.0.enc0.count
(first MPG counter)
hm2_7i76e.0.7i76.0.0.enc1.count
(second MPG counter)
Please Log in to join the conversation.
7 years 1 month ago #145830
by Erikcnc
Replied by Erikcnc on topic Physical Feed override knob
thanks for the reply.
offcourse.....the serial, forgot about that. i changed it.
for now i removed the mpg stuff to get the feedrate knob to work first.
i get a weird debug, still the same.
offcourse.....the serial, forgot about that. i changed it.
for now i removed the mpg stuff to get the feedrate knob to work first.
i get a weird debug, still the same.
Code:
Debug file information:
Note: Using POSIX realtime
11:07:33.809 WARNING Config: mousetweaks GSettings schema not found, mousetweaks integration disabled.
(gmoccapy:1495): GtkSourceView-CRITICAL **: gtk_source_language_manager_set_search_path: assertion 'lm->priv->ids == NULL' failed
scale: already exists
postgui_call_list.hal:5: waitpid failed /usr/bin/rtapi_app scale
postgui_call_list.hal:5: /usr/bin/rtapi_app exited without becoming ready
postgui_call_list.hal:5: insmod for scale failed, returned -1
(onboard:1505): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
1444
PID TTY STAT TIME COMMAND
1492
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in to join the conversation.
7 years 1 month ago #145840
by Erikcnc
Replied by Erikcnc on topic Physical Feed override knob
okay this is weird,
i tried to build it up without the scale to find if its working.
this does not exist...:S
i tried to build it up without the scale to find if its working.
Code:
setp gmoccapy.analog-enable 1
Please Log in to join the conversation.
7 years 1 month ago #145841
by PCW
Replied by PCW on topic Physical Feed override knob
Looks like you are trying to "loadrt scale" twice.
That will not work, if you need more scale components, you need to
specify how many to instantiate (either by number or by multiple names)
in a single loadrt line
man scale
That will not work, if you need more scale components, you need to
specify how many to instantiate (either by number or by multiple names)
in a single loadrt line
man scale
Please Log in to join the conversation.
7 years 1 month ago #145842
by Erikcnc
Replied by Erikcnc on topic Physical Feed override knob
thats what i thought. thats clears it up more.
do you got a example how it should look like for a second scale line?
do you got a example how it should look like for a second scale line?
Please Log in to join the conversation.
7 years 1 month ago #145849
by Erikcnc
Replied by Erikcnc on topic Physical Feed override knob
got it!!
in main hal file i got
and in my postgui_call_list.hal
gmoccapy.analog-enable does not exist, but instead it is gmoccapy.feed-override.analog-enable
in main hal file i got
Code:
loadrt scale names=scale.spindle,scale.feed
addf scale.feed servo-thread
and in my postgui_call_list.hal
Code:
setp scale.feed.gain 0.0417
net feed-override-raw hm2_7i76e.0.7i76.0.0.analogin0 => scale.feed.in
net feed-override-scaled scale.feed.out => gmoccapy.feed-override.direct-value
setp gmoccapy.feed-override.analog-enable 1
gmoccapy.analog-enable does not exist, but instead it is gmoccapy.feed-override.analog-enable
Please Log in to join the conversation.
6 years 1 month ago #180383
by keyboard
Replied by keyboard on topic Physical Feed override knob
Hi,
How would i need to modify the above HAL lines to get it to work in QTPyvcp ? I'm using the QTdragon GUI. I have connected a 10k pot to Analog0 on a MESA7i76E. Mode =1.
Do I just takeout the gmoccapy ? I want to use the pot to control feedrate .
Thanks.
How would i need to modify the above HAL lines to get it to work in QTPyvcp ? I'm using the QTdragon GUI. I have connected a 10k pot to Analog0 on a MESA7i76E. Mode =1.
Do I just takeout the gmoccapy ? I want to use the pot to control feedrate .
Thanks.
Please Log in to join the conversation.
Time to create page: 0.699 seconds
