Skip to main content

S7 Configuration (Siemens)

The S7 Configuration tab allows you to connect your Kodeno equipment to a Siemens S7 controller to read variables.

S7 Configuration

Optional Module

This feature requires the "S7 Connector" module to be enabled in equipment settings.

What is S7 Connection?

S7 connection allows your Kodeno equipment to:

  • Connect to a Siemens S7-300, S7-400, S7-1200, or S7-1500 controller
  • Read variables from data blocks (DB)
  • Display values in real-time in Kodeno

Accessing S7 Configuration

  1. Access your equipment page
  2. Click on the "S7 Configuration" tab
Prerequisites

Make sure the S7 module is enabled in the Settings tab before accessing this configuration.

Connection Settings

Network Information

FieldDescription
IP AddressSiemens controller IP address
RackRack number (usually 0)
SlotCPU slot number (usually 1 or 2)

S7 Connection Settings

Connection Test

  1. Enter connection settings
  2. Click on "Test connection"
  3. A message indicates if connection is successful

Configure Variables

Add a Variable

  1. Click on "Add variable"
  2. Fill in information:
FieldDescription
NameVariable identifier
DB NumberData block number
OffsetPosition in DB (in bytes)
Data TypeBOOL, INT, REAL, DINT, etc.
BitBit position (for BOOL type)

Add S7 Variable

Supported Data Types

TypeDescriptionSize
BOOLBoolean (true/false)1 bit
BYTEUnsigned byte1 byte
INTSigned integer2 bytes
DINTDouble signed integer4 bytes
REALFloating point number4 bytes
STRINGCharacter stringVariable

Configuration Example

To read temperature stored in DB10 at offset 4 in REAL format:

  • Name: Oven temperature
  • DB Number: 10
  • Offset: 4
  • Type: REAL

S7 Variable Example

Manage Variables

Modify a Variable

  1. Click on the pencil icon next to the variable
  2. Modify settings
  3. Save

Delete a Variable

  1. Click on the trash icon next to the variable
  2. Confirm deletion

Reorganize Variables

Use drag-and-drop to reorganize the display order of variables.

Synchronize with Equipment

After configuring your variables:

  1. Click on "Synchronize"
  2. Configuration is sent to equipment
  3. Reading starts automatically

S7 Synchronization

View Values

S7 variable values are visible:

  • In the S7 Log tab for detailed display
  • On the dashboard (if configured)
  • In analysis charts (if history enabled)

S7 Values

Troubleshooting

Connection fails

Check:

  • Controller IP address
  • Rack and slot are correct
  • Controller allows external connections (S7 security settings)
  • Firewall doesn't block port 102

Values are incorrect

Check:

  • DB number is correct
  • Offset matches variable position
  • Data type is correct

Variables not read

Check:

  • S7 module is enabled in settings
  • Equipment is online
  • Synchronization was performed
Tip

Use TIA Portal or Step 7 software to verify exact addresses of your variables in the Siemens controller.