Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: bankshot on March 08, 2024, 12:48:46 AM

Title: edit button scripts
Post by: bankshot on March 08, 2024, 12:48:46 AM
1...installed camera.. use button "set variable position"  "go to variable position" and "stop teach"  wrote my code,,when i run, i get compile error  syntax error
2... i have new buttons installed in millbitmaps folder, dont  know how to post them in place of the above mentioned buttons,, the new one are jpeg files
Title: Re: edit button scripts
Post by: TPS on March 08, 2024, 09:50:27 AM
pls post your code
Title: Re: edit button scripts
Post by: bankshot on March 08, 2024, 12:43:36 PM
G00 Z .100
G00 X0 Y0

FOR ONE BUTTON
 
GOO Z .100
G00 X-.3415
G00 Y -3.140

FOR ANOTHER BUTTON
NEXT BUTTON SAME AS 2ND ONE WITH POSITIVE INSTEAD OF NEGATIVE MONVES
Title: Re: edit button scripts
Post by: TPS on March 09, 2024, 02:53:04 AM
to excecute G-Code via button script the instruction should be for example:

Code: [Select]
  Code("G00 Z.100")
  Code("G00 X0 Y0")

see:
https://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf

for reference.
Title: Re: edit button scripts
Post by: bankshot on March 09, 2024, 04:41:43 AM
thanks