|
PLCnext API Documentation 25.6.0.37
|
This service provides operations to control the device. More...
#include <IDeviceControlService.hpp>

Public Types | |
| using | Ptr = std::shared_ptr< IDeviceControlService > |
Public Types inherited from Arp::Base::Rsc::Commons::IRscService | |
| using | Ptr = std::shared_ptr< IRscService > |
| The shared_ptr type of IRscService. | |
Public Member Functions | |
| IDeviceControlService (void)=default | |
| Constructs an IDeviceControlService instance. | |
| virtual void | RestartDevice ()=0 |
| This operation reboots the device. | |
| virtual AccessErrorCode | ResetToFactoryDefaults (uint16 resetType)=0 |
| This operation resets the device configuration to factory default settings. More... | |
| virtual AccessErrorCode | StartFirmwareUpdate (uint16 updateType)=0 |
| This operation starts a firmware update. 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 control the device.
The service is defined in the library Arp.Device.Interface.
A current documentation of device control service can be found in the Phoenix Contact "PLCnext Info Center", e.g.: PLCnext Info Center: IDeviceControlService.
Realtime Usage: This API call does not have to be deterministic in runtime behaviour, so an asynchronous execution should be considered.
|
pure virtual |
This operation resets the device configuration to factory default settings.
| resetType | Type of reset to be performed: Type 1 resets the device configuration to factory default settings. Type 2 downgrades the firmware to the initial factory version and resets the device configuration to factory default settings. |
When the reset was started successfully, the PLC will stop and then reboot. During the reboot the requested defaults will be set.
|
pure virtual |
This operation starts a firmware update.
| updateType | Reserved for future extentions, must be 0 in this version. |
Prior to starting the firmware update, the respective raucb-container must be copied to the path "/opt/plcnext/custom" on the device.
When the start of the firmware update was successfull, the PLC will stop, perform the update and then reboot.