Datasheet
9/29/2015 ETH0621
http://www.robotelectronics.co.uk/htm/eth0621tech.htm 7/11
4A 32
send1torequestroughcurrentmeasurementdrawnbythemotorin
mA(thisisveryroughatlowcurrents,butgetsmoreaccurateat
higherlevels)
Boardwillreturn2byteswiththehighbytefirstwhichforma16
bitinteger.
119 77
GETSERIALNUMBERReturnstheunique6byteMACaddress
ofthemodule.
121 79 PASSWORDENTRYseeTCP/IPpassword
122 7A GETUNLOCKTIMEseesectionbelow
123 7B LOGOUTimmediatelyreenablesTCP/IPpasswordprotection
ActiveandInactiveI/OWhatdowemeanbythat?
TheETH0621offerssimplededicatedoutputandinputports,anactiverelaywillbeinthepoweredcondition,an
activeinputwillbegettingover10vontheinput.
DigitalActive/InactiveCommands
Theseare3bytecommands:
Thefirstbyteisthecommand,32(activemeanson)or33(inactive).
Secondbyteistheoutputnumber,12fortherelays,910fordigitaloutputsor17forthemotordirection.
Thirdbyteistheontime.Setthistozeroforuntimedoperation,or1255forapulsein100mSintervals(100mS
to25.5seconds),thisisignoredinthecaseofmotordirection.
Forexample:
0x20Digitalactivecommand(on)
0x02Relay2
0x32(50)5seconds(50*100ms)
Boardwillreturn0forsuccess,1forfailure.
NoteAllbytesinacommandmustbesentinoneTCP/IPpacket.
Surgeprotection
Ifacurrentinexcessofapprox22AisdetectedtheETH0621willdisablethemotoroutputandsettheLSBinthe
modulestatusbyte.ToreturntheETH0621moduletonormaloperationrequiresapowercycleafterinvestigation
ofthecause.
TCP/IPPassword
Ifthisoptionisenabledinthehttpconfigurationpagethenapasswordwillberequiredtobeenteredbeforerelay
statescanbechanged.Inthefollowingexamplethepasswordwassetto"apple":
0x791stbyteinframesenttoETH0621toindicatepasswordentry
'a'(0x61)2ndbyteinframe(ASCIIhexequivalentinbrackets,fulltableisavailableat
http://www.asciitable.com/)
'p'(0x70)3rdbyteinframe
'p'(0x70)4thbyteinframe
'l'(0x6C)5thbyteinframe
'e'(0x65)6thbyteinframe
These6bytesarethentransmittedinthesametransactiontotheETH0621andifthepasswordiscorrectthen1
willtransmittedback,afailurewillsend2.
Theboardwillnowacceptchangesfromthedevicethatenteredthepassword.Ifcommunicationbecomesidlefor
morethan30secondsthenthepasswordprotectionisreenabled.Thereisalsoalogoutcommandof0x7Bto
enabletheprotectionimmediately.
GetUnlockTime
ReturnsTCP/IPpasswordprotectionstatus: