Macro
31 Dec 2012 10:22 #28214
by gois
Good night!
I need to create a macro example: M150 running códido following:
G21 G91
5223 # = 0
5213 # = 0
G38.2 Z-50 F300
G92 Z32
G1 G91 F1000 z2
G38.2 Z-5 F10
G92 Z32
G0 G91 Z10
5213 # = 0
(msg, Remove the probe and then hit the pause button)
M0
Z0 G90 G1 F2000
M30
I have created macros with sheel script and it works okay, but I can not execute code G. Can someone pass me an example?
I need to create a macro example: M150 running códido following:
G21 G91
5223 # = 0
5213 # = 0
G38.2 Z-50 F300
G92 Z32
G1 G91 F1000 z2
G38.2 Z-5 F10
G92 Z32
G0 G91 Z10
5213 # = 0
(msg, Remove the probe and then hit the pause button)
M0
Z0 G90 G1 F2000
M30
I have created macros with sheel script and it works okay, but I can not execute code G. Can someone pass me an example?
Please Log in or Create an account to join the conversation.
31 Dec 2012 16:12 - 31 Dec 2012 17:45 #28217
by ArcEye
Hi
All you need to do is put the code into a sub-routine and call that instead of M150
(you can do it from G code or call it via halui from a button press etc)
eg.
...
G21 G90
o <probe> call
M2
where probe.ngc is in the directory pointed to in your INI file under PROGRAM_PREFIX =
and looks like
regards
All you need to do is put the code into a sub-routine and call that instead of M150
(you can do it from G code or call it via halui from a button press etc)
eg.
...
G21 G90
o <probe> call
M2
where probe.ngc is in the directory pointed to in your INI file under PROGRAM_PREFIX =
and looks like
o <probe> sub
5223 # = 0
5213 # = 0
G38.2 Z-50 F300
G92 Z32
G1 G91 F1000 z2
G38.2 Z-5 F10
G92 Z32
G0 G91 Z10
5213 # = 0
(msg, Remove the probe and then hit the pause button)
M0
Z0 G90 G1 F2000
o <probe> endsub
regards
Last edit: 31 Dec 2012 17:45 by ArcEye.
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds