Variables
5.17 CURVER variable
5.16
CURPOS variable
Description
The CURPOS variable calls or manipulates the position of the cursor in the active input field
of the current dialog. The variable shows how many characters are in front of the cursor. If the
cursor is located at the start of the input field, then CURPOS assumes the value of 0. If the
value of CURPOS is changed, then the cursor is positioned at the appropriate location in the
input field.
In order to be able to respond to changes in the variable value, it is possible to monitor for
changes using a CHANGE method. If the value of CURPOS changes, then a jump is made to
the CHANGE method and the instructions contained there are executed.
5.17
CURVER variable
Description
The CURVER (CURrent VERsion) property allows the programming to be adapted in order to
handle different versions. The CURVER variable is read-only.
Note
Even if previously recompiled with an older version, the code is automatically generated with
the most recent version. The "GC" command always generates the most recent version. An
additional identifier indicating the generated version is inserted in the user comment of the
generated code in versions > 0.
Rules
The most recent dialog with all its variables is always displayed.
● Variables used previously may not be changed.
● New variables are inserted in the existing (cycle) programming in arbitrary order.
● It is not permissible to delete variables from a dialog from one version to the next.
● The dialog must contain all variables of all versions.
Example
(IF CURVER==1 ...)
82
; When the code is recompiled, CURVER is automat-
ically assigned the version of the recompiled
code.
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SINUMERIK Integrate Run MyScreens