Delivers diagnostic information of a slave
More...
#include <StationDiagnosisItem.hpp>
|
| 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...
|
|
| RscSerializable (void)=default |
| The default constructor.
|
|
|
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
|
|
Delivers diagnostic information of a slave
◆ 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
-
reader | Reference 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
-
writer | Reference to RscWriter |
The documentation for this class was generated from the following files: