NodeRed S7 Interface
1. Node Red Node
The following node is required for communication between Node Red and a Siemens controller.

This must be installed and is not part of the standard nodes (Internet connection required!)
1.1. Node S7 Endpoint
An endpoint (connection to the controller) must be created for use.
This is done in one of the S7 nodes under "add new S7 endpoint" (pen)

The following settings must be entered:
Address: IP address of the control unit
Port: Is set to 102 by default and should remain as this is the port used for communication
Rack: Make the settings as stored in the hardware configuration of the control unit

The following is a complete example setting:

1.2. Node S7 variables
Variables are also added in the endpoint settings of the S7 node.
The structure must be the same as that of the data block in the controller.
In detail, this means that the data block number (here 1), data type and offset must be the same.
The notation of the data type can be found in the node descriptions (see chapter "Node Red Node").
The following is an example of the "Bool" and "Byte" data type:

The variables can then be used in the nodes and are bound to the endpoint.
1.3. Node settings Input
The following setting is used in this example:

PLC: Endpoint which was created in the chapter "Node S7 Endpoint".
Variable: Selection of the variable that communicates via the data block.
1.4. Node settings Output
The following setting is used in this example:

PLC: Endpoint which was created in the chapter "Node S7 Endpoint".
Variable: Selection of the variable which communicates via the data block.
2.1. Data module for transmission
A data block is required for communication between Node Red and the controller.
The variables to be transferred must be entered in this.
Various data types can be used. For information see chapter "Node Red Node".

3. S7 15xx control system
The following setting must be activated in order to obtain full data transmission functionality with the 15xx control unit.
Settings -> Protection
3.1. Data module for transmission
With the 15xx controller, the "optimized block access" of the data block must be deactivated.

A data block is required for communication between Node Red and the controller.
The variables to be transferred must be entered in this.
Various data types can be used. For information see chapter "Node Red Node".
