Appendix N
Limit Switches and Home Switches
6
TheVXMbydefaultrecognizesnormallyclosed(N/Ctorun)limitswitches. Thedefault
modeisauto-detectnormallyclosedswitches. IftheVXMisusedwithnormallyopenor
withahomeswitch,thelimitswitchmodewillneedtobechanged. Thefollowing
commandsetstheoperatingmodeofthelimitswitchinputs.
VHW/P0[
getLmM
=motor#(1,2,3,4)
=motor#(1,2,3,4)
SetLimitSwitchmodeforaxism,m
m
x
0=Auto-detectN/Ctorun(default)*
1=EnabledN/Ctorun
2=DisabledN/CforHomeSwitchuse
-1=EnabledN/Otorun
-2=DisabledN/OforHomeSwitchuse
,
value
Get
LimitSwitchmodesettingforaxism
returnediseither -2,-1,0,1,2 (default=0)
Itisimportanttounderstandhowahomeswitchworks,andwhatprogrammingprocedure
tousetogetahighdegreeofprecisionandaccuracyobtainablebytheseswitches.
Repeatabilityof 1motorstepisachievableiftheproperproceduresarefollowedwhen
referencingtoahomeswitch.
Themostcommonhomeswitchusedonrotarytablesisamagneticreedtypesensor.The
magneticsensorisusuallyconnecteddirectlytothepositiveandnegativelimitswitch
inputsontheVXM.
Homeswitcheshaveanactiveareaofseveraldegrees. Becauseofthislargeareawhere
theswitchisactivated,itisimportanttoalwaysapproachtheswitchfromthesame
directionwhenhoming.
Sensor
Magnet
Activated Area (20 B4800 Rotary
30EB5990 Rotary)
Rotary
Table
Using Home Switch on Rotary Tables
Limitswitchinputsareoptically
isolated,fromthemaincontrollogicof
theVXM,asshowninthediagramat
theright.
VXM
+24V
10K
External
Limit
ToMCU
2xpermotor