double precision arithmetic

aracioppi

Member
Join Date
Mar 2004
Posts
35
Are there standard libraries that manage double precision arithmetic (64 bits float) in SCL or similar for the S7400 PLC (that manages float of 32 bits)??

Any ideas??
 
I`m not sure, but think F8 files in rslogixs do the same thing as double word in say directsoft PLC direct.
 
F8 files in SLC/500 PLC's are 32 bit Floating Point numbers. This is the equivalent of Single Precision floating point numbers.
 
ndzied1
I understand what you say, but apparently you don´t understand my question.
I need to do some basic double precision arithmetic in a PLC that just manages single precision. That´s why I was asking if anyone knows a method to do that

Thanks anyway
 
Sorry, I was responding to ts and his comments.

I think you're going to have to do some experimentation with the data you have and the information given to you in this thread.

What does the hex value of your data look like? Can you post some examples of hex data and expected decimal values. There are people here who love to play with stuff like this but you need to throw the dogs some bones to chew on so to speak.

nOrM
 
norm: thanks for you answer.
Let´s say I need to substract lat and long, the values of them are:
arTramaGpsIn[36]:=16#a1; //lat1
arTramaGpsIn[37]:=16#1f; //lat2
arTramaGpsIn[38]:=16#2; //lat3
arTramaGpsIn[39]:=16#9c; //lat4
arTramaGpsIn[40]:=16#e5; //lat5
arTramaGpsIn[41]:=16#8e; //lat6
arTramaGpsIn[42]:=16#49; //lat7
arTramaGpsIn[43]:=16#40; //lat8
arTramaGpsIn[44]:=16#d7; //lon1
arTramaGpsIn[45]:=16#40; //lon2
arTramaGpsIn[46]:=16#b7; //lon3
arTramaGpsIn[47]:=16#c4; //lon4
arTramaGpsIn[48]:=16#72; //lon5
arTramaGpsIn[49]:=16#82; //lon6
arTramaGpsIn[50]:=16#5c; //lon7
arTramaGpsIn[51]:=16#c0; //lon8
beeing lat1 and lon1 the LSB of two 64bits floating point numbers, I mean lat= H40498EE59C021FA1 and long =HC05C8272C4B740D7 (remember sign, exponent, etc)
Now, how do I substract those two numbers if my PLC doesn´t deal with double precision?
Thanks again
 

Similar Topics

Is there any simple way to convert a Double precision floating point to a single precision float due to the Micrologix limitation that it only...
Replies
2
Views
1,591
Hi All, I am reading in four 16 bit signed numbers over modbus into four memory locations in RSLogix 5000. This is the value for the Standard...
Replies
6
Views
6,070
What is the simples way to do a double click of a button in a ladder logic. New here and I hope this has not been asked before.
Replies
22
Views
534
Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
800
Hi! I am using a TM200CE40T PLC from Schneider to write data over Modbus. I have used Memory words (%MW) before using the Write variable...
Replies
1
Views
534
Back
Top Bottom