114
ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
CAN in the ecomatmobile controller
ifm CANopen library
Identifier
The identifier for the error message consists of the sum of the following elements:
EMCY default identifier 128 (80
16
)
+
node ID
EMCY error code
It gives detailed information which error occurred. A list of possible error codes has already been
defined in the communication profile. Error codes which only apply to a certain device class are
defined in the corresponding device profile of this device class.
Object 1003
16
(error field)
The object 1003
16
represents the error memory of a device. The sub-indices contain the errors
occurred last which triggered an error message.
If a new error occurs, its EMCY error code is always stored in the sub-index 1
16
. All other older errors
are moved back one position in the error memory, i.e. the sub-index is incremented by 1. If all
supported sub-indices are used, the oldest error is deleted. The sub-index 0
16
is increased to the
number of the stored errors. After all errors have been rectified the value "0" is written to the error field
of the sub-index 1
16
.
To delete the error memory the value "0" can be written to the sub-index 0
16
. Other values must not be
entered.
Signalling of device errors
As described, EMCY messages are transmitted if errors occur in a device. In contrast to
programmable devices error messages are automatically transmitted by decentralised input/output
modules (e.g. CompactModules CR2033).
Corresponding error codes
→
corresponding device manual.
Programmable devices only generate an EMCY message automatically (e.g. short circuit on an
output) if the function CANx_MASTER_EMCY_HANDLER (
→
page
) or function
CANx_SLAVE_EMCY_HANDLER (
→
page
) is integrated in the application program.
Overview of the automatically transmitted EMCY error codes for all
ifm
devices programmable with
CoDeSys
→
chapter Overview of the CANopen error codes (
→
page
).
If in addition application-specific errors are to be transmitted by the application program, the function
CANx_MASTER_SEND_EMERGENCY (
→
page
) or function
CANx_SLAVE_SEND_EMERGENCY (
→
) are used.
Summary of Contents for Ecomat 100 ecomatmobile SmartController CR2500
Page 1: ...System Manual SmartController CR2500 CR2502 CoDeSys V2 3 Target V05 7390667 00 03 2009 ...
Page 6: ......
Page 282: ......