4 scripts, 1 basics, Scripts – Lenze VisiWinNet VisiWinNET Smart Benutzerhandbuch
Seite 252: Basics, Appendix

Appendix
Scripts
Basics
l
252
SHP−VWNS DE/EN 6.1
6.4
Scripts
6.4.1
Basics
VisiWinNET
â
Smart supports the creation of an individual program logic by the
programming of user−defined functions using the programming language VB.NET. The
functions required, which are generally also referred to as scripts, can be stored in different
code modules via an integrated code editor.
In contrast to a standard script, however, the functions created with VisiWinNET
â
Smart
are not interpreted during the runtime of the program, but translated into an executable
.NET code already during the project creation. This produces a higher execution speed
compared to that of classical scripts and furthermore has the advantage that the entire
functional range of the .NET framework within the code modules can be used.
A code module can either be stored globally or be assigned to a form.
Globally stored code module
In global code modules functions or global variables are stored, which are required in
different positions within the program.
A global code module can be added via the context menu of the project explorer node
Design:
Fig. 6−1
Add code module