Indirect Programming - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming

1.2 Indirect programming

1.2
Indirect programming
1.2
Function
When indirectly programming addresses, the extended address (index) is replaced by a
variable with a suitable type.
Note
It is not possible the indirectly program addresses for:
• N (block number)
• L (subprogram)
• Settable addresses
Syntax
<ADDRESS>[<Index>]
Significance
<ADDRESS>[...]:
<index>:
Examples
Example 1: Indirectly programming a spindle number
Direct programming:
Program code
S1=300
Indirect programming:
Program code
DEF INT SPINU=1
S[SPINU]=300
58
(e.g. X[1] instead of X1 is not permissible)
Fixed address with extension (index)
Index variable, e.g., spindle number, axis, ....
Comments
; Speed in rpm for the spindle number 1.
Comments
; Defining variables, type INT and value assignment.
; Speed 300 rpm for the spindle, whose number is saved in
the SPINU variable (in this example 1, the spindle with
the number 1).
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents