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

Hi! What is the way to convert the code from the Codesys code to the Tia Portal? Regards, WK
Replies
0
Views
43
Good Afternoon , It has been decades since I have done anything with Siemens . What is the Siemens name of their Servo Product Line and what...
Replies
10
Views
205
I'm using the Siemens PRONETA software to do some IO testing currently. I love the simplicity and fast testing capability. Does anyone know about...
Replies
0
Views
86
Hi, First time user of S5 Siemens. Is there any solution on how to solve this kind of error. HMI OP7 $613 DB-error No. 11 (0: 15) Siemens PLC...
Replies
9
Views
173
Hello, I have an issue where I want to simulate an Siemens HMI panel, through NAT connection to a PLC. I have the possibility through extended...
Replies
8
Views
244
Back
Top Bottom