Skip to content

Commit 07ac819

Browse files
authored
TIME
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) ?
1 parent 7ce9b9a commit 07ac819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎libEDSsharp/CanOpenNodeExporter.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ struct {
457457

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

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

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

14021402
void countPDOS()
14031403
{
@@ -1440,7 +1440,7 @@ void countPDOS()
14401440
noEMCY = 1;
14411441

14421442
if (index == 0x1012)
1443-
noTS = 1;
1443+
noTIME = 1;
14441444
}
14451445

14461446
}

0 commit comments

Comments
 (0)