SETMODE Configure Vector or Linear Interpolation Mode |
Syntax
Binary code
Remark: after SETMODE execution, a copy of value16 is saved in the TML variable MACOMMAND.
// 3D linear interpolated profile. Position feedbacks: 500 lines //incremental encoder
SETMODE 0xCF00; //Clear buffer LPLANE (A, B, C); MODE LI; // Set Linear Interpolation Mode //Increment position with (X, Y, Z) = (0.5[rot], 0.05[rot], 0.05[rot]) LPOS1 1000L, 100L, 100L; LPOS2 1000L, 100L, 100L; UPD; //Execute immediate //Increment position with (X, Y, Z) = (0.05[rot], 0.5[rot], 0.05[rot]) LPOS1 100L, 1000L, 100L; LPOS2 100L, 1000L, 100L; //Increment position with (X, Y, Z) = (0.5[rot], 0.1[rot], 0.25[rot]) LPOS1 1000L, 200L, 500L; LPOS2 1000L, 200L, 500L; //Increment position with (X, Y, Z) = (0.5[rot], 0.5[rot], 0.5[rot]) LPOS1 1000L, 1000L, 1000L; LPOS2 1000L, 1000L, 1000L; |