Simatic S7 client
Parameters
| Parameter | Datatype | Default Value | Description |
|---|---|---|---|
| DEBUG | enum | 0 | Enable debugging |
| DUMP | enum | 0 | Enable communication dump |
| PEER_ADDRESSES | list_of_inet_addr | Destination TCP/IP hostname:port, separate multiple entries with comma | |
| PORT | int | 102 | Default 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 |
| DISCONNECT_STOPPED | enum | Disconnect from PLC when it enters STOP state | |
| BIT_QUALITY_LOGIC | enum | Bit quality logic (applies only if quality is bit, negative - false is good, positive - true is good) | |
| 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 |
| ADDRESS | string | Destination TCP/IP hostname or address (legacy, use PEER_ADDRESSES) |
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:
- Simatic syntax - see vendor documentation
- Native syntax:
<type>@<area>[<block>:]<offset>[.<bit|length>]where:typeis one ofbit,bool,byte,usint,word,uint,counter,timer,dword,udint,char,sint,int,dint,float,dtl,string,s5tareais one ofpe,pa,mk,db,ct,tmblockis block numberoffsetis offset in blockbit|lengthbit number forbitandbooltypes, mandatory maximum string length forstringtype
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:
- Simatic syntax - see vendor documentation
- Native syntax:
<type>@<area>[<block>:]<offset>[.<bit|length>]where:typeis one ofbit,bool,byte,usint,word,uint,counter,timer,dword,udint,char,sint,int,dint,float,dtl,stringareais one ofpe,pa,mk,db,ct,tmblockis block numberoffsetis offset in blockbit|lengthbit number forbitandbooltypes, mandatory maximum string length forstringtype
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