K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
660
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
9.15.5
Restrictions
• Function replacements are not permitted in:
- Synchronized actions
- Technology cycles
• There must be no blockwise synchronized actions in front of a block that contains functions at the beginning to
be replaced. See the paragraph below "Example for: Non-modal synchronized actions".
• Only the actions required for the respective replacements can be performed in the replacement subprogram.
• In a block, in which the replacement subprogram is called at the block end, the following should be observed:
- No modal subprogram call should be active
- No subprogram return jump should be programmed
- No program end should be programmed
Example of: Non-modal synchronized actions
MD30465 $MA_AXIS_LANG_SUB_MASK, bit 0 = 1 (gear stage change)
If, in block
N1010
, the function
M43
initiates that a replacement subprogram is called, machining is interrupted
and an alarm is output.
NOTICE
The controller does not monitor whether the function to be replaced has been realized
in the replacement subprogram.
Program code
...
N1000 WHENEVER $AA_IM[X2] <= $AA_IM[X1] + 0.5 DO $AA_OVR[X1]=0
N1010 G1 X100 M43
...