Beijer Electronics (formerly QSI Corporation)

MBregisterV2 display loosing last 2 digits int32
Page 1 of 1

Author:  HmiBuilder [ Tue Mar 06, 2012 3:05 pm ]
Post subject:  MBregisterV2 display loosing last 2 digits int32

The MBregisterV2 object seems to loose the last two digits of a 9 digit 32bit integer. I do not get the loss of precision when a label to display the intValue of the MBvirtualRegister instead. I tried the virtual register after reading an earlier post where someone was getting a similar problem using "value" instead of "intValue" for a conversion to HEX. The virtual register does not have built-in label/display functionality like the MBregister object. It seems the MBregister object may be referencing "value" instead of "intValue" for its own conversion for display.

PS, the MBregister object can even be used to properly set a 32bit register with full precision. Only its display seems to be having problems.

Attached is code sample.

modbusinteger32test.qly [9.07 KiB]
Downloaded 237 times

Author:  Ron L. [ Wed Mar 07, 2012 12:54 am ]
Post subject:  Re: MBregisterV2 display loosing last 2 digits int32

What version of Qlarity Foundry are you using?

This is all you should need to display the value.
func ValueChanged()
    virtual_register_output.value = mbvirtualregister_1.strValue

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group