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