Siemens SINUMERIK 840C User Manual

Page 971

Advertising
background image

12 Functional Descriptions

09.95

12.19.5 Interpolation and compensation with tables

2.

Example for calculating compensation curves

( IKA example 1 )

Machining of a contour with IKA

Y[mm]=100+160/3*COS[5/7*X[mm]])

from [X,Y]=[252,46.666] to [0,153.333]

Caution: This example does not take the tool offset

into account!

0. Preparation :

N0001 @40c K11 K2 K0

- Deactivate IKA 2

N0002 G0 X300 Y200

- Approach tool change point

N0003 R30=0 R31=0

- Error ID = 0

1. Structure of the table [ika3 data] :

N0005 @40c K7 K1 K0

- Input quantities 1..13 :

N0010 @40c K7 K2 K30000

Angle 0, 30, ... , 360 degrees

N0015 @40c K7 K3 K60000

in units of 10**[-3] degrees

N0020 @40c K7 K4 K90000

N0025 @40c K7 K5 K120000

N0030 @40c K7 K6 K150000

N0035 @40c K7 K7 K180000

N0040 @40c K7 K8 K210000

N0045 @40c K7 K9 K240000

N0050 @40c K7 K10 K270000

N0055 @40c K7 K11 K300000

N0060 @40c K7 K12 K330000

N0065 @40c K7 K13 K360000

N0070 @40c K8 K1 K0

- output quantities 1..13 :

N0075 @40c K8 K2 K5000

Sine [0], ... , Sine [360 degrees]

N0080 @40c K8 K3 K8660

in units of 10**[-4]

N0085 @40c K8 K4 K10000

SIN=1 -> 10000=10 mm

N0090 @40c K8 K5 K8660

N0095 @40c K8 K6 K5000

N0100 @40c K8 K7 K0

N0105 @40c K8 K8 K-5000

N0110 @40c K8 K9 K-8660

N0115 @40c K8 K10 K-10000

N0120 @40c K8 K11 K-8660

N0125 @40c K8 K12 K-5000

N0130 @40c K8 K13 K0

2. Start and end pointer [ika2 data] :

N0135 @40c K5 K1 K1

- Curve 1 uses points 1...13

N0140 @40c K6 K1 K13

N0145 @40c K55 K1 K-1

- Calculate curve 1

N0146 @30c R30 K55 K1

- [a] read error byte [> R30]

N0147 @111 R30 K0 K150

- [b] case statement for R30 :

K1 K281

Jump list for R30=1 .. 4 [error]

K2 K282

otherwise continue [R30=0] at N150;

K3 K283

scan [a] is repeated as long as

K4 K284

R30 =-1 or R30=-127

K127 K-146

K-1 K-146

12–196

© Siemens AG 1992 All Rights Reserved 6FC5197- AA50

SINUMERIK 840C (IA)

Advertising
This manual is related to the following products: