VPLANE                Define the coordinate system for Vector Mode

Syntax                        

VPLANE (X_axis, Y_axis, Tangent_axis)

Vector PLANE

 

OperandsX_axis, Y_axis, Tangent_axis: slave axes defining the coordinate system

PlaceTMLOnline

Binary code

VPLANE

DescriptionSets the 2D coordinate system for Vector Mode using the slave axes specified with X_axis, Y_axis. and Tangent_axis.
Example

// 2D linear interpolated profile. Position feedbacks: 500 lines

//incremental encoder

 SETMODE 0xCF00; //Clear buffer

 VPLANE (A, B, C);// X_axis = A, Y_axis = B and Tangent_axis = C

 RESRATIOX=0u;

 RESRATIOY=0u;

 NLINESTAN=2000;

 MODE VM; // Set Vector Mode

 // Circular segment of radius 3.14159[mm], with initial angle 0[deg] and angle increment 360[deg])

 CIRCLE1 1L, 360.; CIRCLE2 1L, 0.;

 UPD; //Execute immediate

 // Insert End Segment

 VSEG1 0L, 0L; VSEG2 0L, 0L;

 WMC (A, B, C); // wait for motion completion