very basic mdi call

More
18 Aug 2024 03:43 - 18 Aug 2024 05:08 #308044 by PhilipME
very basic mdi call was created by PhilipME
I came across subroutine example to set my Z probe. But first I wanted to simplify it in order to understand the subroutines.

I have added the following to the machine ini file

[RS274NGC]
SUBROUTINE_PATH = macros

[MACROS]
MACRO = touch_plate_z

and have made a file in the macros directory that have the following statement


o<touch_plate_z> sub
G54 G0 x0 y0
o<touch_plate_z>endsub
M2

what statement I need to enter in the MDI window to execute this subroutine

Good day

Philip

 
Last edit: 18 Aug 2024 05:08 by PhilipME.

Please Log in or Create an account to join the conversation.

More
18 Aug 2024 05:44 #308045 by Aciera
Replied by Aciera on topic very basic mdi call
Try:
o<touch_plate_z> call
The following user(s) said Thank You: PhilipME

Please Log in or Create an account to join the conversation.

More
18 Aug 2024 07:52 #308051 by PhilipME
Replied by PhilipME on topic very basic mdi call
I think the path or I am doing something  wrong because I am getting this message when I issue the o<touch_plate_z> call
EOF in file :/usr/share/axis/images/axis.ngc
seeking o-word:o<touch_plate_z> from line:0

Please Log in or Create an account to join the conversation.

More
18 Aug 2024 11:42 #308060 by Aciera
Replied by Aciera on topic very basic mdi call
I'm sorry, looking at your initial post again I'm not sure where this comes from:

[RS274NGC]
SUBROUTINE_PATH = macros

[MACROS]
MACRO = touch_plate_z


I'm not aware of a '[MACROS]' entry in the ini file.
So try this:

save your subroutine code as 'touch_plate_z.ngc' in a folder named 'macros' in your machine config folder.

then add this to the [RS274] section of your ini file:
SUBROUTINE_PATH = ./macros
The following user(s) said Thank You: PhilipME

Please Log in or Create an account to join the conversation.

More
18 Aug 2024 11:45 #308062 by Aciera
Replied by Aciera on topic very basic mdi call

EOF in file :/usr/share/axis/images/axis.ngc

This seems a strange place for a GCode file.
The following user(s) said Thank You: PhilipME

Please Log in or Create an account to join the conversation.

More
18 Aug 2024 13:15 #308069 by PhilipME
Replied by PhilipME on topic very basic mdi call

I'm sorry, looking at your initial post again I'm not sure where this comes from:

[RS274NGC]

I'm not aware of a '[MACROS]' entry in the ini file.
So try this:


It is working now

I removed the entry [MACROS], it does not make any differance.


my next step is to tie the subroutine file to a soft button in the extended panel. And I think I know how to do that by now.

The step after that is to understand the full z-probe subroutine.

Have a good day

Philip

 

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum