PLCnext API Documentation 24.0.0.71
|
This service provides operations to control the device. More...
#include <IDeviceControlService.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IDeviceControlService > |
![]() | |
typedef std::shared_ptr< IRscService > | Ptr |
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... | |
![]() | |
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 IRscServiceProxyFactory & | GetProxyFactory (void) |
Returns a reference to service proxy factory to create a proxy instance of the 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" on the device.
When the start of the firmware update was successfull, the PLC will stop, perform the update and then reboot.