摘要 |
A Modbus data protocol register formatting system and method are disclosed. The system and method provide for the Modbus communications protocol request and recall of data stored in a register in the data base native format, and the conversion of the data into a different requested format. The system and method similarly provide f or the writing of data into a device register from a known variable format into the data base native format. The ability to convert the data by a format converter after recalling the data, or before storing the data, obviates the need to store or write data i n different or multiple formats. The inventive method uses a modified register mapping that comprises defined mapping elements identifying the data address location, the requeste d data format, along with the data variable. The register mapping is fully variable to provide for a wide range of data formats and data address formats. The inventive system uses, in addition to the Modbus master and slave devices, a format converter that converts the data recalled into the requested data format, or converts the data to be written into the slave device native data format.
|