|
PLCnext API Documentation 26.6.0.38
|
This service provides operations to read and write settings from resp. to the device. More...
#include <IDeviceSettingsService.hpp>

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::Base::Rsc::Commons::IRscService | |
| using | Ptr = std::shared_ptr< IRscService > |
| The shared_ptr type of IRscService. | |
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::Base::Rsc::Commons::IRscService | |
| IRscService (void)=default | |
| The default constructor. | |
| IRscService (const IRscService &arg)=delete | |
| The deleted copy constructor. More... | |
| IRscService (IRscService &&arg) noexcept=default | |
| The default move constructor. More... | |
| IRscService & | operator= (const IRscService &arg)=delete |
| The deleted assignment operator. More... | |
| IRscService & | operator= (IRscService &&arg) noexcept=default |
| The default move-assignment operator. More... | |
| virtual | ~IRscService (void)=default |
| Destructs this instance and frees all resources. | |
Static Public Member Functions | |
| static IRscServiceProxyFactory & | GetProxyFactory (void) |
Static Public Member Functions inherited from Arp::Base::Rsc::Commons::IRscService | |
| static IRscServiceProxyFactory & | GetProxyFactory (void) |
| Returns a reference to service proxy factory to create a proxy instance of this service. More... | |
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.
Consider the following common rule when using RSC services that provide arrays or enumerators as return values or out arguments: It is always required to completely read all items from these resulting lists or enumerators.
|
pure virtual |
This operation reads a single setting.
| setting | String containing the respective setting. |
|
pure virtual |
This operation reads a list of settings.
| settings | Array of strings containing the respective settings. |
|
pure virtual |
This operation writes a single setting.
| settingItem | Arp.Device.Interface.Services.DeviceSettingItem containing a string for selecting the respective setting and its new value. |
|
pure virtual |
This operation writes a list of settings.
| settingItems | Array of Arp.Device.Interface.Services.DeviceSettingItem each containing a string for selecting the respective setting and its new value. |