Detailed description
2.11 Subroutine call through NC language replacement
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
199
2.11.5
Properties of replacement subroutines
General rules for replacement subroutines
•
Like any other subroutine, a replacement subroutine can contain a PROC statement.
•
If the replacement subroutine is called from the ISO dialect mode, then an implicit
switchover to the standard language mode takes place on processing the replacement
subroutine.
•
No transfer parameters can be defined. The transfer of data to the replacement
subroutine always occurs via a system variable.
•
The PROC statement enables program attributes such as SBLOF and DISPLOF to be
programmed.
•
The replacement subroutine behaves like any other subroutine with respect to SBLOF in
active single block mode:
–
Return jump with M17: Stop at end of subroutine
Note: An output of the M Function to the PLC takes place on the basis of MD20800
$MC_SPF_END_TO_VDI
(subroutine end at the PLC) Bit0.
–
Return jump with RET: No stop at end of subroutine
•
If the replacement cycle has the DISPLOF attribute, the program line that has resulted in
the replacement cycle call is displayed as the current block in the block display.
•
With DELAYFSTON and DELAYFSTOF, areas or even the entire replacement cycle can
be protected against interruptions such as NC Stop, read-in disable, etc.
Reference: /PGA/ Programming Manual; "Conditionally interruptible program sections".
•
Replacements do not occur recursively, i.e., the function that has led to the replacement
subroutine call is no longer replaced if it is programmed again in the replacement
subroutine.
Note
The following applies in general to replacements
In the case of replacements that are called due to programmed auxiliary functions, the
replacement subroutine call does not result in any output of the auxiliary function to the
PLC. The auxiliary function is only output if it is programmed again in the replacement
cycle.
The replacements are active even in the ISO dialect mode
Replacement subroutines are basically executed in the Siemens Standard Mode. A
replacement subroutine called in the ISO Dialect Mode is reset to the original language
mode.
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...