noam....
Loop:
MVP ABS, 0, 10000 //Move to position 10000
CSUB MyFunction //Call a subroutine
//...do something else here...
JA Loop //Jump to start of the main loop
MyFunction: //Here is the subroutine
WAIT POS, 0, 0 //wait until position reached
MVP ABS 0, 0 //move back to position 0
WAIT POS, 0, 0 //wait until position reached
RSUB //End of our subroutine
Return to Trinamic Motion Control Language (TMCL)
Users browsing this forum: No registered users and 1 guest