Siemens SINUMERIK 840Di Function Manual page 498

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Detailed Description
2.7 Programming
Symbolic addressing
The values for parameter: The "Address expansion" and "Value" can also be defined
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 1st spindle:
Programming syntax
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 numeric
value is transferred instead.
Programming examples
Programming examples of auxiliary functions with the corresponding values for output to the
PLC.
Programming syntax
DEF coolant = 12
DEF lubricant = 130
H[coolant]=lubricant
H=coolant
H5
H=5.379
H17=3.5
H[coolant]=13.8
H='HFF13'
H='B1110'
H5.3=21
2-24
Meaning
; 1. spindle in the channel
; Clockwise rotation
; In accordance with: M1 = 3
Output to PLC
- - -
- - -
H12=130
H0=12
H0=5
H0=5.379
H17=3.5
H12=13.8
H0=65299
H0=14
Error
Auxiliary Function Output to PLC (H2)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents