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

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
5
Views
22
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
450
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
110
Hi, I have PLC S7-1200 and switch XC-208 and Iam trying to implement this SNMP library: SIOS I am not sure, what I am doing wrong, but there is...
Replies
3
Views
115
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
17
Views
642
Back
Top Bottom