EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
1167 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Notice:
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
{
Q_OBJECT signals: void invokeSub(const QString& szSubName, const QVariantList&
vntList);
}
Custom widget class:
QVariantList vntList;
vntList << 123.456;
emit invokeSub("MySub", vntList);
Dialog box configuration:
DEF MyCWVar1 = (W///,"slestestcustomwidget.SlEsTestCustomWidget")
SUB(on_MyCWVar1_MySub)
DEBUG("SUB(on_MyCWVar1_MySub) was called with parameter: """ << SIGARG[0] <<
"""")
END_SUB
Result easyscreen_log.txt:
[10:22:40.445] DEBUG: SUB(on_MyCWVar1_MySub) was called with parameter: "123.456"
Graphic and logic elements
7.4 Custom widgets
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 183

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals