EtherCAT Slave
1.04.03
◆
EC_API_SLV_PDO_getOffset()
uint16_t EC_API_SLV_PDO_getOffset
(
EC_API_SLV_SPdo_t
*
pPdo_p
)
This function return the offset of the PDO in the process image in bytes.
Parameters
[in]
pPdo_p
The pointer to the PDO instance.
Returns
uint16_t Returns the PDO offset in Process Image
Example
#include <ecSlvApi.h>
// required variables
uint16_t offset = 0;
EC_API_SLV_SHandle_t
* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
offset =
EC_API_SLV_PDO_getOffset
(S_ecSlvApiHdl, ptRxPdo1600);
See also
EC_API_SLV_PDO_getLength
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition:
ecSlvApi.h:134
EC_API_SLV_PDO_getOffset
uint16_t EC_API_SLV_PDO_getOffset(EC_API_SLV_SPdo_t *pPdo_p)
This function return the offset of the PDO in the process image in bytes.
Definition:
ecSlvApi_ProcDataStub.c:180
PDO Configuration
generated by
1.8.18