PLCnext API Documentation
22.9.0.33
|
This service read and writes different configuration options to the profinet system. More...
#include <IConfigurationService.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IConfigurationService > |
![]() | |
typedef std::shared_ptr< IRscService > | Ptr |
Public Member Functions | |
IConfigurationService (void)=default | |
Constructs an IConfigurationService instance. More... | |
virtual ConfigurationErrorCode | Read (const RscString< 512 > &name, RscVariant< 512 > &value)=0 |
Reads one configuration from the profinet system. More... | |
virtual ConfigurationErrorCode | Write (const RscString< 512 > &name, RscVariant< 512 > value)=0 |
Writes one configuration to the profinet system. More... | |
virtual RscString< 512 > | GetControllerName ()=0 |
Gets the instance name of the profinet controller. If no controller is registered returns an empty string. More... | |
virtual std::vector< RscString< 512 > > | GetDeviceNames ()=0 |
Gets the instance names of all registered profinet devices. More... | |
![]() | |
IRscService (void)=default | |
Constructs an IRscService instance. More... | |
virtual | ~IRscService (void)=default |
Destructs this instance and frees all resouces. More... | |
Static Public Member Functions | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
![]() | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
Returns a reference to service proxy factory to create a proxy instance of the service More... | |
This service read and writes different configuration options to the profinet system.
The following configuration options are available:
Option | Value | Description |
---|---|---|
ComponentName/StationName | String | Reads or writes the station name of the profinet instance defined by ComponentName |
uint16 (MRPMode) | 0 - off; 1 - client | Reads or sets the MRP mode |
ComponentName
has to be replaced by the name of profinet instance (Arp.Io.PnC
or Arp.Io.PnD
) e.g. Arp.Io.PnD/StationName
.
This service is defined in library Arp.Io.ProfinetStack.
|
default |
Constructs an IConfigurationService instance.
|
pure virtual |
Gets the instance name of the profinet controller. If no controller is registered returns an empty string.
|
pure virtual |
Gets the instance names of all registered profinet devices.
|
pure virtual |
Reads one configuration from the profinet system.
name | Name of the configuration option |
value | Contains the read value |
|
pure virtual |
Writes one configuration to the profinet system.
name | Name of the configuration option |
value | Contains the value of the configuration option to write |