PLCnext API Documentation
21.0.0.35466
|
Service to communicate to PCP devices More...
#include <IPcpService.hpp>
Public Types | |
typedef std::shared_ptr< IPcpService > | Ptr |
![]() | |
typedef std::shared_ptr< IRscService > | Ptr |
Public Member Functions | |
IPcpService (void) | |
Constructs an IPcpService instance. More... | |
virtual | ~IPcpService (void) |
Destructs this instance and frees all resouces. More... | |
virtual InitiateResult | PcpInitiate (uint8 communicationReference)=0 |
Establish connection to a PCP device More... | |
virtual void | PcpAbort (uint8 communicationReference, uint8 reasonCode, const std::vector< uint8 > &abortDetail)=0 |
Abort connection to a PCP device More... | |
virtual IdentifyResult | PcpIdentify (uint8 communicationReference, uint8 invokeId)=0 |
Get device information of PCP device. More... | |
virtual StatusResult | PcpStatus (uint8 communicationReference, uint8 invokeId)=0 |
Get current status of PCP device More... | |
virtual InterbusResult | PcpRead (uint8 communicationReference, uint8 invokeId, const ObjectAddress &pcpObject, std::vector< uint8 > &data)=0 |
Read data record from PCP device More... | |
virtual InterbusResult | PcpWrite (uint8 communicationReference, uint8 invokeId, const ObjectAddress &pcpObject, const std::vector< uint8 > &data)=0 |
Write data record to a PCP device More... | |
![]() | |
IRscService (void)=default | |
Constructs an IRscService instance. More... | |
virtual | ~IRscService (void)=default |
Destructs this instance and frees all resouces. More... | |
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... | |
Service to communicate to PCP devices
|
inline |
Constructs an IPcpService instance.
|
inlinevirtual |
Destructs this instance and frees all resouces.
|
pure virtual |
Abort connection to a PCP device
communicationReference | Communication reference |
reasonCode | Reason for connection abort |
abortDetail | Abort details |
|
pure virtual |
Get device information of PCP device.
communicationReference | Communication reference |
invokeId | Invode ID (Default value = 0) |
|
pure virtual |
Establish connection to a PCP device
communicationReference | Communication reference |
|
pure virtual |
Read data record from PCP device
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
pcpObject | PCP object |
data | Data that are read from the object |
|
pure virtual |
Get current status of PCP device
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
|
pure virtual |
Write data record to a PCP device
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
pcpObject | PCP object |
data | Data that shall be written in the object |