Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
63
Добавлен:
11.10.2020
Размер:
2.21 Mб
Скачать

140 • CANopen

Network Communication

5.3.3.1.3 Enter Pre-Operational

This service is used to change the status of the NMT Slave (bus coupler) to PRE-OPERATIONAL.

 

 

Enter Pre-Operational

 

 

 

 

 

NMT Master

 

 

 

NMT Slave(s)

 

0

1

 

 

 

 

 

indication(s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

request

 

 

 

 

 

 

 

 

 

 

 

 

CS

 

Node

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= 128

 

ID

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COB-ID = 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 5-18: Enter PRE-OPERATIONAL

 

 

 

 

 

 

 

g012417x

Node ID = 0: The state of all existing nodes is changed to

PRE-OPERATIONAL.

5.3.3.1.4 Reset Node

In this service a reset is performed with the NMT Slave (bus coupler).

 

 

Reset Node

 

 

 

 

 

NMT Master

 

 

 

NMT Slave(s)

 

0

1

 

 

 

 

 

indication(s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

request

 

 

 

 

 

 

 

 

 

 

CS

 

Node

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= 129

 

ID

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COB-ID = 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 5-19: Reset Node

 

 

 

 

 

 

 

g012418x

Node ID = 0: a reset of all existing nodes is performed.

5.3.3.2 Error Control Protocols

These protocols permit the detection of possible errors in the network. In this manner the master can check whether a node is still in the status defined by it or if it has changed to a different status, for instance following a reset.

WAGO-I/O-SYSTEM 750

CANopen

CANopen • 141

Network Communication

5.3.3.3 Node Guarding Protocol

By means of Node Guarding, the NMT slave is cyclically requested via an RTR frame to send its current status. Additional toggling of a bit detects whether or not the NMT slave still operates correctly.

 

 

 

 

 

Node Guarding Protocol

 

 

 

NMT Master

 

 

 

 

 

NMT Slave

request

 

 

COB ID

Remote

 

indication

 

 

 

 

 

 

 

 

0x700+Node ID Frame

 

response

confimation

 

 

 

 

 

 

 

 

 

 

 

 

 

.7

 

.6

.0

 

 

 

 

 

 

 

Toggle-

 

 

Node State

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

request

 

 

COB ID

 

Remote

 

indication

 

 

 

 

 

 

 

 

 

 

 

 

 

0x700+Node ID Frame

 

 

confimation

 

 

 

 

 

 

 

 

response

 

 

.7

 

.6

.0

 

 

 

 

 

 

 

Toggle-

 

 

Node State

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

indication

 

 

 

 

 

 

 

 

indication

 

 

 

 

 

 

*if guarding error

 

 

Network Event*

 

 

 

 

 

Node Event*

Fig. 5-20: Node Guarding Protocol

 

 

 

 

g012419x

5.3.3.4 Heartbeat Protocol

This protocol allows monitoring without RTR frames. A heartbeat generator cyclically generates a heartbeat message received by n subscribers. The heartbeat message contains the coding of the current generator status.

 

 

 

 

Heartbeat Protocol

Heartbeat Producer

 

 

Heartbeat Consumer

request

 

 

 

 

 

indication(s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 … 7 s

 

 

 

 

 

Heartbeat

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Producer

 

 

 

 

 

 

 

Time

 

 

 

 

 

request

 

 

 

 

 

indication(s)

 

 

 

 

0 … 7 s

 

 

 

 

 

 

Heartbeat

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Consumer

 

 

 

 

 

 

Time

indication

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Heartbeat

 

 

 

 

 

 

 

Event

 

 

 

 

 

 

 

Fig. 5-21: Heartbeat Protocol

 

 

 

 

g012420x

WAGO-I/O-SYSTEM 750

CANopen

Соседние файлы в папке 750-837