通过CK3E进行驱动器CDHD2初始化(EtherCat)

一、CDHD2驱动器基本配置

1.6060h: Modes of Operation

0 = No mode change / no mode assigned
1 = Profile position mode
3 = Profile velocity mode
4 = Profile torque mode
5 = Reserved
6 = Homing mode
7 = Interpolated position mode
8 = Cyclic synchronous position mode
9 = Cyclic synchronous velocity mode
10 = Cyclic synchronous torque mode
-x = Manufacturer specific

2.6040h: Controlword

bit 0: Switch on
bit 1: Enable voltage
bit 2: Quick stop
bit 3: Enable operation
bits 4-6: Mode specific
bit 7: Fault reset
bit 8: Halt
bit 9: Mode specific
bit 10: Reserved
bits 11-15: Manufacturer specific

3.6041h: Statusword

bit 0: Rready to switch on
bit 1: Switched on
bit 2: Operation enabled
bit 3: Fault
bit 4: Voltage enabled
bit 5: Quick stop
6: Switch on disabled
7: Warning
8: Manufacturer specific
9: Remote
bit 10: Target reached
bit 11: Internal limit active
bits 12-13: Mode specific
bits14-15: Manufacturer specific

4.6098h: Homing Method

由于方式较多暂不列出,自己根据实际需要进行选择。

二、CDHD2驱动器自身运动

在ServoStudio 2中配置好motor setup,feedback,limits,确保enable&faults中没有报错信息,然后在operation中选择serial position模式,再进行autotuning,匹配电机负载。完成后电机可以正常运动。

三、CK3E与CDHD2驱动器的运动

基本运动功能此处省略,没有难度。

四、home开始

1.ModesofOperation设置为6,Homing mode。

2.Controlword设置为&F.

3.Homingmethod=34,设置合适多home方式。

4.将CK3E的使能方式改为开环使能。

5.开始回零运动,Controlword =$1F。

6.回零成功判别,成功后需要更改的:

ModesofOperation=8
Controlword = $F
再将CK3E开环使能改为闭环使能。

7.初始化程序只能在plc中执行,不能在运动程序中运行,部分代码如下:

在这里插入代码片
OPEN plc 3
Coord[1].SegMoveTime=5
Motor[1].MaxSpeed=0.0
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值