Professional Documents
Culture Documents
Application note
8212_en_01
1
Description
Table of contents
Description.................................................................................................................................. 1
Software requirements................................................................................................................ 3
Starting a project......................................................................................................................... 3
5.1
5.2
5.3
5.4
Memory management................................................................................................................. 7
10 Scripts .......................................................................................................................................15
10.1
10.2
11 Databases .................................................................................................................................17
11.1
11.2
11.3
IMDB ............................................................................................................................................................ 17
ODBC........................................................................................................................................................... 18
General recommendations regarding the use of databases ......................................................................... 19
12 Debugging .................................................................................................................................19
8212_en_01
PHOENIX CONTACT
Hardware requirements
OT xx
TP xxx
TP 3xxx
Software requirements
Visu+ 2.xx
AX OPC Server 2.40.xx or later
Starting a project
Graphical elements
Various graphical elements are available in Visu+.
The following table provides an overview.
Function
Color
Linear filling
Polygonal filling
Rotation
Dynamic X, Y movement
Graphical objects
Symbol libraries
3D buttons/gauges
Trend
Diagram
DB Viewer
Embedded screens
1
PC runtime environment
Win321
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
TP xxx
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
No
Yes
Yes
5.2
Recommended maximum
number of objects
64
128
Unlimited1
OPC communication
8212_en_01
PHOENIX CONTACT
Windows PC (Win32)
On a Windows PC, a distinction is made between the local
OPC server and the remote OPC server. Any OPC server
can be used as the local server provided you are not using
a Phoenix Contact controller. If using Phoenix Contact
controllers, the AX OPC server must be used as the local
server.
The DCOM interface of the PC must be configured
accordingly in order to use a remote OPC server. For
information regarding the configuration of the DCOM
interface, please visit www.opcfoundation.org.
HMI device/touch panel (WinCE)
The AX OPC server is installed as standard on a touch
panel. It cannot be replaced by another server.
It is not possible to use a remote OPC server with a touch
panel.
5.3
Communication drivers
Communication driver
PROFIBUS
S7-MPI
CANopen
RS-232
License restrictions
8212_en_01
PHOENIX CONTACT
Hardware platform
TP xxx / OT xx
TP 3xxx
Win32
(PC runtime)
1
Figure 1
Refactoring Explorer
8212_en_01
PHOENIX CONTACT
Figure 3
Refactoring Explorer
Rebuild:
Stop build:
8212_en_01
PHOENIX CONTACT
Figure 6
Figure 4
Off-screen object
Memory management
Figure 5
8212_en_01
TP xxx / OT xx
TP xxT/M 201
TP 3xxxT/M xx
TP 5xxxT
TP 5xxxC
TP xxT/M 211
WinCE
version
5.0
6.0
PHOENIX CONTACT
Visu+ RT
Key:
1. Memory used by the Visu+ runtime environment
2. Memory used by the AX OPC server
3. Overall memory consumption of the Visu+ runtime
environment and the project
4. Free device memory, available to all processes
OPC server
4
Figure 7
6
5
Memory management in WinCE 5.0
8212B001
Key:
1. Memory used by the Visu+ runtime environment
2. 32 MB process limit of WinCE 5.0
3. Memory used by the AX OPC server
4. Free process memory available to the project
5. Overall memory consumption of the Visu+ runtime
environment and the project
6. Free device memory
Make sure that the process limit of 32 MB is not exceeded
as the HMI device will freeze if the process limit is exceeded
and can only start up again if the power supply is
interrupted.
Memory management has been revised in WinCE 6.0. The
process limit has been increased to 2 GB. A simplified
illustration of memory management in Windows CE 6.0 is
shown in Figure 8.
Visu+ RT
OPC server
Figure 9
3
Figure 8
8212_en_01
4
Memory management in WinCE 6.0
8212B002
PHOENIX CONTACT
8.1
Figure 10
Allocated memory
7 MB
2.5 MB
2.3 MB
11.8 MB
TP xxx / OT xx
TP 3xxx
Recommended maximum
number of objects
64
128
Screen properties
8212_en_01
Figure 11
PHOENIX CONTACT
Figure 13
Figure 14
Figure 12
8212_en_01
PHOENIX CONTACT
10
Figure 15
8212_en_01
Figure 16
The screen is kept in the process memory the next time the
visualization project is started.
Recommendation: optimize the screen as
described in Optimizing screens with a large
number of objects on page 10 before activating
the Keep always in memory option.
When the Keep always in memory option is
activated, active screen elements (e.g., trend
windows) and programs (e.g., global scripts) are
executed, even if the screen is not visible. This
can lead to insufficient memory capacity (low
memory condition).
Recommendation: only use the Keep always in
memory function for screens without active
screen objects and/or programs.
Preloading screens
Even when the Keep always in memory option is activated,
it will take some time for a screen to load when it is called for
the first time as the screen has to be loaded in the memory.
You can avoid this delay when calling the screen for the first
time by preloading the screen when Visu+ is started.
Proceed as follows to use this function:
PHOENIX CONTACT
11
Figure 18
8212_en_01
PHOENIX CONTACT
12
Figure 20
8212_en_01
9.2
PHOENIX CONTACT
13
Figure 22
9.3
Figure 21
Dynamic assignment
Figure 23
8212_en_01
PHOENIX CONTACT
14
10
Scripts
Global scripts
Figure 25
Figure 24
8212_en_01
PHOENIX CONTACT
15
Priority
10.2
This section only applies to Windows PCs with
Win32.
Figure 26
Local scripts
In the Script Explorer event list, select the event that will
call the script.
n x 700 kbytes + n x CL
Key:
700 kbytes
CL
n
8212_en_01
Figure 27
PHOENIX CONTACT
16
11.1
IMDB
When using the IMDB (In Memory Database), all values are
stored directly in the device memory. This is also the default
setting for all database connections if a WinCE template is
used. If a WinCE template is not used, this setting must be
activated manually. To do this, proceed as follows:
+
=
11
Databases
8212_en_01
Figure 28
PHOENIX CONTACT
17
Figure 29
Figure 30
ODBC
8212_en_01
PHOENIX CONTACT
18
11.3
Allocated memory
Approximately 3 MB
Approximately 0.75 MB
Approximately 1 MB per
data logger
Figure 31
12
The messages that are displayed are also saved to the log
files for the visualization project. The log files are located in
the LOGS folder in your project directory.
Debugging
8212_en_01
19