EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 840DE SL

Siemens SINUMERIK 840DE SL Commissioning Manual

Siemens SINUMERIK 840DE SL
1734 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
Page #1195 background imageLoading...
Page #1195 background image
WIDGET_CLASS_EXPORT(SlEsTestCustomWidget)
7.4.4 Interaction between custom widget and dialog box - Automatic data exchange
Custom widgets interact with dialog boxes and can display values or manipulate them.
Conditions
Automatic data exchange takes place under the following conditions:
Condition Direction
When starting or recompiling a dialog Dialog → custom widget
When executing the GC command for generating cycle calls Custom widget → Dialog
Programming
The following definitions are necessary for the interaction:
Expansion of the dialog configuration
Definition: DEF
(variable)
Syntax: (
(type)
//5/"","
(variable)
",""/wr2/)
Variable type: Type Standard input field (no grid or toggle) with any data type
(no W)
Parameters: Variable Any designation of a variable for data exchange
Input mode: wr2 Reading and writing
Example
DEF CUSVAR1 = (R//5/"","CUSVAR1",""/wr2/)
Expansion of the class definition
In the class definition of the custom widgets, a QProperty must be created whose name is
identical to the selected variable of the dialog configuration, e.g.:
Q_PROPERTY(double CUSVAR1 READ cusVar1 WRITE setCusVar1);
Example
The class definition of the dll file should look like this:
#define SLESTESTCUSTOMWIDGET_EXPORT Q_DECL_EXPORT
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 209

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Questions and Answers:

Siemens SINUMERIK 840DE SL Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 840DE SL
CategoryControl Systems
LanguageEnglish

Related product manuals