3.3
Insertion of the Function Blocks into the Program
Content of the
MODBUS library
Blocks of the
Standard Library
MODBUS / TCP communication via the integrated PN interface of the CPU
2XV9450-1MB02; Manual edition 2.1
The following blocks are required for the Modbus communication:
•
MODBUSPN
•
MOD_CLI
•
MOD_SERV
•
TCP_COMM
The blocks have to be copied from the library into your project.
Additionally, the library contains the parameter data block MODBUS_PARAM
as a draft. They can be inserted into your project for assistance purposes.
The following blocks are required for the Modbus communication:
•
TSEND (FB63)
•
TRCV (FB64)
•
TCON (FB65)
•
TDISCON (FB66).
You can find these blocks in Standard Library
They have to be inserted into your project.
Please note that the following versions of the FBs are a prerequisite for the
faultless function of the FB MODBUSPN:
TSEND
V2.1 or higher
TRCV
V2.2 or higher
TCON
V2.3 or higher
TDISCON
V2.1 or higher
Furthermore the block FC10 EQ_STRNG is necessary. You can find this
function in „Standard Library
Communication Blocks.
IEC Function Blocks".
Commissioning
3-4