Skip to main content

S7 Communication

Communication apps provide data from a source to the NOA bus, e.g. for telemetry in NOA Portal or building a (HELIO HMI -- /NOA-Documentation/HELIO-HMI-Development).

The S7 Communication establishes a connection to a SIEMENS controller via the S7 protocol.

Configure the parameters as below.

Upon success the service

  • Shows the device's .... name big on top
  • Shows "Connected" in the green pill right next to it (this pill shows the connection status in general)
  • Starts reading data as soon as it is configured correctly

overview.png

Prerequisites

To establish a S7 Communication the following must be available

  • TIA Export of the symbol configuration .... ### HOW-TO? see below
    • enable put-get in TIA portal
    • don't use special characters, they may have special meaning, e.g. [and ] (these are interpreted as arrays)
  • Target Device (controller) ... with S7 enabled ...#### ?
    • ... more?!

Parameters

Take most of the parameters from TIA portal and insert in the app's configuration.

Export the definition of "Data Blocks" i.e. the symbols to expect in each block as ".db" file from TIA Portal.

VariableData TypeDescription
General
NameDescriptive Name for each connectionThis name will be used as root node for this connection e.g. in Data Explorer and HELIO NOA Connection
Sampling RateHow often data is expected from this connectionThis is a hint to the communication app; it is up to the app if it can fulfil this sampling rate. The communication will send data at it's own discretion.
Device Settings
AddressIP addressIP address of the S7 device
SlotInteger#### descrition ###
RackInteger#### descrition ###
Data BlocksSymbol DefinitionImport the ".db" file from TIA
Output valuesread-only
## NameStringCodesys Name as returned on successful connection
## ConnectedBooleanReflects the state of the connection: TRUE iff the connection is completely established
## Connection StatusStringReflects the detailed state of the connection, shown in the pill on top of the screen ('Disconnecting', 'Connecting', 'Connected', 'Connection Failed', 'Timeout Error', 'Connect Error', 'Config Error', 'Unknown Error')

Example Settings

overview.png

  • Enter the Index Number for each block
  • Double check with the TIA portal

overview.png

TIA Export

image.png

Troubleshooting

Potential S7 Errors

  • ....