You are on page 1of 18

Get started with straton

Tutorial

www.copadata.com/embedded
info.fr@copadata.com
Content

1. OVERVIEW .......................................................................................................... 3

2. REQUIREMENT AND SETUP ............................................................................. 3

3. CREATE AND CONFIGURE AN APPLICATION ................................................. 3

1
Overview

Revision

Revision Date Description Author

1 13/06/2016 Initial version MIG

The information contained in this document is confidential and proprietary to COPA-DATA France and is covered under the
terms and conditions of a Nondisclosure Agreement (NDA). COPA-DATA France submits this document with the
understanding that it will be held in strict confidence and will not be used for any purpose other than the evaluation of this
product and COPA-DATA France qualifications. No part of the document may be circulated, quoted, or reproduced for
distribution outside the Client organization without prior written approval from COPA-DATA France.

COPA-DATA France, All Rights Reserved.

2
Overview

1. Overview

This document is created in order to allow a user without any knowledge in straton to create a new
project from scratch, to test it and download it in a straton runtime.

2. Requirement and setup

A straton workbench needs to be installed on a PC. If the project needs to be downloaded in a


runtime, a runtime needs to be running. The PC and the runtime need to be on the same network.

Download and install from http://www.copadata.com/embedded

3. Create and configure an application

When opening straton, the workspace is empty.

3
Create and configure an application

To start and create a new project, Click on File / Add new project…

Write a name for the project and click on Next.

Note: no space - max 15 chr

4
Create and configure an application

Choose the programming language (SFC, FBD, LD, ST, IL), click on Next in order to select I/Os and
fieldbus. If none is required, then click on finish.

Your project appears now in the straton workspace.

5
Create and configure an application

Double click on Programs/Main to open the main program.

Note: double click on the name “Main” and not on the icon.

The program can now be edited, here in FBD language.

6
Create and configure an application

It’s now possible to choose functional blocks for the program:

For example: in Blocks / all - select & (*Boolean AND*)

Now, to add this block to the project, the line needs to be dragged and dropped to the center of the
screen.

7
Create and configure an application

Now the Functional block is in the program. As in the screen below, the (&) needs 3 variables (2
Boolean inputs and 1 Boolean output).

To add variables, double click on the grey field « ??? ».

Enter a name for the variable. Here, « Input1 ».

As the variable does not exist in the project, when click on “OK” a popup window appears. In this
window it is possible to choose the type of the variable, where to declare the variable and an
optional description. Click on Yes to finish.

8
Create and configure an application

Enter the second variable. Here, « Input2 », BOOL, Main.

Enter the output variable. Here « output », BOOL, Main.

9
Create and configure an application

Variables are visible in the variables view, on the right of the screen.

Now it’s time to test the project. First, click on this icon to build the project:

10
Create and configure an application

Then, to test the project, click on simulation.

Click on start

The project is now in simulation mode.

11
Create and configure an application

To manage the variables, select the variable with the mouse and press on spacebar. Here, the
variable go from blue to red if the variable go from FALSE to TRUE.

It’s possible to manage the variable by double click on it too (the variable in the central windows or
in the variables windows).

12
Create and configure an application

The project is now ok. It can be sent to a runtime. First, exit the simulation mode, click on
« simulation ».

To set the communication parameters, double click on the bar at the bottom of the window.

13
Create and configure an application

Here it’s possible to edit the communication setting. The kind of runtime can be choose in the drop
down list. For the address parameters, click on the […] button.

Enter here the communication settings. Then press OK.

14
Create and configure an application

It’s now possible to connect the project to the runtime. Click on the « online » button.

If the runtime have never been used, straton ask « do you want to download the application now? »,
click on “Yes”.

15
Create and configure an application

The project is now in the runtime. The values of the variables can be modified as in simulation mode.

16
Create and configure an application

© COPA-DATA France.

All rights reserved. This document is protected by copyright and may not be reproduced, utilized or photocopied in
any form or by any means without permission in writing from COPA-DATA France. The technical data contained
herein have been provided solely for informational purposes and are not legally binding. The COPA-DATA logo,
zenon, zenon Analyzer, zenon Supervisor, zenon Operator, zenon Logic and straton are registered trademarks of
Ing. Punzenberger COPA-DATA GmbH. All other brands and product names may be the trademarks or registered
trademarks of their representative owners. Subject to change, technical or otherwise.

17

You might also like