Problem connecting S7-300/S7-200 by MPI

Join Date
Apr 2004
Location
Ede
Posts
19
Hello guys,

I want to read a S7-226 with use of the "X Get" (SFC67) command in Step 7(V5.2) from a CPU313C. I use a PG 720 II from siemens (MPI-connection)

I have read the manuals, but cannot find the right solution.

This is what I did:

I connect the MPI cables parallel to each other.

Properties CPU313C:
MPI, Adress 2, Networked: yes, 187.5 kbps.

Communications setup S7-226:
CP5611 (MPI), remote adress = 4, MPI, 187.5 kbps, mode 11bit.

In Step 7 accessible nodes shows:
- "MPI=2" (+ shows blocks)
- "MPI=4 (passive)" (+ shows blocks)

In OB1 I call FC3 (LAD),in the first line is the X GET-command:
Req in=I124.0=1, Cont=I124.1=1, Dest Id=W#16#4, Var_addr=I0.0, Ret val=MW1002, Busy= M10.0=changing between 0 and 1, RD= Q124.0
Ret Val and RD doesn't show any value during Monitoring.

The CPU313C and CPU226 can be monitored from the PG.

Can anyone confirm which settings are OK, and what not.
How to be shure that the 226CPU is a Slave?

I really hope somebody can help me with this.

Erik
 
Any Data Type

For your Var_Addr: p#i0.0 byte 1
also
for your RD: p#q124.0 byte 1

Since you probably don't want all of your outputs coming on if any inputs i0.0-i0.7 come on in the 200, I would use p#m10.0 byte 1 and then use m10.0 to turn on q124.0

One other thing I suspect that your ret_val is mw102 not mw1002 - I think that is outside that PLC's address range.

Hope that helps.
 
oops

Or you could use p#i0.0 bool 1 and p#q124.0 bool 1

I am so used to getting more info, but I think if you use that format the instruction will work.

Good luck.
 
Sorry

When I've had instructions with ANY data types I found they didn't work without specifying a length.

Have you tried reading m or data block memory versus i/q? Also are you retriggering the req? And when you retrigger do you get any feedback in MW102?
 
Last edited:
Hello Sylent,

I'v tried that, no succes.
In a few month I will go to the S7-300 training.
I think this is a good question.
They organise a 3 day training, tailor made for 3 people, and we can bring our own subjects and projects.
So I can wait for that, my question is not so urgent.

But thank you for your attention so far!

If I find the problem, I will tell you about it.

Erik
 

Similar Topics

Greetings i do have a new Siemens PLC station with 314 CPU 1DP i try to connect using the PC adaptor Cable USB A2 i do have the Error message...
Replies
2
Views
2,238
First of all Hi, nice to met you all. I have a problems trying to control my PLC's (1762-L40BWA ser. C and 1763-L16DWD ser. B) with the Panelview...
Replies
10
Views
5,045
Hello! We have one Omron NT11-SF121B-EV1 display and CP1L PLC. I want to connect this display to computer and upload graphics with NT-series...
Replies
7
Views
2,337
Hi all Was wondering if you guys were able to help. I am onsite trying to program a 440C-CR30-22BBB Safety relay. Using the following pdf and...
Replies
5
Views
4,372
Dear Members: I am new to Twincat System. I am working on a project. I have connected CX9020 with my laptop through ethernet cable. I was able to...
Replies
2
Views
4,605
Back
Top Bottom