S7-200 and RS232 Communication

markdyk

Member
Join Date
Mar 2006
Location
Utrecht, The Netherlands
Posts
26
Hi all,

I'm new on this forum and I tried to search for the answer of my question but I couldn't find it.

I want to write a program for a s7-200 plc that can communicate trough a RS232 connection.

There is a small program in de help file that uses interrupts, but I can't get it working.

For the RS232 connection i'm using the PPI/RS232 adapter. The PLC goes to freeport mode because i can't reach it when it's in run mode.

Probably it is a wrong setting in the dip switch on the ppi adapter. The PPI adapter works fine because it's possible to program the cpu (s7-216). When i change the settings to freeport mode then I'm get stuck. I tried the program from the help file, it has to echo the input but I don't get the echo in hyperterminal.

Maybe there is someone with a little demo program? Or does anyone know what I'm doing wrong?
 
I had set the dips to 01000000 and had also 9600 baud configured in hyperterminal. I need it to work at 9600 baud because the machine that I want to connect to the PLC can only communicate at 9600 baud.
 
Is the bitframe correct? Standard the S7-200 uses an 11 bit frame: 1 startbit, 8 databits, even paritybit and 1 stopbit. Most communication nowadays is done with a 10-bit frame. Most modern modems don't even have the possibility to switch to 11-bit mode.

Just my 2 cents.

Kind regards,
 

Similar Topics

Hi to all, I have a power supply "gwinstek" PSP-2010, with rs-232, so I want to control it with S7-1200 "1212acdcrly with CM-1241 RS-232 module...
Replies
2
Views
1,380
Good day, I've been browsing this forum for 2 years now, but this will be my first post. I have device with USB serial output. I would like to...
Replies
8
Views
2,752
I have a Red Lion Graphite HMI with 2 x rs232 and 1 x rs485 ports. I need to connect to a Modbus RTU network (rs485) and a Siemens S7 200 over PPI...
Replies
3
Views
3,807
Hello all. I'm trying to control a heater with a S7-1200 CPU with the CM1243 communications processor. The two devices are connected with a null...
Replies
12
Views
10,050
Hello, I have an issue with the printer. I have a S7-200 PLC with 2 ports (Port1 and Port 0). Port 1 is connected to HMI through profibus (HMI is...
Replies
13
Views
6,573
Back
Top Bottom