Remap M61 doesnt work
- zz912
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 520
- Thank you received: 82
03 Sep 2024 15:12 #309294
by zz912
Remap M61 doesnt work was created by zz912
Hello,
I work on AUTOMATIC_G43 by remap. I use master branche (2.10) RIP instalation.
I added in INI file:
Remaps M6 works as I need but remap M61 doesnt.
I tested it in Gmoccapy and in AXIS.
Can anyone guess where the error might be?
I work on AUTOMATIC_G43 by remap. I use master branche (2.10) RIP instalation.
I added in INI file:
# Task controller section -----------------------------------------------------
[RS274NGC]
...............
SUBROUTINE_PATH = ./macros
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change_g43 epilog=change_epilog
REMAP=M61 modalgroup=6 prolog=settool_prolog ngc=settool_g43 epilog=settool_epilog
# the Python plugins serves interpreter and task
[PYTHON]
PATH_PREPEND = ./python
TOPLEVEL = ./python/toplevel.py
LOG_LEVEL = 8
o<change_g43> sub
;(debug, in change tool_in_spindle=#<tool_in_spindle> current_pocket=#<current_pocket>;)
;(debug, selected_tool=#<selected_tool> selected_pocket=#<selected_pocket>;)
; we must execute this only in the milltask interpreter
; or preview will break, so test for '#<_task>' which is 1 for
; the milltask interpreter and 0 in the UI's
O100 if [#<_task> EQ 0]
(debug, Task ist Null)
O100 return [999]
O100 endif
; using the code being remapped here means 'use builtin behaviour'
M6
; set tool offset
G43
; signal success be returning a value > 0:
o<change_g43> endsub [1]
M2
o<settool_g43> sub
;(debug, tool=#<tool> pocket=#<pocket>;)
; we must execute this only in the milltask interpreter
; or preview will break, so test for '#<_task>' which is 1 for
; the milltask interpreter and 0 in the UI's
O100 if [#<_task> EQ 0]
(debug, Task ist Null)
O100 return [999]
O100 endif
; using the code being remapped here means 'use builtin behaviour'
M61
; set tool offset
G43
; signal success be returning a value > 0:
o<settool_g43> endsub [1]
M2
Remaps M6 works as I need but remap M61 doesnt.
I tested it in Gmoccapy and in AXIS.
Can anyone guess where the error might be?
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4015
- Thank you received: 1731
03 Sep 2024 15:50 #309295
by Aciera
Replied by Aciera on topic Remap M61 doesnt work
in your 'settool_G43' sub you have this:Seems to me that you are missing the required 'Q' word here.
; using the code being remapped here means 'use builtin behaviour'
M61
The following user(s) said Thank You: zz912
Please Log in or Create an account to join the conversation.
- zz912
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 520
- Thank you received: 82
03 Sep 2024 16:09 #309296
by zz912
Replied by zz912 on topic Remap M61 doesnt work
I did not find example of right use M61.
I use remap with M6 and I dont need 'T' word.
Here is definition for minimal M6/M61/T/S/F
linuxcnc.org/docs/devel/html/remap/remap...cluding_code_m6_code
I use remap with M6 and I dont need 'T' word.
Here is definition for minimal M6/M61/T/S/F
linuxcnc.org/docs/devel/html/remap/remap...cluding_code_m6_code
Please Log in or Create an account to join the conversation.
- zz912
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 520
- Thank you received: 82
03 Sep 2024 16:13 #309297
by zz912
Replied by zz912 on topic Remap M61 doesnt work
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds