Events For Acyclic Services; Ondatarecordread / Ondatarecordwrite Events - Siemens Simatic S7-1500 Function Manual

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

Advertisement

7.6.10

Events for acyclic services

7.6.10.1

OnDataRecordRead / OnDataRecordWrite events

OnDataRecordRead
Registers or unregisters an event handler method.
Table 7- 303 OnDataRecordRead - .NET (C#)
Syntax
Parameter
Return values
Exceptions
Note
OnDataRecordWrite
Registers or unregisters an event handler method.
Table 7- 304 OnDataRecordWrite - .NET (C#)
Syntax
Parameter
Return values
Exceptions
Note
RegisterOnDataRecordReadCallback()
When the event occurs, the registered callback function is called. Only one callback function
can be registered for the event. Registering a new callback function causes the previous
callback function to be deleted.
Table 7- 305 RegisterOnDataRecordReadCallback() - Native C++
Syntax
Parameters
Return values
Note
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
event Delegate_II_EREC_DT_SDRI OnDataRecordRead;
None. See Delegate_II_EREC_DT_SDRI (Page 300).
None
None
The Event-Handler Methode runs in a separate thread.
event Delegate_II_EREC_DT_SDR OnDataRecordWrite;
None. See Delegate_II_EREC_DT_SDR (Page 299).
None
None
The event handler method runs in a separate thread.
void RegisterOnDataRecordReadCallback (
Event Callback_II_SREC_ST_SDRI in_CallbackFunction
);
EventCallback_II_SREC_ST_SDRI in_CallbackFunction:
A callback function that subscribes to the event.
See EventCallback_II_SREC_ST_SDRI (Page 288).
None
The callback function runs in a separate thread.
User interfaces (API)
7.6 API IInstances
257

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents