On Apr 6, 2006, at 13:19 , John Dobbins wrote:
The Name returned is "1769-L35E Ethernet Port". Details below.
...
UINT data_length 52
..
Data (net format) =
00000000 17 31 37 36 39 2D 4C 33 35 45 20 45 74 68 65 72 - .
1769-L35E Ether
00000010 6E 65 74 20 50 6F 72 74 00 00 00 00 00 00 00 00 - net
Port........
00000020 01 00 EB CD 1E 00 00 00 0E 02 0E 01 0E 00 0E 00
- ................
I'll be darned. So it's
BYTE length=23
char name = "1769-L35E Ethernet Port" (23 chars, less than 32, OK)
... plus more junk to get a package of 52 bytes.
I don't know what's in those remaining package bits,
at least I don't find those in my older copy of the specs,
but something like this in ether_ip.c, EIP_check_interface,
should handle it:
..
data = EIP_Get_Attribute_Single(c, C_Identity, 1, 7, &len);
if (data && len > 0)
{
len = *((CN_USINT *) data);
if (len >= sizeof(info->name))
return false;
memcpy(
..
Again, thanks for looking into this.
-Kay
- References:
- Ethernet/IP Device Support and CompactLogix John Dobbins
- Re: Ethernet/IP Device Support and CompactLogix Kay-Uwe Kasemir
- Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Re: Ethernet/IP Device Support and CompactLogix Kay-Uwe Kasemir
- Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Re: Ethernet/IP Device Support and CompactLogix Kay-Uwe Kasemir
- Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Re: Ethernet/IP Device Support and CompactLogix Carl Cork
- Re: Ethernet/IP Device Support and CompactLogix Kay-Uwe Kasemir
- Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Navigate by Date:
- Prev:
Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Next:
RE: snc/seq enhancements ... local-variable access Laznovsky, Michael
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Ethernet/IP Device Support and CompactLogix John Dobbins
- Next:
EPICS record names: disallowed characters? Rock, Judith E.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|