Hello Guest it is October 20, 2019, 06:06:16 PM

Author Topic: macro for adjusting jog speed  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

macro for adjusting jog speed
« 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

Offline TPS

*
  •  1,389 1,389
    • View Profile
Re: macro for adjusting jog speed
« Reply #1 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.
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: macro for adjusting jog speed
« Reply #2 on: September 15, 2018, 04:27:57 AM »
thanks, tps, what is CRLF?
Re: macro for adjusting jog speed
« Reply #3 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