Heisenware Docs
Go to websiteGet a demo
  • 👋Welcome
  • Getting started
  • Release Notes
    • v84 - Get in the flow
    • v83 - Beauty treatment
    • v82 — Fully distributed
    • v81 — Removing old cruft
    • v80 — Chicks on fire
    • v79 — Nothing is forever
    • v78 — Keep moving
    • v77 — More intelligence
    • v76 — Well cooked
  • Build & Deploy Apps
    • Overview
    • Flow Builder
      • Nodes (Functions)
        • Inputs
        • Trigger
        • Output
      • Flows
      • Function Extensions
        • Modifier
        • Filter
        • Error handler
        • Memorizer
      • Objects & Instances
      • Utilities
        • Basic Functions
        • PDF functions
        • Circular buffer
        • Timer
        • Counter
    • Integrations
      • Protocol Connectors
        • GraphQL
        • HTTP/REST
        • MQTT
        • OPC UA
          • Heidenhain PLCs with OPC UA
        • RS-232/485
        • Siemens S7
      • Data Connectors
        • File
        • Relational Database
        • Time Series Database (WIP)
      • API Connectors
        • OGC SensorThings API
        • Operating System
        • Zebra RFID IoT Connector
      • Agent / (Edge Connector)
      • Calling Custom Code
    • UI Builder
      • Input Widgets
        • Form
        • File Upload
        • Photo
        • Signature
        • Barcode / QR-Code (WIP)
        • Document Scan (WIP)
      • Display Widgets
        • Chart
        • Chat
        • Circular Gauge
        • Data Grid
        • Linear Gauge
        • Map
        • Media View
        • Progress Bar
        • Sparkline
        • Status Lamp
        • Toast
        • Value Box
        • Kanban Board
        • Data Tiles
        • Pie Chart
        • Sankey
      • Buttons
      • Text Box
      • Images
      • Icons
    • Communication Interfaces
      • Email Notifications
      • OPC UA Server
    • Data & File Storage
      • Internal InfluxDB
      • Internal PostgreSQL
      • File Server
    • App Appearance
      • Pages
      • In-App Navigation
      • Screens & Devices
      • Theming
    • Simulation & Testing
      • Simulating Events
      • Simulating Data
    • PDF Templates
    • RAG-based Chatbot
    • Deployment
  • Manage Apps
    • Overview
    • Manage Apps
      • General Settings
      • Users and Access
      • Distribution & Versioning
    • Manage Integrations
    • Manage Account
      • Account Structure
      • Members
      • Workspaces
  • TUTORIALS
    • Build Your First Heisenware App
  • Connect Heidenhain CNC with OPC UA Support
  • Related links
    • Website
    • Privacy policy
    • Imprint
Powered by GitBook
On this page
  • What is the Siemens S7 protocol
  • Siemens S7 instance management
  • Creating an S7 instance
  • Deleting an S7 instance
  • Siemens S7 functions
  • Get connection status
  • Initiate a connection
  • Disconnect from the PLC
  • setAddressDictionary
  • Add items to internal read polling
  • Remove items from internal read polling
  • Write item-value pairs
  • Read out all item values
  1. Build & Deploy Apps
  2. Integrations
  3. Protocol Connectors

Siemens S7

Last updated 6 months ago

This article is a work in progress.

For immediate help integrating the S7 protocol, please .

What is the Siemens S7 protocol

The Siemens S7 protocol, also known as the S7comm protocol, is a communication protocol designed for Siemens PLCs (Programmable Logic Controllers). It allows for data exchange between PLCs and other devices within the same network, facilitating industrial automation processes. By utilising the S7 protocol, users can efficiently monitor, control, and retrieve data from their automation systems.

Siemens S7 instance management

Creating an S7 instance

Simply drag the create function onto the board, name your instance and trigger.

Deleting an S7 instance

Drag the delete function onto the board, insert the name of the instance to be deleted and trigger it.

Siemens S7 functions

Get connection status

With the getStatus function, you can read out the current connection status of the S7 connector.

Initiate a connection

To establish a connection to a PLC use the initiateConnection function. There are a few parameters available for the connection.

Parameter
Default
Type
Description

host

String

The host to be contacted for the S7 connection.

port

102

number

The connection port. Change this if your endpoint is not using the standard port.

rack

0

number

slot

2

number

timeout

5000

number

Connection timeout in ms.

Disconnect from the PLC

To drop the connection to the PLC, drag the dropConnection function onto the board and trigger it. This function simply terminates the TLC connection.

setAddressDictionary

Add items to internal read polling

The addItems function adds items to the internal read polling list. If items includes the value _COMMERR it will return the current communication status. Items can be a string or an array of strings.

Remove items from internal read polling

The removeItems function removes items from the internal read polling list. Items can be a string or an array of strings.

If the items box is left empty, all items will be removed

Write item-value pairs

Write items to the PLC with the writeItems function. If items is a single string, values should then be a single item. If items is an array of strings, values must also be an array of values of the same length.

The function returns true if the write was successful and false if it wasn't.

Read out all item values

With the readAllItems function, you can read out all items on the read polling list. They will be returned as key value pairs.

reach out to us
Create an S7 instance
Delete an S7 instance