Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

The line protocol contains the following parameters:

ParameterMeaningUnit / sizeDefault value
Kotva
rack
rack
Rack
Siemens Simatic rack number.0 to 70
Kotva
slot
slot
Slot
Siemens Simatic slot number.0 to 310
Kotva
conres
conres
Connection Resource (hex)
Connection resource, it inputs as MSB byte to calculation of the value of Remote TSAP at initialization of ISO Connection-request.
See description of parameter Use long TSAP.
0x0 to 0xFF3
Kotva
ltsap
ltsap
Local TSAP (hex)
ISO Local TSAP (Transport Service Local Point).  Source TSAP value at initialization of ISO Connection-request.
See description of parameter Use long TSAP.
0x0 to 0xFFFF0x1000
Kotva
srcref
srcref
Source Reference
ISO Source Reference. Value of SRC-REF at connection of ISO Connection-request.0 to 655351
Kotva
ult
ult
Use long TSAP
Enables a long format of local and remote TSAP which is sent during connection setup phase.
Short TSAP is 2 bytes long.
Short local TSAP has following format:Short remote TSAP has following format:Long local TSAP is 28 bytes long. Last 2 bytes are higher and lower byte of parameter Local TSAP
Full remote TSAP is 28 bytes long and it contains:
-False
Kotva
mpiaddr
mpiaddr
MPI/Profibus Address
MPI/Profibus address sent as a part of Remote TSAP, if parameter Use long TSAP is set to True0 to 1261
Kotva
s7sub1
s7sub1
S7 Subnet ID-part 1 (hex)
S7 subnet address sent as a part of Remote TSAP, if parameter Use long TSAP is set to True0x0 to 0xFFFF0
Kotva
s7sub2
s7sub2
S7 Subnet ID-part 2 (hex)
S7 subnet adresa sent as a part of Remote TSAP, if parameter Use long TSAP is set to True0x0 to 0xFFFF0
Kotva
tpdus
tpdus
ISO TPDU Size Variable Parameter
Maximum required size of ISO TPDU. The parameter value at initialization of ISO Connection-request.8192, 4096, 2048, 1024, 512, 256 or 128 bytes1024 bytes
Kotva
pnj
pnj
Nr. of Parallel Network Threads
Maximum parallel communication threads. Increase value if there is a request on more data read from device in shorter time.1 to 41
Kotva
ct
ct
Cycle Time
Required time of one data reading cycle.ms1000 ms
Kotva
wt
wt
Message Timeout
Maximal wait time on reply from other device.ms2500 ms
Kotva
imd
imd
Inter Message Delay
Delay which is used before sending a data request. When high data transfer rate is required, set 0 ms.sec.ms20 ms
Kotva
rd
rd
Reconnect Delay
Delay before reconnection to other device if the connection has failed or some communication error has occurred.sec.ms2 sec
Kotva
cet
cet
Connection Error Timeout
When Timeout passes and communication error occurs in all threads, a communication error status is set on the stations. FALSE state is set on the communication line.sec.ms20 sec
Kotva
pdu
pdu
S7 PDU Size
Maximum PDU in bytes at S7 communication with other device.240, 480, 960 bytes480 bytes
Kotva
tnd
tnd
Tcp No Delay
Setting Tcp No Delay parameter causes low level socket option TCP_NODELAY being set, thus turning off default packet coalesce feature.-False
Kotva
nvd
nvd
Debug Values
Activates a debug info about the loaded values of I/O tags. Use this parameter only when communication must be debug because it highly uses CPU and slows down the communication.YES/NONO
Kotva
iopd
iopd
Debug I/O Binary Packets Info
Activates a debug info about a binary content of packets. Use this parameter only when communication must be debug because it highly uses CPU and slows down the communication.YES/NONO
Kotva
rdd
rdd
Debug Requests Info
Activates a basic debug info about requested data.YES/NOYES
Kotva
rad
rad
Debug Answers Info
Activates a basic debug info about received packets.YES/NOYES

Kotva
komunikacna_stanica
komunikacna_stanica
Communication station configuration

...

{;}{S7:[connectionname]}DB<no>,<type><address>{, <items>}
{;}{S7:[connectionname]}DI<no>,<type><address>{, <items>}
{;}{S7:[connectionname]}<object>{<type>}<address>{, <items>}

Where:

;Optional parameter. It disables the I/O tag from communication, stops I/O tag address check when it is saved, and can be useful when the communication with device is activated or debugged.
S7:[connectionname]Optional parameter. It does not contains any useful information but it is supported only because of backward compatibility with Siemens SimaticNET OPC server.
DBData block. S7 variable identifier from "Data block".
DIInstance data block. S7 variable identifier from " Instance data block".
<no>Number of "data block" or "instance data block".
<object>
Specification of block or area in S7 PLC.

Possible values:

IInput
QOutput
PIPeripheral input
PQPeripheral output
MMemory bit
CCounters (BCD coded integer numbers <0-999>)
TTimers (BCD coded time values from intervals <0.00-9.99>, <00.0-99.9>, <000-999>, <0000-9.9990>)
Kotva
szl
szl
S
SZL (System-ZustandsListen - system status lists) - lists with diagnostic information which are available on CPU family S7-300 and S7-400. Diagnostic information differs for various classes of PLC and details are described in manuals (e.g. System Software for S7-300/400 System and Standard Functions, Volume 1/2)
Note: I/O tag S must be of TxtI type.


<type>

Data type of S7. It is not specified for T, C and S objects.

Identifier <type>Description
XBit (boolean). Specify a bit number 0 to 7 - e.g. DB9,X8.3
BByte (8 bits unsigned).
WWord (16 bits unsigned).
DDouble word (32 bits unsigned).
CHARCharacter (8 bits signed).
INTInteger (16 bits signed).
DINTDouble integer (32 bits signed).
REALFloating point number (32 bits according to IEEE754 standard).
LREALLong floating point number (64 bits according to IEEE754 standard).
STRINGString. Specify a string length.
DTDate and Time, 8 bytes in BCD format.
TIMETime (32 bits signed) in ms.
TODTime of day (32 bits unsigned) in ms.


<address>Address of variable. Possible types:
  • Byte offset
  • Byte offset.bit (only for X data type, bit number in the range of 0 to 7)
  • Byte offset.String length (only for STRING data type, string length from 1 to 254 characters)
  • Id.Index[.StringOffset[.StringLength]] - only for object S (system status list):
    • Id and Index are 16-bit numbers in range 0-65535 defining ID of specific system status list and index of item in this list
    • StringOffset and StringLength are byte offset (0..65535) and length (1..65535) of substring in answer, which will be parsed as a value of I/O tag.
    Example: address S237.1.10.20 represents status list 237 (0x0111), index 1 (Identification of the module). S7-300 will answer to this request by a 36 byte-long string (bytes 0..35) in which bytes 10..29 (i.e. offset=10, length=20) represent "Order number of the module", e.g. '6GK7 342-5DA02-0XE0 '.
Example of addresses:
  • DB10,W35
  • DB8,X10.0
  • DB1,REAL12
  • DB5,STRING5.14
  • T20
  • C7
  • MB11
  • MDINT30
<items>number of elements for structured I/O tags with configured Destination column. Every read element (1,2,3 .. items) will be written to one item of destination column.
Structured I/O tags are not supported for objects of type T (timers), C (counters) and S (system status lists) nor for data type STRING.
Note: All items elements are read at once. If e.g. 100 elements of type D (double word) are configured, it means reading of a block of 400 bytes. If a smaller size of packet (S7 PDU size) is agreed on during establishment of connection, reading of this I/O tag will not be performed and trace file of line will contain an error message. Agreed S7 PDU size is minimum of size offered by D2000 (parameter S7 PDU Size) and supported size of specific device.
Note: syntax of address when specifying number of elements is compatible with Siemens S7 OPC server (e.g. S7:[MyPLC]DB120,INT1050, 24), which facilitates simple transition from OPC communication to Siemens SIMATIC S7 ISO on TCP protokol by configuring a new line, a new station and then changing parent of I/O tags (e.g. via CSV or XML export and import).

Example of addresses:
  • DB10,W35, 20     a block of 20 words will be read (i.e. 40 bytes) from addresses 35-54
  • DB8,X10.0, 100     a block of 100 bits will be read (i.e. 13 bytes) from addresses 10-22

Kotva
tia12
tia12
Note on Siemens TIA Portal version 12 and above

...