Siemens RS485

DLMUK

Member
Join Date
Jun 2013
Location
Southampton
Posts
311
Hi

I am new to Siemens and I am looking into building my first system.

What I have is 10 x RS485 devices, each with their own ID/header. Which I would like to connect onto the same bus and then connect into a Siemens CM1241 module bolted onto a S7-1200.

Each device on the string will not contain much data, an example of a sting with 3 devices in is below. #109 is a serial number, 1.25 is the data required.

#109,1.25,#110,1.23,#111,3.36,

How would you go about configuring a the PLC to read the incoming RS485 string and pull out each serial number and data and put them into an individual tag?

Thanks,
 
Are these some kind of ASCII bar code readers or something like that ?

With RS485 it is theoretically possible to make daisychained bus system, but there must be a protocol that handles when each device may be allowed to talk on the "bus".
Problem 1, how do you implement the (homegrown) protocol in the ASCII devices ? How to stop them from all "talking" at the same time ?
Problem 2, it will be too big task to implement the protocol in the PLC side. Theoretically possible, in reality not.

The only real solution is if the RS485 devices support some standard protocol. For Siemens S7-1200 it should be Modbus RTU, Profibus DP or Profinet IO.
 
It is Modbus RTU.
So the "RS485 devices" that DLMUK talks about have to support Modbus RTU for the sample code to work.

They are Modbus RTU 4-20mA instrumentation amplifiers.

I just need to know how to interrogate the incoming RS485 and get the data into individual tags.

Cheers,
 

Similar Topics

Hi all, I've hit a bit of a brick wall and need some help. I'm currently trying to get a Siemens S7-1200 PLC to talk to an Eaton DE1 Drive I'm...
Replies
8
Views
3,680
HI All, does anyone know if you have to change a cp 341 rs232 and use a cp341 rs485, what changes have to be made to get it to...
Replies
0
Views
1,338
I currently have a RS485 full-duplex bus system with slaves running at 230k4 baud. I'm looking to connect my Siemens S7-315 2PN/DP with this bus...
Replies
9
Views
3,124
I have a siemens tp170a hmi and tried just for fun, to use modicon modbus driver settings and communicate with a regin roomcontroler. I use the...
Replies
2
Views
2,107
Hi, I had RS485 ASCII string going into a CP340 @ 9600baud rate. This was working fine. I had to change my baud rate to 19200 so I got ripped...
Replies
4
Views
2,509
Back
Top Bottom