Parameters For The Profinet Connection - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

5.7.3

Parameters for the PROFINET connection

The TSEND_C, TRCV_C and TCON instructions require that connection-related parameters
be specified in order to connect to the partner device. These parameters are assigned by the
TCON_Param structure for the TCP, ISO-on-TCP, and UDP protocols. Typically, you use the
"Configuration" tab of the "Properties" of the instruction to specify these parameters. If the
"Configuration" tab is not accessible, then you must specify the TCON_Param structure
programmatically.
TCON_Param
Table 5- 7
Structure of the connection description (TCON_Param)
Byte
Parameter and data type
0 ... 1
block_length
2 ... 3
id
4
connection_type
5
active_est
6
local_device_id
7
local_tsap_id_len
8
rem_subnet_id_len
9
rem_staddr_len
10
rem_tsap_id_len
11
next_staddr_len
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Description
UInt
Length: 64 bytes (fixed)
CONN_OUC
Reference to this connection: Range of values: 1 (default) to 4095.
(Word)
Specify the value of this parameter for the TSEND_C, TRCV_C or
TCON instruction under ID.
USInt
Connection type:
17: TCP (default)
18: ISO-on-TCP
19: UDP
Bool
ID for the type of connection:
TCP and ISO-on-TCP:
UDP: FALSE
USInt
ID for the local PROFINET or Industrial Ethernet interface:
1 (default)
USInt
Length of parameter local_tsap_id used, in bytes; possible values:
TCP: 0 (active, default) or 2 (passive)
ISO-on-TCP: 2 to 16
UDP: 2
USInt
This parameter is not used.
USInt
Length of address of partner end point, in bytes:
0: unspecified (parameter rem_staddr is irrelevant)
4 (default): Valid IP address in parameter rem_staddr (only for
TCP and ISO-on-TCP)
USInt
Length of parameter rem_tsap_id used, in bytes; possible values:
TCP: 0 (passive) or 2 (active, default)
ISO-on-TCP: 2 to 16
UDP: 0
USInt
This parameter is not used.
5.7 Configuring the CPU for communication
FALSE: Passive connection
TRUE: Active connection (default)
Device configuration
153

Advertisement

Table of Contents
loading

Table of Contents