Emergency Identifier
This section describes the enumeration for the Emergency identifiers. This enumeration is most likely generated with the "CANopen Config Tool".
Example:
Code Block | ||
---|---|---|
| ||
enum CO_EMCY_ID_E {
APP_EMCY_1 = 0,
APP_EMCY_2,
APP_EMCY_3,
APP_EMCY_4,
APP_EMCY_N
}; |
This enumeration is used to get consistent and unique Emergency identifier for the CANopen device.
Note: The value of APP_EMCY_N
shall be the same as CO_EMCY.N
. This can't be checked with preprocessing, therefore for plausibility checking a small check at the startup of the application may ensure the correctness of this configuration.End of topic