H2: Auxiliary function outputs to PLC
8.2 Predefined auxiliary functions
Basic Functions
416
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
8.2.3.2
Type, address extension and value
An auxiliary function is programmed via the type, address extension, and value parameters (see "Programming
an auxiliary function [Page 431]").
Type
The identifier of an auxiliary function is defined via the "type," e.g.:
The setting is done via the following machine data:
MD22050 $MC_AUXFU_PREDEF_TYPE[<n>] (type of predefined auxiliary functions)
Address extension
The "address extension" of an auxiliary function is for addressing different components of the same type. In the
case of predefined auxiliary functions, the value of the "address extension" is the spindle number to which the
auxiliary function applies.
The setting is done via the following machine data:
MD22060 $MC_AUXFU_PREDEF_EXTENSION[<n>] (address extension for predefined auxiliary functions)
Grouping together auxiliary functions
To assign an auxiliary function for all spindles of a channel to the same auxiliary function group, the value "–1" is
entered for the "address extension" parameter.
Example:
The auxiliary function M3 (machine data index = 6) is assigned to the second auxiliary function group for all the
channel's spindles.
"M"
For additional function
"S"
for spindle function
"F"
for feed
Note
The "type" cannot be changed for predefined auxiliary functions.
MD22040 $MC_AUXFU_PREDEF_GROUP[ 6 ]
= 2
MD22050 $MC_AUXFU_PREDEF_TYPE[ 6 ]
= "M"
MD22060 $MC_AUXFU_PREDEF_EXTENSION[ 6 ] = -1
MD22070 $MC_AUXFU_PREDEF_VALUE[ 6 ]
= 3