HomHWLimit.ACD
(156.85 KB, 售价: 1 E币)
SED HW:
Tested on democase CLX C2 custom & K2K DEMO
FUNCTIONALITY:
Routine R02_HomeRoutine_Limit: first moves to positive overtravel, recover from overtravel fault and then home to marker pulse.
Routine R30_OvertravelRecovery: resets errors, disable overtravel checking, moves from positive or negative overtravel limit switch and reenable overtravels back.
How to import routines into your code:
If you are using standart modular programming datatypes, just add command to Move_off_Limits to servo command UDT
and Move_off_limits_Done to your status UDT.
To motion instruction UDT copy all instructions from UDT Motion_Instructions
Then Copy routines which you would like to reuse(including all needed local variables)
WARNING:
For demo purpose, all MAJ and MAM instructions have fixed parameters, so please change it in your code, if you have different axis units then 1unit = 1rev
HOW TO TEST:
Homing to the limit switch:
1. Toggle command to Home in homing routine. -> Motor starts jogging in positive direction to find positive overtravel
2. On Demo case switch on +overtravel and keep it on till axis doesn't move by halve rev to oposite direction. Then release switch and axis should home to marker pulse in negative direction.
Overtravel recovery only:
1. Generate positive or negative overtravel fault
2. Toggle command to Move_off_Limits(keep overtravel limit switch pressed as long as axis doesn't move halve rev in oposite direction, then release)
【必读】版权免责声明
1、本主题所有言论和内容纯属会员个人意见,与本论坛立场无关。2、本站对所发内容真实性、客观性、可用性不做任何保证也不负任何责任,网友之间仅出于学习目的进行交流。3、对提供的数字内容不拥有任何权利,其版权归原著者拥有。请勿将该数字内容进行商业交易、转载等行为,该内容只为学习所提供,使用后发生的一切问题与本站无关。 4、本网站不保证本站提供的下载资源的准确性、安全性和完整性;同时本网站也不承担用户因使用这些下载资源对自己和他人造成任何形式的损失或伤害。 5、本网站所有软件和资料均为网友推荐收集整理而来,仅供学习用途使用,请务必下载后两小时内删除,禁止商用。6、如有侵犯你版权的,请及时联系我们(电子邮箱1370723259@qq.com)指出,本站将立即改正。
|