6/26/2010
920‐0032a3eSCLCommunicationReferenceManual Page13
CreateYourOwnApplication
Tocreateyourownapplication,youwillneedtochooseaprogramminglanguage, learnhowSCLcommands
andresponsesareencapsulatedinUDPorTCPpackets,andlearntouseyourprogramminglanguage’s
interfacetothenetwork.SeeAppendix Bforexampl eprograms inVisualBasic6andC#.NET.
PacketFormat
eSCLisbasedonAppliedMotion’sSerialCommandLanguage(SCL),anASCII‐basedlanguagewithrootsinRS‐
232andRS‐485communication.eSCLdrivessupportthefullSCLandQ commandsets,andutilizethespeed
andreliabilityofEthernet.CommandsandresponsesareencapsulatedinthepayloadofUserDatagram
Protocol(UDP)packets,andaretransmittedusingstandardEthernethardwareandstandardTCP/IPstacks.
FordetailsonthefeaturesandcapabilitiesofSCLandQ,pleaserefertotheHostCommandReference.
SendingCommandstoaDrive
AneSCLUDPpacketconsistsofthreeparts,theheader(binary07),theSCLstring(asequenceofASCII
encodedcharacters)andtheSCLtermi nator(ASCIIcarriagereturn,13)
header SCLstring <cr>
Example:Sending“RV”
• SCLHeader=07(twobytes)
• R=ASCII82
• V=ASCII86
• <cr>(ASCIIcarriagereturn)=13
header “RV” <cr>
0 7 82 86 13
ReceivingResponsesfromaDrive
Atypicalresponseto“RV”wouldbe“RV=103<cr>”whichwouldbeformattedas
header “RV=103” <cr>
0 7 82 86 61 49 48 51 13
FurtherReading
Thefollowingmaterialscanbedownloadedfromwww.applied‐motion.com.
• TheeSCLUtilitywillhelpyougetfamiliarwiththeSCLlanguage.
• TheHostCommandReferencecontainsdetailedinformationabouttheSCLandQlang uages.
Commentaires sur ces manuels