5.18 ENTRY variable
Description
The ENTRY variable can be used to check by what method a dialog has been called.
Programming
Syntax: ENTRY
Description: The ENTRY variable is a read only variable.
Return Value: The result of the scan can be:
0 = No programming support
1 = Start of a screen via softkey; no code has been generated yet (default
as configured)
2 = Start of a screen via softkey; code has been generated
(default from the code generated last by this screen)
3 = Recompilation with user comment (# lines)
4 = Code_type = 0: NC code with user comment (# lines)
5 = Code_type = 1: NC code without user comment (# lines)
Example
IF ENTRY == 0
DLGL("The dialog was not called during programming")
ELSE
DLGL("The dialog was called during programming")
ENDIF
5.19 ERR variable
Description
Variable ERR checks whether the preceding line has been executed correctly.
Programming
Syntax: ERR
Description: The ERR variable is read-only.
Return value:
The result of the scan can be:
FALSE = previous line was executed error-free
TRUE = previous line was not executed error-free
Variables
5.19 ERR variable
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 83