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 - rbelknap

Pages: [1]
1
Support Questions / Do-More and Modbus TCP Strings
« on: June 05, 2017, 02:20:12 PM »
I'm looking to use a (2) Do-More processors in a build and need to be able to send ASCII strings to them from AdvancedHMI, mainly model/serial numbers.

My original plan was to use Modbus TCP, but in looking at the manuals I don't see a way to send ASCII strings.

Am I seeing this wrong?  or will it just work.

I have the hardware already, but haven't had a chance to hook anything up yet.

Is my only other option to go through the serial port?

2
Support Questions / Charge Controller Communication
« on: February 03, 2017, 12:38:45 PM »
I'm trying to communicate with a Midnite Classic 150 Charge Controller.
I have it setup to charge batteries from a solar array.

I'm using the Modbus TCPIP driver, but think I'm messed up in how to address the registers.

For example the Modbus spec for it shows Register 4101 is the PCB version. 
It's a 16 bit register and I can't seem to make it work.

It's been a bit since I tried it, but I just had a basic label on my form with addresses like:
4101
40101
44101
etc. 

I think if I can get my head wrapped around how to form the address I can make it work.
Any help is much appreciated.

3
Open Discussion / ModbusTCP and Tag Database
« on: November 09, 2015, 08:21:38 AM »
I'm working on my first AHMI app.  I'm going to use the ModbusTCP driver to talk to an AutomationDirect PAC3000.  The PAC sofware automatically creates a CSV tag file when you save the program.  I want to use this as my Tag database for the HMI program.

I have a bunch of tags that I use in code, so I'm going to read the CSV file and put anything that has a modbus address in a dictionary object.  Then I can use the full tag name in my program, which will make it a lot more readable, and use the dictionary object to translate it to the modbus address.

Now I'm wondering if I could do something similar for all of the onscreen controls.  I would pre-populate the controls with the tag names and then when the form gets created translate them with the dictionary and start the subscription.  I assume I can do this by using the DisableSubscriptions property?

Hopefully this makes sense.  I have a bunch of the code already worked out, just need to finish the details.

Rich

4
Open Discussion / MultiState Indicator based on Value
« on: November 05, 2015, 09:22:57 AM »
Archie,

You were a great help to me for the pilot light additions.

Now I would like to create a control, similar to the Basicindicator, but that could change the color and message based on a value property.

The MultiStateSelector has a property called states to set it up.  I've looked on the web, but can't seem to locate how I would go about implementing it on a new control.

My current need is for 5 "states" something like the following.

Value     Color     Message
0            Grey      Pending
1            Cyan     Testing
2            Green    Pass
3            Red       Fail
4            Yellow   Abort

It feels like it should be fairly simple, but I'm sure there is a lot more too it.

Thanks for any help you can provide.

Rich




5
Support Questions / 399a Pilot Light adds new Comm driver everytime.
« on: November 05, 2015, 09:04:18 AM »
There seems to be something in the OnCreateControl sub for the pilotLight control that causes it to create a new driver every time you place one on a form.
I replaced it with the OnCreateControl sub from the MultiStateSelector and it seems to have 'fixed' it for now.

Really just an FYI for the next release.


6
Open Discussion / Extending ADHMI Controls
« on: October 19, 2015, 11:39:10 AM »
I'd like to add a Label to the Pilotlight Control.

When the color changes it would display a piece of text, ie Open/Close, On/Off, Up/Down, etc.

I'm developing my first ADHMI project and like the looks of the pilot light, and would be using it for various different items.

I've written a lot of VB code over the years, but very few controls, and none in quite some time.

I tried looking for instructions on something like this, but couldn't find anything similar.

Thanks.

Pages: [1]