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

Delivers Profibus system variables More...

#include <SystemVariables.hpp>

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

Public Member Functions

void Serialize (RscWriter &writer) const override
 Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More...
 
void Deserialize (RscReader &reader) override
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More...
 
- Public Member Functions inherited from Arp::System::Rsc::Services::IRscSerializable
virtual ~IRscSerializable ()=default
 default destructor
 
virtual void Serialize (RscWriter &writer) const =0
 Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More...
 
virtual void Deserialize (RscReader &reader)=0
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More...
 

Static Public Member Functions

static constexpr size_t GetFieldCount (void)
 
- Static Public Member Functions inherited from Arp::System::Rsc::Services::IRscSerializable
static size_t GetFieldCount (void)
 Returns the count of fields of the struct type More...
 

Public Attributes

uint8 MasterMainState = 0
 Delivers main state of Profibus master More...
 
boolean HasControlError = false
 Error is caused by incorrect parameterization
 
boolean HasAutoClearError = false
 Communication is stopped to all slaves
 
boolean HasExchangeError = false
 At least one slave does not exchange process data
 
boolean IsHostReady = false
 Host is ready to communicate
 
boolean HasTimeoutError = false
 Timeout occured because of rejected Profibus telegram
 
uint16 BusErrorCounter = 0
 Counter for bus error events
 
uint16 TimeoutCounter = 0
 Counter for bus timeouts
 

Detailed Description

Delivers Profibus system variables

Member Function Documentation

◆ Deserialize()

void Arp::Io::Profibus::Services::SystemVariables::Deserialize ( RscReader reader)
inlineoverridevirtual

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

Parameters
readerReference to RscReader.

Implements Arp::System::Rsc::Services::IRscSerializable.

◆ Serialize()

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

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

Parameters
writerReference to RscWriter

Implements Arp::System::Rsc::Services::IRscSerializable.

Member Data Documentation

◆ MasterMainState

uint8 Arp::Io::Profibus::Services::SystemVariables::MasterMainState = 0

Delivers main state of Profibus master

0x00 : OFFLINE

0x40 : STOP

0x80 : CLEAR

0xC0 : OPERATE


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