Siemens SINUMERIK 840D sl Commissioning Manual page 765

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

#define WIDGET_CLASS_EXPORT(CLASSNAME) \
EXPORT_SL_ES_CUSTOM_WIDGET_PLUGIN(CLASSNAME,CLASSNAME(pParent))
///////////////////////////////////////////////////////////////////////////
// FOR OEM USER - please declare here your widget classes for export
///////////////////////////////////////////////////////////////////////////
WIDGET_CLASS_EXPORT(SlEsTestCustomWidget)
7.4.4
Interaction between custom widget and dialog
Description
Custom widgets interact with dialog boxes and can display values or manipulate them. Data
is therefore exchanged for the following conditions:
Condition
When starting or recompiling a dialog
When executing the GC command for generating cycle calls
Programming
The following definitions are necessary for the interaction:
Expansion of the dialog configuration
Definition:
Syntax:
Variable type:
Parameters:
Input mode:
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);
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
DEF
(variable)
(type)
(variable)
(
//5/"","
",""/wr2/)
Type
Standard input field (no grid or toggle) with any data
type (no W)
Variable
Any designation of a variable for data exchange
wr2
Reading and writing
Graphic and logic elements
7.4 Custom widgets
Direction
Dialog → custom widget
Custom widget → Dialog
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents