EasyManuals Logo

ScanMeg SIM-P User Manual

ScanMeg SIM-P
34 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #16 background imageLoading...
Page #16 background image
ScanMegInc. ModuleSIMP
UserManual  16 Version1.3
Serial link protocol
Theseriallinktransmitsthedimensionandthepositi on oftheobjectpresentlywithinthefieldof
view.Thecommunicationspeedisselectablebyaccessingtherightparameter menuintheSIM
module.Thenumberofbits,theparityandthenumberofstopbitsarefixedandsetto:
XXXX,8,N,2whereXXXXrepresents theBaudratesfrom9600to115,200Bds
Data format
Regardlessifwehaveselectedthedimensionortheposition,thevaluesentontheseriallinkis
writteninBCDASCIIformat.Eachvalueisrepresentedbyafourdigitnumber.Accordingtothe
systemused,
thevalueofthe4digitsis:
Metric XXXX wherethenumberisin1/10ofmm
Imperial XXXX Wherethenumberisin1/10ofinch
Forexample,ifthevalueis236,thisvaluewillbesentasthefourdigits0236.Eachdigitis
convertedtoASCII
formatbeforetheSIMPmoduletransmitsthem.Usingthesameexample,0236
willbeconvertedto48,50,51,and54respectivelyorinhexadecimalformthedatasentwillbe:
0x30,0x32,0x33,and0x36.
Protocol
ThetransmissionalwaysstartswithaLF(0x0A)andfinisheswitha
CR(0x0D).Betweenthesetwo
delimiters,thedimension(4BCDASCIIbytes)andtheposition(4BCDASCIIbytes)arepresentinthe
sameorderasdescribedbelow.Ateachscan,thetransmittingbufferisemptied,andtheSIM
modulewiththetwodelimitercharacterswillalwayssend10bytes.
Insummary,theprotocolis:
LFDDDDPPPPCR
Todemonstratethisprotocol,hereisanexample.Ifthescanresultofthescannerisadimensionof
12.2mmandtheobjectislocatedatposition4.6mm,theSIMmodulewillsend:

LF01220046CR
InHexadecimal,thiscommunicationis:
0x0A0x300x31 0x320x320x300x300x340x360x0D
DimensionPosition

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ScanMeg SIM-P and is the answer not in the manual?

ScanMeg SIM-P Specifications

General IconGeneral
BrandScanMeg
ModelSIM-P
CategoryControl Unit
LanguageEnglish