Macro
- gois
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
31 Dec 2012 10:22 #28214
by gois
Macro was created 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.
- ArcEye
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 758
31 Dec 2012 16:12 - 31 Dec 2012 17:45 #28217
by ArcEye
Replied by ArcEye on topic Macro
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.
- gois
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
03 Jan 2013 19:28 #28340
by gois
Replied by gois on topic Macro
Could you give me more details on how do I create a button set to run this file?
Ten of I thank
Ten of I thank
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
Less
More
- Posts: 7000
- Thank you received: 1175
03 Jan 2013 19:34 - 03 Jan 2013 19:34 #28341
by BigJohnT
Last edit: 03 Jan 2013 19:34 by BigJohnT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds