Appendix T
Stand-alone Methods to Select/Alter Program
SometimesitisnecessaryfortheusertointeractdirectlywiththeVXMtoselecta
program,stopprogram,changespeed,orchangetodifferentroutinebasedonanexternal
input. BelowarethefourcategoriesandthemethodsforuserinteractionwiththeVXMin
standaloneapplications.
External Selection of Programs
ThedefaultprogramtheVXMusesisprogram#0. BypressingtheRunbuttonorabutton
connectedtotheRuninputontheI/O(seeAppendixK)program#0willbestarted. Ifa
binaryswitchisconnected,toInputs2and3,programs#0to#3canbeselected.See
AppendixCandApplicationNote#AN103formoreinformation.
External Setting of Speed
TheSmM-xandSAmM-xcommandsthatassignanaloginputvaluetomotorspeedcan
beusedtovaryspeedsbasedonanexternalpotentiometersetting. RefertoAppendixI
andApplicationNote#AN102formoreinformation.
Program Interruption
TheStopbuttonorabuttonconnectedtoInput4normallywillstopaprogramina
controlledmanner.
WhenStopispressed,theVXMwilldeceleratearunningmotortoastop,andendthe
program. TheVXMcanbeoptionallysettorunprogram#4afterstopping. SeeAppendix
CandAppendixKformoreinformationandotherstopsettings.
Conditional Branching
Branching/jumpingtoaspecificpartofaprogram,whenanexternaleventoccurs,isaway
toproduceanalternatefunctionfromauserinput. Therearethreedifferentwaysthe
VXMcanperformconditionalbranching:
1.
U13andU23commandswaitforafrontpanelbuttonorI/Oinputtojumptoa
programorcontinue: "Motor1Jog-"button(I/O,10)willjumptoprogram#1;
"Motor1Jog+" button(I/O,11)willjumptoprogram#2;the"Run"button(I/O,4)
willcontinueinthecurrentprogram. SeeAppendixBformoreinformation.
2.
Input3(I/O,7)isaspecialinterruptofawaitforinputcommand. Forexample,
theU0commandwillwaitforalowoninput1(I/O,5). WhentheVXMiswaiting
forInput1andInput3(I/O7)ispulledlowtheprogramwillimmediatelybranchto
program#3. SeeAppendixCformoreinformationaboutenabling/disablingthis
feature.
3.
commandstoskip-next-command-on-input-high/low
arethemostversatileconditionalbranchcommands. Thesecommandsallow
jumpsorspeedchangestooccurbasedonthestateofinput1or2. Seethe
followingpageformoreinformationaboutthesecommands.
THE STOPBUTTON/INPUT 4 IS NOTAN EMERGENCYSTOP. FOR EMERGENCY
STOP, POWER TO VXM SHOULD BE DISCONNECTED.
TheU11/U21andU12/U22
CAUTION:
!
8