Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - drksam

Pages: [1]
1
Support Questions / modbus values?
« on: January 07, 2016, 09:37:37 AM »
Hi everyone
I have a question about the data being returned to my hmi but first a little background. I have advanced hmi running perfectly connected to an arduino mega with an Ethernet shield. Everything works fine there the values it returns (0 to 50 Amp) are fine and the meters read the same as the serial out on the arduino. The problem comes when I try to talk to an automation direct plc I see the data from the correct register but it is formatted strange. example a value that should be 31 is 49 and a value that should be 16 is 22. In the automation direct software data view i can swap between data types and i see that when it is displayed correctly the data type is (BCD/Hex). I can change that to (Decimal) and i see the same thing Advance HMI is displaying. So i know that it is working properly but i need to be able to display the 31 and the 16 as 31 and 16. I have read around and found the modification to the .vb file that should work but in the version of Advanced HMI that i have line 326 in the panel meter vb file isnt the same as the example. Also it would be nice to be able to just modify one meter not a global meter change as I plan to use one HMI project to display and interface to 3 devices arduino automation direct plc and a delta plc (if possible).

2
Support Questions / MODBUS TCP returning crazy results
« on: May 27, 2014, 01:10:14 PM »
Hi, first i love the software. I am fairly new to the modbus vb world but have been working with ladder logic programs and arduino for years. I have an automation direct DL205-1 plc with a ECOMM100 ethernet card. When i read a value from the plc with AdvancedHMI it does return a value. When the value is a single digit it seems to be ok but with two or more digits it seems to add something together. Perhaps its a DEC VS HEX thing but i have no idea where to look. Also the modbus address for that ethernet card seems to have address values of less than 5 digits for the input and output coils. So i get an error when i try to call or send a value. I have attached a screenshot with a few digital meters and the data view from DirectSOFT to show my problem the modbus address starts at 40769 and is 14 consecutive addresses. The meters are left to right row one then two. The data view is the PLC addresses to the corresponding modbus addresses.

Pages: [1]