Gemini GV6K and Gemini GT6K Programmer's Guide
Gemini GV6K and Gemini GT6K Programmer's Guide
Gemini GV6K and Gemini GT6K Programmer's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
How to set up software end-of-travel limits (for each axis):<br />
1. Use the LS comm<strong>and</strong> to enable the software end-of-travel limits/<br />
2. Define the positive-direction limit with the LSPOS comm<strong>and</strong>, <strong>and</strong> define the negativedirection<br />
limit with the LSNEG comm<strong>and</strong>. If you have scaling enabled (SCALE1), these<br />
limit values are scaled by the SCLD comm<strong>and</strong>. Both software limits may be defined<br />
with positive values.<br />
NOTES ON SOFTWARE LIMITS<br />
• The software limits (LSPOS & LSNEG) are referenced from a position of absolute<br />
zero. or negative values. Care must be taken when performing incremental moves<br />
because the software limits are always defined in absolute terms. They must be<br />
large enough to accommodate the moves, or a new zero reference position must be<br />
defined (using the PSET comm<strong>and</strong>) before each move.<br />
• To ensure proper motion when using soft end-of-travel limits, be sure to set the<br />
LSPOS value to an absolute value greater than the LSNEG value.<br />
Programming<br />
Example<br />
In this sample of code (not a complete program), the hardware <strong>and</strong> software limits are enabled.<br />
The distance scaling comm<strong>and</strong> (SCLD) is used to define software limit locations in revolutions<br />
from the absolute zero position (assumes a 4000 step/rev resolution). Deceleration rates are<br />
specified for both software <strong>and</strong> hardware limits. If a limit is encountered, the motor will<br />
decelerate to a stop.<br />
; *********************************************************<br />
; These scaling setup comm<strong>and</strong>s are downloaded before the<br />
; limit setup comm<strong>and</strong>s are executed:<br />
SCALE1 ; Enable scaling<br />
SCLD4000 ; Program soft limit distance in revs<br />
SCLA4000 ; Program soft limit accel/decel in revs/sec/sec<br />
ERES4000 ; Set encoder resolution to 4000 steps/rev<br />
; *********************************************************<br />
LH3 ; Enable limits 1 <strong>and</strong> 2, disable limits 3 <strong>and</strong> 4<br />
LHAD10 ; Set hard limit deceleration<br />
LSAD5 ; Set soft limit deceleration<br />
LSNEG0 ; Set negative direction soft limit<br />
; (0 revs)<br />
LSPOS10 ; Establish positive soft limit<br />
; (10 revs)<br />
LS3<br />
; Enable soft limits<br />
78 Gem6K Series Programmer’s <strong>Guide</strong>