How to run file from another file in?
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1440
24 May 2019 17:08 #134829
by Todd Zuercher
Replied by Todd Zuercher on topic How to run file from another file in?
PS: If you want or need to be able to run one of your sub routine files as a stand alone g-code file you can simply add an o<file> call at the end of it like this.
%
o<file> sub
(G-code for the sub here)
o<file> endsub
o<file> call
m2
%
Please Log in or Create an account to join the conversation.
24 May 2019 17:08 #134830
by BigJohnT
Replied by BigJohnT on topic How to run file from another file in?
For some reason unknown to me I thought the subroutine file needed a M2 but it indeed does not need a M2. Thanks for clearing that up in this fuzzy old brain...
JT
JT
Please Log in or Create an account to join the conversation.
28 May 2019 21:31 #135199
by andypugh
_Don't_ use % to start and end subroutines.
For reasons that we haven't got to the bottom of yet, if the subroutine _and_ the calling file both have % at the beginning and end then things don't work properly.
Replied by andypugh on topic How to run file from another file in?
PS: If you want or need to be able to run one of your sub routine files as a stand alone g-code file you can simply add an o<file> call at the end of it like this.
% o<file> sub (G-code for the sub here) o<file> endsub o<file> call m2 %
_Don't_ use % to start and end subroutines.
For reasons that we haven't got to the bottom of yet, if the subroutine _and_ the calling file both have % at the beginning and end then things don't work properly.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds