Profileevent - Siemens Simatic S7-1500 Function Manual

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

Advertisement

7.6.8.7

ProfileEvent

ProfileEvent()
This function is used to trigger the Profile event OB (OB 57). Profile events are only
supported for modules in a distributed IO system.
Table 7- 254 ProfileEvent() - Native C++
Syntax
Parameters
Return values
Table 7- 255 ProfileEvent() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode ProfileEvent(
UINT16 in_HardwareIdentifier,
UINT16 in_Specifier
);
UINT16 in_HardwareIdentifier:
The hardware identifier of the module that generates the profile event.
The identifier must belong to a hardware component in the currently loaded
project.
UINT16 in_Specifier:
The parameter is transferred to the interrupt frame as interrupt specifier. It is
available as input parameter of the OB 57 call.
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_NOT_SUPPORTED_BY_MODULE
SREC_DOES_NOT_EXIST
SREC_TIMEOUT
void ProfileEvent(
ushort in_HardwareIdentifier,
ushort in_Specifier
);
ushort in_HardwareIdentifier:
The hardware identifier of the module that generates the profile event.
The identifier must belong to a hardware component in the currently loaded
project.
ushort in_Specifier:
The parameter is transferred to the interrupt frame as interrupt specifier. It is
available as input parameter of the OB 57 call.
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.DoesNotExist
ERuntimeError-
Code.NotSupportedByModule
ERuntimeErrorCode.Timeout
User interfaces (API)
7.6 API IInstances
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The module is not supported by this user
action.
No hardware identifier of the module.
The function does not return on time.
Condition
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.
239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents