6F3B0253

7. Instructions

Parameter table

4 registers for x parameters and subsequent 4 registers for corresponding f(x) parameters

D0600

D0601

D0602

D0603

D0604

D0605

D0606

D0607

-2000

-100

100

2000

-1800

-300

300

1800

 

 

y

 

(x4,y4)

 

 

y = f(x)

 

 

 

x1

1800

 

 

 

 

 

 

 

 

x2

 

 

 

 

 

x3

 

300

(x3,y3)

 

 

x4

-2000

-100

 

 

 

 

x

y1

 

(x2,y2)

100

2000

y2

 

-300

 

 

 

 

 

 

 

y3

 

 

 

 

 

y4

(x1,y1)

 

-1800

 

 

 

 

 

 

 

The FG instruction interpolators f(x) value for x based on the n parameters of (xi,yi).

For example, if XW04 is 1500 (x = 1500), the result 1405 (f(x) = 1405) is stored in D0100.

y

1800

1405

300

-2000 -100

100

2000

x

-300

1500

-1800

Note

The order of the x parameters should be x1 x2 ... xi ... xn. In the above example, the

data of D0600 to D0603 should be D0600 D0601 D0602 D0603.

If x is smaller than x1, y1 is given as f(x). In this example, D0604 data (-1800) is stored in D0100 if XW04 is smaller than D0600 (-2000).

If x is greater than xn, yn is given as f(x). In this example, D0607 data (1800) is stored in D0100 if XW04 is greater than D0603 (2000).

The valid data range is -32768 to 32767.

230 T1-16S User’s Manual

Page 232
Image 232
Toshiba 6F3B0253 user manual = fx