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

Parameters to address a module. More...

#include <RecordParameters.hpp>

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

Public Member Functions

 RecordParameters (void)
 Constructs an RecordParameters instance.
 
 RecordParameters (uint16 id, uint16 stationAddress, uint16 slot, uint16 index, uint16 length)
 Constructs an RecordParameters 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

uint16 Id = 0
 Node ID of the module
 
uint16 StationAddress = 0
 Station address of Profibus slave
 
uint16 Slot = 0
 Slot number of a module
 
uint16 Index = 0
 Index of the object
 
uint16 Length = 0
 Length of data record
 

Detailed Description

Parameters to address a module.

Use either the Node ID or the address consisting the station address and slot number.

Member Function Documentation

◆ Deserialize()

void Arp::Io::Profibus::Services::RecordParameters::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::RecordParameters::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::RecordParameters::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: