5 MODBUS RTU Protocol communication
CP340/CP341/CP440/CP441 Communication and Programming
Entry-ID: 88867653, V1.0, 02/2014
Siemens AG 2014 All rights reserved
Fig. 70: Logic address of CP341
3. Invoke MODBUS Slave function block
Start logic address in hardware configuration,
which is 256 in this example
timeout initialization timer, which is T1 in this
example
timeout initialization time value, which is 1s in
this example
I/O access error mask bit, which is M100.0 in
this example
FB initialization enable bit, which is M100.1 in
this example
CP_START initialization rising edge bit, which is
M100.2 in this example
write from CP operation bit, which is M100.3 in
this example
initialization succeed flag, which is M100.4 in
this example
initialization fail flag, which is M100.5 in this
example
error number, which is MW102 in this example
error message, which is MW104 in this
example. Refer to Modbus Slave Manual -
Chapter 10
Table 12: Parameter definition of FB80