Changing deceleration value when a limit switch is triggered
Posted on June 12th, 2008 by Robin Riley at GalilPosted in DMC Programming |
For Optima-series motion controllers and older, it is well documentated that the deceleration value (DC) of an axis cannot be changed while the axis is actively profiling. Many machine designs require a low DC value for smoothest possible motion. At the ends of the allowable travel, the mechanical layout may mean that the limit switches are physically close to the hard stop. Therefore, if the axis drives up against the limit, the controller may not have enough physical space to decelerate to a stop before coming into contact with the hard stop.
To account for this, the Galil motion controllers allow the user to change the DC value within the LIMSWI routine. Here, you can set the DC value very high, in order to stop well before coming into contact with the hard stop. The following figure shows a profile with the DC value left low. The time to stop is quite long, and the distance traveled is too far into the hard stop.
The following screen shot show the result of changing the DC value when running the #LIMSWI routine. The time to stop has been dramatically reduced.
Here is a sample DMC program that performs this change.
#LIMSPD
NOTE EXAMPLE OF CHANGING DECEL IF A LIMIT OCCURS
ACX=1024
DCX=1024
SPX=4096
PRX=100000
BGX
#LOOP
JP#LOOP
#LIMSWI
DCX=1024000
STX
AMX
MG”LIMIT”
EN


2 Responses to “Changing deceleration value when a limit switch is triggered”
By Peter Strazdins on Jul 9, 2008
We have a DMC-2123 Controller. I don’t know what you mean by Optima series, so I am wondering if this axis on-the-fly change of DC value within #LIMSWI is permissable for me.
By Galil_RobinR on Jul 9, 2008
Peter-
‘Optima’ series includes controllers like the DMC-2000, 2200, 1800, 1700, and others. The DMC-2123 is not a true Optima card, but is closely related. More importantly, the DMC-21×3 does allow the DC value to be set within the #LIMSWI routine, just as on Optima controllers.