Siemens SINUMERIK 828D Function Manual page 443

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

The function determines the sequence in which the M auxiliary functions, which have been collected on a group-
specific basis, are output for the predefined M codes. The sequence is determined from the collection times
$AC_AUXFU_M_TICK[<n>] (see "Time stamp of the active M auxiliary function [Page 442]").
A particular M code is only taken into account once, even if it belongs to more than one group. If the number of
relevant M commands is less than or equal to 0, all the collected M codes are output. The number of relevant M
commands is limited to 64.
Example
M commands for coolant output:
M7: Coolant 2 ON
M8: Coolant 1 ON
M9: Coolants 1 and 2 OFF
Group assignment:
Group 5: M7, M9
Group 6: M8, M9
Part program (section):
Program code
...
N10 ... M8
N20 ... M9
N30 ... M7
...
During block searches, the auxiliary functions are collected on the basis of specific groups. The last auxiliary
function in an auxiliary function group is output to the PLC following a block search:
Group 5: M7
Group 6: M9
If they are output in the sequence M7  →  M9, no coolant is then active. However, coolant 2 would be active
during the execution of the program. Therefore, the correct output sequence for the M auxiliary functions is
determined with an ASUP which contains the predefined procedure AUXFUMSEQ(...):
Program code
DEF INT _I, _M_IN[3], _EXT_IN[3], _NUM_OUT, _M_OUT[2], _EXT_OUT[2]
_M_IN[0]=7 _EXT_IN[0]=0
_M_IN[1]=8 _EXT_IN[1]=0
_M_IN[2]=9 _EXT_IN[2]=0
AUXFUMSEQ(3,_M_IN,_EXT_IN,_NUM_OUT,_M_OUT,_EXT_OUT)
FOR _I = 0 TO _NUM_OUT-1
M[_EXT_OUT[_I]]=_M_OUT[_I]
ENDFOR
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
H2: Auxiliary function outputs to PLC
8.13 Block-search response
443

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents