Programming
8-132
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
Address ProgrammingInformationValue assignmentsMeaning
AP Polar angle 0 ... 359.99999 Specification in degrees, traversing in polar
coordinates, definition of the pole; in addition: Polar
radius RP
see G0, G1, G2, G3, G110, G111, G112
AR Aperture angle for circular
interpolation
0.00001 ... 359.99999 Specified in degrees; one possibility of defining the
circle when using G2/G3
See G2, G3
CALL Indirect cycle call – Special form of the cycle call; no parameter transfer;
the name of the cycle is stored in a variable;
only intended for cycle-internal use
N10 CALL VARNAME ; Variable name
CR Radius for circular
interpolation
0.010 ... 99 999.999
Negative sign – for
selecting the circle:
greater than semi-circle
One possibility of defining a circle when using G2/G3 See G2, G3
DC Absolute coordinate;
approach position directly
(for rotary axis, spindle)
– It is also possible to specify the dimensions for the end
point of a rotary axis with DC(...) irrespective of
G90/G91.
N10 A=DC(45.3) ; Approach A axis position
directly
DEF Definition instruction Defining a user variable of the type
BOOL, CHAR, INT, REAL, STRING[n],
to be defined directly at the beginning of the program
DEF INT VARI1=24, VARI2 ; 2 variables of the INT type
; name will be def by user
DEF STRING[12] VARS3=“HELLO” ; max. 12 char.
GOTOB GoBack instruction – A GoTo operation is performed to a block marked by a
label; the jump destination is in the direction of the
program start.
N10 LABEL1: ...
...
N100 GOTOB LABEL1
GOTOF GoTo instruction – A GoTo operation is performed to a block marked by a
label; the jump destination is in the direction of the end
of the program.
N10 GOTOF LABEL2
...
N130 LABEL2: ...
IC Coordinate specified
using incremental
dimensions
– The dimension can be specified for the end or center
point of a certain axis irrespective of G90.
N10 G90 X10 Y=IC(20) ; Y – incremental dimension,
X – absolute dimension
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
Comparison operators:
= = Greater than, <> not equal to
> greater than, < less than
>= greater than or equal to
<= less than or equal to
N10 IF R1>5 GOTOF LABEL3
...
N80 LABEL3: ...
$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
; Writing the REAL variables with offset position 5
; (position, type and meaning are agreed between NC
and PLC)
$A_MONIFA
CT
Factor for tool life
monitoring
> 0.0 Initialization value: 1.0 N10 $A_MONIFACT=5.0 ; Tool life elapsed
5 times faster