Programming An Auxiliary Function - Siemens SINUMERIK 828D Function Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

8.7

Programming an auxiliary function

Syntax
An auxiliary function is programmed in a part program block with the following syntax:
<Type>[<Address extension>=]<Value>
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
; "Spindle right" for the master spindle of the channel.
N20 M0=3
; "Spindle right" for the master spindle of the channel.
N30 M1=3
; "Spindle right" for the 1st spindle of the channel.
N40 M2=3
; "Spindle right" for the 2nd spindle of the channel.
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
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Comment
; First spindle in the channel
; Clockwise direction of rotation
; corresponding to: M1=3
Comment
Comment
; Output to PLC: - - -
; Output to PLC: - - -
; Output to PLC: H12=130
; Output to PLC: H0=12
H2: Auxiliary function outputs to PLC
8.7 Programming an auxiliary function
431

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents