EasyManua.ls Logo

XITRON XT2640 - LAN (Ethernet) Interface

Default Icon
187 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XT2640OperatingManual 13July2016 Page132of187
TheDSRsignal(inputtothecomputer)isassertedbytheXT2640whenevertheRS232portoftheXT2640isenabled.Generallythis
signalisnotusedbythecomputersoisnotoftenacauseforconcern.
TheCTSsignal(inputtothecomputer)isusedbytheXT2640tohandshakedatatransmittedfromthecomputerandmustbe
supportedbythecableused,anycableconvertorused,thecomputer,andthesoftware.Impropersupportforthissignalisgenerally
seenasoccasionalerrorsincommandstotheXT2640causedbycommandtransmissioncorruption.
TheRTSsignal(outputfromthecomputer)isusedbytheXT2640tohandshakedatatransmittedfromtheXT2640.Generallythis
signalisnotusedbythecomputersoisnotoftenacauseforconcernbutitmustbeincludedinthecableasadisconnectedsignal
disablesalldatatransmittedfromtheXT2640.
24.1.1.4 WRITINGSOFTWARETOCONTROLTHEXT2640VIARS232
BeforeyoursoftwarecancommunicatewiththeXT2640itgenerallymustcreateanobjectforthespecificserialportandconfigure
it.
Asanexamplethefollowinglinesofcodeconfigureandopentheportforcommunications(SerialPort1isdefinedasa
System.IO.Ports.SerialPortobject)‐
SerialPort1.BaudRate = 115200
SerialPort1.PortName = “COM1”
SerialPort1.Handshake = IO.Ports.Handshake.RequestToSend
SerialPort1.ReadTimeout = 100
SerialPort1.WriteTimeout = 100
SerialPort1.DtrEnable = True
SerialPort1.Open()
SincetheXT2640communicatesentirelyusingthestandardASCIIcharacterset,methodsforsendingandreceivingcharacterstrings
mustbeused,rememberingtoalwaysterminatebothtransmittedandreceivedstringswiththe<CR>and/or<LF>characters.
Totransmitacommandstring(TransmitString)totheXT2640thefollowingisanexample–
SerialPort1.WriteLine(TransmitString)
Toreceivearesponsestring(ReceiveString)fromtheXT2640thefollowingisanexample–
Dim ReceiveString as String = SerialPort1.ReadLine()
24.1.2 LAN (ETHERNET)INTERFACE
Speed 10baseTor100baseTX,auto‐selected
Duplex Halforfull‐duplex,auto‐selected
MDI/MDIX Auto‐selected
Protocols ICMPv4,ARP,UDP/IPv4,TCP/IPv4,DHCPv4,mDNS,IGMPv3(reducingtov1orv2automaticallyas
needed)
TCPPort 10733
Max.MTU 1500(maximumEthernetpayload)
RemoteConnections Onlyoneremoteconnectionisallowedatanygiventime
Connector RJ45
Cablerequired CAT5orCAT5e,UTPorSTP
CableLength <100m(perstandard)
24.1.2.1 CONNECTINGTOTHELANINTERFAC E
TheLANconnectorlocatedontherearpaneloftheXT2640mustbeconnectedtoyournetworkorconnectedtoacomputereither
directlyorthroughaswitch(ahubisnotrecommended).StandardCAT5eUTPcableissufficientforthemajorityofapplicationsand
theXT2640hasautoMDI/MDIXsotheuseofacrossovercableisnotnecessary.
24.1.2.2 IPADDRE SSING
SincetheLANinterfaceoftheXT2640usesIPcommunications,anIPaddressmustbeassignedinsomemannertotheXT2640.
Therearethreemethodsofdoingthisasdescribedinsection12.3.2.3‐
1.
UsingamanuallyenteredIPaddress,gatewayandsubnetmask.
2.
UsinganIPaddress,gatewayandsubnetmaskobtainedfromaDHCPserver(allthreemustbeprovidedbytheserver).
3.
UsinganIPaddressobtainedbytheAuto‐IPmethod(RFC3927).TheIPaddresswillbeintherangefrom169.254.1.0to
169.254.254.255.
Whichevermethodisused,youshouldnotetheIPaddressoftheXT2640andusethataddresstocommunicatewiththeXT2640via
theLANinterface.IfyouuseafixedmanuallyenteredIPthenthiswillnotchangeunlessthemanualconfigurationoftheXT2640is
changed,howeverusingDHCPitmayoccasionallychange(dependingonthespecificDHCPserver,itmayissuethesameIPaddress
eachtimeoritmaynot)andusingAuto‐IPitwillneverbethesameIPaddresseachtimethattheXT2640islinked.TheactualIP
addressoftheXT2640canbeviewedbypressingtheInterfaceInfoareaavailableonmostscreensandifcoloredorangethenit
shouldnotbeusedasithasnotbeenvalidated,typicallyitwillchangetowhitetextwithinafewsecondsatwhichtimeitmaybe
used.
Note:
IfusingAuto‐IPthenthetraffictoandfromtheXT2640shouldnotbeabletopassthrougharouter,sotheXT2640mustbe
localtothecomputer.
IfusingDHCPorAuto‐IPthenitmaytakesometimetoobtainavalidIPaddressafterattachmenttothenetwork.This
typicallytakesafewseconds,butcanoccasionallytakeconsiderablylonger.

Table of Contents