Siemens s7 modbus master

dont panic

Member
Join Date
Nov 2008
Location
At home
Posts
3
I have to set up an S7 314 plc as a modbus master. I have the hardware/dongle/firmware but the sample projects don't give a lot away!. I am familiar with S7 although this is my first CP341 job. has anyone a project they could send me or a few pointers.? please don't say RTFM as Siemens manuals leave a lot to be desired!! Thanks
 
What hardware did you use for the modbus connection to a siemens 314?

Would this one work for a 313C?
 
Right! I did not get any replies for a month or so. So I struggled on and got there in the end. I am using a siemens cp341 rs 232 rtu interface card. This is not cheap (The card was £200 and the "Firmware" £700 or so) but it calls the data nicely and places it into a standard data block.

I do not see any reason why it will not work with a 313 cpu.

My set up is the first one I have programmed. I have a number of temperature and vibration sensors monitoring rotating plant condition. This data starts life as a 0 - 10v signal, is scaled into modbus, given an address then transmitted via a radio signal called zigby (A bit like bluetooth). This was cheaper that hard wiring.

The plc panel has the reciever in it, which is connected into the Siemens card. The data is displayed on a "Proface" TFT screen (Looks nice!)

I have another system on site, which uses a 3rd party "Converter" which is connected via Profibus. The cost of a profibus cpu and the German converter was the same as the Siemens kit.

If this helps, (Or not), or you need more info, let me know.
 
Last edited:
So........what part is the Modbus converter for Siemens?

Is there a Modbus module that works with Siemens ?

I have an Ethernet module easy enough, and Profibus.

But the marketing "people" wont stop offering anything to anything communications.
 
Well, the model is a CP341, but there are several types depending on which protocol modbus uses. Mine is Modbus RTU RS 232. You need to know this. I am not back to work till Tuesday, but if you look at a Siemens automation catalogue on line, the card is under communications.
You also need to know if it is a master or a slave. Mine is a master. In theory, you have to order the correct one, but I didn't. I ordered a "Slave" but wanted a "Master".
A quick call to Siemens automation UK, and they told me the dongle should work (It plugs in the back). And it does!They just emailed me a link to their "Master " drivers.

There are some sample programs in the library that comes with "Step 7".
I used theirs, and just modified it. I have only one slave, but the slave cannot address all the registers at once, so I just have a cycling program that calls the relevant datablocks/registers. I think the Siemens will do over 100. What do you actually want to do?

I hope this isn't too vague?


Markie
 
Well see thats the rub ....I have no idea.

I walked into a project that was almost done after 9 months of work from 3 other people.

It started as a Siemens200 using WinCC and Micro-Win.

I had never used anything Siemens but I picked up these two in about a week.

Then everything changed and we had to switch to a 313C......and Step7.

SO I fight my way through Step7 , I have a handle on it after a month, but now we have to communicate with every known protocol on Earth .....because someone wrote it in the sales hand out.

OK ..............they come to me and say what do we need to do to communicate with Modbus?

I say buy a module , give it to me and then buy something with Modbus to test it with. MIght take a week to work out the bugs.

So then they want to know what to order.

I have never used any Siemens before this................I have no idea.

The A&D Mall is not easy to dig through but I found the 341 . I did not realize it would work with Modbus due to the crytic verbage from Siemens.

I suspose I need a 341 Slave module as I will be connecting to an existing Modbus network.

My answer was to supply ethernet and be done with it.

That is all I know.

I am gathering information to try to work something out.

No idea how to make this work without a Modbus in place to setup with.

Thanks for the information.
 
I undestand a bit better. I "Googled" modbus, and got a reference guide, which was quite helpful. If all you have to do is be a slave (Perhaps certain bits change state as directed by the master) it may be straight forward, but I imagine to integrate this into an existing system, you will need to reprogram the master to call the new slave.

I am an end user, rather than an integrator, so I only get 2 or 3 large programming jobs per year. I posted here for general help, but as you saw - didn't get any!

I like to think I'm ok with S7 so if I can help I will.
 
Hey thanks for the offer of help.

I suspect that you didn't get any responses because Modbuss isn't very popular around here.

There is a large AB and Siemens support group here, probably other areas too, I don't read the whole forum.

The part I don't get about the Modbus is difficult to describe.

I am used to working from the other direction. "Here is my plant and here is the new piece I will add to it." or "Here is your plant where I will add this piece of new stuff with full access to said plant."

On this project I am building a stand alone unit that works all by itself with no interaction necessary with the rest of the plant.

The only need to interface this unit would be for remote alarms and for gee whiz data collection. It is not part of the process and can not cause harm to personel.


I imagine that I would blkmove the alarms and maybe some level / temperature data to a DB and make that available to the Modbus network.

What they do with it is up to them.

Of course they will be calling every week wanting something added to the list and on and on, but realy, that's all I could do.

It will ship and they will plug it in and do the setup routine and then it runs. No on site tech to do startup. Something else that is new to me.

Maybe this is way easier than I originaly thought.

I think it is.

I put data in a DB and then just tell them which address is what and that's that.

It will be all read only as well so I don't need to even look at it in the program.

Just update the variables every so often and forget it.

Now to hammer out the requirements for hardware and firmware and software.

If the 341 is the hardware, I assume it must be set up for Modbus because it is not called a Modbus Module.

Then it needs to be added in the hardware profile.

Then a simple move instruction in S7 should put the data in place.

I hope it is that simple.
 
Yes, I agree, all you need to do is move the alarms into a data block and tell the customer what their address is.

I think that ther are a few "Types" of modbus - you need to know what they are using.
 

Similar Topics

Hi All Attached a screen shot of my code - just wondering if there's a way of kinda indirect addressing the DATA_PTR parameter ? For instance on...
Replies
5
Views
1,551
Hi all, Does anyone have any experience trying to simulate a Modbus master using a PC, The PLC is a cpu 300 with a CP341 RS485. I am...
Replies
5
Views
2,658
I am trying to get Siemens 1214c dc/dc/dc cpu work as a Modbus RTU slave with RS232 communication module. As a master i have PC. I tried to get...
Replies
3
Views
3,645
Hi All I need to index a Pointer in a RTU Modbus Master block, please see attached screen shot. I have 34 VSD's which I need to Write the Speed...
Replies
4
Views
3,168
Hi Friends, In my one of the Project Using Siemens CP341 ( Communication Processor). I am facing problem for modbus communication between CP341...
Replies
0
Views
5,028
Back
Top Bottom