Command Reference (Common Commands)
16
ThissectiongivesdetailedexplanationsofthemostcommonVXMcommands. Forthe
advanceduser,refertotheAppendicesformoreinformation.
Mostcommandswithvariables(exceptsetcommands)usetheVXM'sprogrammemory
space. Therequiredmemoryneededpercommandisspecifiedinthissection. TheVXM
has256bytes
ofprogrammemoryforeachprogram. Thereare5(0,1,2,3,4)programs.A
programcanbeclearedbya"C"andselectedbythe"PMx"command. Thedefault
programwhentheVXMispoweredupis#0. Usingdifferentprogramsisonlyrelevantto
userswhowillbeoperatingthe
VXMinastand-alonemode(P8.) UsingtheVXMina
RS-232interactivemode(P9.)wouldonlyrequirethatthedefaultprogrambecleared
aftertheRcommand.
AnabsoluteIndexis,amoverelativetoabsolutezeroposition,adistanceanddirection
fromthepresentpositioncalculatedbytheVXM
basedonabsolutezeroposition.
AbsolutezeroisestablishedwhentheVXMispowered-up,byuseofthe"N",orthe
" command.
Sending Commands to the VXM:
ThestandardRS-232communicationsettingsontheVXMare9600baud,8data,no
parity,and1stopbit.
Whensendingcommandsthatrequireavalue,thecommandsmustendwithacarriage
return(EnterkeyorReturnonmostkeyboards),comma,oraperiod.
SetstepstoincrementalIndex(move)motorCW(positive, Slider/Carriage
willmoveawayfrommotorend, RotaryTablewillrotateCCW), =motor#
(1,2,3,4), x=1to16,777,215.
.
The"<cr>"isacarriagereturncharacter
(<Enter>key
onmostkeyboards).Commandcharactersarein
LARGE BOLD.
<cr>
<cr>
Thisexamplesetsmotor1toindex1200stepsCW:
Thisexamplesetsmotor2toindex9200stepsCW:
Thisexamplesetsmotor3toindex10200stepsCW:
<cr>
Thisexamplesetsmotor1toindex120steps
CCW:
<cr>
<cr>
Thisexamplesetsmotor2toindex20stepsCCW:
Thisexamplesetsmotor4toindex1stepCCW:
<cr>
"IAmM-0
Memoryusage=
Examples:
4 bytes
NOTE:
I1M1200
I2M9200
I3M10200
SetstepstoincrementalIndex(move)motorCCW(negative,UniSlide Slider
willmovetowardmotorend,UniSlideRotaryTablewill
rotateCW),m=motor#
(1,2,3,4),x=1to16,777,215.
Memoryusage=4 bytes.
Examples:
1M-120
I2M-20
I4M-1
IA1M2200
m
The Difference Between Incremental andAbsolute Indexes:
AnincrementalIndexis,amoverelativetothepresentposition,adistanceanddirection
specifiedbytheIndexfromthepresentposition.
Incremental: I1M1200
start end
Absolute: start end
AbsolutePosition
0 1000 2200
AbsolutePosition
0 1000 2200
MotorCommands
ImM[
ImM-[