S7 programming question

a changed somethinh in an existing program
I transfer a result of FB16 to DB75.DBD80

when i use status variable on this double data word i have the resukt in dec 118950 which is correct.


the problem is :
in DB 75 i declarated 80.0 as real
when monotoring al values show the result but the 80.0 remaines 0
What did i do wrong ?
 
Nothing is wrong, it's just that 118950 decimal is not valid as a floating point number so the DB editor can't show you a value. Instead it shows 0.0000e+000 (rather than 0.0). Try monitoring the value in a VAT table as floating point - the VAT table will show the value as a double word, again because it is not a valid floating point number.
 

Similar Topics

This is probably a dumb question but I'm a student and using the Click software for a project. I'm trying to understand the different data types...
4
Replies
1,554
Views
I'm doing a student project and using the free click programming software but I do not physically have a plc. I'm trying to use the math function...
4
Replies
947
Views
I am required to design a program using only XIC, XIO, OTL, and OTU instructions using RSLogix500.Any help out there I’m new to this . Thanks a...
4
Replies
678
Views
I'm been deciphering a program for a press here. I've gotten most of it deciphered using the manual to understand the instructions (first mitsu...
11
Replies
3,385
Views
Hello. Was just curious, if it is possible to load an image from an SD card on to a Compactlogix PLC that came straight out of the box brand new...
4
Replies
1,444
Views
Top