Hello Guest it is April 29, 2024, 10:49:06 AM

Author Topic: edit button scripts  (Read 210 times)

0 Members and 1 Guest are viewing this topic.

edit button scripts
« 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

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: edit button scripts
« Reply #1 on: March 08, 2024, 09:50:27 AM »
pls post your code
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: edit button scripts
« Reply #2 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

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: edit button scripts
« Reply #3 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.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: edit button scripts
« Reply #4 on: March 09, 2024, 04:41:43 AM »
thanks