igh ethercat主扫描功能开发前的版本和安装工具添加部分代码请勿颠倒RxPdo和TxPdo
前言
为什么要开发扫描功能? 众所周知,igh ethercat在examples中提供了最小的主开发示例mini.c。 该样品可以快速开发单一的电机控制,但随着器件的增加,快速开发测试的需求也越来越大。 无法手动匹配为每个设备写入的非常死的测试文件。 此时,我非常怀念windows上的twinchincat。那么在linux上怎么办呢?
版本和安装在最新的官网上推荐1.5.2版就可以了。 新版本的默认安装路径不在/opt/中。 配置时请注意设置
Hg clone http://Hg.code.SF.net/p/etherlabmaster/codeethercat-hghgupdatestable-1.5 CD/ether cat-Hg./bootststrap op etherlabmakeallmodulessudomakemodules _ installinstallsudodepmodsudoln-fs/opt/ether lab/etc/init.d/ethercaaaack etetmod sudo mkdir/etc/sysconfigsudoln-fs/opt/ether lab/etc/sys config/sudo ln-fs/ether lab/etc/sys config/sudo
gedit/etc/sys config/ethercatmodifythehw _ address : master0_ device=" 00: xx : xx 3: xx 3360 xx 33605 c 3360 xx " modethetrettttexx " modettteted
不要使RxPdo和TxPdo与createDomain和exchangeData时匹配。
-1) http://Etherlab.org/en/Ethercat/