06-16-2006 03:39 PM
I am using LabVIEW 8.0 and communicating to a Honeywell PLC (HC900) using TCP/IP and the Modbus Protocol.
I have the Ethernet communications link setup properly and I'm communicating with the PLC as I can monitor a small program that the controller is running.
In LabVIEW, I have set up some shared variables, and deployed them with no problems.
Here's the rub: I have no problem controlling digital (On/Off) functions however the Analog functions are causing me grief. I can't seem to read back proper values.
I am curious if anybody has used a ModBus connection to a Honeywell PLC and can shed some light on Analog Shared Variables.
06-19-2006 07:29 PM
Hi Tariah,
Have you been able to track down where the numbers are wrong? Are wrong values coming into LabVIEW from the device or are they Shared Variables providing the wrong values. You can use probes and execution highlighting to find out where the numbers are going wrong. If they are wrong coming in from LabVIEW, have you confirmed that the values are correct directly from the device? I know you mentioned that the digital values were correct, but wanted to make sure with the analog values.
Also, how are the numbers wrong? Are they old values that could be an issue with buffering/retrieving data? Are they off by a certain value each time? Are the wrong values reproducible?
Anyway, please answer these questions and we can take a look further into the issue for you.
Have a great day!
06-20-2006 08:12 AM
06-21-2006 12:40 PM
Hi Tariah,
Thanks for the update! I am glad you got the shared variable/modbus part up and running. Let us know if you have any other questions!
Good luck and have a great day!
06-28-2006 03:46 PM
06-29-2006 12:44 PM
06-30-2006 10:37 AM
06-30-2006 05:36 PM
Tariah, hello.
In your previous post, you say everything works except writing to Modbus addresses of analog variables. This should not be the case. One thing you can check is to make sure the addresses you are writing to are not read-only addresses.
Another thing you can try to check is the "Access Type" of the sv. Make sure if you are writing, you make it a write only sv if you are reading from it, you make it a read only sv.
Besides that, I am not sure why you are not able to write analog values to your PLC.
Lastly, I am not entirely sure what you mean when you say "LV Shared Variables that are set up as doubles don't act like floating point doubles after I check the Bind to Source in the Shared Variables Properties" dialog. Does this mean that you are reading floating point values from different Modbus Addresses and they are being displayed as integers in LabVIEW? If you can expound on that, it will be helpful. As far as I know, when a sv is BOUND to a Modbus Address, you will get whatever value is in the address converted to whatever datatype your sv is configured as.
Regards,
Efosa O.
NIAE
07-03-2006 08:40 AM
I have tried every combination of "access type"...no luck. The PLC address are read/write, also.
As to the double shared variable issue, LV ships with a ModBus demo and the problem exists in that, also. Values such as 3.8 or 7.34 become 3 and 7 respectively. And this is with shared variables configured as "doubles". Even if I manage to get communication with the PLC working, this will be a show-stopper.
07-03-2006
07:39 PM
- last edited on
07-01-2025
11:02 AM
by
Content Cleaner
Tariah, hello. I hope things are going well.
I was wondering, what version of the DSC module are you using? I know that there were a lot of fixes when DSC 8.0.1 came out. I will really recommend you downloading and installing DSC 8.0.1 if you do not have it installed yet. Make sure you take a look at the Readme and you also have the necessary software installed.
Another thing will be to try communicating with another PLC if you have one. It really seems strange that you are able to write and read from the booleans, and read from the doubles, but not write.
Please keep us posted. Thanks
Efosa O.
NIAE