S7 1200 ethernet connection

rQx

Lifetime Supporting Member
Join Date
Oct 2010
Location
Trelleborg
Posts
1,049
Hi!

I'm fooling around with the s7 1200 to learn how to setup a ethernet connection between two CPUs. I've succesfully made a link and I can recieve and send a word between the two CPUs. What I can't figure out however is how to send more then one word.

What I do now is sending Mw100 from CPU1 to Mw10 on CPU2. I have entered MW100 as DATA on the SEND block and MW10 as DATA on the recieve block.
What I want to do is send the following

CPU1 CPU2

MW1000 MW100
MW100 MW10
MW10 MW1

How do I configure this?
 
If you figure it out I would like to know.. what did you do to pass the one word? I have not tried it but will next week
 
Presume your using TSEND and TRCV ?

Here's an example from Siemens for clock sync over ethernet for 1200's using TSEND/TRCV

If your new to the 1200 there is a nice easy book guide here (needs siemens login (have to register))
 
Last edited:
Yes Im using TSEND and TRCV. I have managed to sent data blocks now, got some help on the siemens support forum. I had no idea I had to do a struct in the data block. My new problem is that you can't insert strings in the struct. I can send a string seperatly between send and rcv but not within the struct of my data block. Any suggestions?

Is there a way to have two send blocks and two receive blocks working together?
TSEND1 working with TRCV1
TSEND2 working with TRCV2

TSEND1 shall not send to TRCV2

it is the same IP so I don't know how to.
 
If you figure it out I would like to know.. what did you do to pass the one word? I have not tried it but will next week

Send it through a Datablock.
Place a struct in your datablock and insert the data to be sent there , then In the TSEND and TRCV DATA input write: "datablockname".structname
 

Similar Topics

So I have finally had to bite the bullet and do some modifications to some Siemens PLC code written in TIA. I have got both V10.5 and V11...
Replies
3
Views
4,739
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
95
Hello all. I have a future project planned with a leibinger jet3up inkjet printer that I will have to send the print details to the printer via...
Replies
4
Views
1,197
Hi, What is the easiest way to create a Watchdog between 2pcs S7-1200 over Ethernet?
Replies
4
Views
1,473
Hello all, I am working on a project utilizing an s7-1200 cpu and Tia Portal v17. I currently have an external PCB with some sensors on it (and...
Replies
1
Views
705
Back
Top Bottom