Siemens SINUMERIK 840D sl Function Manual page 413

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

Advertisement

Note
If no address extension is programmed, the address extension is implicitly set = 0.
Predefined auxiliary functions with the address extension = 0 always refer to the master spindle
of the channel.
Symbolic addressing
The values for the "address extension" and "value" parameters can also be specified
symbolically. The symbolic name for the address extension must then be stated in brackets.
Example:
Symbolic programming of the auxiliary function M3 (spindle right) for the first spindle:
Program code
DEF SPINDEL_NR=1
DEF DREHRICHTUNG=3
N100 M[SPINDEL_NR] = DREHRICHTUNG
Note
If you use symbolic names to program an auxiliary function, the symbolic name is not
transferred when the auxiliary function is output to the PLC. The corresponding numerical value
is transferred instead.
Examples
Example 1: Programming of predefined auxiliary functions
Program code
N10 M3
N20 M0=3
N30 M1=3
N40 M2=3
Example 2: Programming examples of auxiliary functions with the corresponding values for
output to the PLC
Program code
DEF Coolant=12
DEF Lubricant=130
H[coolant]=lubricant
H=coolant
H5
H=5.379
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Comment
; First spindle in the channel
; Clockwise direction of rotation
; corresponding to: M1=3
Comment
; "Spindle right" for the master spindle of the channel.
; "Spindle right" for the master spindle of the channel.
; "Spindle right" for the 1st spindle of the channel.
; "Spindle right" for the 2nd spindle of the channel.
Comment
; Output to PLC: - - -
; Output to PLC: - - -
; Output to PLC: H12=130
; Output to PLC: H0=12
; Output to PLC: H0=5
; Output to PLC: H0=5.379
H2: Auxiliary function outputs to PLC
8.7 Programming an auxiliary function
413

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents