Introduction
This article shows which NA features and objects can be controlled from VB.NET. More information on syntax can be found by typing the method name into the VB.NET code editor and allowing Sysmac Studio to offer suggestions.
NA Methods
The following NA functions can be called from VB:
Category |
Action |
User Administration |
Login |
Login |
Logout |
Pages |
ShowPage |
ClosePage |
ShowPreviousPage |
ShowSystemMenu |
Variables |
InvertVariable |
IncreaseVariable |
DecreaseVariable |
SetVariable |
ResetVariable |
EditVariable |
User Alarms |
AcknowledgeUserAlarm |
AcknowledgeLatestUserAlarm |
AcknowledgeAllUserAlarms |
IsUserAlarmActive |
IsUserAlarmRaised |
ClearUserAlarmLog |
SaveUserAlarmLogToFile |
ReadActiveUserAlarmInfo |
ScrollAlarmViewerList |
GetSelectedAlarm |
GetAlarmInfo |
Data Logging |
StartDataLogging |
StartDataLogging |
StopDataLogging |
StopDataLogging |
ClearDataLogBuffer |
ClearDataLogBuffer |
ExportDataLogBuffer |
Recipes |
GetRecipeTemplateNames |
GetRecipeNames |
GetRecipeIngredientNames |
SaveRecipe |
SaveRecipeAs |
SaveAllRecipes |
AddRecipe |
DeleteRecipe |
ImportRecipes |
ReadRecipeFromController |
WriteRecipeToController |
GetRecipeIngredients |
SetRecipeIngredients |
GetRecipeIngredientValue |
SetRecipeIngredientValue |
GetSelectedRecipe |
Movie |
OpenMovieFile |
PlayMovie |
StopMovie |
PauseMovie |
Trend Graph (coming soon)
|
ScrollTrendToStart |
ScrollTrendToEnd |
ScrollTrendForward |
ScrollTrendBackward |
ScrollTrendUp |
ScrollTrendDown |
ZoomIntoTrend |
ZoomOutofTrend |
ShowTrendCursor |
MoveTrendCursor |
AddOverlayGraph |
SetTrendDisplayMode |
Multi-Language |
SetLanguage |
GetLanguage |
GetResourceString |
Date & Time |
SetDateTime |
ScreenSaver |
ActivateScreenSaver |
DeactivateScreenSaver |
External storage |
EjectSDMemory |
EjectUSBDevice |
GetConnectedUSBDevices |
User operation |
EnableInputOperartion |
Document Viewers |
ShowDocument |
ShowDocument |
Using VB.NET to Access Object Properties
Using code it is possible to access some properties of objects that are on the screen. This is limited mostly to appearance properties such as position or size. The VB.Net names of properties sometimes differ slightly from the property table shown in Sysmac Studio (which is translated into many different languages). The following table shows what can be accessed, and the VB property names:
Object |
Property Grid Name |
VB.NET Name |
Checkbox |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Date/Time |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Dropdown |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Listbox |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Image |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Label |
> Text (Default) |
Text |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Radio Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Slider |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Textbox |
> Text (Default) |
Text |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Data Display |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Data Edit |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Group |
Left |
Left |
Top |
Top |
IAG |
Left |
Left |
Top |
Top |
Line |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Ellipse |
FillColor |
Fill |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Triangle |
FillColor |
Fill |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Rectangle |
FillColor |
Fill |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Polyline |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Polygon |
FillColor |
Fill |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Curve |
LineColor |
Stroke |
LineThickness |
StrokeThickness |
IsVisible |
IsVisible |
n/a |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Bit Lamp |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Data Lamp |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Trend Graph |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
User Alarm Viewer |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Recipe Viewer |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Media Player |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Linear Gauge |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Rotational Gauge |
IsVisible |
IsVisible |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnable |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Momentary Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Reset Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Set Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
Toggle Button |
IsVisible |
IsVisible |
IsEnabled |
IsEnabled |
Left |
Left |
Top |
Top |
Width |
Width |
Height |
Height |
See Also:
Introduction to the NA series HMI