Detailed description
2.7 Programming
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
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.
40
Meaning
; 1. spindle in the channel
; Clockwise rotation
; in accordance with: M1=3
Basic logic functions: Auxiliary Function Output to PLC (H2)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0