QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys...

24
1 Our Platform. Your Touch. QuickStart CREW+CoDeSyS

Transcript of QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys...

Page 1: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

1

Our Platform. Your Touch.

QuickStartCREW+CoDeSyS

Page 2: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

1

Index

HMI IPC I/O SCADA

1. CREW

1.1. Configuration of protocol Modbus RTU Master 1 1.2. Adding a new project page 21.3. Creation of variables or Tags 31.4. Creation of a “Switch Button” and connection to a specified Tag 51.5. Objects events 7

2. CoDeSys

2.1. CoDeSys Settings 102.2. How to save a Project 16

3. From CoDeSys to CREW

3.1. Import files from CoDeSys 173.2. Import Tags 18

4. SoftPlc Operating Mode 20

Pag.

Page 3: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

1 1.1. Configuration of protocol Modbus RTU Master

From Esaware Software CREW:

1. Create an HMI project and connect an Esaware product ( i.e. EW112AA ) to “Modbus RTU Master”:

1

EW112AC

Page 4: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

2

1.2. Adding a new project page1

1. A new project page can be created and managed in a very easy way.

Page 5: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

3

1.3. Creation of variables or Tags 1

1. 1A Tag list (Tags) can be created and managed in a very easy and intuitive way. Use the Tags manager to create a project Tag or variable list.

2. You can use different protocols, for example “RTU Master”.

Page 6: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

4

1

3. Then select for each Tag the Modbus driver.

1.3 Creation of variables or Tags

Page 7: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

5

1.4. Creation of a “Switch Button” and connection to a specified Tag1

1. Each object in the library can be easily dragged and dropped in the project page.

2. After selecting “Switch Button”, click on “ Property” and then on “Tag”. Select the button and it will appear in the below page.

Page 8: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

6

1 1.4. Creation of a “Switch Button” and connection to a specified Tag

3. Choose from the list the variable to associate and click“Ok”.

Page 9: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

7

1 1.5. Object events

1. 1. Both Scripts and Functions can be associated to each object present in the page.

2. Here a couple of examples of association of the functions “ShowPageNext” and “bitSet” to Switch Button.

Page 10: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

8

1 1.5. Object events

Page 11: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

1

2CoDeSyS

Page 12: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

10

2 2.1. CoDeSys Settings

1. For the first time open the ARCHIVE PROJECT provided by ESA in order to install, if necessary, some CoDeSys libraries not installed yet.

Page 13: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

11

2

2. Create STANDARD PROJECT.

2.1. CoDeSys Settings

Page 14: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

12

2

3. “Tools” >> “ Install device” to add step by step all ESA libraries ( XML-files).

2.1. CoDeSys Settings

Page 15: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

13

2

4. “Application” >> “Add Object” >> “SymbolConfiguration”.

5. “PLC_PRG” >> to define Project Tags.

2.1. CoDeSys Settings

Page 16: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

14

2

6. In “Symbol configuration” build a project.

7. If there are ESA I/O (EW600), add “ESA I/O (PlugDevice)”.

2.1. CoDeSys Settings

Page 17: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

15

2

8. Associate program Tags to I/O mapping.

9. Compile the project (F11).

10. Create boot application file.

2.1. CoDeSys Settings

Page 18: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

16

2 2.2. How to save a Project

• NOTE 1: now we have at our disposal 3 CoDeSys files (.PROJECT/.APP/.XML), that can be imported in CREW PROJECT (SoftPlc) and downloaded in the panel.

11. Now we can test the correct communication between CoDeSys Software and ESA EW100AB-EW100AC SoftPlc.

12. ONLINE > LOGIN to download the application into EW100 SoftPlc.

• NOTE 2: Follow 2.7 and 2.8 if you are using a Esaware Panel EW100AC.

• NOTE 3: Follow 2.12 and 2.13 only for TEST. You can skip them and go to CREW section.

Page 19: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

17

3 3.1. Import files from CoDeSys

• NOTE: To create a CREW project refer 1.1: the following steps are referred only to CoDeSys section in a CREW project.

1. After you have installed CREW and you have created a project with a EW100AB (SoftPlc) or a EW100AC (SoftPlc) panel, you can IMPORT files ( .PROJECT/.XML) from CoDeSys to CREW:

Page 20: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

18

3 3.2. Import Tags

2. “Import Tags” allows to visualize tags created in CoDeSys project:

3. Now it is possible downloading CREW project in EW100 panel; After download-window you can visualize CoDeSys options:a) Shut down CoDeSys software and let CREW compile CoDeSys project.b) Download “boot application” of CoDeSys ( file “.APP”).

Page 21: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

1

Now your CREW+CoDeSys SoftPlc projects can worktogether on EW100 panel

On EW100 panel it is possible setting different operatingmodes of your SoftPlc.

Page 22: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

20

4 SoftPlc Operating Mode

RUN MODE

OFF MODE

Page 23: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

21

4 SoftPlc Operating Mode

STOP MODE

SHOW MODE

Page 24: QuickStart CREW+CoDeSyS - esa-automation.com · 10. Create boot application file. 2.1. CoDeSys Settings. 16 2 2.2. How to save a Project • NOTE 1: now we have at our disposal 3

ESA elettronica S.p.A. via Padre Masciadri 4/a22066 Mariano Comense (CO) -ItaliaTel. +39 031 757400Fax +39 031 751777

ESA Technology, Inc. 320 Tesconi Circle, Suite JSanta Rosa CA 95401 – U.S.A. Tel. +1 707 5447300Fax +1 707 5447360

ESA Elettronica GmbH Carl-Zeiss-Strasse, 3563322 Rödermark - DeutschlandTel. +49 6074 486 45 0Fax +49 6074 486 45 66

ESA Software & Automation India Pvt. LtdB.R. House, 3RD Floor Hennur Main Road, Bangalore 560 043 - IndiaTel. +91 80 25435656Fax +91 80 25435658

ESAElektronik Technology Ticaret Limited Şirketi Şerifali Mah., Çetin Cad. Kıble Sk.No: 6 Of Plaza Kat: 5 D.: 7Ümraniye/İstanbul - TürkiyeTel.: +90 216 466 70 33Fax: +90 216 466 70 99

ESA Europa S.L.U. Passeig del Ferrocarril, 33508860 Castelldefels (Barcelona) - EspañaTel. +34 936455014Fax +34 936455013

意萨萨子科技(上海)有限公司中萨上海市宜山路889萨萨萨工萨城4萨萨6萨D1ESA Electronic Technology (Shanghai) Co. LtdUnit D1, 6F, Bldg. 4#, No. 889 Yishan RoadShanghai 200233 - P.R.ChinaTel. +86 21 6090 7250Fax +86 21 6090 7258

ESA energy S.r.l.Via Fortunato Zeni 838068 Rovereto (TN) - ItaliaTel. +39 0464 443272Fax +39 0464 443273

[email protected]