When I set the current to the PSU to 1.4A, with setCurrent holding 0x31 (value) *1000 the readback with setCurrent? holding? 0x31 /1000 produces: 1.4000000000000001
Command window:
;; I83010: Tx <setCurrent 1.4>
;; I83010: Tx <holding 0x31 1.4 *1000>
;; COM6: Tx: 01 06 00 31 05 78 DB 77
;; COM6: Rx: 01 06 00 31 05 78 DB 77
;; I83010: Tx <setCurrent?>
;; I83010: Tx <holding? 0x31 /1000>
;; COM6: Tx: 01 03 00 31 00 01 D5 C5
;; COM6: Rx: 01 03 02 05 78 BB 36
;; I83010: Rx <1.4000000000000001>
;; I83010: Rx as number <1.4000000000000001>Log file:
;; I83010: Tx <setCurrent 1.4>
;; I83010: Tx <holding 0x31 1.4 *1000>
;; COM6: Tx: 01 06 00 31 05 78 DB 77
;; COM6: Rx: 01 06 00 31 05 78 DB 77
;; I83010: Tx <setCurrent?>
;; I83010: Tx <holding? 0x31 /1000>
;; COM6: Tx: 01 03 00 31 00 01 D5 C5
;; COM6: Rx: 01 03 02 05 78 BB 36
;; I83010: Rx <1.4000000000000001>
;; I83010: Rx as number <1.4000000000000001>Is that a bug or is it casued by my PSU ?
It happens only when I have *1000 or /1000, I never see it with *100 or /100.
Sometimes the "1" at the end of the value is a "2".
It does not happen if I set to 1.5, so certain values are affected.
It also happens with holdingL? and holdingL.
Seams like some rounding problem,,,,
