Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: neptunier on September 14, 2018, 12:52:22 PM

Title: macro for adjusting jog speed
Post by: neptunier on September 14, 2018, 12:52:22 PM
hi everybody,

i was searching and trying a lot but i cannot find the solution.

i have a xbox attached to mach3 and i want two custom macros to set the jog speed. one for 100% and one for 2%. each macro should be activated with a button press. that way i can jog with one hand only the 2 speeds.

i tried creating a macro:
Call SetOemDro(3,2)

that should set the jog speed to 2%. i named that macro M799.m1s and put it in the right folder. when i want to try to execute the macro from the MDI it says scripter compile error in m799.m1s.

could anybody help here?

thanks,
michael
Title: Re: macro for adjusting jog speed
Post by: TPS on September 15, 2018, 02:56:00 AM
there must be something else in your macro witch causes the Compiler error.

if i run

Call SetOemDro(3,2)

here it works fine, make sure that there is a CRLF at the end of the line.
Title: Re: macro for adjusting jog speed
Post by: neptunier on September 15, 2018, 04:27:57 AM
thanks, tps, what is CRLF?
Title: Re: macro for adjusting jog speed
Post by: neptunier on September 15, 2018, 04:57:25 AM
crlf carriage return line feed at the end of the line, that was the problem.
thank you.

michael