Siemens S5 Floating Point Format

deyoungkr

Member
Join Date
Mar 2005
Posts
1
Does anyone know where I can find a complete description of the S5 floating point format. I am not a PLC programmer but must interface to a number of S5 PLCs and must convert their internal S5 Floating format to IEEE single precision floating point. I especially need information regarding negative exponent and negative mantissa handling.
 
Here is the format from a siemens manual v=sign bit:

s5float.JPG
 
Last edited:
Most PLCs, including Simatic S5 (135U and up) and S7, use the IEEE FP 32-Bit binary memory format to work with REAL numbers:

(-1^s)*(1.f)*(2^e-127) for e=1..254 (normalised numbers) or (-1^s)*(0.f)*(2^-126) for e=0 (denormalised numbers).

Simon, I don't know in what Siemens manual you've found that picture, but that's not what I've found in the on-line help in STEP 7 V5.3. I've attached that info in a PDF file.

Kind regards,
 

Similar Topics

Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
0
Views
26
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
2
Views
63
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
155
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
108
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
329
Back
Top Bottom