Description
This function allows the application to trigger a TPDO event for the given object entry. The event will be distributed to all TPDOs, which holds an active mapping entry to this object entry.
Prototype
void COTPdoTrigObj(CO_TPDO *pdo, CO_OBJ *obj);
Parameter | Description |
---|---|
pdo | Pointer to start of TPDO array |
obj | Pointer to object entry |
Returned Value
none
Additional Information
This function can be removed from the CANopen device by disabling the transmit PDO support with the configuration CO_TPDO.N
.
Example
The following example triggers the transmission of all TPDOs of the CANopen node AppNode, which contains the hypothetical object directory entry "[1234:56]".