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

Pages: [1]
1
Open Discussion / Re: Is Reading Array Size Possible?
« on: January 27, 2022, 05:26:16 PM »
It would be nice to have that array length finding in driver. What I did was use a button to start read (index loop) and driver throws tag not found error, where I use that catch exception to index length value to text box

2
Open Discussion / Is Reading Array Size Possible?
« on: January 26, 2022, 10:50:19 PM »
Is there a way to read array size? In this case I am expecting 30

3
Open Discussion / Re: How to read tag Descriptions from PLC
« on: January 26, 2022, 10:44:51 PM »
Thanks

4
Open Discussion / How to read tag Descriptions from PLC
« on: January 25, 2022, 06:46:25 PM »
Can some one please let me know how can I read tag description?

5
Support Questions / Re: Array value
« on: August 03, 2018, 08:00:40 AM »
Sorry for late reply.

I did the same thing what Archie asked to do in https://www.advancedhmi.com/forum/index.php?topic=1864.msg10345#msg10345 reply 1. Code will be the same.

Thanks

6
Support Questions / Re: Array value
« on: July 25, 2018, 03:40:27 PM »
Thanks Godra, I got this working

7
Support Questions / Re: Array value
« on: July 23, 2018, 03:02:46 PM »
Hi Ghodra/Phrog 30,
I am using Microsoft SQL data base(File) with table dbo.DataFile and trying to update Seq,Serial columns, with PLC addresses: Record_Seq and Record_Serial using basicdatalogger 2 when event changes (Number_Validated bit).
Using following code:

   Private Value1, Value2 As String
    Private Sub BasicDataLogger21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles BasicDataLogger21.DataChanged
        If e.PlcAddress = "Number_Validated" Then
            BasicLabel1.Text = e.Values(0)
            BasicLabel2.Text = e.Values(1)
        End If
        Dim con As New SqlClient.SqlConnection
        Dim cmd As New SqlClient.SqlCommand
        Try
            con.ConnectionString = "Data Source=xxx.10.14.xxx;Initial Catalog=info;UID=sa;PWD=user"
            con.Open()
            cmd.Connection = con
            cmd.CommandText = "INSERT INTO Test(value1,value2) VALUES(@Value1,@Value2)"
           
            cmd.ExecuteNonQuery()

        Catch ex As Exception
            MessageBox.Show("Error while inserting record on table..." & ex.Message, "Insert Records")
        Finally
            con.Close()
        End Try

I am not pretty much sure with the code and very new to VB. Can you please help me out how to record  Seq,Serial data in database table when Number_Validated bit changes it state.

Thanks
 

8
Open Discussion / Re: New Version 3.99k Now Available
« on: August 26, 2017, 07:21:22 PM »
Hi Archie can I trigger a bit from one CLX PLC to another CLX PLC using ComBridge?

9
Support Questions / Re: Emailer threading
« on: July 04, 2017, 02:05:36 AM »
Hi Archie,
I am still having the same issue
Any update on this will be much appreciated.
Thanks
Manoj

Pages: [1]