1569‐PT060EE1 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 CRC‐16
(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.