PLCnext API Documentation 24.6.0.58
|
This service provides acyclic communication to PCP devices. As default all PCP devices in the Interbus get a Communication Reference. The CR is assigned in the connection order starting with 2. This CR ist used to select the device in all operations of this service. More...
#include <IPcpService.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IPcpService > |
![]() | |
typedef std::shared_ptr< IRscService > | Ptr |
Public Member Functions | |
IPcpService (void)=default | |
Constructs an IPcpService instance. | |
virtual InitiateResult | PcpInitiate (uint8 communicationReference)=0 |
This operation establishs a connection to a PCP device. More... | |
virtual void | PcpAbort (uint8 communicationReference, uint8 reasonCode, const std::vector< byte > &abortDetail)=0 |
This operation aborts a connection to a PCP device. More... | |
virtual IdentifyResult | PcpIdentify (uint8 communicationReference, uint8 invokeId)=0 |
This operation gets device information of PCP device. More... | |
virtual StatusResult | PcpStatus (uint8 communicationReference, uint8 invokeId)=0 |
This operation gets current status of PCP device. More... | |
virtual InterbusResult | PcpRead (uint8 communicationReference, uint8 invokeId, const ObjectAddress &pcpObject, std::vector< byte > &data)=0 |
This operation reads a data record from a PCP device. More... | |
virtual InterbusResult | PcpWrite (uint8 communicationReference, uint8 invokeId, const ObjectAddress &pcpObject, const std::vector< byte > &data)=0 |
This operation writes a data record to a PCP device. 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 acyclic communication to PCP devices. As default all PCP devices in the Interbus get a Communication Reference. The CR is assigned in the connection order starting with 2. This CR ist used to select the device in all operations of this service.
The execution of PCP services can take some time (seriel communication). For more information to PCP see "IBS SYS PCP G4 UM".
This service is defined in library Arp.Io.Interbus.
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 aborts a connection to a PCP device.
communicationReference | Communication reference |
reasonCode | Reason for connection abort |
abortDetail | Abort details |
|
pure virtual |
This operation gets device information of PCP device.
communicationReference | Communication reference |
invokeId | Invode ID (Default value = 0) |
|
pure virtual |
This operation establishs a connection to a PCP device.
communicationReference | Communication reference |
|
pure virtual |
This operation reads a data record from a PCP device.
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
pcpObject | Selected PCP object |
data | Data that are read from the object |
|
pure virtual |
This operation gets current status of PCP device.
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
|
pure virtual |
This operation writes a data record to a PCP device.
communicationReference | Communication reference |
invokeId | Invoke ID (Default value = 0) |
pcpObject | Selected PCP object |
data | Data that shall be written in the object |