Communication processor and Modbus TCP
13.5 Modbus communication
S7-1200 Programmable controller
1170 System Manual, V4.2, 09/2016, A5E02486680-AK
Selecting the version of the Modbus TCP instructions
There are three versions of the Modbus TCP instructions available in STEP 7:
● Legacy version 3.0: Compatible with all CPU and CP versions
● Legacy version 3.1: Compatible with all CPU and CP versions
● Version 4.1: Compatible with V4.0 and later CPUs and V2.1 and later CMs
For compatibility and ease of migration, you can choose which instruction version to insert
into your user program.
Do not use both 3.0 and 3.1 instruction versions in the same CPU program. Your program's
Modbus TCP instructions must have the same major version number (
.x,
.y, or
.z). The
individual instructions within a major version group may have different minor versions (1.
).
Click the icon on the instruction tree task card to enable the headers and columns
To change the version of the Modbus TCP
instructions, select t
he version from the drop
-
down list. You can select the group or ind
i-
When you use the instruction tree to place a Modbus TCP instruction in your program, a new
FB instance is created in the project tree. You can see new FB instance in the project tree
under PLC_x > Program blocks > System blocks > Program resources.
To verify the version of a Modbus TCP instruction in a program, you must inspect project
tree properties and not the properties of a box displayed in the program editor. Select a
project tree Modbus TCP FB instance, right-click, select "Properties", and select the
"Information" page to see the Modbus TCP instruction version number.