G2: Velocities, setpoint / actual value systems, closed-loop control
7.3 Metric/inch measuring system
Basic Functions
342 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
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:
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:
N220 SETAL(61000) ;
N230 ENDIF ;
N240 M30 ;
Program code Comment
N100 R1=0 ;
N110 G0 X0 Z0 ;
N120 WAITP(X) ;
N130 ID=1 WHENEVER $R1==1 DO POS[X]=10 ;
;
X = 10 inch or mm, depending on the
rest of the parts program
N140 R1=1 ;
N150 G71 Z10 F10 ; Z = 10 mm X = 10 mm
N160 G70 Z10 F10 ; Z = 10 inch X = 10 inch
N170 G71 Z10 F10 ; Z = 10 mm X = 10 mm
N180 M30 ;
Program code Comment
N100 R1=0 ;
N110 G0 X0 Z0 ;
N120 WAITP(X) ;
N130 ID=1 WHENEVER $R1==1 DO G71 POS[X]=10 ;
;
X = 10 mm, independent of the
rest of the parts program
N140 R1=1 ;
N150 G71 Z10 F10 ; Z = 10 mm X = 10 mm
N160 G70 Z10 F10 ; Z = 10 inch X = 10 mm
N170 G71 Z10 F10 ; Z = 10 mm X = 10 mm
N180 M30 ;
Program code Comment