DVPES32 PLC - Floating point problems

roro36

Member
Join Date
Apr 2011
Location
PMB
Posts
5
Ok, i'll start with what I can do:
ADD K1 D500 D500
That line adds 1 to register d500 and stores it back in register d500
Its a 16bit machine and when it comes to multiplying numbers its just not big enough. So I want to use the floating point number and have it stored across 2 registers.So we try a simple addition to see if we can get this to work:
DADDR F1 D500 D500
The line reads add floating point 1 to d500 and store it in d500. What gets stored in d500 however is something like 100234257523547, not quite what I was looking for?

Any clue?
 
I don't know your PLC but are you sure that the DADDR is meant for floating point addition? And are you viewing the result as a float and not as a double integer?
 
Why do you want it to be floating point, if you are only adding whole numbers and not fractions?

Are you using a one shot event to trigger the calculation? If not, your register will fill up very quickly.
 

Similar Topics

HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
7
Views
158
Hello, I have a Mitsubishi FX3G 14M PLC and a E615 HMI from Mitsubishi/Beijer. I'm using GXWorks 2 to do the programming and I have no problem...
Replies
4
Views
87
Hi, I'm trying to import a Rockwell/AB EDS to Beckhoff but I'm not sure how to import/install the EDS. It is a PowerFlex 525 EDS. Is there a way...
Replies
1
Views
90
I want to communicate my Q series PLC with Factory IO using GX works 2 software, I want to use modbus as server and the ips are as follows plc...
Replies
0
Views
59
Hi everyone. I'm trying to read values from a Loadcell with a 2080-TC card. I know the 2080-TC is a thermocouple card but it reads millivolts that...
Replies
4
Views
98
Back
Top Bottom