Skip to content

Simatic S7 client

Parameters

Parameter Datatype Default Value Description
DEBUG enum 0 Enable debugging
DUMP enum 0 Enable communication dump
ADDRESS hostname Destination TCP/IP hostname or address
PORT int 102 Destination TCP port
SCAN_PERIOD float 0.25 Scan period [s]
RESPONSE_TIMEOUT float 0.25 Receive timeout [s]
RECONNECT_DELAY float 2 Reconnection delay after connection lost
VENDOR_QUALITY enum 1 Store quality in vendor quality bits
RACK int 0 PLC rack
SLOT int 1 PLC slot
PDU_SIZE_LIMIT int 240 PDU size limit
PDU_MAX_VARS int 10 Maximum variables per PDU
MIN_READ_COUNT enum 0 Minimize read count by reading unconfigured areas

Measurements

This stack supports measurements.

Measurement address

Type: regex

Description:

Address consists of mandatory value reference and optional timestamp and quality references:
<value-reference>[,t=<timestamp-reference>][,q=<quality-reference>]

There are two supported reference syntaxes:

  1. Simatic syntax - see vendor documentation
  2. Native syntax: <type>@<area>[<block>:]<offset>[.<bit|length>] where:
    • type is one of bit, bool, byte, usint, word, uint, counter, timer, dword, udint, char, sint, int, dint, float, dtl, string, s5t
    • area is one of pe, pa, mk, db, ct, tm
    • block is block number
    • offset is offset in block
    • bit|length bit number for bit and bool types, mandatory maximum string length for string type

Examples:

float@DB20:150
bit@DB81:107.0
word@DB80:126,t=dtl@DB80:0
bit@DB80:124.2,t=dtl@DB80:0
float@DB400:916,t=dtl@DB400:0,q=byte@DB400:904
string@DB250:10.25
DB10.DBX148.2
DB10.I274
DB69.S112.10

Commands

This stack supports commands.

Command address

Type: regex

Description:

Address consists of mandatory value reference and optional timestamp and quality references:
<value-reference>[,t=<timestamp-reference>]

There are two supported reference syntaxes:

  1. Simatic syntax - see vendor documentation
  2. Native syntax: <type>@<area>[<block>:]<offset>[.<bit|length>] where:
    • type is one of bit, bool, byte, usint, word, uint, counter, timer, dword, udint, char, sint, int, dint, float, dtl, string
    • area is one of pe, pa, mk, db, ct, tm
    • block is block number
    • offset is offset in block
    • bit|length bit number for bit and bool types, mandatory maximum string length for string type

Examples:

bit@DB350:200.0
bit@DB350:100.2,t=dtl@DB350:0
word@DB350:392
string@DB350:10.25
DB10.DBX148.2
DB10.I274
DB69.S112.10