找回密码
 注册

QQ登录

只需一步,快速开始

搜索

[基本使用] [logix5000源程序]Homing to overtravel & Recovery from overtravel

[复制链接]
山海致远 发表于 2019-3-25 23:47:20 | 显示全部楼层 |阅读模式
厂商
厂商: AB
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)


您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|ELEOK |网站地图

GMT+8, 2024-4-16 16:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表