Programming and Operating Manual (Milling)
268
6FC5398-4DP10-0BA1, 01/2014
Address
Significance
Value assignments Information
Programming
IF
Jump condition
-
If the jump condition is fulfilled,
the jump to the block with
Label: is performed
;
otherwise, next
instruction/block; several IF
instructions per block are
possible
Relational operators:
= = equal, <> not equal, >
greater than, < less than, >=
greater than or equal to, <=
less than or equal to
N10 IF R1>5 GOTOF LABEL3
...
N80 LABEL3: ...
MEAS
Measuring with
deletion of distance-
to-go
+1
-1
=+1: Measuring input 1, rising
edge
=-1: Measuring input1, falling
edge
N10 MEAS=-1 G1 X... Y... Z...
F...
MEAW
Measuring without
deletion of distance-
to-go
+1
-1
=+1: Measuring input 1, rising
edge
=-1: Measuring input1, falling
edge
N10 MEAW=-1 G1 X... Y... 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_MM[
ax
is
*
Measurement result
for an axis in the
machine coordinate
system
-
Axis
: Identifier of an axis (X, Y,
Z ...) traversing when
measuring
N10 R1=$AA_MM[X]
$AA_MW[
ax
is
]
Measurement result
for an axis in the
workpiece
coordinate system
-
Axis
: Identifier of an axis (X, Y,
Z ...) traversing when
measuring
N10 R2=$AA_MW[X]
$A..._..._TI
ME
Timer for runtime:
$AN_SETUP_TIME
$AN_POWERON_TI
ME
$AC_OPERATING_
TIME
$AC_CYCLE_TIME
$AC_CUTTING_TIM
E
0.0 ... 10
+300
min (value read-
only)
min (value read-
only)
s
s
s
System variable:
Time since the control system
last booted
Time since the control system
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_..._PA
RTS
Workpiece counter:
$AC_TOTAL_PART
S
$AC_REQUIRED_P
ARTS
$AC_ACTUAL_PAR
TS
$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_MEA[1
]
Measuring task
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 ...