Skip to content

Commit c4d7941

Browse files
committed
Almost finished with Logix5000 reading structure tags
1 parent 1fcc29e commit c4d7941

3 files changed

Lines changed: 382 additions & 518 deletions

File tree

src/layers/cip/Logix5000/constants.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ const SymbolServiceNames = InvertKeyValues(SymbolServiceCodes);
8484

8585
const SymbolInstanceAttributeCodes = {
8686
Name: 0x01,
87-
Type: 0x02
87+
Type: 0x02,
88+
Bytes: 0x07
8889
};
8990

90-
// const SymbolInstanceAttributeNames = InvertKeyValues(SymbolInstanceAttributeCodes);
91+
const SymbolInstanceAttributeNames = InvertKeyValues(SymbolInstanceAttributeCodes);
9192

9293
const SymbolInstanceAttributeDataTypes = {
9394
[SymbolInstanceAttributeCodes.Name]: DataTypes.STRING,
94-
[SymbolInstanceAttributeCodes.Type]: DataTypes.UINT
95+
[SymbolInstanceAttributeCodes.Type]: DataTypes.UINT,
96+
[SymbolInstanceAttributeCodes.Bytes]: DataTypes.UINT
9597
};
9698

9799

@@ -156,6 +158,7 @@ module.exports = {
156158
SymbolServiceCodes,
157159
SymbolServiceNames,
158160
SymbolInstanceAttributeCodes,
161+
SymbolInstanceAttributeNames,
159162
SymbolInstanceAttributeDataTypes,
160163
// SymbolServiceErrorDescriptions,
161164
TemplateServiceCodes,

0 commit comments

Comments
 (0)