![Robotis OpenCM 485 Скачать руководство пользователя страница 8](http://html1.mh-extra.com/html/robotis/opencm-485/opencm-485_manual_1471406008.webp)
北京智能佳科技有限公司
www.bjrobot.com
第
8
页 共
10
页
6.
7.
OpenCM 485 EXP’s 485 Bus sends and receives communication packets
from OpenCM9.04’s Serial3(USART3).
Dynamixel Class variable MUST be set to 3 once it has been declared.
8.
Dynamixel Dxl(
3
);
//Dynamixel on Serial3 (USART3). Needs to be set as 3 to used
USART3 on OpenCM 485 EXP.
void
setup
() {
Dxl.begin(
1
);
//1Mbps
}
void
loop
() {
Dxl.writeWord(
6
,
30
,
0
);
Dxl.writeWord(
2
,
30
,
0
);
delay(
1000
);
Dxl.writeWord(
6
,
30
,
1023
);
Dxl.writeWord(
2
,
30
,
4
,
095
);
delay(
1000
);
}
9.
10.
Click on “Download” button indicated below to download the program.
11.
智能佳机器人