 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
subshark Junior

Joined: 12 Mar 2019 Posts: 2
|
Posted: 23/09/2021 08:10 Post subject: TrySim read data from S7-PLCSim |
|
|
Hello!
How read/write data from S7-PLCSim in TrySim programm?
Program have menu item: Macro interface S7 via MPI/TCP-IP, but how configure it, no manual for it. |
|
| Back to top |
|
 |
waynejonstone Junior

Joined: 17 May 2013 Posts: 7
|
Posted: 23/09/2021 13:24 Post subject: manual |
|
|
see here!
https://www.trysim.de/de/downloads/TrySim.pdf
unfortunately german only.
Do you have any shareable Version of Trysim for me/us ??
Or maybe an medicine? |
|
| Back to top |
|
 |
subshark Junior

Joined: 12 Mar 2019 Posts: 2
|
Posted: 24/09/2021 08:15 Post subject: Re: manual |
|
|
| waynejonstone wrote: | see here!
https://www.trysim.de/de/downloads/TrySim.pdf
unfortunately german only.
Do you have any shareable Version of Trysim for me/us ??
Or maybe an medicine? |
Sorry, but may be I am blind, on which page it is written how to configure the data exchange with a plcsim or a real controller? |
|
| Back to top |
|
 |
waynejonstone Junior

Joined: 17 May 2013 Posts: 7
|
Posted: 24/09/2021 10:14 Post subject: |
|
|
for using plcsim you need to have a the option package (extra costs).
If you dont have it it won't connect.
You also have to use PLCSIM from not PLCSIM Advanced!!
| Quote: |
Navigation: »No topics above this level«
Anbindung an S7-300/400 Simulator “S7-PLCSIM” von Siemens
Return to chapter overview
Hierzu müssen Sie über das entsprechende Optionspaket zu STEP(r)7 verfügen.
Bis zur PLCSIM V5.3 ist die Schnittstelle in TrySim enthalten, die Anbindung an V5.4 ist in TrySim eine kostenpflichtige Option.
PLCSim kann mittels des SIMATIC-Managers genau wie eine naturale SPS programmiert werden.
Man unterscheidet zwischen zwei Kopplungsmodi:
a.) Synchron, SingleScan. In diesem Fall läuft die virtuelle Zeit in TrySim und PLCSim gleich schnell. Da PLCSim maximal in Echtzeit simulieren kann, ist kein Zeitraffer möglich. Tatsächlich läuft die Simulation sogar langsamer Echtzeit, da ja auch für die Maschinensimulation Zeit benötigt wird. Dieser Modus muss aber gewählt werden, wenn in der SPS Zeiten verwendet werden (also fast immer). Dann ist auch zeitrichtige Zeitlupe möglich.
b.) Freilaufend, ContinuousScan. Hier laufen TrySim und PLC nebeneinander her. Nach jedem Simulationsschritt in TrySim, üblicherweise 100 ms in virtueller Zeit, werden die Ein- und Ausgänge ausgetauscht. In diesem Modus sind sowohl Zeitraffer als auch Zeitlupe möglich, aber ein Gleichlauf der Zeiten in TrySim und der SPS ist nur vorhanden, wenn TrySim in Echtzeit läuft.
Die Umschaltung des Modus müssen Sie in TrySim (SPS|Externe SPS V2.0|Edit) vornehmen. Es gibt zwar auch eine entsprechende Einstellung in PLCSim, aber diese wird von TrySim ggfs. überschrieben.
Die Anbindung ist recht einfach und verläuft in folgenden Schritten:
1.) Start Sie den Simatic-Manager
2.) Starten Sie S7-PLCSIM (Extras|Baugruppen simulieren)
3.) Übertragen Sie ggfs. jetzt schon Ihr Programm.
4.) Wählen Sie in TrySim SPS|Externe SPS V2.0
5.) Wählen Sie als Schnittstelltyp PLCSIM V5.4
6.) Auf der Editiermaske legen Sie für die Ein- und Ausgänge je das erste und das letzte zu übertragende Byte fest. Da die Übertragung ja innerhalb eines Rechners erfolgt und daher sehr schnell ist, schadet es nichts, wenn auch große Mengen ungenutzer Daten übertragen werden.
Die bis TrySim V3.1 übliche Übertragung der OB1-Zykluszeit ist nicht mehr notwendig.
Simatic, Step(r)7 und PLCSim sind Marken der Siemens AG.
|
|
|
| Back to top |
|
 |
herdrt Junior

Joined: 18 Sep 2021 Posts: 1
|
Posted: 24/09/2021 18:14 Post subject: |
|
|
English
| Code: | Connection to the S7-300 / 400 simulator “S7-PLCSIM” from Siemens
Return to chapter overview
To do this, you must have the appropriate option package for STEP (r) 7.
Up to PLCSIM V5.3 the interface is included in TrySim, the connection to V5.4 is a chargeable option in TrySim.
PLCSim can be programmed just like a real PLC using the SIMATIC Manager.
A distinction is made between two coupling modes:
a.) Synchronous, single scan. In this case, the virtual time in TrySim and PLCSim runs at the same speed. Since PLCSim can only simulate in real time, no time lapse is possible. In fact, the simulation runs more slowly in real time, as time is also required for the machine simulation. However, this mode must be selected if times are used in the PLC (almost always). Then time-correct slow motion is also possible.
b.) Free-running, ContinuousScan. Here TrySim and PLC run side by side. After each simulation step in TrySim, usually 100 ms in virtual time, the inputs and outputs are exchanged. In this mode, both time-lapse and slow-motion are possible, but the times in TrySim and the PLC are only synchronized if TrySim is running in real time.
You have to switch the mode in TrySim (PLC | External PLC V2.0 | Edit). There is also a corresponding setting in PLCSim, but this may be overwritten by TrySim.
The connection is quite simple and takes place in the following steps:
1.) Start the Simatic Manager
2.) Start S7-PLCSIM (Tools | Simulate modules)
3.) If necessary, transfer your program now.
4.) Select in TrySim PLC | External PLC V2.0
5.) Select PLCSIM V5.4 as the interface type
6.) On the editing mask, define the first and last byte to be transmitted for the inputs and outputs. Since the transfer takes place within a computer and is therefore very fast, it doesn't do any harm if large amounts of unused data are transferred.
The usual transfer of the OB1 cycle time up to TrySim V3.1 is no longer necessary.
Simatic, Step (r) 7 and PLCSim are trademarks of Siemens AG. |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|