自学内容网 自学内容网

Igh related:Small Bug And Notes Record.

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


原文地址:https://blog.csdn.net/Primary_student/article/details/137478145

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!