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

Pages: 1 [2]
16
Support Questions / MessageListByValue and ModbusTCP
« on: January 28, 2015, 01:57:08 AM »
Dear all,

I am using version 3.97d.
Got an issue with MessageListByValue + ModbusTCP comm.
I have setup some messages in the collection, and set the BackColor as RED.
However, when the particular message appears during runtime, the backcolor is transparent.

Then trying to use Highlight key character color as well.
So, in my message I put ! character, and by default the setting of highlight color is RED.
But still when the message occurs, the backcolor is transparent.

Please advise how to apply some background color to MessageListByValue.
I expect this component to be Alarm System, so it might require color.
Thank you.


Best regards,
Andrew




17
Support Questions / InvalidOperationException OnDataReceived ModbusBase
« on: January 27, 2015, 11:41:46 PM »
Dear all,

I am using version 3.97d.
Basically, I have BasicLabel which requires to be hide and shown in certain condition.
I dragged Timer object into the form and put the code inside so it will continuously detect this condition.

Code: [Select]
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Try
            Dim temp As Integer = Integer.Parse(ModbusTCPCom1.Read(414940))
            If temp < 0 Then
                Me.FWD_Indication.Show()
                Me.AFT_Indication.Hide()
            ElseIf temp >= 0 Then
                Me.AFT_Indication.Show()
                Me.FWD_Indication.Hide()
            End If
        Catch ex As Exception

        End Try
    End Sub

However, it always returns InvalidOperationException (pls refer to attachment for details).
Is there any other solution besides using BasicLabel and put the above code using Timer?
Please advise, Thank you.

Best regards,
Andrew

18
Support Questions / IndexOutOfArrayException on Modbus Bit Address
« on: December 11, 2014, 04:32:38 AM »
I am basically using Modbus bit address feature to implement program for controlling valve open and close.
One case: To open using 40001.0 and To close using 40001.2, and the signal is "pulse".
So I created one function which simply reads the current value of addr (40001) and manipulate it with value of the bit.

Code: [Select]
Private Function Modify(ByVal addr As String, ByVal value As Integer)
        'Try
        Dim tempStr As String = MainForm.ModbusTcpCom1.Read(addr)
        Dim currValue As Integer = CInt(tempStr) + value
        tempStr = CStr(currValue)
        MainForm.ModbusTcpCom1.Write(addr, tempStr)
        'Catch ex As Exception
        'End Try
        Return 0
    End Function

Then, I create pop-up window that simply consists of 2 buttons, OPEN and CLOSE.
As mentioned, it is a pulse signal, so when user release/up the button, value will be reset.

Code: [Select]
Private Sub Button2_Down(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OPEN_BTN.MouseDown
        If MainForm.ValveNo = 1 Then
            Modify(40001, 1)
        End If
    End Sub

    Private Sub Button2_Up(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OPEN_BTN.MouseUp
        If MainForm.ValveNo = 1 Then
            Modify(40001, -1)
        End If
    End Sub

    Private Sub Button3_Down(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CLOSE_BTN.MouseDown
        If MainForm.ValveNo = 1 Then
            Modify(40001, 4)
        End If
    End Sub

    Private Sub Button3_Up(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CLOSE_BTN.MouseUp
        If MainForm.ValveNo = 1 Then
            Modify(40001, -4)
        End If
    End Sub

Functionally it works fine.
Then, after doing some arbitrary test, by pressing the button many times OPEN, CLOSE, OPEN, CLOSE, ...
At certain point, the program stops and indicates IndexOutOfArrayException.

Please help to advise solution regarding this matter.
Thank you.


Best regards,
Andrew

19
Feature Request / Redundant CommComponent
« on: November 28, 2014, 01:04:51 AM »
Dear Archie,

Is there any solution to handle redundant communication?
For example there are 2 ModbusTCP communications.
When no.1 is primary, CommComponent in all components will be ModbusTCPCom1.
When no.2 is primary, CommComponent in all components will be ModbusTCPCom2.

I am thinking about putting Script in Timer:
1. Declaring all components and set its CommComponent according to primary indication
Bottleneck: if there are a lot of components, the script will be very long
2. Modify ModbusTCPCom IP Address based on primary indication.
So, there will be only 1 ModbusTCPCom instantiated in the program.
Bottleneck: not sure if this solution is feasible. And, if CommComponent is different (example TCP and RTU), this solution might not work.


Best regards,
Andrew

20
Support Questions / ImageDisplayByValue
« on: November 27, 2014, 09:10:48 PM »
Dear all,

Currently I use the latest version AdvancedHMIBetaV384, and the problem that I got in previous version still exists.
Basically I use ImageDisplayByValue and change the property 'Image' with my .png file.
I have copied my .png file to Resource folder, and save the project.
When it is running, the image is shown, which is correct.

I tried to close the whole program (visual basic), before that I saved already.
Then re-open the program, and my .png image is gone.
However, the ImageDisplayByValue is still there, and when I try to run, it is still showing.
So, in runtime there is no problem.
But the problem is in editor, I cannot see it, even in Properties 'Image', my .png file is also gone.
I tried using AdvancedHMILogo PNG but the result is still same.

Please advise the solution regarding this problem.
Thank you.


Best regards,
Andrew

21
Open Discussion / Commercial Software
« on: July 24, 2014, 06:00:01 AM »
Hi all,

I am new to AdvancedHMI. Before starting to use this software further, I would like to know anyone's opinion.
I just tried AdvancedHMI for several hours and I think this software is really great for rapid development.
I plan to introduce this to my colleagues and use it for development in our real project.
FYI, our project is targeted for industrial, so it is quite critical in terms of software reliability.

What do you guys think about it? Are AdvancedHMI safe enough to be used for this kind of purpose?
Maybe some experts can share their experiences here.
How about commercial terms? Any restriction besides GPL?
Thank you.


Best regards,
Andrew

Pages: 1 [2]