Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to test all inputs and outputs of the S7-200 PLC ?

Status
Not open for further replies.

DrWhoF

Advanced Member level 1
Joined
May 6, 2005
Messages
402
Helped
24
Reputation
48
Reaction score
11
Trophy points
1,298
Activity points
4,388
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.
:D
 

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
 

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
forum s7200

OK.
I made a cable connected as per this discription:

but there is no communication between PC and PLC.
Any (prompt) advice is highly appreciated :!:
 

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
 

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
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
 

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
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. :D
 

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
 

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top