Figure 6-4 Example: Sequence In The Timespansynchronized_Cp Operating Mode - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

Example
The figure schematically shows the sequence in the
mode.
In addition to the
the last call of the
TimeSinceAnySyncPoint_ns
The
Figure 6-4
Example: Sequence in the TimespanSynchronized_CP operating mode
Description
At least two clients are synchronized on the basis of a virtual period for the time-controlled
operating modes. A client can be an instance of a virtual controller or an application that
uses the Runtime API (API client). The synchronization must be performed by a
synchronization master.
The synchronization master instructs a client to run for a specific period. The time period is
specified by the master in nanoseconds. The client then runs for the expected period before
he goes into the freeze state at the next synchronization point. Before switching to the freeze
state, the client sends the master the exact amount of time that he currently needed.
Thereafter, the master signals the next client to catch up.
API client as master
The API client as master signals each client when it should start. The master receives events
from every client when they occur.
An API client can only "time manage" instances of a virtual controller. The API client does
not receive events from other API clients. It cannot send messages to other API clients.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
OnSyncPointReached
StartProcessing
) function.
function cancels the freeze state.
StartProcessing()
TimespanSynchronized_CP
event the virtual controller also sends the runtime since
(t) (
TimeSinceSameSyncPoint_ns
Virtual time response
6.3 Synchronize simulation partner
operating
/
81

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents