Download DMC-1600 User Manual - Galil Motion Control

Transcript
limit. X,Y,Z, or W following LR or LF specifies the axis. The CN command can be used to
configure the polarity of the limit switches.
Limit Switch Example:
#A;JP #A;EN
Dummy Program
#LIMSWI
Limit Switch Utility
V1=_LFX
Check if forward limit
V2=_LRX
Check if reverse limit
JP#LF,V1=0
Jump to #LF if forward
JP#LR,V2=0
Jump to #LR if reverse
JP#END
Jump to end
#LF
#LF
MG "FORWARD LIMIT"
Send message
STX;AMX
Stop motion
PR-1000;BGX;AMX
Move in reverse
JP#END
End
#LR
#LR
MG "REVERSE LIMIT"
Send message
STX;AMX
Stop motion
PR1000;BGX;AMX
Move forward
#END
End
RE
Return to main program
NOTE: An applications program must be executing for #LIMSWI to function.
DMC-1600
Chapter 8 Hardware & Software Protection • 161