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

Pages: 1 2 [3] 4 5 ... 9
31
Open Discussion / Re: ControlLogixNET
« on: August 23, 2018, 11:18:15 AM »
Hi bachpi,
Where you able to run it?..

There is no documentation available on how to use it.
Can you share a link where we can get the detailed Documentation.

I've been trying to run it using vb.net but was unable to run it. It use to throw socket error while trying to connect it.

32
Support Questions / Re: .Net Framework Error
« on: December 24, 2017, 11:49:04 PM »
Generally speaking, you should provide far more information about your setup, the way AHMI is used and screenshots of the error itself.

I don't have a solution for you but only a few questions:

Have you contacted NComputing support to inquire about this or similar issues?
If the AHMI application starts and runs for several operations, could it be that it is just unable to gain access to .Net Framework afterwards?
For troubleshooting purposes, have you tried running the AHMI on the machine itself instead of on the thin-client?

Hopefully, some other members might provide some clues as per their knowledge.

Yes I have tried running it on PC and it runs ok. The only problem is with Thin-Client Device.

33
Support Questions / .Net Framework Error
« on: December 24, 2017, 11:11:06 PM »
Hi,

I have a machine which has AHMIv3.99X. The AHMI Application is running on NComputing Thin-Client device which is connected to the machine. The problem is after several operations the Application pops up a .Net Framework Error.

The Machine is running Windows-10 pro OS

Is there any way to avoid these recurring issues.

34
Support Questions / EthernetIPforClx delays tag reading
« on: August 10, 2017, 12:24:04 AM »
Hey Guys,

I've been using AHMIv399w for a Project where we are reading around 1000 tags. I've 4 Data-Subscriber-2 to read 60 tags, each Data-Subscriber has 15 Tags. Now the problem is at initialisation and for another 4 to 5 hours everything is working fine but after that the tag reading delay starts to set in and the delay increases from 1 sec to 8 sec in 6th hour and it keeps increasing gradually. Is this a delay in Tag reading and has anyone of you encountered it or is it just some glitch in my program. Cause I've checked the program time and again but I couldn't find any problems into it.

Please guide and help me if you can.

35
Open Discussion / Re: Interest in Live How-To and Discussions
« on: March 12, 2017, 01:09:05 AM »
Hey Archie,

Sorry for me being impatient. But could you tell us when are you planning to start Live How-To and Discussion

36
Hey Archie,

I tried using CIO by providing PLC Address for color change and Click events. But only color change event works, PLC Address Click event does not perform any write function.

By the the address format that i'm using for CIO is 9.01, 6.05 and etc..

Would like to see CV-Hostlink driver included in AHMI sometime in future..

37
Hi,
Thanks for the reply.

But question is in PLC I can use input registers as bits to start/stop outputs.
Can the same be replicated in AHMI to write to i/o

38
Hi Guys,

Anyone with solution/ideas/Work around on how to read/write W registers in Omron cp1e with host-link serial protocol.
I'm unable to use start and stop in my application due to this problem..

Any help will be appreciated.

39
Support Questions / Omron HostLink Serial Read/Write W0.0 bits problem
« on: January 15, 2017, 10:44:20 PM »
Hey Guys,

Archie Thanks for all help with Omron HostLink Serial Protocol.

I've just run into another problem. I'm unable to read/write W bits from AHMI3.99t Version. Any help or work around that would help me read and write would be appreciated.

40
Support Questions / Re: Omron Ethernet Fins driver
« on: January 14, 2017, 11:32:10 PM »
Hey Guys,

I've been able to connect to NJ PLC via AdvanceHMI.

The problem seemed to  be with variable declaration in PLC. When the tags were made we put in D0/D1 variable for those tags and published it in Global variables. These variables value then just popped-up in AdvanceHMI DigitalPanelMeters.

Thanks a lot Archie.

41
Support Questions / Re: Omron Serial Host Link connection problem
« on: January 13, 2017, 09:49:59 PM »
Hey Archie,

Thanks for the solution. I'll be able to test that tomorrow.

Do you have any work around solution for reading and writing W0.00 also.

Many thanks for the prompt solution.


42
Support Questions / Re: Omron Serial Host Link connection problem
« on: January 13, 2017, 08:21:22 PM »
Hey Archie,

Yes i have enabled "TreatDataAsHex = TRUE".

The HostLinkBaseCom.vb of AdvanceHMI3.99s has a function:

Public Overrides Function BeginWrite(ByVal address As MfgControl.AdvancedHMI.Drivers.Omron.OmronPlcAddress, ByVal dataToWrite() As String) As Integer

where you will fnd the below code:

            If address.BitsPerElement = 16 Then
                Dim x(1) As Byte
                For i As Integer = 0 To dataToWrite.Length - 1
                    If m_TreatDataAsHex Then
                        Dim data As Integer
                        Try
                            data = Convert.ToUInt16(dataToWrite(i), 16)
                        Catch ex As Exception
                            Throw New MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException("Invalid hexadecimal value " & dataToWrite(i))
                        End Try
                        x(0) = CByte(data And 255)
                        x(1) = CByte(data >> 8)
                    Else
                        x = BitConverter.GetBytes(CUShort(dataToWrite(i)))
                        If address.IsBCD Then
                            '* Convert to BCD
                            x(1) = CByte(CUShort(Math.Floor(CDbl(dataToWrite(i)) / 100)))
                            x(0) = MfgControl.AdvancedHMI.Drivers.Common.CalculationsAndConversions.HexToByte(Convert.ToString(CUShort(dataToWrite(i)) - (x(1) * 100)))
                            x(1) = MfgControl.AdvancedHMI.Drivers.Common.CalculationsAndConversions.HexToByte(Convert.ToString(x(1)))
                        End If
                    End If
                    '* Bitconverter uses LittleEndian
                    '* Omron uses BigEndian, so reverse
                    dataPacket.Add(x(1))
                    dataPacket.Add(x(0))
                Next
            Else

The line in red colour is the error thrown whenever i try to write the String Values to CP1-E PLC

Apart from that i'm even unable to convert the String values read from PLC from hex to string readable format. I've written the code as below:

    Public Sub convertToString()
        Label4.Text = ""    'Label4.Text shows converted value read from PLC
        Try
            Dim st As String = Label1.Text 'Label1.Text has the hexa value read from PLC
            Dim com As String = ""
            For x = 0 To st.Length - 1 Step 2
                Dim k As String = st.Substring(x, 2)
                com &= System.Convert.ToChar(System.Convert.ToInt32(k, 16)).ToString
            Next
            'Label4.Text = Trim(com)
            Dim s(12) As Char
            s = com.ToCharArray()
            For i = 0 To s.Length - 1
            TextBox2.Text += com
            Next
        Catch ex As Exception
            'MsgBox(ex.Message)
            'Label4.Text = ex.Message
        End Try
    End Sub

The values comes to s but then i'm unable to show them in Textbox or label.


Apart from that I've buttons whose register values are W25.01, W25.02 and etc. I've tried them with buttons control of AHMI, I've tried writing them in code on button click event. But it always pops a error msg of some Header mismatch should be 2 char or something like that. I've tried using WP also instead of W but with no result.

Please Help me resolve these Problems..

43
Open Discussion / Re: Omron Ethernet Fins String Value Read Write
« on: January 13, 2017, 04:12:11 AM »
Hey Archie,
While trying to write string it throws error in HostLinkBaseCom.vb at line 191 which throws error as " Invalid Hexadecimal Value" on my side.

Could you please guide me what is it that I am doing wrong.

44
Support Questions / Re: Omron Serial Host Link connection problem
« on: January 13, 2017, 01:18:31 AM »
Hey guys,

Just wanted to know how to read W0.0 and C000 i,e. Register to read and write and counter

It pops an error of header.

45
Support Questions / Re: Omron Serial Host Link connection problem
« on: January 13, 2017, 01:17:07 AM »
Hey Archie,

Thanks for the support. I finally got connected. I changed the serial wire connection

Loop in 4 & 5 on PLC side and looping 4 & 6 and 7 & 8 from pc side.

Pages: 1 2 [3] 4 5 ... 9