Summary of basic steps, About procedures – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 662
F
ACTORY
T
ALK
V
IEW
S
ITE
E
DITION
U
SER
’
S
G
UIDE
C–2
• •
•
•
•
Send custom messages to the Diagnostics log.
Send specific messages to the
Diagnostics List and Diagnostics log, to record operation conditions and events through
VBA code.
Secure the system.
The FactoryTalk View SE Client object model allows you to
obtain security information about who is using the system, and to use the security
information and events to control access to the system.
For example, you can restrict a user’s access to a graphic display by creating code that
opens the graphic display only when the user is logged in with a particular security code.
Summary of basic steps
There are two basic tasks involved in working with the FactoryTalk View SE Client object
model and VBA:
1. Create the graphic display and the graphic objects you want to write display code for.
Display code is saved with a graphic display. Before you can write VBA code that
manipulates graphic objects, you must create the graphic display and the graphic
objects in FactoryTalk View Studio.
For details about creating graphic displays, see Chapter 16, Creating graphic displays.
2. In the VBA IDE (Integrated Development Environment), using the Visual Basic
programming language, write procedures in the code window for the module called
ThisDisplay.
For an overview of the VBA IDE, see page C-3. For information about opening Help
for VBA, see “To open VBA Help” on page C-8.
This chapter highlights aspects of VBA that are unique to FactoryTalk View Studio and
describes how to open the VBA IDE from FactoryTalk View graphic displays.
This chapter does not include detailed information about using VBA —it is assumed that
you are familiar with the VBA environment and Visual Basic programming language.
About procedures
A procedure is a named block of code that runs as a unit. Examples of procedures are
Visual Basic subroutines and functions. The module called ThisDisplay contains the
procedures that you create to run in response to a display’s events.
VBA procedures can call procedures in other user forms or modules. For information
about creating Visual Basic procedures, see VBA Help.