Problem with Float type rounding to Integers

freddyrm

Member
Join Date
Jul 2014
Location
Rome
Posts
11
Hello, I have a (hope) simple problem with Logix500 (PLC is emulated with Emulate500) interacting with a VB6 program.
When I write in a Float data file a number with any decimal, it is rounded to an integer. Even if I edit the data file manually it rounds it every time.

It's me forgetting something or what? :confused:

Thanks in advance.
 
Hello, I have a (hope) simple problem with Logix500 (PLC is emulated with Emulate500) interacting with a VB6 program.
When I write in a Float data file a number with any decimal, it is rounded to an integer. Even if I edit the data file manually it rounds it every time.

It's me forgetting something or what? :confused:

Thanks in advance.

What are you using for communication between VB6 and the Emulate500?
RSLinx?
 
F8:0 ,F8:1,F8:2 I'm trying to write a number like xx.x which is supposed to be a temperature in C° when used in VB6
 
The PDF is referring to the possible differences between the PLC's CPU and the computer's CPU running the RSEmulate software.

I'm not saying this is your problem, but it may be.

CPUs.png
 
The PDF is referring to the possible differences between the PLC's CPU and the computer's CPU running the RSEmulate software.

I'm not saying this is your problem, but it may be.

Oh ok, i read that wrong.

That means we will never know => workaround :D

Thanks!
 

Similar Topics

Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
22
Views
447
On all pages of my project i have a lot of information, texts and details that should not not be shown. I can remove them for each part apart from...
Replies
0
Views
45
Hi, I have had problem with upgrading some projects from v16 to v18. I tried it on 3 diffrent computers. I want to post this so that anyone that...
Replies
3
Views
190
Hi, I am having a challenge installing a new drive ACS355-03E-44A0-4 as it keeps on displaying Fault code F00018 even when the load is not...
Replies
3
Views
149
I have an issue on my vessel, we have water tight door system created in China, company is no longer operating. We have 7 doors each with their...
Replies
4
Views
158
Back
Top Bottom