Applied-motion SV7-Q-EE Uživatelský manuál Strana 13

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 19
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19

Komentáře k této Příručce

Žádné komentáře