|
PLCnext API Documentation
22.3.0.20
|
Payload class for a Profinet alarm More...
#include <AlarmPayload2.hpp>

Public Member Functions | |
| AlarmPayload2 (const String &deviceName, uint32 api, bool highPriority, uint16 alarmType, const String &alarmTypeName, uint16 slotNumber, uint16 subslotNumber, uint32 moduleNumber, uint32 subModuleNumber, uint16 sequenceNumber, bool isChannelDiagnosis, bool isManufacturerSpecificDiagnosis, bool isSubmoduleDiagnosisState, bool isArDiagnosisState, uint16 userDataStructureIdentifier, const String &userDataStructureIdentifierName, const String &userDataInfo) | |
| Creates a payload object More... | |
| String | GetDeviceName () const |
| Returns the Profinet device name More... | |
| uint32 | GetApi () const |
| Returns the PROFINET API More... | |
| bool | IsHighPriority () const |
| Returns true if alarm is high priority More... | |
| uint16 | GetAlarmType () const |
| Returns the alarm type More... | |
| String | GetAlarmTypeName () const |
| Returns the alarm type as string More... | |
| uint16 | GetSlotNumber () const |
| Returns the slot number More... | |
| uint16 | GetSubslotNumber () const |
| Returns the sub slot number More... | |
| uint32 | GetModuleNumber () const |
| Returns the module number More... | |
| uint32 | GetSubModuleNumber () const |
| Returns the sub module number More... | |
| uint16 | GetSequenceNumber () const |
| Returns the sequence number More... | |
| bool | GetIsChannelDiagnosis () const |
| Returns true if alarm is a channel diagnosis More... | |
| bool | GetIsManufacturerSpecificDiagnosis () const |
| Return s true if alarm is manufacturer specific diagnosis More... | |
| bool | GetIsSubmoduleDiagnosisState () const |
| Return s true if alarm is submodule diagnosis More... | |
| bool | GetIsArDiagnosisState () const |
| Return s true if alarm is diagnostic information of the application reference More... | |
| uint16 | GetUserDataStructureIdentifier () const |
| Returns the User Data Structure Identifier More... | |
| String | GetUserDataStructureIdentifierName () const |
| Returns the User Data Structure Identifier as string More... | |
| String | GetUserDataInfo () const |
| Returns the User Data Structure as text More... | |
Public Member Functions inherited from Arp::System::Nm::SpecializedPayload< AlarmPayload2 > | |
| SpecializedPayload (const Notification ¬ification) | |
| Creates a view on a Notification object More... | |
| SpecializedPayload (const GenericPayload &payloadArg) | |
| Creates a view on a GenericPayload object More... | |
| PayloadTypeIdType | GetId () const final |
| Returns the PayloadTypeId More... | |
| const String | GetName () const final |
| Returns the PayloadTypeName More... | |
| const RawPayloadType & | GetAsRawPayloadType () const final |
| Returns a reference to the raw payload object More... | |
| const String | ToString () const override |
| Get a human readable string representation More... | |
| RawPayloadType && | MoveOutRawPayload () |
| bool | IsReadOnly () const |
| Returns true if this object is a view on a Payload More... | |
Additional Inherited Members | |
Public Types inherited from Arp::System::Nm::SpecializedPayload< AlarmPayload2 > | |
| using | ValueType = RawPayloadType::value_type |
| using | FieldType = Arp::System::Rsc::Services::RscType |
Static Public Member Functions inherited from Arp::System::Nm::SpecializedPayload< AlarmPayload2 > | |
| static PayloadTypeIdType | GetPayloadTypeId () |
| Returns the PayloadTypeId More... | |
| static const String | GetPayloadTypeName () |
| Returns the PayloadType name More... | |
Protected Member Functions inherited from Arp::System::Nm::SpecializedPayload< AlarmPayload2 > | |
| SpecializedPayload (const String &formatString) | |
| Creates a SpecializedPayload with an format string More... | |
| void | SetFormatString (const String &formatString) |
| summary>Retuns the index in the format string for a given payload field More... | |
| size_t | AddField () |
| Adds a payload field More... | |
| size_t | AddField () |
| Adds a payload field More... | |
| void | SetFieldValue (size_t fieldIndex, const T &value) |
| Sets the value of a payload field More... | |
| void | SetFieldValue (size_t fieldIndex, T value) |
| Sets the value of a payload field More... | |
| const T | GetFieldValueAs (size_t fieldIndex) const |
| Gets a field value with the specified type More... | |
| const T | GetFieldValueAs (size_t fieldIndex) const |
| Gets a field value with the specified type More... | |
| size_t | GetFieldCount () const |
| Gets the number of fields in the payload More... | |
Static Protected Member Functions inherited from Arp::System::Nm::SpecializedPayload< AlarmPayload2 > | |
| static size_t | FieldIndexToFormatStringIndex (size_t fieldIndex) |
Payload class for a Profinet alarm
This class encapsulated all the information about a Profinet alarm.
| Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::AlarmPayload2 | ( | const String & | deviceName, |
| uint32 | api, | ||
| bool | highPriority, | ||
| uint16 | alarmType, | ||
| const String & | alarmTypeName, | ||
| uint16 | slotNumber, | ||
| uint16 | subslotNumber, | ||
| uint32 | moduleNumber, | ||
| uint32 | subModuleNumber, | ||
| uint16 | sequenceNumber, | ||
| bool | isChannelDiagnosis, | ||
| bool | isManufacturerSpecificDiagnosis, | ||
| bool | isSubmoduleDiagnosisState, | ||
| bool | isArDiagnosisState, | ||
| uint16 | userDataStructureIdentifier, | ||
| const String & | userDataStructureIdentifierName, | ||
| const String & | userDataInfo | ||
| ) |
Creates a payload object
| deviceName | Profinet device name |
| api | Profinet API |
| alarmType | alarm type |
| alarmTypeName | description of the alarm type |
| slotNumber | slot number |
| subslotNumber | sub slot number |
| moduleNumber | module number |
| subModuleNumber | sub module number |
| sequenceNumber | sequenceNumber |
| isChannelDiagnosis | true, if the alarm is a channel diagnosis |
| isManufacturerSpecificDiagnosus | true, if the alarm is manufacturer specific diagnosis |
| isSubmoduleDiagnosisState | true, if alarm is submodule diagnosis |
| isArDiagnosisState | true, if alarm is diagnostic information of the application reference |
| userDataStructureIdentifier | User data structure identifier of AlarmItem |
| userDataStructureIdentifierName | description ofUser data structure identifier |
| userDataInfo | AlarmItem as text for supported user data structures |
| uint16 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetAlarmType | ( | ) | const |
Returns the alarm type
| String Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetAlarmTypeName | ( | ) | const |
Returns the alarm type as string
| uint32 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetApi | ( | ) | const |
Returns the PROFINET API
| String Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetDeviceName | ( | ) | const |
Returns the Profinet device name
| bool Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetIsArDiagnosisState | ( | ) | const |
Return s true if alarm is diagnostic information of the application reference
| bool Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetIsChannelDiagnosis | ( | ) | const |
Returns true if alarm is a channel diagnosis
| bool Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetIsManufacturerSpecificDiagnosis | ( | ) | const |
Return s true if alarm is manufacturer specific diagnosis
| bool Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetIsSubmoduleDiagnosisState | ( | ) | const |
Return s true if alarm is submodule diagnosis
| uint32 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetModuleNumber | ( | ) | const |
Returns the module number
| uint16 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetSequenceNumber | ( | ) | const |
Returns the sequence number
| uint16 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetSlotNumber | ( | ) | const |
Returns the slot number
| uint32 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetSubModuleNumber | ( | ) | const |
Returns the sub module number
| uint16 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetSubslotNumber | ( | ) | const |
Returns the sub slot number
| String Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetUserDataInfo | ( | ) | const |
Returns the User Data Structure as text
| uint16 Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetUserDataStructureIdentifier | ( | ) | const |
Returns the User Data Structure Identifier
| String Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::GetUserDataStructureIdentifierName | ( | ) | const |
Returns the User Data Structure Identifier as string
| bool Arp::System::NmPayload::Io::ProfinetStack::AlarmPayload2::IsHighPriority | ( | ) | const |
Returns true if alarm is high priority
1.8.13