![RoboteQ CANBus Series Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/roboteq/canbus-series/canbus-series_users-reference-manual_1471291032.webp)
CANopen Interface
32
CANBus Networking Manual
V2.0 July 8, 2019
In this example, we suppose that the controller has node-id 01.
1. Destroy TPDO1 by setting the invalid bit of COB-ID (0x180001):
23 00 18 01 81 01 00 C0
2. Disable TPDO1 mapping by setting number of entries mapping parameter to 00
(0x1A0000).
2F 00 1A 00 00 00 00 00
3. Modify TPDO1 mapping by changing (0x1A00
01-02
):
•
0x210001: Motor amps for channel 1 (U16).
23 00 1A 01 10 01 00 21
•
0x2100
02
: Motor amps for channel 2 (U16).
23 00 1A 02 10 02 00 21
•
0x210D
01
: Internal voltage (U16).
23 00 1A 03 10 01 0D 21
•
0x210F
01
: MCU temperature (U8).
23 00 1A 04 08 01 0F 21
4. Enable TPDO1 mapping by setting number of entries mapping parameter to 04
((0x1A00
00
).
2F 00 1A 00 04 00 00 00
5. Create TPDO1 by setting the invalid bit of COB-ID to 0 (0x1800
01
).
23 00 18 01 81 01 00 40
PDO Transmission Type
The transmission type of a PDO can be set via the second sub-index.
0
(1)
The Transmit PDO is synchronous. Which specific SYNC Object
occurrence triggers the transmission is given in the device profile.
1 – 240
The Transmit PDO is synchronous. It is transmitted after every nth
SYNC Object within the Synchronous Window Length, where n is the
transmission type. For example, when using transmission type 34, the
PDO is transmitted after every 34th SYNC Object.
241 – 25
1(1
)
Reserved.
252
(1)
The data for the PDO is updated on reception of a SYNC Object, but
the PDO is not transmitted. The PDO is only transmitted on reception
of a Remote Transmission Request.
253
(1)
The data for the PDO is updated and the PDO is transmitted on
reception of a Remote Transmission Request.
254
(2)
The conditions that cause the Transmit PDO to be transmitted are
manufacturer specific.
255
The Transmit PDO is asynchronous. The transmission is triggered at
defined send rate.