Convert SIMATIC to MODBUS address

M

Thread Starter

martin

I am working with CP341 SIEMENS because I need to read MODBUS from my S7-300.

I have troubles converting SIMATIC to MODBUS addresses. I am using "Function Code 03 - Read Output Registers".

For example if I have: DB28, DBW10.

When I convert to MODBUS the result is 13829. And I supose it is wrong... because it must be from 40000 to 42000 ok?

Could you explain me how to do it with some examples please??
Thanks a lot
Martin


 
To poll Address 11, Reg 40001 for 2 Regs:
0B 03 00 00 00 02 C4 A1
To poll Address 12 register 40101 for 4 Regs:
0C 03 00 64 00 04 04 CB

There is no such a register as 40000, the first register is 40001. You subtract 40001 from the target register. For example 40101 - 40001 = 100 (0x0064)
 
Top