Table 7- 247 Alarmnotification() - .Net (C#) - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 247 AlarmNotification() - .NET (C#)

Syntax
Parameters
Exceptions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
void AlarmNotification(
ushort in_HardwareIdentifier,
ushort in_ModuleState,
ushort in_NumberOfDiagnosisEvents,
SDiagExtChannelDescription [] in_ArrayOfDiagnosisEvents,
Out ushort out_SequenceNumber
);
ushort in_HardwareIdentifier:
The hardware identifier of the module or submodule which sends the diagnos-
tics entry.
The identifier must belong to a hardware component in the currently loaded
project.
ushort in_ModuleState:
Module status. The following statuses are valid:
ModuleState.Ok,
ModuleState.Error,
ModuleState.MaintenanceDemanded,
ModuleState.MaintenanceRequired
ushort in_NumberOfDiagnosisEvents
Multiple diagnostic entries can be sent to the CPU with a single API call.
Valid range: 0 to 16. 0 means that no diagnostics entry should appear for the
submodule or the channel.
SDiagExtChannelDescription [] in_ArrayOfDiagnosisEvents:
Pointer to a field with diagnostic entries. The field must match the number of
diagnostic entries. It can also be a zero pointer. For definitions, see SDi-
agExtChannelDescription.
Out ushort out_SequenceNumber:
PLCSIM Advanced assigns a unique consecutive number to each alarm 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
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.DoesNotExist
ERuntimeErrorCode.WrongArgument
ERuntimeError-
Code.WrongModuleType
ERuntimeError-
Code.IndexOutOfRange
ERuntimeErrorCode.Timeout
User interfaces (API)
7.6 API IInstances
Condition
The instance is not registered in Runtime
Manager.
No hardware identifier of the module.
The value for the module status is invalid.
The channel number does not exist for
the module.
The field size of
in_ArrayOfDiagnosisEvents
than the number of the currently available
diagnostic events.
The function does not return on time.
is less
233

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents