Help me with number format (S7)

Labotomi

Member
Join Date
Jul 2003
Location
College Station, Texas
Posts
38
I'm trying to get information from a GE Multilin into and S7-300. I'm not too familiar with Siemens and need help with the number format that I'm getting from the Multilin.

16 bit unsigned: INT
16 bit 2 decimal places: ?
2s compliment signed: ?

I'm just looking at what format I need in the S7 so that I have useful values to work with.

Any help would be greatly appreciated.
 
A 16-bit unsigned integer should be interpreted as a value between zero and 65,535. The MSB of the word is interpreted as 2 raised to the fifteenth power (32,768).

A 16-bit signed (2s complement) integer should be interpreted as a number between -32768 and +32767. The MSB of the word is interpreted as the sign. This is the standard method of encoding negative integers.

16-bit, 2 decimal places means interpret the value as an integer, but assume a decimal point between the second and third digit. Tbus the integer value 314 should be interpreted to mean 3.14.
 
So the twos compliment binary number address would be of type INT.

What type would the 16 bit unsigned values and the 16 bit with 2 decimal places?

I guess I'll need to do some math to get the decimal places in there unless there's a conversion somewhere.
 

Similar Topics

I am new to micrologix 850 cpu. Please help on sorting numbers in array. i want to sort in ascending order.
Replies
2
Views
2,095
Finally someone has made it. :yeah: Credits: http://xkcd.com/
Replies
9
Views
2,639
I have some contactors and I need to know the coil voltage, but they're obsolete and I haven't had any luck searching the web. Telemecanique...
Replies
5
Views
2,702
Help on PLC -number input to register This is in a Cryogenics application... Type T Thermocouples...I have Wonerware 8.0 HMI and a Modicon...
Replies
0
Views
2,778
What is the best way to remove the whole number from a floating point so i can do a math function on just the decimal with a allen bradley 5/05...
Replies
3
Views
2,471
Back
Top Bottom