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 ... 6
1
Support Questions / Re: DataChangedCallBack Error
« on: November 18, 2015, 12:55:03 AM »
It looks like a fix was put in for this for the next version:
Code: [Select]
    Private Sub DataChangedCallBack(ByVal clientHandle As Object, ByVal requestHandle As Object, ByVal values() As Opc.Da.ItemValueResult)
        For i = 0 To values.Length - 1
            Dim ReturnedValues() As String = {Convert.ToString(values(i).Value)}
            Dim PolledAddress As PolledAddressInfo
            Try
                PolledAddress = DirectCast(values(i).ClientHandle, PolledAddressInfo)
            Catch ex As Exception
                Exit Sub
            End Try

Solved! Thank you.

2
Support Questions / DataChangedCallBack Error
« on: November 17, 2015, 11:17:07 PM »
Hi,

I use V399a, and OpcDaCom communication.
I got error (DataChangedCallBack) everytime calling Application.exit()
I already put try catch statement though but doesn't stop the error.

Please advise regarding this, refer to attachment for details.
Thank you.

Best regards,
Andrew

3
Support Questions / Re: Preloading Components
« on: November 11, 2015, 08:08:17 PM »
Unfortunately not. What do you have your PollRateOverride set to? Decreasing that number will make the subscription process go faster.

Currently the PollRateOverride is 500 (default value).
In that case, I will just create a dummy loading text to let user knows it's loading.

Best regards,
Andrew

4
Support Questions / Re: Preloading Components
« on: November 10, 2015, 07:11:51 PM »
To my knowledge there is no way to load a form without showing it.

The reason the startup is slow is because upon the initial subscription, the OPC driver will perform a synchronous read to get the initial value. The read holds up the UI until they are complete.

Hi Archie,

Is there any features of showing loading bar for this purpose?
To let user know it is still loading.
Thank you.

Best regards,
Andrew

5
Support Questions / Preloading Components
« on: November 09, 2015, 05:16:35 AM »
Hi,

Is there any preloading technique at startup that includes all pages in one Application?
I found out when using OpcDaCom, the data is quite slow to be retrieved at the first time opening page.
So, I am thinking to put this loading time in the beginning of Application instead of when opening the particular page.
Thank you.

Best regards,
Andrew

6
Support Questions / Re: ModbusBase OnComError - InvalidOperationException
« on: October 07, 2015, 10:38:42 PM »
I will make sure in the next version that ModbusTCPCom has ConnectionEstablished and ConnectionClosed events

Looking forward, Thank you very much

7
Support Questions / Re: ModbusBase OnComError - InvalidOperationException
« on: October 07, 2015, 09:58:01 PM »
What you are seeing is that the newer version writes synchronously, so the screen will become unresponsive while waiting on the device to acknowledge the write. This is necessary because the buffer can be overflowed with writes when the controller doesn't respond or responds very slow. Or more commonly if a lot of writes are done in code, asynchronous writing would very quickly fill the queue and throw exceptions.

Ok, in this case I need to do something when communication with PLC is not established.
I cannot let user wondering why the HMI is unresponsive for such a long period.

Can you advise some codes to detect if ModbusTCPCom is available?
I will put condition with this in every button so that it prevents writing while no communication.
Thank you.

Best regards,
Andrew

8
Support Questions / Re: ModbusBase OnComError - InvalidOperationException
« on: October 07, 2015, 03:06:27 AM »
If I'm not wrong, the older version doesn't have this slow performance problem.
Because I was often testing without connecting to PLC.
Suspecting the application becomes slow due to communication checking?

9
Support Questions / Re: ModbusBase OnComError - InvalidOperationException
« on: October 07, 2015, 02:10:43 AM »
Add this conditional statement:

            If DirectCast(m_SynchronizingObject, System.Windows.Forms.Control).IsHandleCreated Then
                m_SynchronizingObject.BeginInvoke(errorsd, Parameters)
            End If
Doing few times testing with above code, result: no more error, thanks a lot.

But still if I click the BasicButton multiple times, the application becomes slow.
It seems like the click event is "queuing", as I can see the BasicButton animation when it is pressed.
For example, I click 4 times, then the application becomes slow for about 4-6 seconds,
after the BasicButton changing state 4 times, then the application runs back to normal.
More click will take longer period of the slow performance.
Please help to advise, thank you.

Best regards,
Andrew

10
Support Questions / ModbusBase OnComError - InvalidOperationException
« on: October 07, 2015, 01:33:34 AM »
I am using V399a, got error when pressing BasicButton while Modbus comm not established.
The BasicButton has the following script to reset value after releasing the click:
Code: [Select]
Private Sub OPEN_BTN_MouseUp(sender As Object, e As EventArgs) Handles OPEN_BTN.MouseUp
        Try
            ModbusTCPCom1.Write(OPEN_BTN.PLCAddressClick, "0")
        Catch ex As Exception

        End Try
    End Sub

Already put try catch statement, but if I click the BasicButton few times,
the application will become slow, then InvalidOperationException occurs (refer to attachment).
Please advise regarding this, Thank you.

Best regards,
Andrew

11
Support Questions / Re: Indicator PLCAddressVisible in FALSE state
« on: October 04, 2015, 09:59:24 PM »
Precede your address with NOT, for example

NOT B3/0
NOT MyBoolTag
NOT 00001

It works, thanks a lot.

12
Support Questions / Indicator PLCAddressVisible in FALSE state
« on: October 02, 2015, 03:18:54 AM »
Is there any built-in property to make indicator visible in False state instead of True?
Thank you.

Best regards,
Andrew

13
Feature Request / BasicDataLogger OverwriteEnabled
« on: September 08, 2015, 02:04:32 AM »
Dear Archie,

Is it possible to add OverwriteEnabled property in BasicDataLogger?
Currently it only can write up to MaximumPoints, it would be nice for datalogging to have this option.

In addition, for BasicDataLogger2, it would be very good if there is 'label' property when declaring PLCAddressValueItems.
And these labels will be printed in the first line of datalog result.

The 2nd feature ('label') is not very important, but the OverwriteEnabled might be very helpful.
Thank you.

Best regards,
Andrew

14
Feature Request / Re: Redundant CommComponent
« on: September 08, 2015, 01:51:54 AM »
Hi,
Have you progressed at all with this redundancy feature?
I am trying to do something similar (by trying to do modbus device discovery) to find  a modbus device ID (which isnt known)
Ian

You may use the 2nd method.
Modify ModbusTCPCom IP Address based on primary indication.

You only need to create one ModbusTCPCom.
Use DataSubscriber component to get the primary indication.
Write script to assign IP address to ModbusTCPCom based on primary indication.

15
Support Questions / Re: Form Exit Suddenly
« on: August 25, 2015, 03:48:15 AM »
Ok, thanks Archie.

Pages: [1] 2 3 ... 6