
Auxiliary Function Outputs to PLC (H2)
9.2 Programming of auxiliary functions
Turning, Milling, Nibbling
158
Function Manual, 11/2012, 6FC5397-1CP10-5BA0
9.2
Programming of auxiliary functions
General structure of an auxiliary function
Letter[address extension]=Value
The letters which can be used for auxiliary functions are: M, S, H, T, D, F.
An address extension only exists for the H function. The address extension must be an
integer. The square brackets can be omitted when an address extension is specified directly
as a numeric value.
The value is defined differently for the individual auxiliary functions:
●
INT= integer
●
REAL= fractional decimal number (floating point)
Table 9- 1
Overview of auxiliary functions, programming
Function
Address extension
(integer)
Value
Explanation
Number
per block
Meaning
Area
Area
Type
Meaning
max
M
Spindle no.
1 - 2
0-99
INT
Function
Specific numbers are
assigned a fixed
function.
5
Switchgear
protection
Spindle no.
1 - 2
0-±3.4028 ex 38
REAL Spindle
speed
1
H
Any
0 - 99
±3.4028 ex 38
REAL Any
Functions have no
effect in the NCK; only
to be implemented on
the PLC
3
D
-
-
0-32000
INT
Tool selection
1
D
-
-
0-9
INT
Tool offset
selection
D0 deselection, default
D1
1
F
-
-
0,001-
999 999,999
REAL Path feedrate
1
A maximum total of 10 auxiliary functions may be programmed in one block. Alarm 14770
"Auxiliary function incorrectly programmed" is output when the specified length for address
extension of value is exceeded or when the wrong data type is used. The following table
shows some programming examples for H functions.
If the admissible number of auxiliary functions per block is exceeded, alarm 12010 is issued.
Table 9- 2
Programming examples of H functions
Programming
Output of H function to the PLC
H5
H0=5.0
H=5.379
H0=5.379