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 - carlos.lasan

Pages: [1]
1
Support Questions / Re: Correct use of Datasubcriber2
« on: December 09, 2020, 01:36:23 PM »
Archie: Yes, it is that later I must do more processes with the subscribed data.
specifically, mathematical calculations, maximum and minimum alarms and logger.
But as a first step I wanted to have individualized data.
But I already found the answer in one of your previous Archie posts: "DataSubscriber2 Walk Through" thank you very much.

2
Support Questions / Correct use of Datasubcriber2
« on: December 09, 2020, 09:19:11 AM »
Hi, I want to use DataSubcriber2 to take V and I measurements from a multimeter. I add the DataSubcriber2 to the Form and configure it to take values from 4 modbus addresses.
But my problem is that I don't know where those values are read.
I have only noticed that in "e.Values (0)" I have the value of the first loaded record. I thought that changing the index of e.value (index) would have the others, but it gives me an error.
my intention is that the measured values are displayed as a label text, beyond the text I was using.

     Private Sub DataSubscriber21_DataChanged (sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged
         Label2.Text = e.Values (0) 'this if it gives the desired result
         Label3.Text = e.Values (1) 'from here I already have an error
         Label4.Text = e.Values (2)
          Label5.Text = e.Values (3)
     End Sub

Can you tell me what my mistake is?
Thanks a lot.

Pages: [1]