Machsupport Forum

Mach Discussion => Mach Screens => Machscreen Screen Designer => Topic started by: tantan on August 05, 2009, 03:10:43 AM

Title: button to execute gcode
Post by: tantan on August 05, 2009, 03:10:43 AM
hi,

nice product! dutch language too!!!. i cannot find out how to execute gcode by a button. what i want is: when i click on a button mach has to exectue M6 T0101 or G53 X0 Z0 F1200

i hope someone can help me with this

thanks

antoine
the netherlands
Title: Re: button to execute gcode
Post by: Klaus1311 on August 05, 2009, 05:53:33 AM
Hi Antoine

click the button you want to attach the g-code to. In the dialog box "Machscreen eigenschappen" double click in the column "value" of "uitvoer code" line. Choose G-Code in the next dialogbox. Now you can edit your G-Code with the opened editor. Finish your editing with menu "Bestand" and use "gebruik data en sluiten".



Klaus
Title: Re: button to execute gcode
Post by: tantan on August 05, 2009, 12:51:07 PM
ok klaus thanks,

al worked out. i had to use the string: code "m6 t0101"

thanks,

antoine
Title: Re: button to execute gcode
Post by: Klaus1311 on August 05, 2009, 04:48:23 PM
Hi Antoine,

if you use function code "execute g-code" you can write g-code, in the case of  "execute VB-Script" you use VB statements.


Klaus
Title: Re: button to execute gcode
Post by: tantan on August 06, 2009, 02:54:21 PM
ok thanks,

i see what you mean!


antoine