Siemens SINUMERIK 828D Function Manual page 342

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

G2: Velocities, setpoint / actual value systems, closed-loop control
7.3 Metric/inch measuring system
Program code
N220 SETAL(61000)
N230 ENDIF
N240 M30
N120: if G70 is replaced by G700, alarm 61000 (N220) does not occur.
Synchronized actions
To ensure in the case of synchronized actions that the current part program context does not determine the
measuring system used in the condition and/or action part, the measuring system must be defined within the
synchronized action (condition and/or action parts). This is the only way of achieving defined, reproducible
behavior in the use of length-related data within a synchronized action.
Example 1
The measuring system is not specified within the synchronized action. Therefore, the traversing motion of the X
axis takes place in the measuring system of the configured initial state:
Program code
N100 R1=0
N110 G0 X0 Z0
N120 WAITP(X)
N130 ID=1 WHENEVER $R1==1 DO POS[X]=10
N140 R1=1
N150 G71 Z10 F10
N160 G70 Z10 F10
N170 G71 Z10 F10
N180 M30
Example 2
The "metric" measuring system is explicitly programmed with G71 within the synchronized action. This means the
traversing motion of the X axis takes place in the metric measuring system:
Program code
N100 R1=0
N110 G0 X0 Z0
N120 WAITP(X)
N130 ID=1 WHENEVER $R1==1 DO G71 POS[X]=10
N140 R1=1
N150 G71 Z10 F10
N160 G70 Z10 F10
N170 G71 Z10 F10
N180 M30
342
Comment
;
;
;
Comment
;
;
;
;
X = 10 inch or mm, depending on the
;
rest of the parts program
;
;
Z = 10 mm
X = 10 mm
;
Z = 10 inch
X = 10 inch
;
Z = 10 mm
X = 10 mm
;
Comment
;
;
;
;
X = 10 mm, independent of the
;
rest of the parts program
;
;
Z = 10 mm
X = 10 mm
;
Z = 10 inch
X = 10 mm
;
Z = 10 mm
X = 10 mm
;
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents