Floating point conversion from 32bit or 16bit

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
vbalan007
Posts:20
Joined: Fri Jul 28, 2017 7:11 am

Floating point conversion from 32bit or 16bit

Post by vbalan007 »

Hi,

I am trying to convert a value from PLC which is either 16 bit or 32 bit in to an floating point single precision value.

Are there any ready made function is available?

As of now I am planning to do the conversion manually ( using expressions) in control script. I have to store the converted value in a DP.

Are there any best way to do this?

Also are there any function available to convert from integer (both signed and unsigned) to a binary number?

Thanks,
Bala

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Floating point conversion from 32bit or 16bit

Post by Gertjan van Schijndel »

There is no need to manually do the conversion. Just assign the address config to a float datapoint element.

2 posts • Page 1 of 1