CANopen COB-ID 使能PDO功能

CANopen cia网址:https://can-cia.org/can-knowledge/canopen/pdo-protocol/

The COB-ID is not the CAN-ID!
The COB-ID sub-parameter in the CANopen dictionary is a 32-bit value. It contains some control bits, e.g. bit 29 indicating how to interpret following bits. In case bit 29 is 0, the following 18 bits are ignored and the remaining 11 bits are regarded as the CAN-ID to be used for the PDO. It is transmitted using the CAN base frame format. If the bit is 1, the following bits are interpreted as a 29-bit ID. This means the corresponding PDO is transmitted in the CAN extended frame format.

Bit 30 is used to indicate if CAN remote frames are allowed or not. This is not supported by all CAN implementations. In some, the remote frame transmission can’t be disabled.

Bit 31 enables and disables the PDO transmission respectively the reception function. This means you can switch-off the PDO transmission. The reception of CAN messages can’t be switched-off, but the CANopen protocol stack doesn’t process the received PDO when you have disabled it.

Object 1400h - 15FFh: Receive PDO Communication Parameter
Contains the communication parameters for the PDOs the device is able to receive. The type of the
PDO communication parameter (20h) is described in 9.5.4. The sub-index 0h contains the number of
valid entries within the communication record. Its value is at least 2. If inhibit time supported the value
is 3. At sub-index 1h resides the COB-ID of the PDO. This entry has been defined as UNSIGNED32 in
order to cater for 11-bit CAN Identifiers (CAN 2.0A) as well as for 29-bit CAN identifiers (CAN 2.0B).
The entry has to be interpreted as defined in Figure 65 and Table 55.
在这里插入图片描述
The PDO valid/not valid allows to select which PDOs are used in the operational state. There
may be PDOs fully configured (e.g. by default) but not used, and therefore set to “not valid”
(deleted). The feature is necessary for devices supporting more than 4 RPDOs or 4 TPDOs,
because each device has only default identifiers for the first four RPDOs/TPDOs. Devices
supporting the standard CAN frame type only or do not support Remote Frames, an attempt to
set bit 29 to 1 or bit 30 to 0 is responded with an abort message (abort code: 0609 0030h).
It is not allowed to change bit 0-29 while the PDO exists (Bit 31=0).
The transmission type (sub-index 2) defines the transmission/reception

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

金士顿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值