EasyManua.ls Logo

VELMEX VXM-3 - Appendix I the Analog Input

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...
5
TheAnalog Input
Appendix I
TheVXMhasa10-bitanalogtodigitalconverterforgeneraluse, motorspeedsetting,or
forusewiththeoptionalAnalogJoystick(seeAppendixJ.)
Theanalogreferencevoltageistheinternal+5VDCwhichisalsousedfortheVXM’s
internallogic. This+5VDCisbroughtoutonI/Opin2forusewithadditionalanalog
circuitry.
Theanaloginput(Ain)voltagemustnotexceedthe+5VDC
BydefaultthevoltageattheanaloginputAin(I/O,3)is+2.5VDC. Thedigitalvalueofthe
Aincanbereaddirectlywiththe@command. Sincethisisa10-bitconverter,the
2.5VDCwouldbeequalto512 of1024.) ConnectingAintothe+5VDCwouldreturna
valueof1024. IfAinisconnectedto0V(I/O,1)thereturnedvaluewillbe0.
Thereisa ±2digitmarginforconversion/circuitryerror
Externalpotentiometersshouldbebetween2Kand10Kohms.
CAUTION:
NOTE:
InternallyAinhasa100Kohmresistortothe+5VDC,anda100Kohmresistorto0V.
Thereisalsoa100ohmresistorbetweentheconverterandAin.
@
ReaduseranaloginputvalueAin(I/O,3.) The valuereturnedwillbeanumber
between0and1024.
1,2,3,4,5,6,11,12,13,14,15,21,22,23,24,31,32,33,41,42,51.
Seetableatrighttodetermineactualrangeofspeed.
Memoryusage=3 bytes.
Example:
Thisexampleproportionsthefullrangeoftheanaloginputtoaspeedrange
from1000to3000steps/secformotor1.
<cr>
1,2,3,4,5,6,11,12,13,14,15,21,22,23,24,31,32,33,41,42,51.
Seetableatrighttodetermineactualrangeofspeed.
Memoryusage=3 bytes.
S1M-12
m=motor#(1,2,3,4) =speedrange:
Set
Speedtomotor
m
fromanaloginputvalueandrange (100%power),x
m=motor#(1,2,3,4)
x
=speedrange:
m
Set Speedtomotor fromanaloginputvalueandrange (70%power),x
x
6mM[
6$mM[