Configuring PI services of the NC as system functions
9.5 Running NC functions from WinCC
Example
The following example code is used to disable the "SelectPartProgram" button in the "NC
program part" control.
VBScript
Sub Button_select_not_visable()
'VBS_Example_ScreenItems
Dim objNCpartprogram
Set objNCpartprogram = HmiRuntime.Screens("Screen_1").ScreenItems("NC part program
view_1")
objNCpartprogram.ButtonSelectPartProgramVisible = False
End Sub
The "Keyboard operation for screen objects" function group with "PartProgramListRefresh",
for example, is not enabled for scripts.
132
SINUMERIK Integrate Create MyHMI / WinCC V13 SP1
Configuration Manual, 11/2014