Communication
8.5 PROFIBUS
S7-200 SMART
444
System Manual, V2.3, 07/2017, A5E03822230-AF
Table 8- 11 Module Definition List
Parameters
Values
Module
20
EndModule
= " 4 Bytes In/Out" 0xF1
Module
21
EndModule
= " 8 Bytes In/Out" 0xF3
Module
22
EndModule
= " 16 Bytes In/Out" 0xF7
Module
23
EndModule
= " 32 Bytes In/Out" 0xFF
Module
24
EndModule
= " 64 Bytes In/Out" 0xC0, 0xDF, 0xDF
Module
25
EndModule
= "122 Bytes In/Out" 0xC0, 0xFC, 0xFC
Module
26
EndModule
= "128 Bytes In/Out" 0xC0, 0xFF, 0xFF
8.5.1.13
PROFIBUS DP communications to a CPU example program
An example program for the PROFIBUS DP module in slot 0 for a CPU that uses the DP port
information in SM memory is shown below. The program determines the location of the DP
buffers from SMW1402 and the sizes of the buffers from SMB1404 and SMB1405. This
information is used to copy the data in the DP output buffer to the process image output
register of the CPU. Similarly, the data in the process image input register of the CPU are
copied into the V memory input buffer.
In the following example program for a DP module in position 0, the DP configuration data in
the SM memory area provides the configuration of the DP device. The program uses the
following data:
SMB1406
DP Status
SMB1401
Master Address
SMW1402
V memory offset of outputs
SMB1404
Number of bytes of output data
SMB1405
Number of bytes of input data
VD1000
Output Data Pointer
VD1004
Input Data Pointer