Siemens SIMATIC S7 Manual page 19

S7 open modbus / tcp communication via the integrated pn interface of the plc
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

local_tsap_id
rem_subnet_id
rem_staddr
rem_tsap_id
next_staddr
spare
MODBUS / TCP communication via the integrated PN interface of the CPU
2XV9450-1MB02; Manual edition 2.1
This parameter defines the local port number. The representation depends on
the parameter connection_type. The value range depends on the PLC. The
port number has to be unique within the PLC.
With connection_type B#16#01
local_tsap_id[1]
local_tsap_id[2]
local_tsap_id[3-16]
With connection_type B#16#11
local_tsap_id[1]
local_tsap_id[2]
local_tsap_id[3-16]
This parameter is currently not used. Please assign the value B#16#0.
In this array of bytes, the IP address of the remote communication partner is
defined. When an unspecified connection is used, no IP address has to be
entered. The representation depends on the parameter connection_type.
Example: IP address 192.168.0.1:
With connection_type B#16#01
rem_staddr[1] =
rem_staddr[2] =
rem_staddr[3] =
rem_staddr[4] =
rem_staddr[5-6]=
With connection_type B#16#11
rem_staddr[1] =
rem_staddr[2] =
rem_staddr[3] =
rem_staddr[4] =
rem_staddr[5-6]=
This parameter defines the remote port number. The representation depends
on the parameter connection_type. The value range depends on the PLC.
With connection_type B#16#01
local_tsap_id[1]
local_tsap_id[2]
local_tsap_id[3-16]
With connection_type B#16#11
local_tsap_id[1]
local_tsap_id[2]
local_tsap_id[3-16]
This parameter defines rack and slot of the corresponding CP. When using
the integrated PN interface of the PLC, assign 0 to this parameter.
next_staddr[1-6]
Reserved; assign 0 to this parameter.
Parameterisation of the Modbus Communication
low byte of the local port number in hexadecimal
high byte of the local port number in hexadecimal
B#16#00
high byte of the local port number in hexadecimal
low byte of the local port number in hexadecimal
B#16#00
B#16#01 (1),
B#16#00 (0),
B#16#A8 (168),
B#16#C0 (192),
B#16#00 (reserved)
B#16#C0 (192),
B#16#A8 (168),
B#16#00 (0),
B#16#01 (1),
B#16#00 (reserved)
low byte of the remote port number in hexadecimal
high byte of the remote port number in hexadecimal
B#16#00
high byte of the remote port number in hexadecimal
low byte of the remote port number in hexadecimal
B#16#00
B#16#00
4-5

Advertisement

Table of Contents
loading

Table of Contents