8
+
+
+
+
Stepping
MotorController
www
.velmex.com
Bus
VXM
VXM
Stop
Run
On-Line
Local
- -
+ +
Jog 1
Jog 2
Windowsrunning
VelmexCOSMOS,
orWindows
HyperTerminal
E“”
command
:
:
:
R“”
waitfor“^”
C“”
¬
ÿ
RS-232 Interactive Mode
The VXM can be controlled in an interactive mode. Interactive mode is when a host
computersendsonlythecommandsnecessarytoperformasingleoperation(usuallyan
Index),thenthehostwillwaitfortheVXMtofinishbeforesendinganyadditionalcommands.
ThefollowingprocedurewouldbeusedforrunningtheVXMinaninteractivemode:
1.
2.
3.
4.
5.
ThehostputstheVXMOn-Linebysendingan"F"
Thehostsendsa"N"tozeropositionregistersifnecessary
Thehostsendsspeed,andaccelerationifnecessary
ThehostsendsanIndex("I"command)
Thehostsendsa"R"to
starttheIndex
6.
Thehostthenwillwaituntilitreceivesareadyprompt(" ")fromtheVXM
:TheVXMdoesnotsendacarriagereturnorlinefeedfollowingthe"^",refer
tothe"G"commandin$SSHQGL[2IRUPRUHLQIRUPDWLRQ
7.
Theuser'sroutineforoutputting,measuring,etc.wouldbeexecutedbythehost
8.
A"C"wouldbesentfromthehosttoclearthepreviousIndexcommandfromthe
9.
VXM'smemory
Theprocessisrepeatedfromstep#3
^
NOTE
Communication Methods
ProgrammingoftheVXMisaccomplishedbysendingcommands(ASCIIcharacters)to
theVXMthroughtheRS-232interface. Thesimplestmethodtosendcommandsiswith
theVelmexCOSMOSprogram,orwithHyperTerminalinMicrosoftWindows.
Anothermethodtosendcommandsiswithcommerciallyavailablelanguagessuchas
VisualBASIC,C, LabVIEW,etc.
ToputtheVXMintheOn-Linemode/programmingmode,thehostmustsendeitheran
(RU):KHQWKH&RQWUROOHUUHFHLYHVDQ(RU)WKH2QOLQHOLJKWZLOOOLJKWDQGWKH
-RJLQSXWVZLOOEHGLVDEOHG
The"E"putstheVXMon-linewithecho"on"(echoesallcharactersreceivedbacktothe
host). The"F"putstheVXMon-linewithecho"off". IfyouareusingHyperTerminalto
communicatetotheVXMusethe"E"sotypedcharacterswillbedisplayed. Whenusinga
softwarelanguagetosendcommands, usethe"F"sothehost’sinputbufferwillnotbe
burdenedwithechoedcharactersfromtheVXM.
NOTE: All command characters are case sensitive