|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Canchkeds errorsHi all, Please don't be very harsh with me cause I'm kind of newbie here. :) I have an eds file which gives me some errors and warnings when checking with Canchkeds tool, errors which I don't fully understand. I have the following entries in my eds file: [1400] SubNumber=3 ParameterName=RPDO 1 Communication Parameter ObjectType=0x009 [1400sub0] ParameterName=Number of entries ObjectType=0x007 DataType=0x001 AccessType=ro DefaultValue=0x02 PDOMapping=0 [1400sub1] ParameterName=COB-ID ObjectType=0x007 DataType=0x007 AccessType=ro DefaultValue=0x0201 PDOMapping=0 [1400sub2] ParameterName=Transmission Type ObjectType=0x007 DataType=0x001 AccessType=ro DefaultValue=0xFF PDOMapping=0 [1600] SubNumber=3 ParameterName=RPDO 1 Mapping Parameter ObjectType=0x009 [1600sub0] ParameterName=Number of mapped objects ObjectType=0x007 DataType=0x001 AccessType=ro DefaultValue=0x02 PDOMapping=0 [1600sub1] ParameterName=Mapping for object 1 ObjectType=0x007 DataType=0x007 AccessType=ro DefaultValue=0x22000108 PDOMapping=0 [1600sub2] ParameterName=Mapping for object 2 ObjectType=0x007 DataType=0x007 AccessType=ro DefaultValue=0x22030110 PDOMapping=0 #After checking the eds with canchkeds I get the following errors: "TestEds.eds(1909) : error 22: Value in entry "DefaultValue" in section [1400sub0] is outside of valid area. TestEds.eds(1925) : error 22: Value in entry "DefaultValue" in section [1400sub2] is outside of valid area. TestEds.eds(1954) : error 22: Value in entry "DefaultValue" in section [1600sub0] is outside of valid area." Can anyone tell what is wrong here?... cause I can't figure it out. #I also get this error too: "error 69: Entry "Granularity" in section [DeviceInfo] has to be 0 because all PDOs support constant mapping." I mention that in eds file in section [DeviceInfo]the granularity is set to 8. I have read in Canchkeds manual the description of error 69 but I didn't fully understand it. There it is specified that "No PDO parameter object supports variable mapping" and that "access type all sub-indexes of PDO mapping parameter objects is ro or const". I don't understand what "PDO mapping parameter objects" refers to. I taught that this are the objects mapped to the PDO in my case represented by the following entries: ... [2200sub1] ParameterName=v1 ObjectType=0x007 DataType=0x005 AccessType=rw DefaultValue=0 PDOMapping=1 ... [2203sub1] ParameterName=v3 ObjectType=0x007 DataType=0x003 AccessType=rw DefaultValue=0 PDOMapping=1 But here the access type "rw" not "ro" or "const". #I have another question regarding FF subindex. I want to use this subindex for array entries to specify the type of the array elements. I didn't find many informations of how to use FF subindex(I have looked in CiA EDS specification, DS 306 V1.3). From what I have read there I used FF subindex like in the example bellow: [2200] SubNumber=2 ParameterName=ExternalU8 variables ObjectType=0x009 [2200sub0] ParameterName=Largest sub-index for ExternalU8 variables ObjectType=0x007 DataType=0x005 AccessType=ro DefaultValue=0x01 PDOMapping=0 [2200sub1] ParameterName=v1 ObjectType=0x007 DataType=0x005 AccessType=rw DefaultValue=0 PDOMapping=1 [2200subFF] ParameterName=Type of the array ObjectType=0x007 DataType=0x001 AccessType=ro DefaultValue=0x005 PDOMapping=0 but when checking with Canchkeds tool I get the following warning: "warning 1: Unknown or not used section [2200subFF]." Is there a special way of using FF section? Thanks in advanced, Liana Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
|
|
Re: Canchkeds errorsDear Liana,
the consistency check of eds
indicates that you are using DataType = 0x001 for 1400sub0, 1400sub2 and
1600sub0.
DataType 0x001 is Boolean, that is,
it can only have values 0 and 1. Try DataType 0x005, 0x006 or 0x007
(8-bit,16-bit or 32-bit).
I´m not sure about the other
errors.
I hope this helps.
Osmar
|
|
|
Re: Canchkeds errorsHi Liana,
I checked my eds examples."PDO
mapping parameter objects" are objects like 1400 and 1600. THEY have must
have access type rw instead of ro, not the objects they are pointing to
(2200 etc...)
About subindex 0xFF: 2200sub0
contains the number of subitems of object 2200. If you are using
subindexes from 1 to 0xFF, it means you have 255 entries. I think
your default value for 2200sub0 in this case should be also
0xFF.
Greetings,
Osmar
|
|
|
|
| Free Forum Powered by Nabble | Forum Help |