Help understanding fundamentals of linuxcnc
- Caffink
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
16 Jul 2024 20:34 #305404
by Caffink
Replied by Caffink on topic Help understanding fundamentals of linuxcnc
Will something like this make the gmocappy jog button move a stepper motor?
net encoder-counts <= hm2_7i95.0.encoder.00.count
net encoder-counts => joint.0.jog-counts
net encoder-counts <= hm2_7i95.0.encoder.00.count
net encoder-counts => joint.0.jog-counts
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10754
- Thank you received: 3543
16 Jul 2024 20:44 #305407
by rodw
Replied by rodw on topic Help understanding fundamentals of linuxcnc
gmoccappy has its own methods. See Chapter 5 in its docs
linuxcnc.org/docs/stable/html/gui/gmoccapy.html
linuxcnc.org/docs/stable/html/gui/gmoccapy.html
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3970
- Thank you received: 1719
16 Jul 2024 20:47 #305409
by Aciera
Replied by Aciera on topic Help understanding fundamentals of linuxcnc
The jog buttons in the Gmoccpy GUI will work right out of the box once you have your basic configuration set up.Will something like this make the gmocappy jog button move a stepper motor?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17944
- Thank you received: 4793
16 Jul 2024 20:52 #305410
by PCW
Replied by PCW on topic Help understanding fundamentals of linuxcnc
That will make an encoder work as a MPG
if:
1. Jogging is enabled for joint 0
2. A non zero joint jog scale is used
3. The machine is not homed
( AFAIK joint jog pins only work before homing
and axis jog pins only work after homing )
if:
1. Jogging is enabled for joint 0
2. A non zero joint jog scale is used
3. The machine is not homed
( AFAIK joint jog pins only work before homing
and axis jog pins only work after homing )
Please Log in or Create an account to join the conversation.
- Caffink
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
16 Jul 2024 21:09 #305413
by Caffink
Replied by Caffink on topic Help understanding fundamentals of linuxcnc
How is it possible that gmocappy jog buttons work after basic configuration? I Don't see any hal pin connections that make the jog buttons work?
P.s i know they somehow do work, but how and why do they work right out of the box after basic config? This is mostly to help my understanding of linuxcnc
P.s i know they somehow do work, but how and why do they work right out of the box after basic config? This is mostly to help my understanding of linuxcnc
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10754
- Thank you received: 3543
16 Jul 2024 21:21 #305416
by rodw
Replied by rodw on topic Help understanding fundamentals of linuxcnc
Linuxcnc uses the NML messaging system for interprocess communications
The Linuxcnc python library uses NML
Gmoccappy uses the python library so no pins required
The Linuxcnc python library uses NML
Gmoccappy uses the python library so no pins required
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17944
- Thank you received: 4793
16 Jul 2024 21:24 #305417
by PCW
Replied by PCW on topic Help understanding fundamentals of linuxcnc
I hope I have not confused things with my very hardware/hal oriented
view. As Aciera mentioned GUIs typically use the python API for interfacing
with LinuxCNC rather than hal. So you will not see any jog related hal pins
used in the hal file
Note that if you want a MPG using an external hardware encoder
its better to use hal rather than the python API as its real time
and not dependent on the user interface response time. This is also true
of physical buttons.
view. As Aciera mentioned GUIs typically use the python API for interfacing
with LinuxCNC rather than hal. So you will not see any jog related hal pins
used in the hal file
Note that if you want a MPG using an external hardware encoder
its better to use hal rather than the python API as its real time
and not dependent on the user interface response time. This is also true
of physical buttons.
Please Log in or Create an account to join the conversation.
- Caffink
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
16 Jul 2024 21:24 #305418
by Caffink
Replied by Caffink on topic Help understanding fundamentals of linuxcnc
The only thing I understood from the manual, is that it probably has something to do with these pins : To connect encoders, the following pins are exported:gmoccappy has its own methods. See Chapter 5 in its docs
linuxcnc.org/docs/stable/html/gui/gmoccapy.html
- gmoccapy.jog.jog-velocity.counts (s32 IN) - Jog velocity
- gmoccapy.jog.jog-velocity.count-enable (bit IN) - Must be True, to enable counts
net encoder-counts <= hm2_7i95.0.encoder.00.count
net encoder-counts => gmoccapy.jog.jog-velocity.counts
Am I on the right direction? Or am I misunderstanding things? My thought process is that the statement above connects the stepper motor encoder count(which is connected to the mesa board), to the gmoccapy jog counts. Therefore when you press the jog button -> count increases/decreases -> stepper motor moves
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17944
- Thank you received: 4793
16 Jul 2024 21:40 #305422
by PCW
Replied by PCW on topic Help understanding fundamentals of linuxcnc
I think you have two types of jogging mixed up.
gmoccapy can jog with a screen button/arrow like most GUis
This is quite different than using an external encoder
to jog.
gmoccapy can jog with a screen button/arrow like most GUis
This is quite different than using an external encoder
to jog.
The following user(s) said Thank You: Caffink
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10754
- Thank you received: 3543
17 Jul 2024 07:33 #305456
by rodw
linuxcnc.org/docs/stable/html/examples/mpg.html
Replied by rodw on topic Help understanding fundamentals of linuxcnc
I could never work out why Gmocappy added jogging pins. Using external hardware, this is the correct methodThis is quite different than using an external encoder
to jog.
linuxcnc.org/docs/stable/html/examples/mpg.html
The following user(s) said Thank You: Caffink
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds