Programming
10.1 Fundamental principles of NC programming
Surface grinding
Programming and Operating Manual, 11/2012, 6FC5398-5CP10-3BA0
207
Address
Meaning
Value assignments Information
Programming
MEAW
Measurement without
deletion of distance-
to-go
+1
-1
=+1: Measuring input 1, rising
edge
=-1: Measuring input1, falling
edge
N10 MEAW=1 G1 X... Z...
F...
$A_DBB[n]
$A_DBW[n]
$A_DBD[n]
$A_DBR[n]
Data byte
Data word
Data double-word
Real data
Reading and writing PLC
variables
N10 $A_DBR[5]=16.3 ; Write
Real variables
; with offset position 5
; (position, type and meaning
are agreed between NC and
PLC
)
$AA_FXS
[
axis
]
Status,
travel to fixed stop
-
Values: 0 ... 5
Axis
: Machine axis identifier
N10 IF $AA_FXS[X1]==1
GOTOF ....
$AA_MM
[
axis
]
Measurement result
for an axis in the
machine coordinate
system
-
Axis
: Identifier of an axis (X, Z)
traversing when measuring
N10 R1=$AA_MM[X]
$AA_MW
[
axis
]
Measurement result
for an axis in the
workpiece coordinate
system
-
Axis
: Identifier of an axis (X, Z)
traversing when measuring
N10 R2=$AA_MW[X]
$AC_MEA
[1]
Measuring job status -
Default condition:
0: Default condition, probe did
not switch
1: Probe switched
N10 IF $AC_MEAS[1]==1
GOTOF .... ; Continue
program when probe has
switched ...
$A..._..._
TIME
Timer for run time:
$AN_SETUP_TIME
$AN_POWERON_TI
ME
$AC_OPERATING_T
IME
$AC_CYCLE_TIME
$AC_CUTTING_TIM
E
0.0 ... 10+300
min (read only
value)
min (read only
value)
s
s
s
System variable:
Time since the control system
has last booted
Time since the control system
has last booted normally
Total runtime of all NC
programs
Runtime of the NC program
(only of the selected program)
Tool action time
N10 IF
$AC_CYCLE_TIME==50.5
....
$AC_..._
PARTS
Workpiece counter:
$AC_TOTAL_PARTS
$AC_REQUIRED
_PARTS
$AC_ACTUAL_PART
S
$AC_SPECIAL_PAR
TS
0 ... 999 999 999,
integer
System variable:
Total actual count
Set number of workpiece
Current actual count
Count of workpieces - specified
by the user
N10 IF
$AC_ACTUAL_PARTS==15
....
$AC_
MSNUM
Number of the active
master spindle
read-only
$P_
MSNUM
Number of
programmed master
spindle
Read-only