Detailed Description
2.7 Programming
Auxiliary Function Output to PLC (H2)
2-24 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
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 Meaning
DEF SPINDEL_NR = 1 ; 1. spindle in the channel
DEF DREHRICHTUNG = 3 ; Clockwise rotation
N100 M[SPINDEL_NR] = DREHRICHTUNG ; In accordance with: M1 = 3
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 Output to PLC
DEF coolant = 12 - - -
DEF lubricant = 130 - - -
H[coolant]=lubricant H12=130
H=coolant H0=12
H5 H0=5
H=5.379 H0=5.379
H17=3.5 H17=3.5
H[coolant]=13.8 H12=13.8
H=‘HFF13’ H0=65299
H=‘B1110’ H0=14
H5.3=21 Error