H2: Auxiliary function outputs to PLC
8.13 Block-search response
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
443
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):
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
...
N10 ... M8
N20 ... M9
N30 ... M7
...
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
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...