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.


Messages - andrew_pj

Pages: 1 [2] 3 4 ... 6
16
Support Questions / Re: Form Exit Suddenly
« on: August 24, 2015, 10:30:19 PM »
Thanks, now I can open Visual Studio and run the application.

Do you have suggestion for the FormChangeButton?
I understand if it has some delay to support transition.
But when the application exit suddenly, end-user will be confused and think of it as bug.

Best regards,
Andrew

17
Support Questions / Re: Form Exit Suddenly
« on: August 24, 2015, 09:02:22 PM »
Hi Archie,

I changed until ht.Interval = 10, but at some point the form is still closed.
Then I tried changing to 0 and test again, but suddenly the Visual Studio crash.

Now everytime I open AdvancedHMIv35.sln, it is always crash.
So I debug, and the error in attachment appears.
Please advise the solution.
Thank you.

Best regards,
Andrew

18
Support Questions / Form Exit Suddenly
« on: August 24, 2015, 05:15:32 AM »
I am using AHMI-V398t, I have 2 forms: form 1 and form 2.
Form 1 has FormChangeButton component to navigate to Form 2.
Form 2 has FormChangeButton component to navigate to Form 1.

I try navigating continuously from Form 1->Form 2->Form 1->Form 2->etc...
This works fine if I let to have some delay in between (about 1 second).
But if I rapidly navigate, the Form will exit automatically.
No error message, nothing.

Please advise a solution regarding this.
Thank you.

Best regards,
Andrew

19
Support Questions / Re: OpcDaCom Issue - AHMI_V398t
« on: July 26, 2015, 09:05:27 PM »
I got the same error when trying to connect from a computer to an OPC Server that is on a laptop.

What computer is your OPC Server installed on?

From your picture, OPCServerPath points to a localhost and if you are using the same setting on both computers and your OPC Server is installed only on one, that would be the reason for the error.

I installed OPC Server on both laptop and computer.

For OPC Server, I am using ICONICS Modbus Configurator.
http://www.iconics.com/Home/Products/OPC-Connectivity/Free-OPC-Tools.aspx#.VbWC9LOqqko

Quote
You would need to make sure that your OPC Server is visible on the network and then you could try setting a proper OPCServerPath.

Could you advise some steps on how to do above?
Specifically where is the network that you mean?
Thank you.

Best regards,
Andrew

20
Support Questions / OpcDaCom Issue - AHMI_V398t
« on: July 24, 2015, 05:14:38 AM »
Currently I have issue with OpcDaCom.
I have developed using OpcDaCom since 6 months ago and worked properly in my laptop.
Now, I run the same program in new installed computer, but unable to work.

The error message appears in BasicLabel:
"CoCreateInstaceEx Access is Denied"
This error comes out only once, then the following error message appears continuously:
"Object reference not set to an instance of an object"

This is strange because I run the program at the same time in my laptop, but no error message.
The OPCServer indicates correct value in both computer and laptop, but unable to read with AHMI in computer.

Please help to advise regarding this issue.
Refer to attachment for the OpcDaCom Properties (it works in laptop, but not in new computer).
Thank you.

Best regards,
Andrew


21
Support Questions / Re: Microsoft Visual Basic 2010 Express
« on: June 18, 2015, 10:29:58 PM »
Here is the link for Microsoft Visual Basic 2010 Express SP1 installer.
It works for the latest version of AdvancedHMI.

https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=23691

22
Support Questions / Re: InvalidComObjectException - OpcDaCom
« on: June 10, 2015, 12:08:36 AM »
So far no more error, Thanks.

23
Support Questions / InvalidComObjectException - OpcDaCom
« on: June 09, 2015, 02:03:42 AM »
Dear Archie,

I am using V398m, and OpcDACom communication protocol.
I got this InvalidComObjectException error 'sometimes', right after I execute Application.Exit()
It's actually not a major problem as in this case User wants to exit anyway.
But, it would be better if it's not happening at all.

Code: [Select]
Try
   Application.Exit()
Catch ex As Exception

End Try

Please advise if you have explanation or trick to prevent this error.
Thank you.

Best regards,
Andrew

24
Thanks, Archie.

25
Just downloaded V398m, and try with 'U40001' instead of '40001'
Result : OK

But I'm wondering, why only bit 15 needs to have 'U', others (bit 0~14) not required ?
And this is only for WriteValue, for ReadValue I can use 40001.15 without 'U'

26
Support Questions / ModbusTCP WriteValue Bit 15 - OverflowException
« on: June 04, 2015, 03:52:00 AM »
Dear Archie,

I am using V398g, ModbusTCP, and got an OverflowException when trying to WriteValue with Button.
Basically I have 16 Buttons, the first 15 works fine. Writing value to address 40001:
Button0 = 1
Button1 = 2
Button2 = 4
Button3 = 8
Button4 = 16
....
Button14 = 16384
Button15 = 32768

Got an error when pressing Button15 (32768), refer to attachment.
Please advise the solution.
Thank you.

Best regards,
Andrew


27
Feature Request / Re: PLCAddressMaxValue for BarLevel
« on: May 14, 2015, 12:36:45 AM »
The InvalidCastException error has gone now.
But with below codes, I get wrong Maximum value (see attachment).
Without below codes, I get correct Maximum value, but no ValueScaleFactor.

Code: [Select]
Public Shadows Property Maximum As Single
        Get
            Return MyBase.Maximum / m_ValueScaleFactor
        End Get
        Set(value As Single)
            MyBase.Maximum = value * m_ValueScaleFactor
        End Set
    End Property

28
Feature Request / Re: PLCAddressMaxValue for BarLevel
« on: May 13, 2015, 01:55:54 AM »
Dear Archie,

I got an InvalidCastException error after that.

Here is my additional codes in barlevel.vb:

Code: [Select]
     Public Shadows Property Maximum As Single
        Get
            Return MyBase.Maximum / m_ValueScaleFactor
        End Get
        Set(value As Single)
            MyBase.Maximum = value * m_ValueScaleFactor
        End Set
    End Property

    '*****************************************
    '* Property - Address in PLC to Link to
    '*****************************************
    Private m_PLCAddressMaximum As String = ""
    Public Property PLCAddressMaximum() As String
        Get
            Return m_PLCAddressMaximum
        End Get
        Set(ByVal maximum As String)
            If m_PLCAddressMaximum <> maximum Then
                m_PLCAddressMaximum = maximum

                '* When address is changed, re-subscribe to new address
                SubscribeToCommDriver()
            End If
        End Set
    End Property

29
Feature Request / Re: PLCAddressMaxValue for BarLevel
« on: May 12, 2015, 04:55:59 AM »
Dear Archie,

Thanks for the tips, it is working with ScaleFactor 1.
In my case, the ScaleFactor is 0.1, so I need to have another property of MaximumScaleFactor.
Please advise, Thank you.

Code: [Select]
'*****************************************
    '* Property - Address in PLC to Link to
    '*****************************************
    Private m_PLCAddressMaximum As String = ""
    Public Property PLCAddressMaximum() As String
        Get
            Return m_PLCAddressMaximum
        End Get
        Set(ByVal maximum As String)
            If m_PLCAddressMaximum <> maximum Then
                m_PLCAddressMaximum = maximum

                '* When address is changed, re-subscribe to new address
                SubscribeToCommDriver()
            End If
        End Set
    End Property

30
Feature Request / PLCAddressMaxValue for BarLevel
« on: May 12, 2015, 01:39:39 AM »
Dear Archie,

BarLevel component has PLCAddressValue which displays present value of the address.
In some cases, it is required to dynamically change the Bar's maximum value.
Please advise if possible to implement PLCAddressMaxValue.
Thank you.

Best regards,
Andrew

Pages: 1 [2] 3 4 ... 6