Processevent - Siemens Simatic S7-1500 Function Manual

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

Advertisement

User interfaces (API)
7.6 API IInstances
7.6.8.4

ProcessEvent

ProcessEvent()
Process events from central and distributed input modules can be simulated with this
function.
Table 7- 248 ProcessEvent() - Native C++
Syntax
Parameters
Return values
234
ERuntimeErrorCode ProcessEvent(
UINT16 in_HardwareIdentifier,
UINT16 in_Channel,
EProcessEventType in_ProcessEventType,
UINT16* out SequenceNumber);
UINT16 in_HardwareIdentifier:
The hardware identifier of the module or submodule which sends the process
event.
The identifier must belong to a hardware component in the currently loaded
project.
UINT16 in_Channel:
The channel of the IO module which sends the process event.
EProcessEventType in_ProcessEventType:
A value from the list of predefined types of events for S7 modules, see EPro-
cessEventType (Page 344).
UINT16* out_SequenceNumber:
PLCSIM Advanced assigns a unique consecutive number to each interrupt
event.
According to PROFINET standard the sequence number is 10 bits wide (1 to
7FF
). When the highest number is reached the numbering starts again at 1.
H
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED_BY_MODULE
SREC_TIMEOUT
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
No hardware identifier of the module.
The module is not supported by this user
action.
The function does not return on time.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents