14
powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC 30.07.2015 Page 1 / 14 EDC stands for "Energy Data Collector" and is a pre-sample program that can be directly used for capturing digital counters and analogue values with an S7-1200 PLC. EDC is available for various PLC types as a prebuilt project so it can be loaded without TIA Portal via a memory card directly into the PLC. All other relevant settings can then be made via a web interface of the S7-1200 PLC. Index 1.0 Transfer prebuilt project without TIA Portal to PLC 2.0 Transfer project by TIA Portal 3.0 Network settings 4.0 Configuration via web interface 5.0 Integrate to powermanager 6.0 Read values by powermanager 1.0 Transfer prebuilt project without TIA Portal to PLC 1.1 Requirements 1.1.1 The pre-compiled program is loaded into the control management via the „SIMANTIC Automation Tool“. This tool can be downloaded free of charge under the following Link: https://support.industry.siemens.com/cs/ww/en/view/98161300 1.1.2 An S7-1200 CPU, to whom a pre-compiled EDC project is present. This can be found in the eclosed folder „Project_Precompiled“. 1.1.3 An established connection between PC and S7. Note: It is also possible to copy a pre-compiled project onto a SIMATIC SD card and transfer it to the CPU. However, this requires a CPU’s firmware version suitable to the project. powermanager Modbus TCP S7-1200 + EDC

powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

  • Upload
    trandan

  • View
    233

  • Download
    0

Embed Size (px)

Citation preview

Page 1: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 1 / 14

EDC stands for "Energy Data Collector" and is a pre-sample program that can be directly used for capturingdigital counters and analogue values with an S7-1200 PLC. EDC is available for various PLC types as a prebuiltproject so it can be loaded without TIA Portal via a memory card directly into the PLC. All other relevant settingscan then be made via a web interface of the S7-1200 PLC.

Index1.0 Transfer prebuilt project without TIA Portal to PLC2.0 Transfer project by TIA Portal3.0 Network settings4.0 Configuration via web interface5.0 Integrate to powermanager6.0 Read values by powermanager

1.0 Transfer prebuilt project without TIA Portal to PLC

1.1 Requirements

1.1.1 The pre-compiled program is loaded into the control management via the „SIMANTIC AutomationTool“. This tool can be downloaded free of charge under the following Link:https://support.industry.siemens.com/cs/ww/en/view/98161300

1.1.2 An S7-1200 CPU, to whom a pre-compiled EDC project is present. This can be found in theeclosed folder „Project_Precompiled“.

1.1.3 An established connection between PC and S7.

Note:It is also possible to copy a pre-compiled project onto a SIMATIC SD card and transfer it to the CPU.However, this requires a CPU’s firmware version suitable to the project.

powermanager

ModbusTCP

S7-1200+ EDC

Page 2: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 2 / 14

1.2 Load the project into CPU

1.2.1 Start the tool and scan for an available CPU

1.2.2 If it is a new CPU, set an IP address consistent with your network settings and load it into thecontrol management.

For instance IP: 192.168.2.130 and Subnet: 255.255.255.0

Page 3: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 3 / 14

1.2.3 After the IP address has been successfully set, the CPU‘s type and firmware is shown.

Check, if there is an already existing pre-compiled project pursuant to CPU type (i.e. 6ES7 214-1AG40-0XB0) and firmware.

Note:- A v3.0 CPU cannot be updated to a higher version.- A v4.0 CPU needs to be updated to firmware v4.1.x. This is also possible through the tab

“Firmware Update“ of the SIMATIC Automation Tool. The latest firmware files are available under:https://support.industry.siemens.com/cs/ww/en/ps/13685/dl

1.2.4 Enter the filing path of the pre-compiled files. Restart the tool for the new settings to take effect.

Page 4: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 4 / 14

1.2.5 Program selection in accordance with CPU.

1.2.6 Program download to CPU.

Page 5: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 5 / 14

1.2.7 Switch CPU to RUN

Note:At the first start the CPU is always set to the EDC default IP address 192.168.2.130! See also item 3.0.

Page 6: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 6 / 14

2.0 Transfer project by TIA Portal

Alternatively to the transfer by memory card (no TIA Portal required), the project can also be transferredregularly by TIA Portal. Find TIA project files in attached folder „TIA-Project“.

2.1 Requirements

2.1.1 TIA Portal 13 SP1 or newer

2.1.2 S7-1200 PLC

2.2 Transfer project to PLC

2.2.1 Open project files by TIA Portal.

2.2.2 Edit device configuration regarding used PLC

Page 7: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 7 / 14

2.2.3 Set quantity of available In- and Outputs of PLC.

2.2.4 Save, Compile and Transfer to PLC.

Page 8: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 8 / 14

3.0 Network settings

3.1 PC IP settings

After transferring the program, the default IP address of PLC is 192.168.2.130.Connect PLC to the network and adjust the IP address of your PC for the first use according to the addressarea of PLC.

eg.: 192.168.2.10

3.2 Start Webinterface

3.2.1 Open address of PLC (192.168.2.130) in Web-Browser. S7-1200 start page will appear:

Click „ENTER“ for next page…

Page 9: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 9 / 14

3.2.2 Adminlogin

Remark:To change data via the web interface a login as admin is required!

Log in by using the default login: admin, no password

3.2.3 Login successful

After a successful login, access the regular web interface of EDC by the link „Homepage of theapplication“. If needed, a different IP address could be assigned in menu:

Take attention to required sequence while changing this settings. First save new settings by „1. Ok“and second process this settings by „2. Ok“.

Finally the PLC will reboot. The web interface must be accessed with newly assigned address. Youmay also must re-adjusted the IP address of your computer.

Page 10: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 10 / 14

4.0 Configuration via web interface

4.1 Language

Switch language by option menu:

After changing language settings, it is necessary to reload the displayed page to get it in the set language..

4.2 Overview / Values

Overview of the available values and will update automatically every few seconds.

Page 11: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 11 / 14

4.3 Overview / IO Status

This point refers to a S7-1200 PLC default page. Here, the direct interpretation of the inputs and outputs ofthe PLC can be observed.

4.4 Settings / Datapoints

Various settings can be made to each data point. A detailed description of each option is available on thispage under "Remarks".

Also the counters associated Modbus TCP starting registers are listed. By this, the EDC values could beaccessed by powermanager as MB device.

R32 (32Bit FLOAT) and R64 (64Bit DOUBLE) indicates first Modbus-Register address to read value viaModbus-TCP (FC3 - read multiple registers).

Rd indicates Modbus address to read the direct physical input value via Modbus-TCP.Digital Inputs: FC2 - read input discretes (BOOL - TRUE/FALSE)Analogue Inputs: FC4 - read input registers (WORD - 0 to 27648)

Page 12: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 12 / 14

4.5 Settings / Initialize

The values of counters can be set to a certain value to initialize these or set to zero.

Page 13: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 13 / 14

5.0 Integrate to powermanager

5.1 XML imported device (requires powermanager V3.2 or newer!)

There is an XML import file attached, which reproduces the I/O extent of a CPU 1214. This file can beinstalled in any powermanager project.

After importing the file the type of device is regularly available through selection and can be set arbitrarily.

Page 14: powermanager – Read digital counters and analogue values ... · powermanager – Read digital counters and analogue values via S7-1200 PLC + EDC ... Modbus TCP S7-1200 ... Read

powermanager –Read digital counters and analogue values via S7-1200 PLC + EDC

30.07.2015 Page 14 / 14

5.2 Create as generic Modbus device

Alternatively, the S7-1200 can be integrated as a generic Modbus device. This requires a deviceconfiguration for every necessary value pursuant to the register structure deposited in EDC (see also item4.4).