The following transfer parameter data formats are supported:
● bool
● uint
● int
● double
● QString
● QByteArray
Programming
Calling the subroutine:
Syntax: void invokeSub(const QString& rszSignalName, const
QVariantList& rvntList);
Description: Custom widget signal with which a Run MyScreens subprogram is called.
Parameters:
rszSignalName Name of the Run MyScreens subprogram to be called
rvntList QVariantList array for transferring parameters that are
stored in the global parameter SIGARG and which are
available in the configuration.
Maximum size: 10 elements
Data formats supported: see above
Note: The transfer parameters are always passed "By‐
Val," i.e. only the value and not, for example, the refer‐
ence to a variable is passed.
Subroutine to be called:
Syntax: SUB(on_<Variablename>_<Signalname>)
…
END_SUB
Description: Response to a custom widget signal
Parameters:
Variable name Name of a dialog box variable to which a custom widget
is assigned.
Signal name Name of the custom widget signal
SIGARG 0 - 9 Transfer parameters for the custom widget method.
Supported data formats: See above
Note: The transfer parameters are always passed "By‐
Val," i.e. only the value and not, for example, the refer‐
ence to a variable is passed.
Example
Customer widget class declaration:
class SLESTESTCUSTOMWIDGET_EXPORT SlEsTestCustomWidget : public QWidget
{
Graphic and logic elements
7.4 Custom widgets
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 215