EasyManua.ls Logo

Ados T060E - T060 E MODBUS Protocol Communication

Ados T060E
62 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...
1569PT060EE1 Rev.7 Page55of62
6.4 Bi-directional modality with MODBUS protocol
TheRTUversionofMODBUSisused.
Receivedandtransmittedframestructure.
Generalframestructureisasfollows:
ADRESS FUNCTION DATA CHECK
8bits 8bits Nx8bits 2x8bits
ADDRESS FUNCTION DATA CHECK
8bits 8bits Nx8bits 2x8bits
ADDRESS 8bitdefiningtheslaveaddressandrangingfrom1to32
FUNCTION 8bitdefiningtherequiredfunction.
ThefunctionssupportedbyT060Earethefollowing
Code03ReadHoldingRegisters
Code05ForceSingleCoil
DATA Alldatarelevanttothespecificfunction
CHECK CRC16
(CyclicRedundancyCheck)framevalidation
Exceptionresponses
WhenT060Ereceivesarequestinvolvingillegalfunctionsorillegaldataanexceptionresponseisgeneratedcontaining
address,functioncode,errorcodeandchecksum.
Toindicatethattheresponseisanotificationofanerror,thehighorderbitofthefunction
codeissetto“1”.
Supportederrorcodeare:
01 Illegalfunction.Themessagefunctionreceivedisnotanallowableactionforthe
addressedslave.
02 Illegaldataaddress.Theaddressreferencedinthedatafieldisnotanallowable
addressintheaddressslavelocation
03 Illegal
datavalue.Thevaluereferencedinthedatafieldisnotallowableinthe
addressedslavelocation
T060Esupportedfunctions
ForacompletedescriptionofMODBUSavailablefunctions,pleaserefertodetailedMODBUSdocumentation.
Function03‐ReadHoldingRegisters
Allowsthehosttoobtainthebinaryvalueof
thecontentofT060Eregisters
Allregisterscanbetransferredinasinglereadrequest.
Thebelowexamplereadsregisters0through2fromslave01:
ADDR FUNC START
REGHI
START
ERG
LOW
#OF
ERGHI
#OF
ERG
LOW
CHECK
01 03 00 00 00 03 05CB
Slaveanswerisasfollows:
ADDR FUNC BYTE
COUNT
REG
0
HI
REG
0
LOW
REG
1
HI
REG
1
LOW
REG
2
HI
REG
2
LOW
CHECK
01 03 06 00 0F 00 00 01 C0 74B4
Valueofregister0is15,register1is0andregister2is448.


Table of Contents

Related product manuals