Parameters Of The Function Block Modbuscp - Siemens SIMATIC S7 Manual

Open modbus / tcp
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

5.2

Parameters of the Function Block MODBUSCP

Parameter
id
laddr
MONITOR
REG_KEY
server_client
single_write
data_type_1
db _1
start _1
end _1
data_type_2
db _2
start _2
end _2
data_type_3
db _3
OPEN MODBUS / TCP communication via CP343-1 and 443-1
2XV9450-1MB00; Manual edition 4.3
Decl.
Type
Description
IN
WORD
Connection-ID as per configuration in NetPro
IN
WORD
Input-Address of the CP in HW Config
IN
TIME
Monitoring Time: Wait for data from
communication partner
Shortest adjustable time is 20 ms
IN
STRING
Registration key to activate the license
[17]
IN
BOOL
CP/FB operates in server mode
or client mode (server = slave; client =
master)
IN
BOOL
Write 1 Coil/Register:
Function code 5 and 6 are used respectively
Function code 15 and 16 are used
respectively
IN
BYTE
1st data area: data type
Coils
Inputs
Holding Register
Input Register
IN
WORD
1st data area: data block number
IN
WORD
1st data area: first Modbus address in this DB
IN
WORD
1st data area: last Modbus address in this DB
IN
BYTE
2nd data area: data type (Coils, Inputs,
Holding Register, Input Register),
NULL if not used
IN
WORD
2nd data area: data block number
IN
WORD
2nd data area: first Modbus address in this
DB
IN
WORD
2nd data area: last Modbus address in this
DB
IN
BYTE
3rd data area: data type (Coils, Inputs,
Holding Register, Input Register),
NULL if not used
IN
WORD
3rd data area: data block number
Function Block MODBUSCP
Value range
1 to 64
CPU
dependent
T#20ms to
T#+24d20h31
m23s647ms
Character
TRUE
FALSE
TRUE
FALSE
1
2
3
4
1 to 65535
W#16#1 to
W#16#FFFF
0 to 65535
W#16#0000 to
W#16#FFFF
0 to 65535
W#16#0000 to
W#16#FFFF
0 to 4
1 to 65535
W#16#1 to
W#16#FFFF
0 to 65535
W#16#0000 to
W#16#FFFF
0 to 65535
W#16#0000 to
W#16#FFFF
0 to 4
1 to 65535
W#16#1 to
W#16#FFFF
Init
yes
yes
no
no
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
5-4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp 443-1Simatic net cp 343-1

Table of Contents