Download ManualV3 - Electromate

Transcript
Application Example: Bouncing off of a limit switch
When using a pulse type switch with the HM command, the motor will always begin motion in
the same direction, irrespective of the position of the motor. One method for using a pulse type
or momentary home switch is to implement a routine to "bounce off" of the limit switches. In this
method, the motor is commanded to HOME. If the motor is on the 'wrong' side of the home
switch, the motor will eventually hit the limit switch. If this happens, the controller will move the
motor to the other side of the home switch and re-issue the HOME command.
Reverse Limit
Switch
Home
Switch
Forward Limit
Switch
CASE 1: WRONG SIDE OF HOME SWITCH:
1.
Execute HOME command
(Hits the Reverse Limit Switch)
2. Move to other side of home switch
(XRDIST)
3. Re-home
CASE 2: CORRECT SIDE OF HOME SWITCH:
1. Execute HOME command
(Hits the Reverse Limit Switch)
Figure 1. This figures shows the method of bouncing off of the limit switch.
The Program:
#BOUNCE
HSTATE = 0
XFDIST=<value to be inserted>
XRDIST=<value to be inserted>
#HOMEX
HMX;BGX;HSTATE=1
;Variable to identify
status of homing
;See Note below.
;See Note below.
;Home X routine
;Begin motion, set
status variable
78
ELECTROMATE INDUSTRIAL SALES LTD.
TOLL FREE PHONE (877) SERVO98 • TOLL FREE FAX (877) SERVO99
[email protected] • WWW.ELECTROMATE.COM