
Table of contents
S7-PLCSIM Advanced
8Function Manual, 12/2017, A5E37039512-AB
7.4 Global functions (Native C++).............................................................................................. 106
7.5 API ISimulationRuntimeManager......................................................................................... 111
7.5.1 Interfaces - Information and settings.................................................................................... 111
7.5.2 Simulation Runtime instances.............................................................................................. 113
7.5.3 Remote connections ............................................................................................................ 119
7.5.4 Events .................................................................................................................................. 124
7.5.4.1 OnConfigurationChanged events......................................................................................... 124
7.5.4.2 OnRuntimeManagerLost events .......................................................................................... 127
7.6 API IInstances ...................................................................................................................... 130
7.6.1 Interfaces - Information and settings.................................................................................... 130
7.6.2 Controller - Information and settings.................................................................................... 136
7.6.3 Operating state..................................................................................................................... 144
7.6.4 Tag list.................................................................................................................................. 152
7.6.5 I/O access ............................................................................................................................ 158
7.6.5.1 Synchronizing inputs and outputs........................................................................................ 158
7.6.5.2 I/O access via address - Reading........................................................................................ 158
7.6.5.3 I/O access via address - Writing .......................................................................................... 166
7.6.5.4 I/O access via tag name - Reading...................................................................................... 173
7.6.5.5 I/O access via tag name - Writing ........................................................................................ 191
7.6.6 Settings for the virtual time .................................................................................................. 220
7.6.7 Cycle control ........................................................................................................................ 223
7.6.8 Acyclic services.................................................................................................................... 228
7.6.8.1 Overview .............................................................................................................................. 228
7.6.8.2 ReadRecordDone / WriteRecordDone ................................................................................ 230
7.6.8.3 AlarmNotification .................................................................................................................. 232
7.6.8.4 ProcessEvent ....................................................................................................................... 234
7.6.8.5 PullOrPlugEvent................................................................................................................... 236
7.6.8.6 StatusEvent.......................................................................................................................... 238
7.6.8.7 ProfileEvent.......................................................................................................................... 239
7.6.8.8 UpdateEvent ........................................................................................................................ 240
7.6.8.9 GetConfiguredProcessEvent ............................................................................................... 241
7.6.8.10 RackOrStationFaultEvent .................................................................................................... 242
7.6.9 Events .................................................................................................................................. 243
7.6.9.1 OnOperatingStateChanged events...................................................................................... 243
7.6.9.2 OnSyncPointReached events .............................................................................................. 247
7.6.9.3 OnConfigurationChanging events........................................................................................ 249
7.6.9.4 OnConfigurationChanged events......................................................................................... 252
7.6.9.5 OnLedChanged events ........................................................................................................ 254
7.6.10 Events for acyclic services................................................................................................... 257
7.6.10.1 OnDataRecordRead / OnDataRecordWrite events ............................................................. 257
7.6.10.2 OnAlarmNotification events ................................................................................................. 258
7.6.10.3 OnProcessEvent events ...................................................................................................... 259
7.6.10.4 OnPullOrPlugEvent events .................................................................................................. 260
7.6.10.5 OnStatusEvent events ......................................................................................................... 261
7.6.10.6 OnProfileEvent events ......................................................................................................... 262
7.6.10.7 OnUpdateEvent events........................................................................................................ 263
7.6.10.8 RackOrStationFault events .................................................................................................. 264