PLCnext API Documentation 25.0.2.69
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

 SystemVariables (void)
 Constructs an SystemVariables instance.
 
 SystemVariables (uint8 masterMainState, boolean hasControlError, boolean hasAutoClearError, boolean hasExchangeError, boolean isHostReady, boolean hasTimeoutError, uint16 busErrorCounter, uint16 timeoutCounter)
 Constructs an SystemVariables 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 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)

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::SystemVariables::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::SystemVariables::Serialize ( RscWriter writer) const

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

Parameters
writerReference to RscWriter

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 files: