Download Advantech CANopen User Manual

Transcript
02h
Index [1A00h]
Sub-index 00h
01h
200
the PDO is transmitted every reception of <200> SYNC
value
description
2
write the number of data embedded in the PDO (1byte)
0x60000308
Where to find of data embedded and the size. (8 bytes)
Format: index(2 bytes) – sub-index(1 byte) – size in bits(1 byte)
DataX is at object [6000h, 03h] with 8 bits
02h
0x20102120
where to find the second data embedded an the size (8bytes)
DataY is at object [2010h, 21h] with 32 bits

RPDO setting example
Another node 0x05 needs to be configured to directly listen for the TPDO1 transmitted by node 0x02.
RPDO1 of node 0x05 should be used to receive TPDO1 of node 0x02.
Table 3: RPDO setting example
Index [1400h]
Sub-index 00h
value
description
2
01h
0x182
180h + Node-ID 0x2
02h
200
the PDO is transmitted every reception of <200> SYNC
value
description
2
write the number of data embedded in the PDO (1byte)
0x60000308
Where to find of data embedded and the size. (8 bytes)
Index [1600h]
Sub-index 00h
01h
Format: index(2 bytes) – sub-index(1 byte) – size in bits(1 byte)
DataX is at object [6000h, 03h] with 8 bits
02h
0x20102120
where to find the second data embedded an the size (8bytes)
DataY is at object [2010h, 21h] with 32 bits
1.2.3. SYNC setting
A node as SYNC producer broadcasts the synchronization object periodically, which provides the basic
network synchronization. The time period in μs between SYNC is defined at index 1006h
Communication cycle period of object dictionary. And mandatory if the node generates the SYNC
object, the allow bit 30 at object 1005h must to be set.
Table 4: SYNC COB-ID (1005h) setting example
Index [1005h]
DefaultValue
value
description
0x00000080
Example: 11-bit SYNC COB-ID is 80h.
or
Bit 30 set to 0 means the node does not generate the SYNC object.
0x40000080
Bit 30 set to 1 means the node generates the SYNC object.
Table 5: Communicate Cycle Period (1006h) setting example
-6-