5.3
Download ................................................................................................................................ 64
5.4
5.4.1
5.4.2
PLCSIM Advanced instances ................................................................................................. 66
5.5
Simulate peripheral I/O ........................................................................................................... 68
5.6
Simulate communication ......................................................................................................... 69
5.6.1
5.6.2
5.7
6
Virtual time response ............................................................................................................................ 73
6.1
6.2
Stop simulation ....................................................................................................................... 76
6.3
6.3.1
6.3.2
7
User interfaces (API) ............................................................................................................................. 82
7.1
Introduction ............................................................................................................................. 82
7.1.1
Access to instances ................................................................................................................ 84
7.1.2
User interfaces (API) ............................................................................................................... 85
7.1.3
7.1.4
7.1.5
7.1.6
7.2
Initialize API ............................................................................................................................ 96
7.2.1
Load API library ...................................................................................................................... 96
7.2.2
Native C++ .............................................................................................................................. 96
7.2.2.1
InitializeApi() ........................................................................................................................... 96
7.2.2.2
RuntimeApiEntry_Initialize ...................................................................................................... 98
7.2.3
.NET (C#) ................................................................................................................................ 99
7.2.3.1
Initialize ................................................................................................................................... 99
7.3
Shut down API ...................................................................................................................... 100
7.3.1
Native C++ ............................................................................................................................ 100
7.3.1.1
DestroyInterface() ................................................................................................................. 101
7.3.1.2
7.3.1.3
FreeApi() ............................................................................................................................... 103
7.3.1.4
ShutdownAndFreeApi()......................................................................................................... 104
7.3.2
.NET (C#) .............................................................................................................................. 105
7.3.2.1
Shut down API ...................................................................................................................... 105
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
Table of contents
7