LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from negative single to unsigned 16bit integer

Solved!
Go to solution

Hi Saisravan,

 

So I need to give -ve values to drive...IE ABB ACS880 drive. My modbus function is unsigned 16 bit.

Read the manual of your ABB inverter!

It surely contains information on how to scale your float "ve" value to the U16 value you send over MODBUS…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 16
(297 Views)
Like this I'm converting SGL to I16....but I'm not getting exact values ...if give -10 means drive is setting -2000 rpm speed ...
Sravankumar Atla
CLD || CTD
0 Kudos
Message 12 of 16
(292 Views)
Is this right way to convert this...??
Sravankumar Atla
CLD || CTD
0 Kudos
Message 13 of 16
(287 Views)

Hi Saisravan,

 

I'm converting SGL to I16....but I'm not getting exact values ...if give -10 means drive is setting -2000 rpm speed ...

And what does the manual state about the conversion to U16 for this speed parameter?

 

When "set speed" is -10 then you get an I16 value of -31978. Is this the correct value expected by your inverter?

(I would expect an offset of 32768 instead of 31968: read the inverter manual (again)!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(283 Views)
Now Im getting correct values...Thanks for responding...!!
Sravankumar Atla
CLD || CTD
0 Kudos
Message 15 of 16
(267 Views)

Hi Saisravan,

 

do you mind to show your solution so others may learn from it?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 16
(263 Views)