SETMODE                Configure Vector or Linear Interpolation Mode

Syntax                        

SETMODE value16

SET 2D/3D motion MODE

 

Operandsvalue16: 16-bit integer immediate value

PlaceTMLOnline

Binary code

SETMODE

DescriptionSets the Vector or Linear Interpolation Mode as specified by value16. Value16 has the following significance:

SETMODEdescription

Remark: after SETMODE execution, a copy of value16 is saved in the TML variable MACOMMAND.

Example

// 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;