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

Pages: [1]
1
Open Discussion / Re: ReadUDT option for Micro800
« on: April 27, 2020, 04:11:53 AM »
Path Destination Unknown is an error coming from the controller saying that a tag by the name you provided doesn't exist.  Be sure that what you are trying to read is in the global scope, local scoped tags are not accessable externally.

Hi, I checked the name of the tag well.
I bring you the code in which I tried both methods or ReadUDT and Read.

Reading the UDT tags individually works.

Instead, I have successfully tried using the ReadUDT method on the Logix platform.

Code: [Select]
For J = Buffer_IndexRead To Buffer_IndexInsert - 1

                'don't work
                'BufferRecordMicro(J) = DriverEthIPMicro.ReadUDT(Of RecordTipo)("Buffer.Dati[" & J & "]")

                If IsNothing(BufferRecordMicro(J)) Then
                    BufferRecordMicro(J) = New RecordTipo
                End If

                'Work good
                BufferRecordMicro(J).YYYYMMDD = CInt(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].YYYYMMDD"))
                BufferRecordMicro(J).HHMMMSS = CInt(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].HHMMMSS"))
                BufferRecordMicro(J).Pressione = CSng(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].Pressione"))
                BufferRecordMicro(J).Fotometro1 = CInt(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].Fotometro1"))
                BufferRecordMicro(J).Fotometro2 = CInt(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].Fotometro2"))
                BufferRecordMicro(J).Flussimetro = CSng(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].Flussimetro"))
                BufferRecordMicro(J).Spare = CSng(DriverEthIPMicro.Read("Buffer.Dati[" & J & "].Spare"))

                StrRecord = GetStringRecordAll(BufferRecordMicro(J))
                TextLastRecordReadMicro.Text = Format(J, "###00000") + ";" + StrRecord
                DiffRecordTot = CInt(AnlValBufferIndexInsertMicro.Value) - J - 1

                If DiffRecordTot >= 0 Then
                    LblDiffRecord_TotMicro.Text = DiffRecordTot
                Else
                    LblDiffRecord_TotMicro.Text = 0
                End If
            Next

2
Open Discussion / Re: ReadUDT option for Micro800
« on: April 25, 2020, 09:46:38 AM »

I am also trying to use the ReadUDT method on a MICRO820 but it returns "MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException: 'ReadRaw Error. Path Destination Unknown'"


3
Open Discussion / Re: sometimes AnalogValueDisplay does not read the value
« on: February 25, 2020, 04:48:46 AM »
Thanks Archie for your reply.
I downloaded Version V3.99y Beta 34 and the problem described above no longer occurred.

Thank you very much.

4
Open Discussion / sometimes AnalogValueDisplay does not read the value
« on: February 24, 2020, 11:31:08 AM »
Hi, I downloaded last week The latest version of AdvancedHMI (AdvancedHMIv399xR1), I am using it to communicate with a MODBUS TCP device.
Congratulations to the developer, it's a beautiful product.

On a form I placed about 20 AnalogValueDisplay which pointed to 20 Holding registers in double integer format (L4000x) of which 15 read / write and the remaining read only.
Sometimes when I open the form some AnalogValueDisplay do not read the register and remain in the "0000" state. in order to read them I have to close the form (me.close) and reopen it.
It happens randomly for no apparent reason.
Is there a way to be able to intercept this situation and maybe reinitialize the reading of the analogvaludisplay that are not updated?
Thanks to those who want to help me.

Pages: [1]