application note - wago globalglobal.wago.com/.../applicationnote_starterkit_ecockpit.pdf ·...

39
Application Note Application Note Description of the Starter Kit Application Version 1.0.0

Upload: vulien

Post on 19-Mar-2018

217 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Application Note

Application Note Description of the Starter Kit Application

Version 1.0.0

Page 2: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

2 Description of the Starter Kit Application Application Note

Version 1.0.0

© 2016 by WAGO Kontakttechnik GmbH & Co. KG

All rights reserved.

WAGO Kontakttechnik GmbH & Co. KG

Hansastraße 27

D-32423 Minden

Phone: +49 (0) 571/8 87 – 0

Fax: +49 (0) 571/8 87 – 1 69

Email: [email protected]

Online: http://www.wago.com

Technical Support

Phone: +49 (0) 571/8 87 – 5 55

Fax: +49 (0) 571/8 87 – 85 55

Email: [email protected]

Every conceivable measure has been taken to ensure the accuracy and

completeness of this documentation. However, as errors can never be fully

excluded, we always appreciate any information or suggestions for improving the

documentation.

We wish to point out that the software and hardware terms, as well as the

trademarks of companies used and/or mentioned in the present document are

generally protected by trademark or patent.

Page 3: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Description 3 Application Note

Version 1.0.0

Information about This Documentation

Copyright

This documentation, including all figures and illustrations contained therein, is

subject to copyright protection. Any use of this documentation that infringes upon

the copyright provisions stipulated herein is prohibited. Reproduction, translation,

electronic and phototechnical filing/archiving (e.g., photocopying), as well as any

amendments require the written consent of WAGO Kontakttechnik GmbH & Co.

KG, Minden, Germany. Non-observance will entail the right of claims for

damages.

Number Notation Table 1: Number Notation

Number Code Example Comment

Decimal 100 Normal notation

Hexadecimal 0x64 C notation

Binary '100'

'0110.0100'

In quotation marks,

nibble separated by a period

Font Conventions Table 2: Font Conventions

Font Type Explanation

italic Names of paths and files are displayed in italics, e.g.:

C:\Programs\WAGO-I/O-CHECK

Menu Menu options are displayed in bold, e.g.,:

Save

> A “greater than” symbol between two names denotes the selection of

a menu option, e.g.:

File > New

Input Designation of input or optional fields are displayed in bold, e.g.:

Start of measurement range

“Value” Input or selection values are displayed in quotation marks, e.g.:

Enter the value “4mA” under Start of measurement range.

[Button] Button labels within the dialogs are bold and enclosed in square

brackets, e.g.:

[Input]

[Key] Key labels on the keyboard are displayed in bold and enclosed in

square brackets, e.g.:

[F5]

Page 4: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

4 Description Description of the Starter Kit Application Application Note

Version 1.0.0

Symbols

DANGER

Warning against personal injury! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury.

DANGER

Do not work on components while energized! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury.

WARNING

Warning against personal injury! Indicates a moderate-risk, potentially hazardous situation which, if not avoided, could result in death or serious injury.

CAUTION

Warning against personal injury! Indicates a low-risk, potentially hazardous situation which, if not avoided, may result in minor or moderate injury.

NOTICE

Warning: Damage to property! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property.

ESD

Warning: Damage to property caused by electrostatic discharge (ESD)! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property.

Note

Important note! Indicates a potential malfunction which will not result in damage to property, however, if not avoided.

Information

Additional Information Refers to additional information which is not an integral part of this documentation (e.g., the Internet).

Page 5: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Description 5 Application Note

Version 1.0.0

Legal Principles

Subject to Change WAGO Kontakttechnik GmbH & Co. KG reserves the right to make any

alterations or modifications that serve to increase the efficiency of technical

progress. WAGO Kontakttechnik GmbH & Co. KG owns all rights arising from

granting patents or from the legal protection of utility patents. Third-party

products are always mentioned without any reference to patent rights. Thus, the

existence of such rights cannot be excluded.

Personnel Qualification The use of the product described in this document is exclusively geared to

specialists having qualifications in PLC programming, electrical specialists or

persons instructed by electrical specialists who are also familiar with the

appropriate current standards.

Moreover, the persons cited here must also be familiar with all of the products

cited in this document, along with the operating instructions. They must also be

capable of correctly predicting any hazards which may not arise until the products

are combined.

WAGO Kontakttechnik GmbH & Co. KG assumes no liability resulting from

improper action and damage to WAGO products and third-party products due to

non-observance of the information contained in this document.

Limitation of Liability This documentation describes the use of various hardware and software

components in specific example applications. The components may represent

products or parts of products from different manufacturers. The respective

operating instructions from the manufacturers apply exclusively with regard to

intended and safe use of the products. The manufacturers of the respective

products are solely responsible for the contents of these instructions.

The sample applications described in this documentation represent concepts, that

is, technically feasible applications. Whether these concepts can actually be

implemented depends on various guidelines. For example, different versions of

the hardware or software components can require different handling than that

described here. Therefore, the descriptions contained in this documentation do not

form the basis for assertion of a certain product characteristic.

Responsibility for safe use of a specific software or hardware configuration lies

with the party that produces or operates the configuration. This also applies when

one of the concepts described in this document was used for implementation of

the configuration.

WAGO Kontakttechnik GmbH & Co. KG assumes no liability for the realization

of these concepts.

Page 6: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

6 Description Description of the Starter Kit Application Application Note

Version 1.0.0

Table of Contents

Table of Contents .............................................................................................6

1 Description ..............................................................................................7

2 Material Used ..........................................................................................7

2.1 Devices ...................................................................................................... 7

2.2 Tools .......................................................................................................... 7

3 Setup ......................................................................................................8

4 Example Project ......................................................................................9

4.1 Overview ................................................................................................... 9

4.2 Open Project.............................................................................................. 9

4.3 Device Structure View ............................................................................. 10

4.4 Program Structure View .......................................................................... 11

4.5 Starter Kit Project Elements .................................................................... 13

4.5.1 “Program” Folder................................................................................ 14

4.5.2 “Visu” Folder ....................................................................................... 19

4.5.3 Task Configuration .............................................................................. 22

4.6 Activating a Project ................................................................................. 22

4.6.1 Transferring the Project ..................................................................... 23

4.6.2 Starting the Program .......................................................................... 24

4.6.3 Creating a Boot Project ...................................................................... 25

4.7 Visualization ............................................................................................ 27

4.7.1 Opening Visualization in e!COCKPIT ................................................... 27

4.7.2 Opening WebVisu in an Internet Browser.......................................... 29

4.7.3 Operating the Visualization ................................................................ 30

4.8 Data Plotter ............................................................................................. 34

5 List of Figures ........................................................................................ 37

Page 7: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Description 7 Application Note

Version 1.0.0

1 Description

This application note describes the e!COCKPIT application included with the e!COCKPIT starter kit. In addition, operation of the visualization and WAGO Data Plotter is explained.

2 Material Used

2.1 Devices

Supplier Quantity Designation Item No.

WAGO 1 PFC100 ETHERNET ECO Controller 750-8100

WAGO 1 Supply module 24 VDC 750-602

WAGO 1 2-channel digital input module 750-400

WAGO 1 2-channel digital output module 750-501

WAGO 1 End module 750-600

*This version was used when the instructions for use were created.

2.2 Tools

Designation Item No. Version*

e!COCKPIT 2759-101/1110-XXXX v1.2.0

Web browser No WAGO product No information available

*This version was used when the instructions for use were created.

Page 8: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

8 Setup Description of the Starter Kit Application Application Note

Version 1.0.0

3 Setup

Figure 1: Node Configuration

Page 9: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 9 Application Note

Version 1.0.0

4 Example Project

This section describes the e!COCKPIT Starter Kit example project. For detailed instructions on creating your own e!COCKPIT project, download the “e!COCKPIT Quick Start Guide” at http://www.wago.com.

4.1 Overview

The example program depicts the node configuration in the WebVisu with digital inputs and outputs from the e!COCKPIT Starter Kit. The digital outputs can be toggled from the WebVisu.

As an example application, a water tank was created in which the water level can be changed via the digital inputs. Digital output 1 or 2 is toggled at the maximum or minimum water level.

The water level history and digital input activations are recorded by the integrated data logger. The history is graphically displayed via the WAGO Data Plotter that can be called up via the WebVisu.

By clicking the clock in the WebVisu, the user can toggle between analog and digital views.

The user can choose between German and English in both the WebVisu and in the Data Plotter.

4.2 Open Project

1. Launch e!COCKPIT: Start > All Programs > WAGO Software > e!COCKPIT > e!COCKPIT.

2. After launching e!COCKPIT, select the [Browse] menu item.

3. Click [Computer] and then [Browse] to open the “eCOCKPIT_Starterkit.ecp” e!COCKPIT project from the drop directory.

Page 10: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

10 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

4.3 Device Structure View

After opening the project, the Device Structure appears with the “Network/Devices” tab.

Figure 2: Device Structure View

On the left side (1) of the window, you see your controller with available modules.

In the middle (2) of the window, you find your node configuration in one of the boxes.

You can click on your controller on both the left side or in the middle of the window, for example, to change the settings.

On the right side (3) of the window is your product catalog. You can change your controller settings via the tab at the bottom.

If you want to change the IP address of your target controller, for example, right-click on the controller on the left side (1) or in the middle (2) of the window and select “Settings”.

Figure 3: Controller Context Menu

2 3 1

Page 11: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 11 Application Note

Version 1.0.0

The following view appears on the right side (3) of the window:

Figure 4: Controller Settings

Enter the IP address selected on your controller, so that you can move the project there later.

4.4 Program Structure View

Click the “Programming” icon to switch from the Device Structure to the Program Structure.

Figure 5: Button to Switch to the Program Structure

Page 12: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

12 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

The following view appears:

Figure 6: Program Structure Overview

The button to edit the project is at the top (1) of the window.

You can see the program structure on the left side (2) of the window. The application for your controller is displayed as a parent level. Below that you find all elements for your programming. You can import multiple controllers in one comprehensive project and view the respective programs in the e!COCKPIT project.

Open the editing environment on the right side (3) of the window by clicking the program element. You can edit the source text, for example, at this point.

3 2

1

Page 13: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 13 Application Note

Version 1.0.0

4.5 Starter Kit Project Elements

The following program elements are shown on the left side of the window shown in Figure 6.

Figure 7: Program Elements

The “Program” folder contains the main program and all subprograms.

The main visualization page and all subpages are contained in the “Visu” folder. The Visualization Manager is also located there.

“GVL” is the global variable list, in which global parameters for the program are declared.

Figure 8: Global Variables

Click “Library Manager” to open the management environment for your libraries. You can see the attached libraries and attach additional libraries, if necessary.

The task invocations for the program are managed in the “Task Configuration”.

Page 14: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

14 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

4.5.1 “Program” Folder

The “Program” folder contains the following elements:

Figure 9: Programs

“PRG_Main” is the main program from which all subprograms are called. To easily understand the program, just view this program.

The “internal” folder contains all subprograms that are written in the “Structured Text” language for the most part. To understand these subprograms, advanced programming skills are recommended.

Page 15: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 15 Application Note

Version 1.0.0

4.5.1.1 PRG_Main

The main program is written in the “Function Block Diagram” language (FBD) and contains 4 networks.

Figure 10: Programing the PRG_Main

Network 1 calls up the “PRG_Clock” subprogram responsible for displaying the clock in the WebVisu. The date and time are output as a string. The angles calculated for the hour, minute and second hands are available as outputs.

Figure 11: “PRG_Clock” Call

Page 16: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

16 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

Network 2 calls up the “PRG_Water_Tank” program responsible for calculating and displaying the “Water Tank” example application. After conversion to the “REAL” data type, the water level in percent is written to an array to which the data logger has access. The digital inputs of the 750-400 module were connected as inputs to allow control of filling and emptying the tank.

Figure 12: “PRG_Water_Tank” Call

Networks 3 and 4 also write the status of both digital inputs to the array for the data logger. Thereby, it is possible to display the switched status of the digital inputs graphically from the water level history. Find out more in Section 4.8.

Figure 13: Writing the Status of the Digital Inputs

4.5.1.2 Subprograms

The subprograms in the “internal” folder are called up in the “PRG_Main” program.

“PRG_Clock”: The time set in the controller is queried in this program and processed for display in the visualization. This primarily concerns the analog representation because the angle of the hand from the digital time must be derived.

“PRG_Datalogger” is used to record the water level values. The “Datalogger_Init” action is used to set necessary configurations, e.g., activation and naming of the first three channels.

Figure 14: “Datalogger_Init” Action

Page 17: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 17 Application Note

Version 1.0.0

The content of the action is only performed on initial startup. For the data logger, the “FbDatalogger” module is called up from the “WagoAppDatalogger” library and executed cyclically.

Figure 15: “FbDatalogger” Module

“PRG_Water_Tank” is the most comprehensive program. It is divided into three actions to more clearly structure the programming.

Figures 16: Actions of the “PRG_Water_Tank” Program

o The “Water_Flow” action is used to calculate the rotation of the valves in the visualization when opening and closing the water inlet or outlet.

Figure 17: Valve Rotation

The rise and fall of the water level is also calculated with open valves.

o The “Water_Level” action monitors the water level for the minimum and maximum values. If one of the values is reached, the assigned digital output is switched.

Page 18: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

18 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

o The “Wave” action calculates the wave motion of the liquid in the tank shown in the visualization. This shows a natural agitation of the liquid and was implemented with the help of the “Bezier curve” visualization element. The coordinates of the Bezier curve are calculated and constantly adjusted. There appears to be a constant wave motion. The visualization can display this effect dynamically.

Figure 18: Wave Motion

Page 19: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 19 Application Note

Version 1.0.0

4.5.2 “Visu” Folder

The “Visu” folder contains the following elements:

Figure 19: Visualization Pages

“Visualization” is the main visualization page that appears when opening the WebVisu.

The following visualization pages are called up as subpages on the start page:

o “Clock_analog” displays the analog clock.

Figure 20: Analog Clock

Page 20: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

20 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

o “Clock_digital” displays the digital clock.

Figure 21: Digital Clock

o “PFC100ECO” graphically displays the node configuration.

Figure 22: Graphic Representation of the Node Structure in the Visualization

Page 21: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 21 Application Note

Version 1.0.0

o “Example_Water_Level” graphically displays the “Water Tank” example application.

Figure 23: Graphic Representation of the Example Application

o “Waterdrop” is a detail of the “Example_Water_Level” visualization and is not described further.

The “Images” folder contains all images used on the visualization pages.

Figure 24: Visualization Images

The “Visualization Manager” can be used to make all settings that affect the Visualization and WebVisu.

Page 22: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

22 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

4.5.3 Task Configuration

Various tasks are created in the Task Configuration that the main program, main visualization and data logger call up.

Figure 25: Tasks

The tasks have to be created because the programming elements are processed at different cycle times.

Priority Task Program Cycle time

10 PLC_TASK PRG_Main 10 ms

14 Datalogger_Task PRG_Datalogger 50 ms

15 VISU_TASK VisuElems.Visu_Prg 100 ms

4.6 Activating a Project

The following section provides a step-by-step description of how to load the “eCOCKPIT_Starterkit.ecp” project on your fieldbus controller, how to start program execution and how to create a boot project.

Note

Important note! Before transferring the Starter Kit application, please insert an empty microSD card (FAT32 formatted) in the microSD card slot of the controller intended for this purpose. Otherwise, the data logger will not operate properly.

Page 23: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 23 Application Note

Version 1.0.0

4.6.1 Transferring the Project

To transfer the project to the fieldbus controller, you must select the application to be transferred (1). It is possible in e!COCKPIT to select multiple applications in one e!COCKPIT project. Thus, you have to choose which application to transfer. The bold font indicates if the application has been selected.

1. Select the “Program” tab (2).

Figure 26: Selecting the Application to Transfer

2. Click the [Connect] button in the menu bar.

Figure 27: Menu Bar: Connect

1

2

Page 24: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

24 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

3. Click [Yes] to confirm.

Figure 28: Prompt Whether to Transfer the Application

4. If the application is successfully transferred, the following buttons appear in the menu bar:

Figure 29: Menu Bar: Disconnect

The “Connect” button has changed into a [Disconnect] button. This indicates that e!COCKPIT is connected to your fieldbus controller.

4.6.2 Starting the Program

1. If not already done, move the operating mode switch on the fieldbus controller to the “RUN” position.

Figure 30: Operating Mode Switch in RUN Position

Page 25: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 25 Application Note

Version 1.0.0

2. Click the [Start] button in the menu bar to launch the application.

Figure 31: Menu Bar: Start

4.6.3 Creating a Boot Project

If you create a “boot project”, the application automatically launches after restarting the fieldbus controller. If no “boot project” is created, the application is only temporary on the fieldbus controller and is only available until the next time the power supply is disconnected.

To transfer a “boot project” to the fieldbus controller, click the [Boot Application Download] button in the menu bar.

Figure 32: Menu Bar: Boot Application Download

If you want to automatically transfer a boot project when any change is made in the future or you want to be reminded to create a boot project, proceed as follows:

1. Right-click your application and click [Settings] to open the application settings.

Figure 33: Application [Settings] Button

Page 26: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

26 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

2. The following window opens. Click the “Boot Application” tab.

Figure 34: Boot Application Settings

To automatically create a boot project with each download, mark the “Create boat application implicitly when downloading” checkbox.

To automatically create a boot project with each online change, mark the “Create boat application implicitly with online change” checkbox.

To be reminded to create a boot application when closing the project, mark the “Remember boot application when closing the project”.

Page 27: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 27 Application Note

Version 1.0.0

4.7 Visualization

A requirement for the next step is that your application has been transferred to the fieldbus controller and started.

Two options are available for visualization operation:

You can operate the visualization from e!COCKPIT directly.

You can call up and operate the WebVisu in an Internet browser.

The function and presentation are identical for both options.

4.7.1 Opening Visualization in e!COCKPIT

Open the “Visualization” in the “Visu” folder on the left side of e!COCKPIT.

Figure 35: Main Visualization Page: Open “Visualization”

Note

Important note! The Starter Kit application is intended to operate the visualization on the “Visualization” page exclusively. Do not operate the visualization from the subpages in this project.

Page 28: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

28 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

Figure 36: Visualization Display in e!COCKPIT

Page 29: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 29 Application Note

Version 1.0.0

4.7.2 Opening WebVisu in an Internet Browser

Enter the following address in the address line of your Internet browser:

Figure 37: WebVisu Call in an Internet Browser

http://192.168.1.100/webvisu/webvisu.htm

Note

Important note! The IP address depends on the IP address configured in the fieldbus controller and may vary based on your configuration.

The following page is displayed:

Figure 38: WebVisu Call in an Internet Browser

Page 30: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

30 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

4.7.3 Operating the Visualization

You recognize the available Visualization buttons by holding mouse pointer over the button. A hint appears that explains the function of the button.

Figure 39: Button Function Hint

You can also view details about the open visualization page by clicking the Help icon.

Figure 40: Help Icon in the Visualization

Page 31: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 31 Application Note

Version 1.0.0

The Visualization appears in English by default. You can switch between German and English by clicking the country flags at the top right of the window.

Figure 41: Language Interface in the Visualization

Page 32: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

32 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

Click the clock to switch the current time from analog to digital and vice versa.

Note

Important note! If incorrect, set the time in the “Web-based Management” of the fieldbus controller. Learn more in the fieldbus controller manual.

Figure 42: Clock in the Visualization

Page 33: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 33 Application Note

Version 1.0.0

Click the WAGO logo or the “WE INNOVATE” claim to return to the Starter Kit website where you find all available downloads for the WAGO Starter Kit.

Note

Important note! Internet access on your PC is required to view the website. The controller does not have to be connected to the Internet. In addition, this function is only available when using the WebVisu. When using the Visualization in e!COCKPIT, routing does not work.

Figure 43: Web Link in the Visualization

Page 34: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

34 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

4.8 Data Plotter

A data plotter is integrated in your Starter Kit. This is a web-based application that is executed on the controller independent of the programmed e!COCKPIT application.

Note

Important note! This section describes using the data plotter tailored to the Starter Kit exclusively. Detailed instructions for the data plotter are available at http://www.wago.com under the keyword “Data Plotter”.

1. Click the [Data Plotter] button in the WebVisu. The data plotter page opens in a new window.

Figure 44: Data Plotter

The folder structure as created by the fieldbus controller on the microSD card is displayed on the left side.

Page 35: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application Example Project 35 Application Note

Version 1.0.0

2. Open the “CSV_Files” folder on the left side and select the file “logfile_dp_YYYY_MM_DD.csv”.

Figure 45: Data Plotter - CSV File Selection

The file selected is then loaded and the data contained therein displayed.

3. To adjust the display settings for the Starter Kit, activate all channels by marking the checkbox in front of “Channels [1-10]” and by clicking the arrow button.

Figure 46: Data Plotter - Channel Configuration

4. Set the “Water inlet” and “Water outlet” channels to “Digital” and set “Secondary” as the y axis.

Figure 47: Data Plotter - Channel Configuration

5. Then click the [Apply channel settings] button.

Figure 48: Data Plotter - Applying the Channel Settings

Page 36: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

36 Example Project Description of the Starter Kit Application Application Note

Version 1.0.0

6. To update the graph cyclically for a “Live View”, click the “Paused” button in the “Graph auto update” area. The button then switches to “Live”. Also set the “Update rate” to e.g., “1s”. Then click the [Apply] button.

Figure 49: Data Plotter - Enable Live View

If you now press the digital inputs and change the water level, you see the water level history shown as a line. The statuses of the digital inputs are highlighted as digital signals. In this view, for example, you can watch the relationship between the digital inputs and the water level history.

Figure 50: Example of the Fill Level History

Page 37: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

Description of the Starter Kit Application List of Figures 37 Application Note

Version 1.0.0

5 List of Figures

Figure 1: Node Configuration ............................................................................................ 8

Figure 2: Device Structure View ...................................................................................... 10

Figure 3: Controller Context Menu .................................................................................. 10

Figure 4: Controller Settings ............................................................................................ 11

Figure 5: Button to Switch to the Program Structure ....................................................... 11

Figure 6: Program Structure Overview ............................................................................. 12

Figure 7: Program Elements ............................................................................................ 13

Figure 8: Global Variables ............................................................................................... 13

Figure 9: Programs .......................................................................................................... 14

Figure 10: Programing the PRG_Main .............................................................................. 15

Figure 11: “PRG_Clock” Call ............................................................................................. 15

Figure 12: “PRG_Water_Tank” Call .................................................................................. 16

Figure 13: Writing the Status of the Digital Inputs ........................................................... 16

Figure 14: “Datalogger_Init” Action ................................................................................. 16

Figure 15: “FbDatalogger” Module .................................................................................. 17

Figures 16: Actions of the “PRG_Water_Tank” Program................................................... 17

Figure 17: Valve Rotation ................................................................................................ 17

Figure 18: Wave Motion .................................................................................................. 18

Figure 19: Visualization Pages ......................................................................................... 19

Figure 20: Analog Clock ................................................................................................... 19

Figure 21: Digital Clock .................................................................................................... 20

Figure 22: Graphic Representation of the Node Structure in the Visualization .................. 20

Figure 23: Graphic Representation of the Example Application ........................................ 21

Figure 24: Visualization Images ....................................................................................... 21

Figure 25: Tasks .............................................................................................................. 22

Figure 26: Selecting the Application to Transfer ............................................................... 23

Figure 27: Menu Bar: Connect ......................................................................................... 23

Figure 28: Prompt Whether to Transfer the Application .................................................. 24

Figure 29: Menu Bar: Disconnect ..................................................................................... 24

Figure 30: Operating Mode Switch in RUN Position ......................................................... 24

Figure 31: Menu Bar: Start .............................................................................................. 25

Figure 32: Menu Bar: Boot Application Download ........................................................... 25

Figure 33: Application [Settings] Button .......................................................................... 25

Figure 34: Boot Application Settings ................................................................................ 26

Figure 35: Main Visualization Page: Open “Visualization” ................................................ 27

Figure 36: Visualization Display in e!COCKPIT .................................................................. 28

Figure 37: WebVisu Call in an Internet Browser ............................................................... 29

Figure 38: WebVisu Call in an Internet Browser ............................................................... 29

Figure 39: Button Function Hint ...................................................................................... 30

Figure 40: Help Icon in the Visualization .......................................................................... 30

Figure 41: Language Interface in the Visualization ........................................................... 31

Figure 42: Clock in the Visualization ................................................................................ 32

Figure 43: Web Link in the Visualization .......................................................................... 33

Figure 44: Data Plotter .................................................................................................... 34

Figure 45: Data Plotter - CSV File Selection ...................................................................... 35

Page 38: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

38 List of Figures Description of the Starter Kit Application Application Note

Version 1.0.0

Figure 46: Data Plotter - Channel Configuration ............................................................... 35

Figure 47: Data Plotter - Channel Configuration ............................................................... 35

Figure 48: Data Plotter - Applying the Channel Settings ................................................... 35

Figure 49: Data Plotter - Enable Live View ....................................................................... 36

Figure 50: Example of the Fill Level History ...................................................................... 36

Page 39: Application Note - WAGO Globalglobal.wago.com/.../ApplicationNote_Starterkit_eCockpit.pdf · comprehensive project and view the respective programs in the e!COCKPIT project. Open

WAGO Kontakttechnik GmbH & Co. KG PO box 2880 • D-32385 Minden Hansastraße 27 • D-32423 Minden Phone: +49 (0) 571/8 87 – 0 Fax: +49 (0) 571/8 87 – 1 69 Email: [email protected] Web: http://www.wago.com