Siemens sinumerik 840d sl Configuration Manual page 139

Sinumerik integrate create myhmi / wincc v13 sp1
Hide thumbs Also See for sinumerik 840d sl:
Table of Contents

Advertisement

5. Write a VB function according to the following scheme:
Sub LangFromOperate()
Select Case SmartTags("DB10DBB96") ' Selected Language in HMI Operate
Case 1 'German - Germany
Case 3 'English - United Kingdom
Case 2 'French - France
Case 6 'Italian - Italy
Case 4 'Spanish - Spain (Traditional Sort)
Case 8 'Chinese - People's Republic of China
Case Else 'Default language f.i. English - United Kingdom
End Select
End Sub
6. In the project tree, double-click the previously created HMI tag.
7. In the Inspector window under "Properties > Events", click "Value change" in the area
navigation, then click <Add function> and select the previously created VB function
(LangFromOperate in the example).
Result
The language of WinCC RT Advanced Runtime is automatically switched when the language
is changed in SINUMERIK Operate.
However, it is not possible at this time to automatically apply the language in SINUMERIK
Operate when the language is changed in the WinCC RT Advanced Runtime. Automatic
language selection is currently only possible in one direction.
SINUMERIK Integrate Create MyHMI / WinCC V13 SP1
Configuration Manual, 11/2014
SetLanguage 0 ' "Order 0" in WinCC project Runtime settings
SetLanguage 1 ' "Order 1" in WinCC project Runtime settings
SetLanguage 2 ' "Order 2" in WinCC project Runtime settings
SetLanguage 3 ' "Order 3" in WinCC project Runtime settings
SetLanguage 4 ' "Order 4" in WinCC project under Runtime settings
SetLanguage 5 ' "Order 5" in WinCC project under Runtime settings
SetLanguage 1
Code
Select Case SmartTags ("<HMI tag>")
Case <n>
SetLanguage <n>
Configure the language settings
10.3 Configuring language selection (PC systems)
Purpose
Evaluate the previously created HMI tag
("DB10DBB96" in the example), which contains
the value of the active language in SINUMERIK
Operate.
Condition that checks the value of the HMI tag.
Value <n> corresponds to the respective lan-
guage value of DB10.DBB96, see table "Lan-
guage values of DB10.DBB96" (Page 140).
Sets the language to the corresponding value
<n> in Runtime.
Value <n> is the number from the Order column
in "PC System_1 > HMI_RT_1 > Runtime set-
tings > Language & font".
139

Advertisement

Table of Contents
loading

Table of Contents