EasyManua.ls Logo

VELMEX VXM-3 - AppendixE; Getting Motor Position When Moving

VELMEX VXM-3
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4
Appendix E
Getting Motor Position When Moving
Itispossibletoreadmotorpositiondirectlywhilemotorisinmotionusingthe;DQG
<commands. Athighmotorspeedsitmightnotbetimelyoraccurateenoughto
transfermotorpositionovertheserialportwhilethemotorisinmotion. Anotherapproach
istouseanexternal
triggertotelltheVXMtocapturemotorposition(s)forlaterretrieval
(aftermotionhasended.)
TheAutomatic Deceleration Capture
Everytimethemotorstartstodeceleratetoastopthemotorpositionissavedforlater
retrievalwiththe command. Oneuseofthisfeaturewouldbetostopthemotorwith
thedecelerate-to-a-stopcommand(” ”)whenaneventhasoccurred. Thenafterwaiting
forthemoveto
end,(waitfor“^”)andreadingthepositionwheredecelerationstarted.
D
D
D
(Asterisk)Requestmotorpositionwhenthelastdecelerationoccurred. This
positioncanbefromanormalindexdeceleratingtoastop,oraninterrupted
indexfroma"D"(Deceleratetoastop)commandorStopinput/button(Userinput
4.) Belowiswhatthehostwouldreceiveifthelastmotorindexing
startedit’s
decelerationatpositionnegative14901.
-0014901<cr>
!
The Triggered Position Capture
TheVXMcancapturemotor1andmotor2position(s)eitherbythehostsendinga!or
fromapulseoninput4(seeAppendixC.) Upto4positionswillberecorded(oneforeach
triggerinput.) Thenafterwaitingforthemovetoend,(waitfor“^”)
thepositionscanbe
requestedwithtKH;DQG<FRPPDQGV
Capturemotor1andmotor2positionsintoFIFObuffer(4positionsmaximum.)
8VHWKH;DQG<commandstoretrievebufferdataaftermove(s)arecomplete.
bufferdataisautomaticallyzeroedatthestartofeveryrun.
NOTE:
SeeAlso
X, Y,
setIx