28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36<br />

Spline function compilation directives<br />

PL2 NATIVE POSITION LANGUAGE<br />

SPLINE FUNCTION COMPILATION DIRECTIVES<br />

The compiler can automatically generate a PData array using linear spline<br />

interpolation from a few waypoints.<br />

.SplineDef Format: .SplineDef ,<br />

Function: Defines the name for the pr<strong>of</strong>ile and the<br />

resolution in the table. If 2 slots is defined it<br />

means that 1 extra point is inserted.<br />

.SplinePoint Format: .SplinePoint ,[timescale]<br />

Function: Defines a waypoint in the pr<strong>of</strong>ile.<br />

.SplineDefEndt Format: .SplineDefEndt<br />

Function: Terminates the definition <strong>of</strong> the pr<strong>of</strong>ile.<br />

The compiler function length () calculates the number <strong>of</strong> Pdata lines<br />

generated.<br />

EX:<br />

.Splinedef Pro_cam1,5<br />

.SplinePoint 0<br />

.SplinePoint 200<br />

.SplinePoint 600<br />

.SplinePoint 300<br />

.SplinePoint 27<br />

.SplineDefEnd<br />

R100 = length(Pro_cam1)<br />

This will compile to:<br />

PData 0 , 0<br />

PData 20 , 0<br />

PData 45 , 0<br />

PData 80 , 0<br />

PData 130 , 0<br />

PData 200 , 0<br />

PData 291 , 0<br />

PData 392 , 0<br />

PData 488 , 0<br />

PData 562 , 0<br />

PData 600 , 0<br />

PData 590 , 0<br />

PData 542 , 0<br />

PData 469 , 0<br />

PData 384 , 0<br />

PData 300 , 0<br />

PData 227 , 0<br />

PData 167 , 0<br />

PData 115 , 0<br />

PData 69 , 0<br />

PData 26 , 0<br />

Let R100 = 21<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!