![NANOTEC ELECTRONIC N5 Скачать руководство пользователя страница 106](http://html.mh-extra.com/html/nanotec-electronic/n5/n5_technical-manual_705153106.webp)
Technical Manual N5 (CANopen)
8 CANopen
After receiving a SYNC message, there is a time window ("synchronous window") within which PDO
messages can be sent and received; after the time of the window has elapsed, all devices must stop
sending PDOs. The "synchronous window length" can be set in milliseconds in object 1007
h
:00
h
.
A typical CAN-SYNC operation is divided into four phases (see also the following figure):
1. The SYNC message is received. The previously received RX-PDO data are thereby copied to the
object dictionary (if present). At that time, the data are also sampled and copied to the TX-PDOs
and the sending of these messages initiated.
2. The TX-PDOs are then sent by all slaves on the bus.
3. Afterwards, the PDOs are sent by the CANopen master. After the "synchronous window length"
time has elapsed, no further PDOs are permitted.
4. SDO messages can be exchanged at the latest when the "synchronous window" is closed again.
8.2.3 Emergency Object (EMCY)
A message of type "Emergency" is sent whenever an error occurs in the controller that was not caused
by an SDO access. This service is unconfirmed and is sent with CAN-ID 80
h
+Node-ID.
The emergency message is structured as follows:
0x00
CAN ID
Data
Byte 1
Byte 2
80+NodeID
<EMCY Error Code>
Byte 3
Byte 4
<E-REG>
Byte 5
Byte 6
Byte 7
Byte 0
<Manufactor Specific Error Field>
Emergency Message (EMCY)
A total of three error codes are transferred here: the "Emergency Error Code" (
<EMCY Error
Code>
), the content of the "Error Register" object (1001
,
<E-REG>
) and a manufacturer-specific code
(
Manufacturer Specific Error
)
Error handling
A module for error handling processes all errors that occur internally. Each error is classified into an
error class.
Each error that occurs is handled as follows:
•
The bit that belongs to the error in the "Error Register" object (1001
) is set.
•
Three pieces of information are then written together in the "Pre-defined Error Field" object
(1003
h
:01):
1. The Emergency Error Code
2. The Error Register
3. The manufacturer-specific error code
Version: 2.0.1 / FIR-v1650
106