Hi,
I have a simple question: is it possible to group motion program commands on different lines as the same command? For instance, say I have:
X(10) Y(20)
But what I want to have is:
X(10)
Y(20)
As the same command (i.e., X and Y move together). Is it possible to group them together (maybe using parenthesis or something similar)? Another case would be something like this:
X(10)
if(moveY) {
Y(20)
}
I know I could make it:
if(moveY) {
X(10) Y(20)
}else{
X(10)
}
Which would work for this toy example, but not for 4 motors and their potential combinations... What I am doing right now is to have variables for those ending positions and set the one corresponding to Y to zero if moveY is false.
From the manual I got:
"All separate axis moves specified on the same command line (e.g. X10.34 Y20) will execute simultaneously in a coordinated fashion, starting at the same time, and in all modes except possibly rapid mode, ending at the same time. Axis moves specified on separate lines will execute sequentially, with or without stops in between, depending on the mode(s) in effect at the time."
But I thought I might ask here if there is a workaround.
Thanks!