Applied-motion SV7-Q-EE Manual do Utilizador Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 19
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19

Comentários a estes Manuais

Sem comentários