- Posts: 11
- Thank you received: 0
MDI command on halcomp
3 years 10 months ago #259997
by JesusAlos
MDI command on halcomp was created by JesusAlos
Hi.
Are there any way to send such instruction from hal compenent like python?
self.mdi("G0 X100")
Regars.
Are there any way to send such instruction from hal compenent like python?
self.mdi("G0 X100")
Regars.
Please Log in to join the conversation.
3 years 10 months ago #260066
by andypugh
Replied by andypugh on topic MDI command on halcomp
You can do it from a Python HAL component.
linuxcnc.org/docs/stable/html/hal/halmodule.html
You can't do it from a C realtime component AFAIK, though a C component could set a pin that runs an MDI_COMMAND
linuxcnc.org/docs/stable/html/config/ini....html#_halui_section
However, given that halui runs in userspace there is no reason to prefer this over the userspace HAL component.
linuxcnc.org/docs/stable/html/hal/halmodule.html
You can't do it from a C realtime component AFAIK, though a C component could set a pin that runs an MDI_COMMAND
linuxcnc.org/docs/stable/html/config/ini....html#_halui_section
However, given that halui runs in userspace there is no reason to prefer this over the userspace HAL component.
Please Log in to join the conversation.
Time to create page: 0.071 seconds
