Siemens and rs232 communications

Leonairo

Member
Join Date
Jul 2005
Location
Heerhugowaard
Posts
5
Hi there,

At this moment i use mitsubishi PLC's with rs232 communication to a pc platform, a proces that reads and writes to the plc in so called "non protocol mode" , so the is no software programming in the PLC.

Is this also possible for Siemens ? ( CPU 314 and a CPU341 rs232 module )
Or is it always nessesary to make a program in the PLC that controles the RS232 port on the CPU 341 ?

If so, is there a site where i can find examples for RS232 communication ? i only need to read and write one or two datablocks.

Newbie on Siemens.
 
We use a similar system on one of our plants.
I don't know if it can communicate without protocol, since we send the data in modbus format. It also only sends a small amount of data at a time, so it takes 5-7 seconds to fully update.

This system is actually the least loved on our site.
We are currently setting up the system to communicate on Ethernet, which is how we have done the rest of our site. After that we will be burying all the old equipment at a cross roads somewhere with a large stone over it.
 
Hi,

5-7 second, thats way to long for us, we need speed, we have a proces of 50ms, and every cycle we need an update read and write, at this moment we use Mitsubishi, but the A-series, is at the end of its delivery cycle, and we can't use the Q-series, because of the lower I/O specifications. (current etc.)
So we are now looking at different PLC's and at this moment we have a test site with Siemens, but when i look in the manual for the RS232 communications, it looks like you always need some programming on the PLC side, so i was looking for some examples for reading and writing to a Datablock, this must have done before....
 
I've done a lot of work with the CP340 and 341 cards, and you will need code in the PLC to send/receive data. The max speeds are dependent on the amount of data you are transferring in each message. If it is only 20 bytes or so, then 50ms is probably ok, but if the messages are in the hundreds of bytes, you will have to get creative.

Give us more detils and we'll help you out.
 
"No Protocol" mode on a Mitsubishi RS232 card means that you are not using a Mitsubishi protocol. This allows you to write your own serial port driver in the PLC programme. If you are using this mode there has to be some PLC code involved. If you can find this it should give you a good idea of what you need to do to duplicate the function on your new PLC.
 
S7Guy said:
I've done a lot of work with the CP340 and 341 cards, and you will need code in the PLC to send/receive data. The max speeds are dependent on the amount of data you are transferring in each message. If it is only 20 bytes or so, then 50ms is probably ok, but if the messages are in the hundreds of bytes, you will have to get creative.

Give us more detils and we'll help you out.

Ok lets try to explain what we are doing with the PLC.

A "C" application on a pc platform controles the proces, with the RS232 port we write a "wanted" state to the PLC, and read back the real status of the PLC.
Also if there are some values that changes in the proces, we write that to the plc, so the PLC can work with these new values.
The PLC proces is based on a 100 mS scan, in this time there must be one write and read session, with the PLC.
The PLC checks if the "wanted" state of the Pc can be done, and if so, it will switch the outputs.

So i will need a Data block, where the Pc can write it's "wanted" state, and can read back the "real" state of the PLC.
And a Datablock (maybe the same ?) where we can exchange values (type word) with the Pc proces.
These values can also be changed with a HMI, so there are also a few bit's wich will indicate that the Pc platform needs to read back the values.

So I hope you now can imagine what the program is about, and what type of plc program for the Rs232 i will need.
 
Andybr said:
"No Protocol" mode on a Mitsubishi RS232 card means that you are not using a Mitsubishi protocol. This allows you to write your own serial port driver in the PLC programme. If you are using this mode there has to be some PLC code involved. If you can find this it should give you a good idea of what you need to do to duplicate the function on your new PLC.

It's just the other way, in non protocol you don't have to write your own protocol, you can just take "mitsubishi" language, and read and write to the plc, without programming the PLC, the Rs232 card, writes and reads directly to the CPU inside the PLC.
So we only wrote the interface on the PC side.
 
Leonairo

I have used the Mitsubishi cards on many occasions and your description seems to be the wrong way round. the "No Protocol" mode always requires you to write PLC code to control the port. Connection to a SCADA system or similar can be done without any PLC code by using one of the four Mitsubishi protocols and a suitable driver on the PC. Most drivers tend to use Mitsubishi's type 1 protocol. If you want to duplicate this with the Siemens PLC you will need some kind of driver on the PC.
 
Andybr said:
Leonairo

I have used the Mitsubishi cards on many occasions and your description seems to be the wrong way round. the "No Protocol" mode always requires you to write PLC code to control the port. Connection to a SCADA system or similar can be done without any PLC code by using one of the four Mitsubishi protocols and a suitable driver on the PC. Most drivers tend to use Mitsubishi's type 1 protocol. If you want to duplicate this with the Siemens PLC you will need some kind of driver on the PC.

You are totally right, it's protocol mode 1 , sorry for this confusion.
 
Andybr said:
Leonairo

I have used the Mitsubishi cards on many occasions and your description seems to be the wrong way round. the "No Protocol" mode always requires you to write PLC code to control the port. Connection to a SCADA system or similar can be done without any PLC code by using one of the four Mitsubishi protocols and a suitable driver on the PC. Most drivers tend to use Mitsubishi's type 1 protocol. If you want to duplicate this with the Siemens PLC you will need some kind of driver on the PC.

You are totally right, it's protocol mode 1 , sorry for this confusion.
 

Similar Topics

Hi i have Beckhoff (CX5020-0120-M310) (profibus master) with TC3.1 and want communicate with Siemens Profibus ET 200S (IM151) DPV1. All modules...
Replies
1
Views
1,705
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,349
Having an issue in which trying to communicate via modbus on an ACM+. I made the redundant serial cable myself, and verified it with my...
Replies
4
Views
2,429
Hi folks, I could really use some help - I am trying to connect CP340 with my PC by RS232 protocol. I need to send some characters to PC from...
Replies
0
Views
1,903
The local connection tab, in Set PG/PC interface doesn't appear in PC Adapter MPI and in PC Adapter Profibus. It only works with usb pc Adapters...
Replies
0
Views
2,029
Back
Top Bottom