Преглед на файлове

SetAttributeList added to Identity object

micsat преди 4 години
родител
ревизия
5813497a19
променени са 2 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 2 2
      data/OpENerPC.stc
  2. 4 2
      source/src/cip/cipidentity.c

+ 2 - 2
data/OpENerPC.stc

@@ -1,4 +1,4 @@
- StcRev Data |1.25|CT17-EN|opener_master|1621536250| DevData |255|0|500|500|500,500|X||ENet|
+ StcRev Data |1.25|CT17-EN|OpENerPC|1623922735| DevData |255|0|500|500|500,500|X||ENet|
 [<00>]-------|OpENer PC||
   General    |3.27|EtherNet/IP  Vol 2, Ed 1.25||2.3|Rockwell Automation/Allen-Bradley|1|65001|
   DevProfile |12|Communications Adapter|,04,05,06,07,08,09,10,11,15,16,29,30,32,33,43,55,243,244,245,246,35,67,71,72,77,84,85,86,87,69,81,68,70,82,78,79,80,83,92,256,257,258,259,260,261,262|
@@ -27,7 +27,7 @@
   IAG        |X|X|X|X|X|X|X| | | | | | | | | | | | | | | | | |
   IAS        | | | | | | | | | | | | | | | | | | | | | | | | |
   IAL        | =(1)| =(12)| =(65001)| =(2.3)| | | =(OpENer PC)| | | | | | | | | | | | | | | | | |
-  IS         |X|X|X| | | |X| | | | | |
+  IS         |X|X|X| | | |X|X| | | | |
   ISP        ||0,1|||||||||||
   VSA        | |
   OPT        | | |

+ 4 - 2
source/src/cip/cipidentity.c

@@ -233,10 +233,10 @@ EipStatus CipIdentityInit() {
                                    2, /* # of class services*/
                                    7, /* # of instance attributes*/
                                    7, /* # highest instance attribute number*/
-                                   4, /* # of instance services*/
+                                   5, /* # of instance services*/
                                    1, /* # of instances*/
                                    "identity", /* # class name (for debug)*/
-                                   1, /* # class revision*/
+                                   1, /* # class revision*/ //TODO: change revision to 2 - check
                                    &InitializeCipIdentity); /* # function pointer for initialization*/
 
   if (class == 0) {
@@ -300,6 +300,8 @@ EipStatus CipIdentityInit() {
   InsertService(class, kReset, &Reset, "Reset");
   InsertService(class, kGetAttributeList, &GetAttributeList,
                 "GetAttributeList");
+  InsertService(class, kSetAttributeList, &SetAttributeList,
+                  "SetAttributeList");
 
   return kEipStatusOk;
 }