This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Convert int16 to float16
#9
I've edited Daniel's example to use internal conversion function. You might have to use different swap parameter (w) depending on your ModBus device. Possible values: n (no swap), w (word swap), b (byte swap), bw (byte and word swap).
Reply


Messages In This Thread
Convert int16 to float16 - by fleeceable - 28.02.2020, 13:23
RE: Convert int16 to float16 - by Daniel - 29.02.2020, 09:24
RE: Convert int16 to float16 - by fleeceable - 02.03.2020, 14:26
RE: Convert int16 to float16 - by admin - 02.03.2020, 07:42
RE: Convert int16 to float16 - by Daniel - 02.03.2020, 15:33
RE: Convert int16 to float16 - by fleeceable - 02.03.2020, 16:58
RE: Convert int16 to float16 - by admin - 02.03.2020, 15:52
RE: Convert int16 to float16 - by Daniel - 02.03.2020, 17:10
RE: Convert int16 to float16 - by admin - 02.03.2020, 19:03

Forum Jump: