Inputchoice - Siemens SINUMERIK 840D sl Operating Manual

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
4.6.10.5

InputChoice

InputChoice("<label>", "<button1>;<button2>")
The InputChoice() function displays a dialog with icons in which during package execution
the user can choose directly by pressing individual buttons.
The selection that is made is returned as a string (the button labeling).
The entry can be explained using the <label> argument. An icon can optionally be chosen
at the beginning of the <label> argument, separated by a semicolon, which is displayed in
the dialog during package execution.
You can choose between the following icons <label> :
● *I; selection with information icon
● *Q; Selection with question mark icon (InputChoice icon)
● *W; selection with warning icon (warning icon)
● *E; selection with error icon
The <button> argument can be used to specify the identifiers for multiple buttons, each
separated by a semicolon.
Two successive semicolons cause a line feed, i.e. all of the subsequently listed buttons are
displayed in a new line. Thus, buttons can also be arranged amongst one another.
The freely selectable identifiers simultaneously define the possible return values of the function.
Control characters in the <button> argument:
● * Accept / input
● ^Reject / cancel with ESC
● & Alt-Shortcut
The control characters '*' and '^' can be used to specify the default button for confirming or for
cancelling with ESC at the beginning of a identifier.
The control character '&' in the identifier for buttons defines the subsequent letters as "Alt-
shortcut" (key combination Alt+<letter>).
On package execution, each button can then also be operated via the keyboard, using the
uniquely assigned key combination. Ensure an unambiguous letter assignment across all
buttons.
The Alt-shortcuts are not case-sensitive.
Example Selection without icon
Up.ret = InputChoice ("Beispiel ohne Symbol", "*&OK")
Up.ret = InputChoice ("Example without icon", "*&OK")
312
Selection without icon
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents