CANopen Bootloader Documentation
Version 4.10.00
|
Emergency objects are triggered by the occurrence of a device internal error situation and are transmitted from an emergency producer on the device. Emergency objects are suitable for interrupt type error alerts. An emergency object is transmitted only once per 'error event'. As long as no new errors occur on a device no further emergency objects must be transmitted. The emergency object may be received by zero or more emergency consumers. The reaction on the emergency consumer(s) is not specified.
The emergency service is an optional service of the CANopen Bootloader. It can be enabled/disabled via the symbol CBL_DICT_OBJ_1014. The identifier for the emergency object is fixed to 80h + node-ID for the CANopen Bootloader.
Functions | |
void | CblEmcySend (uint16_t uwEmcyCodeV, uint8_t *pubManCodeV) |
void CblEmcySend | ( | uint16_t | uwEmcyCodeV, |
uint8_t * | pubManCodeV | ||
) |
[in] | uwEmcyCodeV | Emergency code |
[in] | pubManCodeV | Manufacturer specific code |
This function is used to send an emergency message (EMCY). The possible values for uwEmcyCodeV are defined in CiA 301. The parameter pubManCodeV is a pointer to an array of 5 bytes, which can be filled with user defined data. The parameter pubManCodeV can be a NULL pointer, then the customer specific data is set to 0 autonomously.
Example: