This service enables sending DCP requests and retrieving confirmations.
More...
#include <IDcpService.hpp>
This service enables sending DCP requests and retrieving confirmations.
Each service method allows to enter the network interface. The value can be retrieved by calling Arp.Io.ProfinetStack.System.Services.IConfigurationService.Read with the option name 'PnC.Interface' to get the PROFINET Controller interface or 'PnD.Interface' to get the PROFINET Device interface. If no interface is selected (networkInterface = 0) the PROFINET Controller interface is selected automatically.
Realtime Usage: This API call does not have to be deterministic in runtime behaviour, so an asynchronous execution should be considered.
◆ GetDcpConfirmations()
virtual std::vector< DcpConfirmation > Arp::Io::ProfinetStack::System::Services::IDcpService::GetDcpConfirmations |
( |
const std::vector< uint32 > & |
xids, |
|
|
uint8 |
networkInterface = 0 |
|
) |
| |
|
pure virtual |
◆ IdentifyAll()
virtual DcpResult Arp::Io::ProfinetStack::System::Services::IDcpService::IdentifyAll |
( |
uint8 |
networkInterface = 0 | ) |
|
|
pure virtual |
This operation sends a request to identify all devices in a network.
- Parameters
-
networkInterface | ID of the network interface. |
- Returns
- Arp.Io.ProfinetStack.System.Services.DcpResult contains an error code and the xid that has to be used to retrieve the confirmation.
The operation can take up to 4s until all stations send a response.
◆ ResetToFactoryDefault()
virtual std::vector< DcpResult > Arp::Io::ProfinetStack::System::Services::IDcpService::ResetToFactoryDefault |
( |
const std::vector< RscString< 18 > > & |
stationMacAddresses, |
|
|
uint8 |
networkInterface = 0 |
|
) |
| |
|
pure virtual |
This operation sends requests to reset all station data for multiple stations.
- Parameters
-
stationMacAddresses | Specifies the MAC addresses of the devices which shall be reset. |
networkInterface | ID of the network interface. |
- Returns
- Arp.Io.ProfinetStack.System.Services.DcpResult contains an error code and the xid that has to be used to retrieve the confirmation for each request station.
The MAC address consists of 6 values that are separated by a ':'.
◆ SendSignals()
virtual std::vector< DcpResult > Arp::Io::ProfinetStack::System::Services::IDcpService::SendSignals |
( |
const std::vector< RscString< 18 > > & |
stationMacAddresses, |
|
|
uint8 |
networkInterface = 0 |
|
) |
| |
|
pure virtual |
This operation sends requests to let the station LEDs flash for 3s for multiple stations.
- Parameters
-
stationMacAddresses | Specifies the MAC addresses of the devices for which the operation shall be executed |
networkInterface | ID of the network interface. |
- Returns
- Arp.Io.ProfinetStack.System.Services.DcpResult contains an error code and the xid that has to be used to retrieve the confirmation for each request station.
The MAC address consists of 6 values that are separated by a ':'.
◆ SetIpAddresses()
virtual std::vector< DcpResult > Arp::Io::ProfinetStack::System::Services::IDcpService::SetIpAddresses |
( |
const std::vector< StationAddress > & |
stationAddresses, |
|
|
StoreOption |
storeOption, |
|
|
uint8 |
networkInterface = 0 |
|
) |
| |
|
pure virtual |
This operation sends requests to set the station network addresses for multiple stations.
- Parameters
-
stationAddresses | Contains the parameters to identify the stations and set the network addresses. |
storeOption | Specifies whether the values shall be set permanently or not. |
networkInterface | ID of the network interface. |
- Returns
- Arp.Io.ProfinetStack.System.Services.DcpResult contains an error code and the xid that has to be used to retrieve the confirmation for each request station.
◆ SetNames()
virtual std::vector< DcpResult > Arp::Io::ProfinetStack::System::Services::IDcpService::SetNames |
( |
const std::vector< Station > & |
stations, |
|
|
StoreOption |
storeOption, |
|
|
uint8 |
networkInterface = 0 |
|
) |
| |
|
pure virtual |
This operation sends requests to set the station names for multiple stations.
- Parameters
-
stations | Contains the parameters to identify the stations and set the names. |
storeOption | Specifies whether the values shall be set permanently or not. |
networkInterface | ID of the network interface. |
- Returns
- Arp.Io.ProfinetStack.System.Services.DcpResult contains an error code and the xid that has to be used to retrieve the confirmation for each request station.
The documentation for this class was generated from the following file: