Call O Codes from hal signal
- Pro_El
-
Topic Author
- Offline
- Premium Member
-
- Posts: 93
- Thank you received: 3
My first question will be can i start subroutines with signal from Hall in Auto mode
Thanks a lot
Please Log in or Create an account to join the conversation.
- anfänger
-
- Offline
- Platinum Member
-
- Posts: 626
- Thank you received: 255
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 or Create an account to join the conversation.
- Pro_El
-
Topic Author
- Offline
- Premium Member
-
- Posts: 93
- Thank you received: 3
Thanks again anfänger
Please Log in or Create an account to join the conversation.
- zz912
-
- Offline
- Platinum Member
-
- Posts: 532
- Thank you received: 85
Or exmaple?
In INI file:
[HALUI]
MDI_COMMAND
[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 or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23212
- Thank you received: 4892
I think that, for example:
MDI_COMMAND = O<my_subroutine> CALL
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23212
- Thank you received: 4892
I think that, for example:
MDI_COMMAND = O<my_subroutine> CALL
Please Log in or Create an account to join the conversation.
- zz912
-
- Offline
- Platinum Member
-
- Posts: 532
- Thank you received: 85
MDI_COMMAND=(debug, example: mdi-01)
What "debug" command mean?
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23212
- Thank you received: 4892
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 or Create an account to join the conversation.