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

Pages: [1]
1
Support Questions / Modbustcpcom1.read not working in VBA chart component?
« on: February 26, 2015, 05:07:35 PM »
Archie,

Ive got another VBA chart display where there are 4 analog channels being read from an omega temperature device. All four channels update correctly in your Digitalpanelmeter component on the same form as the chart component, and update temperatures every 5 seconds. The panel meters work fine, so I know the Modbus ethernet addresses are correct.

But putting those same addresses in the Timer code below, the chart does not update. Any ideas? How can I check the variables valueZ1 to Z3 to see what is actually getting read from the omega?

Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        Dim valueZ1, valueZ2, valueZ3, valueZ4 As Single
        '* Z1-Z4 = the temperatures from the omega device
        Try
            valueZ1 = ModbusTCPCom1.Read("400005", 1)(0)
            valueZ2 = ModbusTCPCom1.Read("400006", 1)(0)
            valueZ3 = ModbusTCPCom1.Read("400261", 1)(0)
            valueZ4 = ModbusTCPCom1.Read("400262", 1)(0)
        Catch ex As Exception
            Exit Sub
        End Try

        '* Add the next point to the chart
        Chart1.Series(0).Points.Add(valueZ1)
        Chart1.Series(1).Points.Add(valueZ2)
        Chart1.Series(2).Points.Add(valueZ3)
        Chart1.Series(3).Points.Add(valueZ4)

        '* Do not let more than 500 point be on the chart
        If Chart1.Series(0).Points.Count > 500 Then
            Chart1.Series(0).Points.RemoveAt(0)
            Chart1.Series(1).Points.RemoveAt(0)
            Chart1.Series(2).Points.RemoveAt(0)
            Chart1.Series(3).Points.RemoveAt(0)
        End If
 End Sub

2
Archie,

I was updating my solution to 3.97e from 3.96a and got new forms imported no problem. But when I went to build, it would not accept the items I have in the "resource" folder:

this is from one of the designer forms that wont build:

 Me.ImageDisplayByValue2.ForeColor = System.Drawing.Color.WhiteSmoke
        Me.ImageDisplayByValue2.HighlightColor = System.Drawing.Color.Red
        Me.ImageDisplayByValue2.HighlightKeyCharacter = "!"
        Me.ImageDisplayByValue2.Image =

       Global.MfgControl.AdvancedHMI.My.Resources.Resources._051560_glossy_silver_icon_natural_wonders_star6_ps

        Me.ImageDisplayByValue2.KeypadText = Nothing
        Me.ImageDisplayByValue2.KeypadWidth = 300

I have some small .png images (like 051560_glossy...above) that are part of my forms and they display fine before but now they wont build in the new rev. FYI the path to the new 3.97e solution is different than the old 3.96A one, but since I did a "add existing items" with these graphics resources to the new solutions resources folder, I would think VBA would know they were in the new location now.

Any ideas?

As always, thanks for the excellent software tools and support.

Here's the actual VBA error:

Error   4   '_051560_glossy_silver_icon_natural_wonders_star6_ps' is not a member of 'MfgControl.AdvancedHMI.My.Resources.Resources'.   
C:\Users\Desktop\AdvancedHMIBetaV397e\AdvancedHMI\formtest.designer.vb   864   41   AdvancedHMI





3
Support Questions / VB chart component scrolling x-axis?
« on: January 19, 2015, 05:15:53 PM »
AHMI folks,

Anyone know a good way to configure the VB chart component so the x-axis (time) will scroll off the screen to the left as new values populate the screen on the right side?  I did google this and there seem to be some half-examples of code which changes the min and max ChartAreas properties. Not a VB God here so a specific example showing how to implement this with using the VB timer (like in Archie's examples) control as the tick source would be great.

Archie, you may be working on a similar advanced trend control for later release, hopefully it will have lots of options to configure time-based trend scrolling, because although the VB chart is powerful, it really isn't that easy to use for time-based trending.

Thanks,
Doggo


4
Feature Request / basicdatalogger log more than one tag?
« on: December 21, 2014, 02:09:26 PM »
Archie,

Any chance of having the basicdatalogger log a collection or series of tags? One just isn't enough LOL. Just 5 or so would be great, in typical datalog row format:

HEADER DATE TIME TAG1NAME TAG2NAME ETC
ROW1 : DATE1, TIME1, TAG1, TAG2, TAG3 etc.
ROW2 : DATE2, TIME2, TAG1, TAG2, TAG3 etc.
ROW X...

I'm thinking basic datalog for Modbus RTU temperature controllers like fuji PXR series etc. Don't need a lot of tags for a single controller.

Regards, Doggo


5
Support Questions / Stacklight indicator
« on: November 25, 2014, 10:08:14 AM »
Archie,

How does the stacklight indicator in AHMI work? I can turn the entire light off and on by toggling the PLCAddressVisible property, but similar bits to PLCAddressAmber, Green etc have no effect.


6
Support Questions / AHMI runs on Win CE 6.0 with compact .net framework?
« on: November 22, 2014, 11:07:21 AM »
Archie,

What I'm really wanting to know is...can AHMI be made to run on RA Panelview 1500+?

Cheers,
Doggo

7
Is it possible to access (display with the Advanced HMI digitalpanelmeter indicator) any SLC 500 tags with the following RSLinx processor communication path?:

DT-STATION!AB_ETH-1\172.25.45.23\Backplane\0\CH A\4

This is a CLX processor and rack with a DHRIO card that runs out to a DH+ network composed of 10 or so SLC 5/04 racks.

0 is CH A
4 being the DH+ node address of the SLC 5/04 PLC.

Is any of this communication setup supported in AHMI?

Regards,

Doggo




Pages: [1]