Professional Documents
Culture Documents
Revision: 00
2011-11-02
This user manual is valid for: Designation Visu+ Version 2.xx or later Order No. See Ordering data
8212_en_00
PHOENIX CONTACT
This symbol together with the signal word NOTE and the accompanying text alert the reader to a situation which may cause damage or malfunction to the device, hardware/software, or surrounding property. This symbol and the accompanying text provide the reader with additional information or refer to detailed sources of information. How to contact us Internet Up-to-date information on Phoenix Contact products and our Terms and Conditions can be found on the Internet at: www.phoenixcontact.com Make sure you always use the latest documentation. It can be downloaded at: www.phoenixcontact.net/catalog Subsidiaries If there are any problems that cannot be solved using the documentation, please contact your Phoenix Contact subsidiary. Subsidiary contact information is available at www.phoenixcontact.com. PHOENIX CONTACT GmbH & Co. KG Flachsmarktstrae 8 32825 Blomberg GERMANY Should you have any suggestions or recommendations for improvement of the contents and layout of our manuals, please send your comments to: tecdoc@phoenixcontact.com
Published by
PHOENIX CONTACT
Please observe the following notes General terms and conditions of use for technical documentation Phoenix Contact reserves the right to alter, correct, and/or improve the technical documentation and the products described in the technical documentation at its own discretion and without giving prior notice, insofar as this is reasonable for the user. The same applies to any technical changes that serve the purpose of technical progress. The receipt of technical documentation (in particular user documentation) does not constitute any further duty on the part of Phoenix Contact to furnish information on modifications to products and/or technical documentation. You are responsible to verify the suitability and intended use of the products in your specific application, in particular with regard to observing the applicable standards and regulations. All information made available in the technical data is supplied without any accompanying guarantee, whether expressly mentioned, implied or tacitly assumed. In general, the provisions of the current standard Terms and Conditions of Phoenix Contact apply exclusively, in particular as concerns any warranty liability. This manual, including all illustrations contained herein, is copyright protected. Any changes to the contents or the publication of extracts of this document is prohibited. Phoenix Contact reserves the right to register its own intellectual property rights for the product identifications of Phoenix Contact products that are used here. Registration of such intellectual property rights by third parties is prohibited. Other product identifications may be afforded legal protection, even where they may not be indicated as such.
PHOENIX CONTACT
Table of contents
1 General information ................................................................................................................1-1
1.1 1.2 1.3 User group of this OT/TP design guide...............................................................1-1 Hardware requirements ...................................................................................... 1-1 Software requirements ....................................................................................... 1-1
2 3
Purpose of this Visu+ OT/TP design guide ..............................................................................2-1 Starting a project .....................................................................................................................3-1
3.1 Design of the screens ......................................................................................... 3-1 3.1.1 Possible number of screen objects ..................................................... 3-1 3.1.2 Graphical elements .............................................................................3-1 Communication driver ........................................................................................3-2 3.2.1 Win32 Systems ...................................................................................3-2 3.2.2 WinCE (touch panels) ......................................................................... 3-3 I/O bytes ............................................................................................................. 3-3
3.2
3.3
6.2
8212_en_00
PHOENIX CONTACT
Visu+
Scripts .....................................................................................................................................8-1
8.1 Global scripts......................................................................................................8-1 8.1.1 Separate thread ..................................................................................8-1 8.1.2 Priority .................................................................................................8-2 Local script .........................................................................................................8-3
8.2
9.2
ii
PHOENIX CONTACT
8212_en_00
General information
General information
Unless mentioned otherwise, all information in this manual refers to the operating devices OT xx, TP xx, and TP 3xxx. For additional information on HMI and Visu+, please refer to the UM QS EN OT TP quick start guide. In order to ensure the safe use of the product described, we recommend that you read the data sheets of the connected devices before.
1.1
The use of products described in this manual is oriented exclusively to qualified application programmers and software engineers, who are familiar with the safety concepts of automation technology and applicable standards. Phoenix Contact accepts no liability for erroneous handling or damage to products from Phoenix Contact or third-party products resulting from disregard of information contained in this manual.
1.2
Hardware requirements
OT xx TP xx TP 3xxx
1.3
Software requirements
8212_en_00
PHOENIX CONTACT
1-1
Visu+
1-2
PHOENIX CONTACT
8212_en_00
8212_en_00
PHOENIX CONTACT
2-1
Visu+
2-2
PHOENIX CONTACT
8212_en_00
Starting a project
Starting a project
Before you start a project it is very important to define the requirements of the project to decide which platform (Win32 or WinCE) or license fits best (Win32). It is useful to prepare a checklist as follows: Design of the screens (resolution, number and type of objects) Total number of I/O variables Communication protocol to be used Web Clients needed Redundancy functions Communication between Visu+ applications This list is only a suggestion, the requirements may vary depending on the project.
3.1
The design of the screens has a large influence on the required resources and also on the graphical capabilities of the platform. It is very important for the hardware and runtime definition.
3.1.1
3.1.2
Graphical elements
Graphical elements TP xx Yes Yes No No Yes Yes Yes Win32 Runtime Yes Yes Yes Yes Yes Yes Yes
8212_en_00
PHOENIX CONTACT
3-1
Visu+ Table 3-1 Function 3D button/gauges Trend Diagram DB Viewer Embedded screens Graphical elements TP xx No Yes No Yes Yes Win32 Runtime Yes Yes Yes Yes Yes
3.2
Communication driver
Visu+ offers the possibility of using so-called communication drivers for data exchange with the following bus systems: CAN/CAN Open IEC 60870-5-104 IEC 60870-5-101 MODBUS TCP MODBUS RTU INTERBUS PROFIBUS Ethernet IP S7-MPI Ethernet S7-300/400 TCP The number of usable drivers and the terms of licensing vary between the Win32 and WinCE (touch panel) runtime. For more detailed technical information please refer to the Visu+ 2.x data sheet (DB EN VISU+ 2 ...).
3.2.1
Win32 Systems
A Visu+ RT -D license is required to use communication drivers. Some drivers (e.g., CAN/CAN Open, INTERBUS) require additional hardware. Additional information can be found in the documentation of the drivers. The system limitations are as follows: Maximum of two communication drivers Maximum of 128 stations on each driver An insufficient hardware configuration can decrease the performance of the driver.
Runtime configurations with additional drivers (64 drivers, maximum) are available on request. Please contact your nearest Phoenix Contact representative.
3-2
PHOENIX CONTACT
8212_en_00
Starting a project
3.2.2
The license for the driver is already included in WinCE runtime. With standard touch panels (TP xx / OT xx) only the Ethernet based drivers can be used: IEC 60870-5-104 MODBUS TCP Ethernet IP Ethernet S7-300/400 TCP A touch panel of the TP 3xxx series is necessary if you use other drivers. TP 3xxx Display size - 057 5.7 - 070 7.0 - 105 10.5 - 121 12.1 xx Additional interface - PB PROFIBUS - MPI MPI - CO CANopen - SER RS232
It is possible to use two drivers on a touch panel at the same time (e.g., Modbus TCP and PROFIBUS).
3.3
I/O bytes
Depending on the license or runtime version there are limitations in the maximum number of allowed I/O bytes. These bytes are all transferred via OPC or drivers. TP xx / OT xx: TP 3xxx: Win32 (PC runtime):
1
Only active I/O bytes are relevant for the license and are calculated during runtime.
Check the number of I/O bytes Visu+ includes a function to calculate the number of actually used I/O bytes. This permits checking if the planned or already bought Visu+ RT license is still sufficient or if the project can be run on a touch panel. To use this function, start your project first by clicking the "Start Project button. During runtime all I/O bytes are acquired which have been declared and used in the project. Stop your project and return to development mode. Open the "Edit...Check License needs (License Requirements)... menu. The "License Requirements tab shows all acquired I/O bytes. Add a reserve of 20% to the number given in the "Used (max. peek detected) column and check whether your license is sufficient for the calculated number of I/O bytes.
8212_en_00
PHOENIX CONTACT
3-3
Visu+
Number of active I/O bytes in runtime All I/O bytes defined in the project
Figure 3-1
We recommend creating a list of the required I/O variables (drivers & OPC) and to plan a reserve of 20% at least for evaluation of the required license.
3-4
PHOENIX CONTACT
8212_en_00
Refactoring Explorer
Refactoring Explorer
The Refactoring Explorer is a powerful tool for detecting and preventing potential critical design errors in the engineering phase. These could be incorrect variable assignments, offscreen objects, and problems in terms of communications. We strongly recommend scanning all project elements when engineering is finished.
4.1
Normally, the Refactoring Explorer is active and visible directly after starting Visu+.
Figure 4-1
Figure 4-2
8212_en_00
PHOENIX CONTACT
4-1
Visu+
4.2
Almost all parts of a Visu+ project can be analyzed with the Refactoring Explorer. After one of these project elements is highlighted, the Refactoring Explorer scans the objects and displays the results in the Refactoring Explorer window. The Refactoring Explorer can be used for the following Visu+ components: Screens Alarms Data loggers Recipes Event objects Scheduler objects Scaling objects OPC Client All results are shown with a short description and in case the error is part of a screen. Visu+ will jump to the object concerned after a double click. A description of the Refactoring Explorer user interface is shown below.
Jump to the incorrect screen object Rebuild the list Abort of rebuild
Error notification Analyzed Visu+ object or screen Figure 4-3 Refactoring Explorer message window
4-2
PHOENIX CONTACT
8212_en_00
Refactoring Explorer
4.2.1
The following example shows a screen where an object is placed off screen.
Off-screen object
Figure 4-4
When the screen is opened in Visu+, the Refactoring Explorer scans the screen and shows the following result.
Figure 4-5
After a double click on the message the object is marked and the properties are loaded.
8212_en_00
PHOENIX CONTACT
4-3
Visu+
4-4
PHOENIX CONTACT
8212_en_00
5.1
WinCE
All embedded HMIs from Phoenix Contact use a WinCE operating system with version 5.0 or 6.0. TP xx / OT xx: TP 3xxx: WinCE 5.0 WinCE 6.0
One of the biggest differences between both versions is the memory management, which can handle only processes with a maximum of 32 Mbytes of RAM under WinCE 5.0. If a process requires more RAM, the system will run in an out-of-memory condition and Windows will stop the process. The memory management of a TP xx is shown in a simplified figure below.
2 3
Memory used by the Visu+ runtime 32 Mbyte process limit of WinCE 5.0 Memory used by the AX OPC Server Free device memory (heap memory) Overall memory consumption of Visu+ runtime and the project Free process memory
8212_en_00
PHOENIX CONTACT
5-1
Visu+ The programmer must ensure that the project does not exceed the 32 Mbyte limit, otherwise the device may freeze. In order to realize bigger projects, the Heap Memory Manager WinCE in Visu+ (see also Section 5.3, "Heap Memory Manager WinCE") can be used. WinCE 6.0 uses a complete different memory management and the process limit of 32 Mbytes does not exist. This leads to the following memory management (e.g., for the TP 3xxx): 1
Memory used by Visu+ runtime Memory used by the AX OPC Server Free memory of the device, access able for the single process Overall memory consumption of Visu+ runtime and the project
Visu+ can access the complete available system memory. Therefore, use of the Visu+ Heap Memory Manager WinCE is no longer necessary. If the project tries to allocate more memory than is available, a device with WinCE 6.0 can freeze as well.
5-2
PHOENIX CONTACT
8212_en_00
5.2
To guarantee stable operation on an embedded device it is necessary to ensure that the project does not exceed the available resources. Visu+ offers several options of controlling the currently used memory during runtime conditions. The easiest way to do this is to activate the status bar of the project. Select the name of your project and then select "Properties" in the context menu. Activate the checkbox "Show Status Bar" under "Execution".
Figure 5-3
Now copy the project to the HMI and after a restart of the project the status bar will be shown during runtime.
Available memory in the Visu+ process Figure 5-4 Project status bar
The available process memory can be used by the project without any additional modifications. However, it should never fall below 5 Mbytes to prevent a low memory condition. It is useful to perform a complete function test of the project on the target device with an active status bar to ensure that this limit will not be reached.
8212_en_00
PHOENIX CONTACT
5-3
Visu+
5 Mbyte limit, if more memory is used the device goes into a low memory condition
If the available memory in the Visu+ process falls under 5 Mbytes, the runtime will operate in a low memory condition and unload all screens (even when "keep in memory" is activated), embedded screens and script interpreters. A low memory condition is critical and a stable operation of the device is not guaranteed.
For devices with WinCE 6.0 only the free memory is relevant, because the available memory in the Visu+ process is only a virtual value.
5-4
PHOENIX CONTACT
8212_en_00
5.3
The Heap Memory Manager WinCE of Visu+ is a possibility of using memory outside the Visu+ process in order to bypass the 32 Mbyte limit of a WinCE 5.0 device. 1 2
32 Mbyte limit of WinCE 5.0 Heap Memory Manager WinCE swaps project parts outside the process Visu+ runtime Project resources
To use the Heap Memory Manager WinCE it is necessary to define which project elements should be transferred and how many resources have to be reserved in the heap memory. Select the name of your project and then select "Properties" in the context menu. Activate the checkbox "Enable Heap Values" under "Heap Memory Manager WinCE".
8212_en_00
PHOENIX CONTACT
5-5
Visu+
Figure 5-7
The test runtime of Visu+ records the number and type of elements of each run. These values can be used to find the best heap settings for the project. Start your project by clicking the "Start Project" button. Test all functions of your project. Stop your project and change to the Design Mode. Select the name of your project and then select "Properties" in the context menu. Under "Heap Memory Manager WinCE" click on ..." in the "Set Values from the last Run" line.
Figure 5-8
5-6
PHOENIX CONTACT
8212_en_00
Memory management of embedded devices The values acquired in the project run will be displayed.
Currently used heap memory Enable/disable of the Heap Memory Manager WinCE
Figure 5-9
Because the automatically calculated values are only as good as the previous test run it is useful to add a reserve of 10 20% to this values. Modify the corresponding values manually. Once a project element is declared for the heap, Visu+ will transfer all elements. If the defined number of objects is not sufficient, the runtime is quit with an error "not enough heap memory". The settings of the Heap Memory Manager WinCE cannot be checked by Visu+, the developer must ensure that these settings are correct.
We strongly recommend using the Heap Memory Manager WinCE only if all improvements described here are not sufficient.
8212_en_00
PHOENIX CONTACT
5-7
Visu+
5-8
PHOENIX CONTACT
8212_en_00
Screen objects
Screen objects
The performance of a Visu+ application in terms of loading and response time depends strongly on the total number and type of used objects and of the general workload of the device. WinCE does not support all graphical objects of Visu+ (see also Section 3.1.2, "Graphical elements" or the Visu+ 2.x data sheet (DB EN VISU+ 2...)).
6.1
The total amount of objects which could be used on a screen is limited on the embedded devices as follows: TP xx / OT xx: TP 3xxx: 64 objects 128 objects
With regard to performance and application stability it is not recommended to use more objects. Visu+ automatically counts the number of objects on a screen and displays this information in the Project Explorer as shown in the following figure:
Figure 6-1
The result is divided in two separate numbers. The value without parentheses shows the number of object groups, the value in parentheses shows the total number of all objects used (even if they are grouped or part of a symbol). Only the total number of objects is relevant for evaluation of the loading time and memory use of a screen.
8212_en_00
PHOENIX CONTACT
6-1
Visu+
6.1.1
The development environment of Visu+ offers a symbol library with a preconfigured collection of complex graphical elements like machines, animated valves or buildings. These symbols are basically groups of Visu+ objects. Please note that the use of symbols strongly increases the total number of objects on the screen and the resources required on the device. The following example shows how objects and symbols are counted in Visu+. Screen with objects from the toolbox:
Figure 6-3
The values for the object group and the total number of individual objects are the same.
6-2
PHOENIX CONTACT
8212_en_00
A symbol is a group of many single objects and for that reason it increases strongly the total number of objects on a screen and of course the resources required on the device.
Figure 6-5
Typical number of individual objects and groups of objects in the form of symbols
8212_en_00
PHOENIX CONTACT
6-3
Visu+
6.1.2
To realize projects with many symbols and/or animated graphical parts it is necessary to reduce the number of screen objects in such a way that the project can be run on an embedded device in an acceptable way. A good compromise to keep the graphical elements and good performance is achieved when only animated and user objects (e.g., buttons, edit boxes, etc.) are left on the screen and other objects are placed as background bitmaps onto the screen. A bitmap is easier to handle and the system must no longer calculate every individual object. It is not recommended to attach a large bitmap as a background to a normal screen element (button, rectangle, etc.). These elements will always be kept in the system RAM and can lead to a low memory condition.
6.1.3
This example shows a project of a pump station with many objects. The simulation on a standard x86 office PC runs fine but on a TP, the loading and response time is not acceptable. The reason for this behavior is the different system architecture of an office PC compared to an embedded device. Since most of the symbols are not animated or interact with variables, it is possible to make a screenshot of the passive parts and implement them as a background to the screen. Original screen of the customer:
6-4
PHOENIX CONTACT
8212_en_00
Screen objects Visu+ shows only 23 groups for this screen, but the total number of objects is 1083.
Figure 6-7
After the symbols are ungrouped, the 1083 individual objects are visible and every object must be calculated in the runtime and loaded into the device memory.
Figure 6-8
Create the background screen: For the screenshot it is useful to disable the grid on the development environment first.
Figure 6-9
8212_en_00
PHOENIX CONTACT
6-5
Visu+ If animated symbols are used, they should be separated to passive and animated parts as follows: Select the symbol and ungroup the symbol with the context menu:
Figure 6-10
Ungrouping a symbol
Animated symbols
6-6
PHOENIX CONTACT
8212_en_00
Screen objects Make a screenshot from the passive elements and save it as a bitmap with a maximum of 256 colors (keyboard "print" and insert screenshot in an image editor tool such as Microsoft Paint):
Figure 6-12
Figure 6-13
8212_en_00
PHOENIX CONTACT
6-7
Animated objects
Figure 6-14
Figure 6-15
After this modification, there are only 58 objects on the screen instead of 1083 objects. The loading time of the touch panel is significantly shorter without any limitation of the graphical design.
6-8
PHOENIX CONTACT
8212_en_00
Screen objects
6.2
Off-screen objects
Objects which are completely placed off-screen could lead to a poor performance of the screen. Even when the objects are not visible during runtime, the system has to calculate them when the screen is loaded. The reason for this is mainly poor programming or a change of the resolution. But you can find this out easily with the Refactoring Explorer (see also Section 4.2.1, "Example: Offscreen objects"). Also objects which are not completely placed (like in the drawing below) on the screen should be avoided.
These objects are not detected by the Refactoring Explorer, but could also lead to the described negative performance and must be also changed or deleted.
8212_en_00
PHOENIX CONTACT
6-9
Visu+
6-10
PHOENIX CONTACT
8212_en_00
Screen management
Screen management
It is possible to preload screens during the startup and to keep complete screens in the RAM even when they are not visible. Used carefully and in the right way this will decrease the loading time of the screens in a significant way. All of these settings strongly depend on the project and the user requirements, it is not possible to give a general recommendation. The following descriptions should help to understand the function and the influence of the options to help to find the correct settings for each project. Excessive use of the following options can lead to a "low memory condition".
7.1
A screen which is marked as "keep always in memory" will be hold, permanently in the system memory, after the first loading. If the screen is called afterwards, the system does not have to load the screen again into RAM. The option is located in the properties of the screen.
Figure 7-1
The loading time of a screen depends on the number of screen objects. We recommend that you optimize the time (see also Section 6, "Screen objects") before you use the "keep always in memory option.
Active screen elements (like Trending Windows) and logics (IL Logic, VBA Scripts) are executed, even if the screen is not visible, if "keep always in memory" is activated. This can lead to a low memory condition. We strongly recommend that you deactivate this option on screens with logics or trending and alarming windows.
8212_en_00
PHOENIX CONTACT
7-1
Visu+
7.2
Preload screens
Even if screens are marked as "keep always in memory" the first call will take as long as before, because Visu+ has to load the screen into the RAM. To prevent this delay during the first call, it is possible to preload all screens which are marked as "keep always in memory" during the startup of Visu+.
Figure 7-2
Preloading screens
This option will increase the overall booting time of the Visu+ project.
Only screens which are marked as "keep always in memory" are permanently loaded, all other screens are unloaded after a certain time (default 5 s).
7-2
PHOENIX CONTACT
8212_en_00
Screen management
7.3
A good compromise between saving resources and fast loading of screens is the "Close Screen Delay" option. This is the delay time Visu+ holds the screen even after closing in memory. After this time the screen will be unloaded.
Figure 7-3
That means if the screen is changed and the delay time is not over, the loading time will be as fast as with the "keep always in memory" option active. A good use case, for example, is a project with a few main screens and a large number of objects for an overview of a plant. From this screen the user can call many smaller parameter and status screens. If the "Close Screen Delay" of the main page is set to, e.g. one minute, the changes between the main screen and the parameter screens are much faster and the complete performance of the project seems to be faster for the user. The delay time should be realistic for the application. If the time is set for all screens to,e.g. one hour this may also cause a low memory condition because the screens are not unloaded fast enough.
8212_en_00
PHOENIX CONTACT
7-3
Visu+
7-4
PHOENIX CONTACT
8212_en_00
Scripts
Scripts
Visu+ includes a Basic Script Editor which can be used to fulfill project requirements which cannot be solved by the Visu+ standard objects or to handle complex data operations. The use of scripts is normally not critical for the stability of the system but can lead to a "low memory condition" if used in the wrong way. Scripts can be included globally for the project and locally to access screens and objects directly. The differences in terms of function and system handling are described below. Visu+ is optimized to handle the standard objects of the toolbox. Scripts can be used but Visu+ is not designed as a basic runtime. Due to this fact we recommend that you reduce the use of scripts to the absolute necessary minimum.
8.1
Global scripts
Global scripts can be called from every part of the project where a command can be used. They can be added under the Basic Scripts project element.
Global scripts
Figure 8-1
The Basic Interpreter is loaded if a global script is called and it uses approximately 700 Kbytes of system RAM (plus the code length of the scripts). After the script is executed the interpreter will be unloaded and the resources are given back to the system.
8.1.1
Separate thread
This option allows to run a script while another script is being executed.
Figure 8-2
Separate thread
8212_en_00
PHOENIX CONTACT
8-1
Visu+ If this option is activated the script is loaded with a separate Basic Interpreter and can be executed parallel to another scripts. An additional basic interpreter requires an extra 700 Kbytes of memory for every "Separate Thread" script executed. Calculation example:
n * 700 Kbytes + n * CL
700 Kbytes = normal global Basic Interpreter CL = CodeLength n = Number of separate threads Because of the higher memory consumption we recommend that you activate this option only if necessary. If there is a low memory condition, this option should be deactivated for all global scripts.
8.1.2
Priority
If used on Win32 system it is also possible to assign a priority to every global script.
Figure 8-3
Script priority
A script with a higher priority can suspend a script with a lower priority when it is called. After the high priority script is executed the suspended one will be executed again. Visu+ WinCE runtime does not support this feature. We recommend the "Below Normal" default value.
8-2
PHOENIX CONTACT
8212_en_00
Scripts
8.2
Local script
It is possible to connect a script directly to a screen or to an object (e.g., button) which is activated directly with a user action (e.g., a change, click). Such scripts are not accessible from other project parts and are called "local scripts". In the following example, local scripts are used to open modal windows with parameters.
Figure 8-4
Local script
Unlike global scripts the Basic Interpreter is loaded separately for every local script (approx. 300 Kbytes, plus the code length of the script) and is not unloaded after execution or a screen change, but can be used for another local script on different screens. For evaluation of the resources required for the Basic Interpreter, you only need to open the screen with the most used local scripts.
RAM Usage =
Key
n * 300 Kbytes
n = Number of local scripts on screen This value can vary depending on the code length of the loaded scripts. A special case is the use of local scripts on screens which are kept in memory. In this case the Basic Interpreter is loaded as well after the local script is called, but cannot be used after a screen change for another local script. The interpreter is fixed to a particular local script. This has a big influence to the resources required and can be calculated as follows:
RAM Usage = (
Key
n * 300 Kbytes) + (
m1 * 300 Kbytes) +(
n = Number of local scripts on the screen with the most usage m1 = Local scripts kept in memory screen 1 m2 = Local scripts kept in memory screen 2
8212_en_00
PHOENIX CONTACT
8-3
Visu+
We strongly recommend to deactivate the option "keep always in memory" when local scripts are used.
To get a better readable and predictable project we also recommend to prefer global scripts.
8-4
PHOENIX CONTACT
8212_en_00
9.1
IMDB
By using the IMDB (In Memory Database) all values are stored directly into the RAM of the device. In case a WinCE template is used this is the default setting for all database connections, otherwise it has to be activated.
Activate the IMDB Manager Activate the use of shared tables Period of time a backup is taken and copied to the Compact Flash card, the internal parameterization memory or HDD Amount of new records a backup is taken and copied to the Compact Flash card, the internal parameterization memory or HDD
8212_en_00
PHOENIX CONTACT
9-1
Visu+ In a periodic and editable time a backup of the RAM is stored to the Compact Flash card, the internal parameterization memory or the hard disk of the device. The file is stored in a csv format which can be opened with a standard editor. In case of a reboot this file is loaded back into the RAM. If used in combination with a recipe it is possible, for example, to change the recipe configurations easily by editing the csv file. The maximum available memory for the IMDB on a WinCE is 4 Mbytes and 64 Mbytes on a x86 Windows. ODBC/ADOCE must be used if more data must be stored. The backup file is stored on the flash of the device and can be accessed by using a browser or ftp. To access the file it is necessary to close the Visu+ runtime. Access the ftp area with a browser (such as Microsoft Internet Explorer, Mozilla Firefox) and open the project directory.
Figure 9-2
9-2
PHOENIX CONTACT
8212_en_00
Figure 9-3
Figure 9-4
9.1.1
The IMDB uses the RAM to store the records. It is very important that enough RAM is available to handle the maximum number of records. In case the IMDB allocates more memory than available the device will run into an unstable condition. The following section shows how the required memory can be calculated.
8212_en_00
PHOENIX CONTACT
9-3
Visu+
9.1.2
An easy way to calculate the reserve of RAM needed for the IMDB is to use the backup file. These files have a fixed ratio of the file size to the occupied RAM (.dat 1/34; .xml 1/8). To do the calculation the IMDB must be activated in the project and transferred to the device. If the data logger is set to record on time, the device should run at least as long as the max. time set. Afterwards the .dat / .xml file can be downloaded from the device (see also Figure 9-2 on page 9-2) and multiplied with the ratio of the file type. Standard backup (*.dat) XML backup (*.xml) RAMUsage = A * 34 RAMUsage = B * 8 (A = size of .dat file) (B = size of .xml file)
The following example shows the calculation based on the standard backup file (*.dat) with a size of 60 Kbytes
2 Mbytes = 60 Kbytes * 34
In this example the data logger will use a maximum of 2 Mbytes, the programmer must ensure that the memory is available on the device (see also Section 5, "Memory management of embedded devices").
9-4
PHOENIX CONTACT
8212_en_00
9.2
ODBC/ADOCE
By using ODBC (Microsoft service of x86 Windows) it is possible to handle larger databases than supported by the IMDB in Visu+. This service is always used as long as the IMDB is deactivated and Visu+ will create automatically a Microsoft Access file (.mdb) in the project folder. In case another database (like e.g. Microsoft SQL, My SQL) should be used it is possible to create an ODBC DSN (Data Source Name) in the system administration settings of Microsoft Windows. By referring the name of the DSN in the ODBC Manager properties, Visu+ will use these settings for the specified database connection. Some databases require a user and a password for the login, in this case the user has to be created with the password given in the Visu+ User manager and the user must be defined as ODBC DSN User in the ODBC Manager.
Activating ODBC
Deactivate the IMDB Manager Name and user of the ODBC DSN
In WinCE a service called ADOCE is used for database connections, ODBC is not supported. Due to this fact all ODBC DSN used in the project are transferred during the download to a touch panel in ADOCE. In Phoenix Contact HMIs all ADOCE links are permanently connected to the implemented local Microsoft SQL CE Server. The SQL Server is only loaded if needed and uses 3 Mbytes only for the service and an additional 1 Mbyte for every connected ADOCE Link (e.g., data logger or recipe).
8212_en_00
PHOENIX CONTACT
9-5
Visu+ The database is stored on the flash into a .sdf file, which can be opened with a .sdf editor. To access the file the Visu+ runtime must be shut down. Access the ftp area with a browser (such as Microsoft Internet Explorer, Mozilla Firefox) and open the project directory.
Figure 9-6
Figure 9-7
9-6
PHOENIX CONTACT
8212_en_00
Figure 9-8
Log file (.sdf format, SQL Compact Server) in the "DLOGGERS" folder
The file can be opened with the free tool Microsoft SQL Server Management Studio Express.
8212_en_00
PHOENIX CONTACT
9-7
Visu+
9-8
PHOENIX CONTACT
8212_en_00
Debug
10 Debug
Visu+ runtime monitors the system functions while the project is executed and stores the information in several log files. In case of unstable operation these files can be used for debugging purposes. All log files can be opened with a standard editor and are located in the LOGS folder of the project. To access the files it is necessary to close Visu+ runtime. Access the ftp area with a browser (such as Microsoft Internet Explorer, Mozilla Firefox) and open the project directory.
Figure 10-1
8212_en_00
PHOENIX CONTACT
10-1
Figure 10-2
Figure 10-3
10-2
PHOENIX CONTACT
8212_en_00
Debug The most important log files are described below: System.log: General system information DBMS Log.log: OPC Client.log: User logging Alarms DBMS (Database Management System) errors System errors (e.g., low memory condition)
Information and status of all database connections Information and status of connection of Visu+ as OPC Client to the AX OPC Server
Most of the common errors can be located with the information of the named log files. The other files contain very specific information and are normally not important.
8212_en_00
PHOENIX CONTACT
10-3
Visu+
10-4
PHOENIX CONTACT
8212_en_00
Support
11 Support
You can contact the Phoenix Contact Automation Support for further assistance or your nearest Phoenix Contact representative. To provide a quick solution please collect the following information first: 1. Error description 2. Version of the Visu+ editor 3. Device information a) x86 Windows PC: Version of the Visu+ runtime b) Embedded device: Device name and image version (Setup menu ' Settings ' information) 4. Visu+ project 5. Dump of the flash memory of the device (copy of the Compact Flash card) To do this, proceed as follows: Stop the Visu+ RT Access the ftp area of the device like shown in the debug section Copy all files and folders
8212_en_00
PHOENIX CONTACT
11-1
Visu+
11-2
PHOENIX CONTACT
8212_en_00
A Technical appendix
A1
Products Description
VISU+ 2 is the development environment (engineering license) for VISU+ 2 projects on Windows XP / VISTA systems or Windows 7 (32/64 bit) systems. 128 bytes 256 bytes VISU+ 2 RT ... is the runtime environment (runtime license) for VISU+ 2 on Windows XP / VISTA systems or Windows 7 (32/64-bit) systems with the following limitation for I/O data: 512 bytes 1024 bytes 2048 bytes 4096 bytes 8192 bytes Without limitation 128 bytes VISU+ 2 RT-D ... i is the runtime environment (runtime license) for VISU+ 2 on Windows XP / VISTA systems or Windows 7 (32/64-bit) systems with the following limitation for I/O data; two direct driver connection are additionally possible: 256 bytes 512 bytes 1024 bytes 2048 bytes 4096 bytes 8192 bytes Without limitation
Ordering data
Type
VISU+ 2 VISU+ 2 RT 128 VISU+ 2 RT 256 VISU+ 2 RT 512 VISU+ 2 RT 1024 VISU+ 2 RT 2048 VISU+ 2 RT 4096 VISU+ 2 RT 8192 VISU+ 2 RT unlimited VISU+ 2 RT-D 128 VISU+ 2 RT-D 256 VISU+ 2 RT-D 512 VISU+ 2 RT-D 1024 VISU+ 2 RT-D 2048 VISU+ 2 RT-D 4096 VISU+ 2 RT-D 8192 VISU+ 2 RT-D unlimited
Order No.
2988544 2988586 2988609 2988612 2988641 2988528 2988531 2988557 2988654 2988696 2988719 2988722 2988735 2988764 2988913 2988573 2988748
Pcs. / Pkt.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
A2
Documentation
Description
User manual Programmable VBA driver interfaces (APIs) for VISU+ 2 ... User manual Communication drivers for VISU+ 2 ... User manual Programming of VISU+ 2 ... under Windows for desktop systems Quick start guide VISU+ 2 ... User manual Programming with VBA script language in VISU+ 2 ... User manual Web Client technology in VISU+ 2 ... User manual Programming of VISU+ 2 ... under Windows CE User manual Configuring and operating the alarm dispatcher in VISU+ 2 ... Data sheet Visualization software for Windows systems Version 2.20 or later Quick start guide HMI Operator Panels
Type
UM EN VISU+ VBA DRIVER INTERFACES UM EN VISU+ COMMUNICATION DRIVERS UM EN VISU+ PROG UM QS EN VISU+ TUTORIAL UM EN VISU+ VBA UM EN VISU+ WEB CLIENT GUIDE UM EN VISU+ CE PROG UM EN VISU+ ALARM DISPATCHER DB EN VISU+ 2 ... UM QS EN OT TP
Order No.
Pcs. / Pkt.
1 1 1 1 1 1 1 1 1 1
8212_en_00
PHOENIX CONTACT
A-1
Visu+
A-2
PHOENIX CONTACT
8212_en_00