Emergency State
The CANopen stack provides service functions to get internal information of the emergency error management. This simplifies the realization of a central error management within the CANopen device.
The following example returns the number of currently active emergency errors:
num = COEmcyCnt(&demo.Emcy);