PLCSim Profibus/Profinet communication example

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
Post Reply
bjekas
Posts: 11
Joined: Tue Feb 01, 2011 12:24 pm

PLCSim Profibus/Profinet communication example

Post by bjekas » Mon Feb 21, 2011 10:56 am

Hello yall,

First of all Im kinda noob to communications with Siemens PLCs...
Im trying to simulate communications between 2 cpus (s7-300 for example) and I was told that it is possible using PLCSim 5.4 Sp3 HF1...

But every test I did whent bust... Using CPs, using CPs integrated with the CPUs... Every try I did went wrong one way or another... (h)

Does anyone have a simple program with hw configured and can send me pls pls pls...

Or maybe a doc where it explains how to configure a 2 cpu communication using profibus/profinet that can be simulated using plcsim?

Thanks in advance


bjekas
Posts: 11
Joined: Tue Feb 01, 2011 12:24 pm

Re: PLCSim Profibus/Profinet communication example

Post by bjekas » Tue Feb 22, 2011 4:34 pm

First of all thanks for the quick reply

I tried your example and it doesn't work...
Im getting Status Com = 16#0001 on both cpus dont know why!

I tried an similar example but using PROFIBUS and got SF on both cpus... (boom)

CoMod
Site Admin
Posts: 3975
Joined: Thu Feb 16, 2006 3:25 pm
Location: Russia
Contact:

Re: PLCSim Profibus/Profinet communication example

Post by CoMod » Tue Feb 22, 2011 5:17 pm

bjekas wrote:I tried your example and it doesn't work...
Im getting Status Com = 16#0001 on both cpus dont know why!

I tried an similar example but using PROFIBUS and got SF on both cpus... (boom)
1. Example tested and work.
2. Which Step7 version you use ?

bjekas
Posts: 11
Joined: Tue Feb 01, 2011 12:24 pm

Re: PLCSim Profibus/Profinet communication example

Post by bjekas » Wed Feb 23, 2011 9:33 am

Im using Step7 5.5

CoMod
Site Admin
Posts: 3975
Joined: Thu Feb 16, 2006 3:25 pm
Location: Russia
Contact:

Re: PLCSim Profibus/Profinet communication example

Post by CoMod » Wed Feb 23, 2011 11:12 am

today I have tested Simatic example S7_PLCSIM_CPU_Communication.zip
It work. Step7 5.5
German - International
Z=C (countig from 0 while C1<999)
EB=IB (enable conting)
AW=QW (LED output show)
FAQ wrote:In the "S7-PLCSIMN" listbox dialog, you select the configured interface "PLCSIM (TCP/IP)" (for this example)
Image

You must select the instance "S7-PLCSIMN" (1 or 2) before loading program to PLCN (1 or 2).

Post Reply