The float value will be sent out as two 16-bit integers. When sending data out of the ProSoft module or gateway, the Float value will have been stored in the memory as two 16 bit integers, rather than a single float. You can swap the two words, the bytes within the words, or both.Ĭheck the user manual of your specific module for more information on swap codes. You may need to try a different ‘Swap Code’ parameter for each MCM Command that is reading a float via Modbus. There may be an issue with the order in which the bytes and/or words were placed when converting to a float. Not all pairs of integer values will comprise a valid float, so it is possible that the resulting float value is not valid. A Length of '1' means the logic will use 2 consecutive integers starting at to create a single floating point, or “ REAL” data tag. ![]() It is the datatype of the destination tag specified by the COP statement that dictates the Length parameter. ![]() ![]() Specifically, will contain the value 28836 and will contain 16709.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |