Programming
10.1 Fundamental Principles of NC Programming
Cylindrical grinding
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
233
Address
Meaning
Value assignments Information
Programming
FXST [
axis
] Clamping torque,
travel to fixed stop
> 0.0 ... 100.0
in %, max. 100% from the max.
torque of the drive,
axis:
Use the machine identifier
N30 FXST[Z1]=12.3
FXSW [
axis
] Monitoring window,
travel to fixed stop
> 0.0
Unit of measurement mm or
degrees, axis-specific,
axis:
Use the machine identifier
N40 FXSW[Z1]=2.4
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
GoForward
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 Z=IC(20) ;Z -
incremental dimension,
X - absolute dimension
IF
Jump condition
-
If the jump condition is fulfilled,
the GoTo operation to the block
with the following
label is
performed;
, otherwise, the next
instruction/block will follow.In
one block,
several IF instructions 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: ...
LIMS
Upper limit speed of
the spindle with G96,
G97
0.001 ... 99
999.999
Limits the spindle speed with
the G96 function enabled -
constant cutting rate and G97
See G96
MEAS
Measurement with
deletion of distance-
to-go
+1
-1
=+1: Measuring input 1, rising
edge
=-1: Measuring input1, falling
edge
N10 MEAS=-1 G1 X... Z...
F...
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 ....