| Author |
Message |
DrWhoF
Joined: 06 May 2005 Posts: 334 Helped: 12
|
14 May 2009 9:00 rs232 s7200 |
|
|
|
|
Can someone advice how to test all inputs and outputs of the S7-200 PLC (222CPU).
Maybe a simple program, as I am not familiar with this stuff and have to test it.
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6490 Helped: 1542 Location: West Coast
|
15 May 2009 1:53 s7-200 serial port pin |
|
|
|
|
Write and download a program that sets output when input is pulled-up to a “1”.
It may look like this (STL option in Step7-Mico/Win):
Input: I0.0
Outputs: Q0.0, Q0.2 and Q0.4
| Code: |
Network 1
LD I0.0
= Q0.0
= Q0.2
= Q0.4 |
You can do the same for input I0.1 and outputs Q0.1, Q0.3 and Q0.5:
| Code: |
Network 2
LD I0.1
= Q0.1
= Q0.3
= Q0.5 |
and you can do the same for all other inputs ..
Rgds,
IanP
|
|
| Back to top |
|
 |
DrWhoF
Joined: 06 May 2005 Posts: 334 Helped: 12
|
17 May 2009 8:45 forum s7200 |
|
|
|
|
OK.
I made a cable connected as per this discription:
http://www.edaboard.com/viewtopic.php?t=338618&highlight=s7200
but there is no communication between PC and PLC.
Any (prompt) advice is highly appreciated
|
|
| Back to top |
|
 |
Google AdSense

|
17 May 2009 8:45 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6490 Helped: 1542 Location: West Coast
|
02 Jun 2009 3:22 s7 200 rs485 |
|
|
|
|
What serial port has your PC?
You need the RS-485 to connect to S7-200 and the connection is gnd on pin 5, line A(Tx/Rx+) on 8, and line B(Tx/Rx-) on 3 ..
Rgds,
IanP
|
|
| Back to top |
|
 |
venix
Joined: 20 Mar 2008 Posts: 86 Helped: 9
|
02 Jun 2009 18:37 s7 ppi test |
|
|
|
|
Hello!
I put in one of my posts some schematics how to build a cable for S7-200.The post is Siemens useful cables.
Another great resource(different from Siemens official sitewww.simatic.com) for programming S7 PLC family is www.plc.net.ru
Best regards!
Venix
Last edited by venix on 09 Jun 2009 6:09; edited 1 time in total |
|
| Back to top |
|
 |
DrWhoF
Joined: 06 May 2005 Posts: 334 Helped: 12
|
07 Jun 2009 4:41 test port s7-200 |
|
|
|
|
My mistake, I tried to connect through rs232.
Thanks for the info on 232-485 connection.
I'm going to try it.
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6490 Helped: 1542 Location: West Coast
|
20 Jun 2009 15:12 rs 485 connection and s7200 |
|
|
|
|
I hope you’ve managed to establish connection with the PLC ..
After all they are pretty robust, so even if you try the RS232 signals on the RS485 pins it should survive ..
Rgds,
IanP
|
|
| Back to top |
|
 |
Medtronic
Joined: 19 May 2005 Posts: 164 Helped: 11 Location: Egypt
|
09 Nov 2009 12:38 Re: S7-200 test |
|
|
|
|
Dear Inap.
i made the rs232 to rs485 converter to s7-200..it semes to be worked ok..
but now i test this converter with commander sk drive converter,and there is no communication please advice to solve this problem...
Best Regards.
MedTronic
|
|
| Back to top |
|
 |