Applied-motion SV7-Q-EE Manual de usuario Pagina 13

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 19
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 12
6/26/2010
9200032a3eSCLCommunicationReferenceManual Page13
CreateYourOwnApplication
Tocreateyourownapplication,youwillneedtochooseaprogramminglanguage, learnhowSCLcommands
andresponsesareencapsulatedinUDPorTCPpackets,andlearntouseyourprogramminglanguage’s
interfacetothenetwork.SeeAppendix Bforexampl eprograms inVisualBasic6andC#.NET.
PacketFormat
eSCLisbasedonAppliedMotion’sSerialCommandLanguage(SCL),anASCIIbasedlanguagewithrootsinRS
232andRS485communication.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.appliedmotion.com.
TheeSCLUtilitywillhelpyougetfamiliarwiththeSCLlanguage.
TheHostCommandReferencecontainsdetailedinformationabouttheSCLandQlang uages.
Vista de pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19

Comentarios a estos manuales

Sin comentarios