Detailed description
2.7 Programming
Basic logic functions: Auxiliary Function Output to PLC (H2)
40 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
2.7 Programming
Syntax
An auxiliary function is programmed in a part program block with the following syntax:
< type > [ < address extension > = ] < value >
Address expansion
If no address extension is programmed, address extension = 0 is implicitly set.
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:
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.