Another siemens modbus question

kirk

Lifetime Supporting Member
Join Date
Jul 2003
Location
Houston
Posts
71
I have a Siemens S7-200 plc I am using port 0 as a modbus port.

The address I am trying to read are "VW*****" in the Siemens program.

I read the help section and they state "V" addresses start the modbus 400000 register.

What i don't get is how this helps me determine the mod bus address for my data I need to read.

Is their a calculator or spread sheet that let's you put in the Siemens address and gives you a equivalent modbus address.

OR can someone give me a little more info on how to cross the addresses over.

THANKS
 
I am assuming you are setting the Siemens port as the Modbus SLAVE as you make reference to 'reading from the Siemens port'?

What address have you allocated in the MBUS_INIT block? This will determine the registers that will map to the corresponding 40000, 400001 etc

So for example (as per screen shot), the start address is VB2000, so to read 40001.0 (bit level) you would examine V2001.0 in your S7200 code...

Also, i'm sure (and i need to dig out the code i did for this) that you need to do some byte swapping (Siemens side) Hi>Lo etc...

Hope this helps.

Rob

Modbus_S7200_1.jpg
 

Similar Topics

Hi Guys. Apologies for the long winded script but I want to give you the full script I imagine some of you guys have been in the same situation...
Replies
9
Views
2,203
Dear All, I have a machine of stone cutting CNC. with Siemens 810D system. I am very tired to maintain(Servo drive failure) it now wants to...
Replies
8
Views
4,872
Hi guys I need to transfer a tia license for a couple of days from one pc to another via usb and then back again after wards. What is right way...
Replies
10
Views
6,827
Yes, I'm sorry, I'm starting this topic again. In my defense, I promise I tried to read on this forum and using other sources to get a good idea...
Replies
8
Views
4,293
Hi all, I need some assistance. Does anyone know if it is possible to or how to copy a HMI project from one program to another program...
Replies
5
Views
4,897
Back
Top Bottom