www.Siargo.com
MF4700UserManual
20
|
Page
5.5.3.Frame
TheframefunctionisbasedonthestandardModbusRTUframing:
Table5.4:framefunction
Start_bits Address
Functioncodes
Data CRC Stop_bits
T1‐T2‐T3‐T4 8bit 8bit N8bit(20≥n≥0)
16bit T1‐T2‐T3‐T4
Start_bits: 4periodsbittime,foranewframe.
Address: Theaddresscanbesetfrom1to255exceptfor157(0x9d).0isthebroadcastaddress.
Functioncodes: Definetheproduct(MF4700)'sfunctions/actions(slaves),eitherexecutionorresponse.
Data: Theaddressoftheregister,lengthofdata,andthedatathemselves.
CRC: CRCverificationcode.Thelowbyteisfollowedbythehighbyte.Forexample,a16bit
CRCisdividedintoBYTE_HandBYTE_L.Intheframing,theBYTE_Lwillcomefirst,then
followedbytheBYTE_H.ThelastoneistheSTOPsignal.
Stop_bits: 4periodsbittime,forendingthecurrentframe.
5.5.4.Functioncodes
The Modbus function codes applied for the product are the sub‐class of the standard Modbus
function‐codes.Thesecodesareusedtosetorreadtheregistersoftheproduct:
Table5.5:functioncodes
Code Name Functions
0x03 Readregister Readregister(s)
0x06 Setsingleregister Writeonesingle16‐bitregister
0x10 Setmultipleregisters Writemultipleregisters