Skip to content

Latest commit

 

History

History
124 lines (59 loc) · 3.58 KB

File metadata and controls

124 lines (59 loc) · 3.58 KB

Configuration

Configure PLC Connection

To read data from the PLC and provide the data, we will use the SIMATIC S7 Connector to establish connection with the PLC via S7.

The SIMATIC S7 sends the data to the Databus, where the Flow Creator app can collect what is needed.

In order to build this infrastructure, these apps must be configured properly:

  • Databus
  • SIMATIC S7 Connector

Configure the Databus

In your IEM open the Databus and launch the configurator.

Add a user with this topic: "ie/#"

IE_Databus_User.png

ie_databus

Deploy the configuration.

Configure the SIMATIC S7 Connector

Simatic S7 Connector can be configured via both bellow mentioned options

a) Local configuration with Industrial edge device
b) Central configuration with Industrial edge management

Local Configuration

In your Industrial edge device open the common configurator and configure the S7 connector

This Configuration done locally at the Industrial edge Device

Add a data source:

sinuslocaldatasource.png

Add a data Databus credentials in common configurator:

Databus_IIH.PNG

Hint: Username and password should be the same as was set in the Databus configuration, e.g., "edge" / "edge".

Deploy and start the project.

Import the tags to S7 connector from S7.zip file exported from TIA portal by using export SCADA simatic tool in common configurator:

Download the SCADA simatic tool from siemens site for TIA portal:

simaticscada.PNG

addtagssinuslocal.png

Add these four tags Frequency, Offset, Amplitude, SinusVal with 1 sec of acquisition cycle (since we want to write variable values into the PLC, set "Read & Write" as access mode):

Localnewtag.PNG

Hint! Please use the same variable names as shown in the screenshot, otherwise the flow creator script must be adjusted.

Central Configuration

In your IEM open the SIMATIC S7 Connector and launch the configurator.

This configuration done centrally at IEM

Add a data source:

sinusadddatacentral.png

Browse the tags from PLC

browsetagssinus.PNG

Add these four tags Frequency, Offset, Amplitude, SinusVal with 1 sec of acquisition cycle (since we want to write variable values into the PLC, set "Read & Write" as access mode):

newcentralsinustag.png

Edit the settings:

s7_connector_settings

Hint: Username and password should be the same as was set in the Databus configuration, e.g., "edge" / "edge".

Configure Flow Creator

Open the Flow Creator App from the IED Web UI and import the FlowCreator.JSON file from the source folder.

importFlowCreator.PNG

importFlow2.PNG

After importing the JSON file, the password set in the Databus must be entered in the security settings of the MQTT-node.

ServerEinstellungen.PNG

Hint: Username and password should be the same , e.g., "edge" / "edge".

SecuritySetting.PNG