tcf24m
Member
Hi,
I am using VB6 and a MicroLogix 1500. Communicating is fine but when I try to read a Float somethings not right. If I read a simple value like 10 it works but if I try to read a value like 5000 I get 4992 or if I try and read 1.2 I get 1.195313. The boss had a driver he bought from http://blftech.com/ a couple of years ago. When you do a read the values just end up in an array and I am just dumping what is in the array onto the screen.
Anybody with have some experience with this, do I have to convert what I read from to PLC into a format the computer understands, Seems weird that the values I am reading are so close to whats in the PLC.
Tom
I am using VB6 and a MicroLogix 1500. Communicating is fine but when I try to read a Float somethings not right. If I read a simple value like 10 it works but if I try to read a value like 5000 I get 4992 or if I try and read 1.2 I get 1.195313. The boss had a driver he bought from http://blftech.com/ a couple of years ago. When you do a read the values just end up in an array and I am just dumping what is in the array onto the screen.
Anybody with have some experience with this, do I have to convert what I read from to PLC into a format the computer understands, Seems weird that the values I am reading are so close to whats in the PLC.
Tom