Skip to main content
Version: 2.2-dev

Siemens S7 Nodes

Communicate with Siemens S7-300, S7-400, S7-1200, and S7-1500 series PLCs through dedicated read, write, and system nodes optimized for deterministic industrial control.

Configuration Quick Reference

FieldWhat you chooseDetails
ParametersConnection, Function, Function Parameters, Timeout OverrideSelect the connection profile, function, configure function parameters with expression support, and optionally override timeout.
SettingsDescription, Timeout (seconds), Retry on Timeout, Retry on Fail, On ErrorNode description, maximum execution time, retry behavior on timeout or failure, and error handling strategy. All execution settings default to pipeline-level values.

Siemens S7 Read node configuration

S7 Read Node

S7 Read Node

Read data from Siemens PLC data blocks and memory areas with optimized batch reading.

Supported Function Types:

Function NamePurposeCommon Use Cases
Read Data Block Multi (s7.read.db.multi)Fetch multiple data points from a single DBRecipes, production counters, configuration
Read Memory Area Multi (s7.read.memory.multi)Read multiple data points from M, I, or Q areasInterlocking, diagnostics, status dashboards

Node Configuration

ParameterTypeRequiredDescription
ConnectionSelectionYesS7 connection profile to use
FunctionSelectionYesRead function from the selected connection
Function ParametersDynamicVariesAuto-populated from the function schema. See your S7 connection functions for full parameter details.
Timeout OverrideNumber (seconds)NoOverride the default function timeout

All function parameters support expression syntax ({{ expression }}) for dynamic values from the pipeline context.

Input

The node receives the output of the previous node as input. Input data can be referenced in function parameter expressions using $input.

Output Structure

On success the node produces:

{
"success": true,
"functionId": "<function-id>",
"data": { ... },
"durationMs": 42,
"timestamp": "2026-01-15T08:30:00Z"
}
FieldTypeDescription
successbooleantrue when the function executed without errors
functionIdstringID of the executed function
dataobjectFunction-specific result data (see below)
durationMsnumberExecution time in milliseconds
timestampstringISO 8601 / RFC 3339 UTC timestamp

Function-Specific Output Data

Read Data Block Multi (s7.read.db.multi):

{
"dbNumber": 100,
"dataPoints": {
"Temperature": {
"value": 25.5,
"dataType": "REAL",
"start": 0,
"size": 4,
"rawBuffer": [...]
},
"Pressure": {
"value": 1234,
"dataType": "INT",
"start": 4,
"size": 2,
"rawBuffer": [...]
}
},
"readOperations": [
{ "start": 0, "size": 6, "bytesRead": 6 }
],
"totalDataPoints": 2,
"totalReads": 1
}
FieldTypeDescription
dbNumbernumberData block number that was read
dataPointsobjectMap of data point name to result. Each entry contains value, dataType, start, size, and rawBuffer.
readOperationsarrayOptimized read operations performed (adjacent points are coalesced)
totalDataPointsnumberNumber of data points returned
totalReadsnumberNumber of actual read operations (may be fewer than data points due to coalescing)

Read Memory Area Multi (s7.read.memory.multi):

{
"area": "M",
"dataPoints": {
"Flag1": {
"value": true,
"dataType": "BIT",
"start": 0,
"size": 1,
"rawBuffer": [...]
}
},
"readOperations": [
{ "start": 0, "size": 1, "bytesRead": 1 }
],
"totalDataPoints": 1,
"totalReads": 1
}
FieldTypeDescription
areastringMemory area: M (Merkers), I (Process Inputs), Q (Process Outputs)
dataPointsobjectSame structure as Read Data Block
readOperationsarrayOptimized read operations
totalDataPointsnumberNumber of data points
totalReadsnumberActual read operations performed

Function parameters for Read Data Block Multi:

ParameterTypeRequiredDescription
dbNumberNumberYesData block number (0–65535)
dataPointsArrayYesData points to read (see Data Point Structure below)

Function parameters for Read Memory Area Multi:

ParameterTypeRequiredDescription
areaStringYesMemory area: M, I, or Q
dataPointsArrayYesData points to read (see Data Point Structure below)

Data Point Structure:

FieldTypeRequiredDescription
nameStringYesUnique name for this data point
startNumberYesByte offset (>= 0)
sizeNumberYesSize in bytes (1–65536)
dataTypeStringYesS7 data type (see Supported Data Types)
bitPosNumberFor BIT onlyBit position (0–7), required when dataType is BIT
Read Coalescing

Adjacent data points are automatically merged into fewer read operations. Data points within 32 bytes of each other are combined into a single read (up to 255 bytes per operation), reducing PLC communication overhead.


Siemens S7 Write node configuration

S7 Write Node

S7 Write Node

Write deterministic control values to Siemens PLC data blocks or memory areas.

Supported Function Types:

Function NamePurposeCommon Use Cases
Write Data Block (s7.write.db)Write a value to a DB locationDownload production orders or recipes
Write Memory Area (s7.write.memory)Write a value to M or Q areasForce outputs, toggle sequences, command transitions

Node Configuration

ParameterTypeRequiredDescription
ConnectionSelectionYesS7 connection profile to use
FunctionSelectionYesWrite function from the selected connection
Function ParametersDynamicVariesAuto-populated from the function schema. See your S7 connection functions for full parameter details.
Timeout OverrideNumber (seconds)NoOverride the default function timeout

All function parameters support expression syntax ({{ expression }}) and template placeholders (((paramName))) for dynamic values.

Input

The node receives the output of the previous node as input. Use expressions like {{ $input.payload.value }} to pass dynamic values to write parameters.

Function-Specific Parameters and Output

Write Data Block (s7.write.db):

ParameterTypeRequiredDescription
dbNumberNumberYesData block number (0–65535)
startNumberYesByte offset (>= 0)
dataTypeStringYesS7 data type (see Supported Data Types)
valueStringYesValue to write (parsed according to dataType)
bitPosNumberFor BIT onlyBit position (0–7)
sizeNumberFor STRING/CHARSize in bytes (1–65536)

Output:

{
"dbNumber": 100,
"start": 0,
"dataType": "REAL",
"value": "25.5",
"bytesWritten": 4,
"timestamp": "2026-01-15T08:30:00Z"
}

Write Memory Area (s7.write.memory):

ParameterTypeRequiredDescription
areaStringYesMemory area: M or Q only (I is read-only)
startNumberYesByte offset (>= 0)
dataTypeStringYesS7 data type (STRING not supported for memory writes)
valueStringYesValue to write
bitPosNumberFor BIT onlyBit position (0–7)

Output:

{
"area": "M",
"start": 0,
"dataType": "BIT",
"value": "true",
"bytesWritten": 1,
"timestamp": "2026-01-15T08:30:00Z"
}
BIT Writes

BIT writes use a Read-Modify-Write pattern: the node reads the current byte, modifies the specific bit, and writes the byte back. This ensures other bits in the same byte are preserved.

Safety First

Always implement validation and safety checks before writing to industrial equipment. Consider adding condition nodes to verify values are within safe ranges. The Input area (I) is read-only and cannot be written.


S7 Read Group Node

The S7 Read Group node executes multiple S7 read operations in a single node with request coalescing for efficiency. It supports selective function lists, a Read All mode, and parallel or sequential execution.

Node Configuration

ParameterTypeRequiredDefaultDescription
ConnectionSelectionYesS7 connection profile
Read AllToggleNofalseWhen enabled, executes all read functions from the connection
FunctionsArray of {functionId, alias}When Read All is off[]List of specific functions to execute. Each entry requires a functionId; alias is optional.
Execution ModeSelectionNoparallelparallel — all functions run concurrently. sequential — functions run one after another.
Continue on ErrorToggleNotrueWhen enabled, the node continues executing remaining functions even if one fails
Debug ModeToggleNofalseEnable detailed logging for troubleshooting

Read All Mode

When Read All is enabled the function list is ignored. The node automatically discovers and executes every read function defined on the selected connection.

Supported read function types for Read All:

Function TypeDescription
s7.read.db.multiRead Data Block Multi
s7.read.memory.multiRead Memory Area Multi

Input

The node receives the output of the previous node as input.

Output Structure

{
"DB100 Temperatures": {
"value": {
"dbNumber": 100,
"dataPoints": {
"Temperature": { "value": 25.5, "dataType": "REAL", "start": 0, "size": 4 }
},
"totalDataPoints": 1,
"totalReads": 1
},
"success": true,
"duration": 45,
"timestamp": "2026-01-15T08:30:00Z"
},
"Merker Flags": {
"value": {
"area": "M",
"dataPoints": {
"RunFlag": { "value": true, "dataType": "BIT", "start": 0, "size": 1 }
},
"totalDataPoints": 1,
"totalReads": 1
},
"success": true,
"duration": 38,
"timestamp": "2026-01-15T08:30:00Z"
},
"_meta": {
"connectionId": "conn-789",
"connectionName": "S7-1500 Line A",
"total": 2,
"successful": 2,
"failed": 0,
"totalDuration": 83,
"executionMode": "parallel",
"originalRequests": 2
}
}

Each function result contains:

FieldTypeDescription
valueanyThe function's return data (Read DB or Read Memory result)
successbooleanWhether this function succeeded
errorstringError message (present only on failure)
durationnumberExecution time in milliseconds
timestampstringISO 8601 / RFC 3339 UTC timestamp

The _meta object provides execution summary:

FieldTypeDescription
connectionIdstringConnection profile ID
connectionNamestringConnection profile display name
totalnumberTotal functions executed
successfulnumberCount of successful executions
failednumberCount of failed executions
totalDurationnumberWall-clock time for the entire group (ms)
executionModestringparallel or sequential
originalRequestsnumberNumber of function configs submitted
keyCollisionsstring[]Output keys that appeared more than once (omitted when empty)

Output Key Resolution

Each function result is keyed in the output map using the first available value:

  1. Alias — the custom alias set in the function entry
  2. Function Name — the name defined on the connection function
  3. Function ID — the unique function identifier (fallback)

Execution Modes

Parallel (default)

  • All functions execute concurrently.
  • Fastest total execution time.
  • Best when reading from different data blocks or memory areas.

Sequential

  • Functions execute one after another in list order.
  • More predictable timing and lower peak load on the PLC.
  • When Continue on Error is off, execution stops at the first failure.
tip

S7 PLCs typically support a limited number of concurrent connections (usually 8). Parallel mode runs multiple reads within a single connection, which is safe and efficient.

Error Handling

Continue on ErrorBehavior
true (default)The node completes even if individual functions fail. Failed functions include an error field in their result. The node output remains successful.
falseThe node fails as soon as any function fails. In sequential mode, remaining functions are skipped. The node result is marked as failed.

Validation Rules

  • connectionId is required.
  • executionMode must be parallel or sequential.
  • When Read All is off, at least one function entry is required.
  • Duplicate functionId values are not allowed.
  • Duplicate alias values are not allowed.
  • The connection type must be s7.

Best Practices

  • Use Read All for complete PLC data snapshots during commissioning or diagnostics.
  • Use specific functions in production pipelines for targeted reads.
  • Assign aliases to make output keys descriptive (e.g., "Line A Temperatures" instead of a function ID).
  • Leverage read coalescing — define data points close together in the same DB to minimize the number of actual read operations.

Supported Data Types

The following data types are supported in S7 read and write operations:

Data TypeSizeDescription
BIT1 byteBoolean value (requires bitPos 0–7)
BYTE1 byteUnsigned 8-bit integer (0–255)
WORD2 bytesUnsigned 16-bit integer (0–65535)
DWORD4 bytesUnsigned 32-bit integer
INT2 bytesSigned 16-bit integer (−32768 to 32767)
DINT4 bytesSigned 32-bit integer
REAL4 bytes32-bit IEEE 754 floating point
LREAL8 bytes64-bit IEEE 754 floating point
CHARVariableASCII character(s)
STRINGVariableS7 string with 2-byte header (DB writes only)

Memory Areas:

AreaNameReadableWritable
MMerkers (Flags)YesYes
IProcess InputsYesNo
QProcess OutputsYesYes

Settings Tab

All S7 node types share the same Settings tab:

SettingTypeDefaultDescription
DescriptionTextOptional description displayed on the node
Timeout (seconds)NumberPipeline defaultMaximum time the node may run before timing out
Retry on TimeoutTogglePipeline defaultAutomatically retry the node if it times out
Retry on FailTogglePipeline defaultAutomatically retry the node if it fails
On ErrorSelectionPipeline defaultError strategy: stop the pipeline, continue to the next node, or follow the error output path

When left at their defaults, these settings inherit from the pipeline-level execution configuration.