Skip to content

Commit 693098b

Browse files
committed
fix(eip): Adjusted the CIPAttributes type to allow the packet structure used by my AB CompactLogix controller.
1 parent 86f1bd6 commit 693098b

File tree

1 file changed

+5
-5
lines changed
  • protocols/eip/src/main/resources/protocols/eip

1 file changed

+5
-5
lines changed

protocols/eip/src/main/resources/protocols/eip/eip.mspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@
333333
]
334334

335335
[type CIPAttributes(uint 16 packetLength)
336-
[implicit uint 16 numberOfClasses 'COUNT(classId)']
337-
[array uint 16 classId count 'numberOfClasses']
338-
[simple uint 16 numberAvailable]
339-
[simple uint 16 numberActive]
340-
[array byte data count 'packetLength - 2 - (COUNT(classId) * 2) - 4']
336+
[implicit uint 16 numberOfClasses 'COUNT(classId)' ]
337+
[array uint 16 classId count 'numberOfClasses' ]
338+
[optional uint 16 numberAvailable 'packetLength >= ((numberOfClasses * 2) + 4)']
339+
[optional uint 16 numberActive 'packetLength >= ((numberOfClasses * 2) + 6)']
340+
[array byte data count '(packetLength > ((numberOfClasses * 2) + 6)) ? packetLength - ((numberOfClasses * 2) + 6) : 0']
341341
]
342342

343343
[type CIPData(uint 16 packetLength)

0 commit comments

Comments
 (0)