PLCnext API Documentation 23.6.0.37
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Arp::Device::Interface::Services::IDeviceSettingsService Class Referenceabstract

This service provides operations to read and write settings from resp. to the device. More...

#include <IDeviceSettingsService.hpp>

Inheritance diagram for Arp::Device::Interface::Services::IDeviceSettingsService:
Inheritance graph

Public Types

using Ptr = std::shared_ptr< IDeviceSettingsService >
 
using ReadValuesResultDelegate = delegate< void(IRscReadEnumerator< DeviceSettingResult > &)>
 
using ReadValuesSettingsDelegate = delegate< void(IRscWriteEnumerator< RscString< 512 > > &)>
 
using WriteValuesResultDelegate = delegate< void(IRscReadEnumerator< AccessErrorCode > &)>
 
using WriteValuesSettingItemsDelegate = delegate< void(IRscWriteEnumerator< DeviceSettingItem > &)>
 
- Public Types inherited from Arp::System::Rsc::Services::IRscService
typedef std::shared_ptr< IRscServicePtr
 

Public Member Functions

 IDeviceSettingsService (void)=default
 Constructs an IDeviceSettingsService instance.
 
virtual DeviceSettingResult ReadValue (const RscString< 512 > &setting)=0
 This operation reads a single setting. More...
 
virtual void ReadValues (ReadValuesSettingsDelegate settingsDelegate, ReadValuesResultDelegate resultDelegate)=0
 This operation reads a list of settings. More...
 
virtual AccessErrorCode WriteValue (const DeviceSettingItem &settingItem)=0
 This operation writes a single setting. More...
 
virtual void WriteValues (WriteValuesSettingItemsDelegate settingItemsDelegate, WriteValuesResultDelegate resultDelegate)=0
 This operation writes a list of settings. More...
 
- Public Member Functions inherited from Arp::System::Rsc::Services::IRscService
 IRscService (void)=default
 Constructs an IRscService instance.
 
virtual ~IRscService (void)=default
 Destructs this instance and frees all resouces.
 

Static Public Member Functions

static IRscServiceProxyFactory & GetProxyFactory (void)
 
- Static Public Member Functions inherited from Arp::System::Rsc::Services::IRscService
static IRscServiceProxyFactory & GetProxyFactory (void)
 Returns a reference to service proxy factory to create a proxy instance of the service More...
 

Detailed Description

This service provides operations to read and write settings from resp. to the device.

The service is defined in the library Arp.Device.Interface.
A current documentation of available device settings can be found in the Phoenix Contact "PLCnext Info Center", e.g.: PLCnext Info Center: IDeviceSettingsService.

Realtime Usage: This API call does not have to be deterministic in runtime behaviour, so an asynchronous execution should be considered.

Member Function Documentation

◆ ReadValue()

virtual DeviceSettingResult Arp::Device::Interface::Services::IDeviceSettingsService::ReadValue ( const RscString< 512 > &  setting)
pure virtual

This operation reads a single setting.

Parameters
settingString containing the respective setting.
Returns
The result of the read operation as Arp.Device.Interface.Services.DeviceSettingResult.

◆ ReadValues()

virtual void Arp::Device::Interface::Services::IDeviceSettingsService::ReadValues ( ReadValuesSettingsDelegate  settingsDelegate,
ReadValuesResultDelegate  resultDelegate 
)
pure virtual

This operation reads a list of settings.

Parameters
settingsArray of strings containing the respective settings.
Returns
The results of the read operation as an array of Arp.Device.Interface.Services.DeviceSettingResult.

◆ WriteValue()

virtual AccessErrorCode Arp::Device::Interface::Services::IDeviceSettingsService::WriteValue ( const DeviceSettingItem settingItem)
pure virtual

This operation writes a single setting.

Parameters
settingItemArp.Device.Interface.Services.DeviceSettingItem containing a string for selecting the respective setting and its new value.
Returns
The result of the write operation as Arp.Device.Interface.Services.AccessErrorCode.

◆ WriteValues()

virtual void Arp::Device::Interface::Services::IDeviceSettingsService::WriteValues ( WriteValuesSettingItemsDelegate  settingItemsDelegate,
WriteValuesResultDelegate  resultDelegate 
)
pure virtual

This operation writes a list of settings.

Parameters
settingItemsArray of Arp.Device.Interface.Services.DeviceSettingItem each containing a string for selecting the respective setting and its new value.
Returns
The result of the write operation as an array of Arp.Device.Interface.Services.AccessErrorCode.

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