PLCnext API Documentation 25.0.2.69
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Arp::Io::Profibus::Services::StationDiagnosisItem Class Reference

Delivers diagnostic information of a slave More...

#include <StationDiagnosisItem.hpp>

Inheritance diagram for Arp::Io::Profibus::Services::StationDiagnosisItem:
Inheritance graph

Public Member Functions

 StationDiagnosisItem (void)
 Constructs an StationDiagnosisItem instance.
 
 StationDiagnosisItem (uint8 stationAddress, uint8 masterAddress, uint16 id, boolean stationExists, boolean isStationReady, boolean hasConfigurationError, boolean hasExtendedDiagnosis, boolean notSupported, boolean isValidResponse, boolean hasParameterError, boolean hasMasterLock, boolean requiresParameterization, boolean hasStaticDiagnosis, boolean watchdogEnabled, boolean isFreezed, boolean isSynced, boolean isSlaveEnabled, const std::vector< byte > &extendedDiagnosisData)
 Constructs an StationDiagnosisItem instance.
 
void Serialize (RscWriter &writer) const
 Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More...
 
void Deserialize (RscReader &reader)
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More...
 
- Public Member Functions inherited from Arp::Base::Rsc::Commons::RscSerializable
 RscSerializable (void)=default
 The default constructor.
 

Static Public Member Functions

static size_t GetFieldCount (void)
 Returns the count of fields More...
 

Public Attributes

uint8 StationAddress = 0
 Contain station address of slave
 
uint8 MasterAddress = 0
 Contains station address of master which configured the slave
 
uint16 Id = 0
 Identification number of slave given by manufacturer
 
boolean StationExists = false
 Slave does exist and is responding
 
boolean IsStationReady = false
 Slave is ready for cyclic data transfer
 
boolean HasConfigurationError = false
 Internal configuration of the slave differs from the master configuration
 
boolean HasExtendedDiagnosis = false
 Extended diagnostic information available
 
boolean NotSupported = false
 Requested command is not supported by slave
 
boolean IsValidResponse = false
 Response of slave was valid.
 
boolean HasParameterError = false
 Last parameter telegram was defective or incorrect
 
boolean HasMasterLock = false
 Slave has been parameterized by another master
 
boolean RequiresParameterization = false
 Slave requires new parameterization and configuration
 
boolean HasStaticDiagnosis = false
 Master needs to request diagnostic information from slave again. Slave is not ready for data exchange because of general error.
 
boolean WatchdogEnabled = false
 Watchdog timer supervision mechanism is activated
 
boolean IsFreezed = false
 Slaves has received a "Freeze" command
 
boolean IsSynced = false
 Slave has received a "Sync" command
 
boolean IsSlaveEnabled = false
 Slave has been projected
 
std::vector< byte > ExtendedDiagnosisData
 Contains extended diagnosis data if 'ExtendedDiagnosis' is set
 

Detailed Description

Delivers diagnostic information of a slave

Member Function Documentation

◆ Deserialize()

void Arp::Io::Profibus::Services::StationDiagnosisItem::Deserialize ( RscReader reader)

Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.

Parameters
readerReference to RscReader.

◆ GetFieldCount()

size_t Arp::Io::Profibus::Services::StationDiagnosisItem::GetFieldCount ( void  )
static

Returns the count of fields

Returns
Count of fields.

The field count is used for serialization via Rsc

◆ Serialize()

void Arp::Io::Profibus::Services::StationDiagnosisItem::Serialize ( RscWriter writer) const

Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.

Parameters
writerReference to RscWriter

The documentation for this class was generated from the following files: