G2: Velocities, setpoint / actual value systems, closed-loop control
7.3 Metric/inch measuring system
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
341
Reading in part programs from external sources
If part programs, including data sets (work offsets, tool offsets, etc.), programmed in a different measuring
system from the basic system are read in from an external source, the initial state must first be changed via
machine data MD10240.
NC/PLC interface signals
In the case of NC/PLC interface signals containing dimension information, e.g. feedrate for path and positioning
axes, data exchange is carried out with the PLC in the configured basic system.
G functions G700/G710
The G functions G700/G710 extend the functionality of G70/G71 as follows:
1. The feedrate is interpreted in the programmed measuring system:
- G700: length parameters [inch]; feedrates [inch/min]
- G710: length parameters [mm]; feedrates [mm/min]
The programmed feedrate is modal and therefore remains active after subsequent G70/G71/G700/G710
commands. If the feedrate is to apply in the new G70/G71/G700/G710 context, it must be re-programmed.
2. System variables and machine data specifying lengths in the parts program are read and written in the
programmed measuring system.
Differences during the reading and writing of machine data and system variables
The following differences exist between G70/G71 and G700/G710 in terms of reading and writing machine data
and system variables in the part program:
• G70/G71: Reading and writing takes place in the configured basic system.
• G700/G710: Reading and writing takes place in the configured measuring system.
Example
The following parts program is executed with an initial metric state:
MD10240 $MN_SCALING_SYSTEM_IS_METRIC = 1
Program code Comment
N100 R1=0 R2=0 ;
N120 G01 G70 X1 F1000 ; Prog. meas. system: inch
N130 $MA_LUBRICATION_DIST[X]=10 ; MD = 10 [mm] (basic system)
N150 IF ($AA_IW[X]>$MA_LUBRICATION_DIST[X]) ; SYS [mm] > MD [mm] (both basic system)
N160 R1=1 ;
N170 ENDIF ;
N180 IF ($AA_IW[X]>10) ;
;
SYS [mm] (basic system) > 10 [inch]
(prog. meas. system)
N190 R2=1 ;
N200 ENDIF ;
N210 IF ( (R1+R2) = 1 ) ;
;
Alarm if only one of the two
conditions (N150, N180) is TRUE