Skip to content

Commit

Permalink
TIME
Browse files Browse the repository at this point in the history
Hi Robin, 

I renamed TS by TIME on my previous commit for a better comprehension (did the same on CANopenNode). 

OD_COB_ID_TIME (0x1012) defines TIME message CAN ID and if node is a consumer or a producer (bits 31 and 30). 

Should we add a default value when using "insert profile" "DS301" to initialise node as a TIME consumer with default CAN ID 0x100 (0x1012 = 0x80000100L) ?
  • Loading branch information
JuPrgn authored Nov 12, 2019
1 parent 7ce9b9a commit 07ac819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libEDSsharp/CanOpenNodeExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ struct {

file.WriteLine(string.Format(" #define CO_NO_EMERGENCY {0} //Associated objects: 1014, 1015", noEMCY));

file.WriteLine(string.Format(" #define CO_NO_TS {0} //Associated objects: 1012, 1013", noTS));
file.WriteLine(string.Format(" #define CO_NO_TIME {0} //Associated objects: 1012, 1013", noTIME));

file.WriteLine(string.Format(" #define CO_NO_SDO_SERVER {0} //Associated objects: 1200-127F", noSDOservers));
file.WriteLine(string.Format(" #define CO_NO_SDO_CLIENT {0} //Associated objects: 1280-12FF", noSDOclients));
Expand Down Expand Up @@ -1397,7 +1397,7 @@ protected string export_one_record_type(ODentry sub,string arrayaccess)
int distRXpdo = 0;
int noSYNC = 0;
int noEMCY = 0;
int noTS = 0;
int noTIME = 0;

void countPDOS()
{
Expand Down Expand Up @@ -1440,7 +1440,7 @@ void countPDOS()
noEMCY = 1;

if (index == 0x1012)
noTS = 1;
noTIME = 1;
}

}
Expand Down

0 comments on commit 07ac819

Please sign in to comment.