- Posts: 94
- Thank you received: 0
Call O Codes from hal signal
4 years 10 months ago #228391
by Pro_El
Call O Codes from hal signal was created by Pro_El
I am starting to learn for subroutines. I finished one mill tool-change with Ladder. My next project is tool-change with axis movement positions. I think subs will be the best choise, fix me if i am wrong. i cannot find some very obvious staff..
My first question will be can i start subroutines with signal from Hall in Auto mode
Thanks a lot
My first question will be can i start subroutines with signal from Hall in Auto mode
Thanks a lot
Please Log in to join the conversation.
4 years 10 months ago #228399
by anfänger
Replied by anfänger on topic Call O Codes from hal signal
Yes you can take a look at
HALUI:
linuxcnc.org/docs/html/config/ini-config...l#gcode:ini-features
linuxcnc.org/docs/html/man/man1/halui.1.html
linuxcnc.org/docs/html/remap/remap.html
Cheers
Patrick
HALUI:
You might need to remap your O Word to a user Code first. But after this it's no probemhalui.mdi-command-XX bit in
halui looks for ini variables named [HALUI]MDI_COMMAND, and exports a pin for each command it finds. When the pin is driven TRUE, halui runs the specified MDI command. XX is a two digit number starting at 00. If no [HALUI]MDI_COMMAND variables are set in the ini file, no halui.mdi-command-XX pins will be exported by halui.
linuxcnc.org/docs/html/config/ini-config...l#gcode:ini-features
linuxcnc.org/docs/html/man/man1/halui.1.html
linuxcnc.org/docs/html/remap/remap.html
Cheers
Patrick
Please Log in to join the conversation.
4 years 10 months ago #228406
by Pro_El
Replied by Pro_El on topic Call O Codes from hal signal
Great start for me, I will make this on machine and test it how is working
Thanks again anfänger
Thanks again anfänger
Please Log in to join the conversation.
3 years 7 months ago #267148
by zz912
Replied by zz912 on topic Call O Codes from hal signal
Exist some specification of halui.mdi-command-XX ?
Or exmaple?
In INI file:
or
?
In config folders must be file:
MDI_COMMAND.ngc
?
Can / must be it in some subfolder.
The *.ngc file must contain M2?
Or exmaple?
In INI file:
Code:
[HALUI]
MDI_COMMAND
Code:
[HALUI]
MDI_COMMAND.ngc
In config folders must be file:
MDI_COMMAND.ngc
?
Can / must be it in some subfolder.
The *.ngc file must contain M2?
Please Log in to join the conversation.
3 years 7 months ago #267154
by andypugh
Replied by andypugh on topic Call O Codes from hal signal
There are some examples here:
github.com/LinuxCNC/linuxcnc/blob/master...hb04/layout1.inc#L32
I think that, for example:
should work
I think that, for example:
Code:
MDI_COMMAND = O<my_subroutine> CALL
Please Log in to join the conversation.
3 years 7 months ago #267155
by andypugh
Replied by andypugh on topic Call O Codes from hal signal
There are some examples here:
github.com/LinuxCNC/linuxcnc/blob/master...hb04/layout1.inc#L32
I think that, for example:
should work
I think that, for example:
Code:
MDI_COMMAND = O<my_subroutine> CALL
Please Log in to join the conversation.
3 years 7 months ago #267159
by zz912
Replied by zz912 on topic Call O Codes from hal signal
Thank you.
What "debug" command mean?
Code:
MDI_COMMAND=(debug, example: mdi-01)
What "debug" command mean?
Please Log in to join the conversation.
3 years 7 months ago #267162
by andypugh
Replied by andypugh on topic Call O Codes from hal signal
It's a "magic comment"
linuxcnc.org/docs/stable/html/gcode/over....html#gcode:comments
Listed elsewhere, there is also:
(ABORT, ...) Which stops execution with a message and (py, ...) which will execute python code. (and also (pyrun, ) and (pyreload, ). I don;t know what the last two do.
linuxcnc.org/docs/stable/html/gcode/over....html#gcode:comments
Listed elsewhere, there is also:
(ABORT, ...) Which stops execution with a message and (py, ...) which will execute python code. (and also (pyrun, ) and (pyreload, ). I don;t know what the last two do.
Please Log in to join the conversation.
Time to create page: 0.130 seconds
