Igh related:Small Bug And Notes Record.

文章描述了作者在电脑上遇到的typing软件问题,涉及undefinedsymbol错误,解决方案是添加预处理器宏_GNU_SOURCE。还提到在EtherCATCANOpen中对SM2和SM3相关索引进行设置的操作,以及一些具体的SDO传输和子索引值的调整。

Write at the top

My computer got some silly problem with the typing software that my Chinese IM does’t work again. So I’ll try to record the things happened in English.
If any error,DM me plz.

BUGs

BUG1

Undefined symbol Identifier “CLOCK_MONOTONIC”
Undefined symbol Identifier “TIMER_ABSTIME”

Solution

In your main cpp file, add this in the first line:
#define _GNU_SOURCE

Notes

Command Line Notes

  1. 0x1c12(SM2)
    0x1c12 is SM2 Related Index , Specially used in EtherCAT over the CANOpen.
    Aimed to set the RPDO settings.

sudo ethercat upload -t int8 -p 3 -a 0 0x1c12 00

0x01 1

sudo ethercat upload -t int16 -p 3 -a 0 0x1c12 01

0x1600 5632

sudo ethercat upload -t int16 -p 3 -a 0 0x1c12 31
SDO transfer aborted with code 0x06090011: Subindex does not exist
sudo ethercat upload -t int16 -p 3 -a 0 0x1c12 30
0x1621 5665

IndexSubIndexSizeDefault Value
0x1c1200int80x01
0x1c1201int160x1600(5632)
0x1c1202int160x1601(5634)
0x1c1229int160x1620(5664)
0x1c1230int160x1621(5665)
IndexSubIndexSizeDefault Value
0x160000int80x03
0x160001int320x607a0020(1618608160)
0x160002int320x60fe0120(1627259168)
0x160003int320x60400010(1614807056)

2.0x1c13(SM3)

IndexSubIndexSizeDefault Value
0x1c1300int80x01
0x1c1301int160x1a00(6656)
0x1c1302int160x1a01(6657)
0x1c1333int160x1a24(6692)
0x1c1334int160x1a26(6694)
0x1c1335int160x0000(0)

Set 0x1c12 0 to 0
Then set it to the true number
Set 0x1600 0 to 0
Then set it to the true number 1
Set 0x1601 0 to 0
Then set it to the true number 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值