motion-master-client 0.0.301 → 0.0.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -1
- package/src/index.js.map +1 -1
- package/src/lib/encoder.d.ts +11 -0
- package/src/lib/encoder.js +42 -1
- package/src/lib/encoder.js.map +1 -1
- package/src/lib/encoder-configuration.d.ts +0 -103
- package/src/lib/encoder-configuration.js +0 -225
- package/src/lib/encoder-configuration.js.map +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './lib/device';
|
|
|
6
6
|
export * from './lib/device-parameter';
|
|
7
7
|
export * from './lib/device-log-line';
|
|
8
8
|
export * from './lib/encoder';
|
|
9
|
-
export * from './lib/encoder-configuration';
|
|
10
9
|
export * from './lib/ethercat';
|
|
11
10
|
export * from './lib/ethernet';
|
|
12
11
|
export * from './lib/fetch';
|
package/src/index.js
CHANGED
|
@@ -9,7 +9,6 @@ tslib_1.__exportStar(require("./lib/device"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./lib/device-parameter"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./lib/device-log-line"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./lib/encoder"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./lib/encoder-configuration"), exports);
|
|
13
12
|
tslib_1.__exportStar(require("./lib/ethercat"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("./lib/ethernet"), exports);
|
|
15
14
|
tslib_1.__exportStar(require("./lib/fetch"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,wDAA8B;AAC9B,4DAAkC;AAClC,gEAAsC;AACtC,uDAA6B;AAC7B,iEAAuC;AACvC,gEAAsC;AACtC,wDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,wDAA8B;AAC9B,4DAAkC;AAClC,gEAAsC;AACtC,uDAA6B;AAC7B,iEAAuC;AACvC,gEAAsC;AACtC,wDAA8B;AAC9B,yDAA+B;AAC/B,yDAA+B;AAC/B,sDAA4B;AAC5B,yDAA+B;AAC/B,qEAA2C;AAC3C,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,0DAAgC;AAChC,uDAA6B;AAC7B,kEAAwC;AACxC,iEAAuC;AACvC,gEAAsC;AACtC,qEAA2C;AAC3C,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,qEAA2C;AAC3C,uDAA6B;AAC7B,0DAAgC;AAChC,wDAA8B;AAC9B,2DAAiC;AACjC,0DAAgC;AAChC,wDAA8B;AAC9B,wEAA8C;AAC9C,oDAA0B;AAC1B,uDAA6B;AAC7B,oDAA0B;AAC1B,gEAAsC;AACtC,sDAA4B;AAC5B,sDAA4B;AAC5B,8DAAoC;AACpC,qDAA2B;AAC3B,kFAAwD"}
|
package/src/lib/encoder.d.ts
CHANGED
|
@@ -163,3 +163,14 @@ export interface EncoderConfigurationUsage {
|
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Selects the encoder configuration exception case based on the encoder ordinal, type, and product ID
|
|
168
|
+
*
|
|
169
|
+
* @param productId - The product ID to check against.
|
|
170
|
+
* @param encoderPort - The encoder port to check.
|
|
171
|
+
* @param encoderType - The encoder type to check.
|
|
172
|
+
* @param firmwareMajorMinorVersion - The firmware version in major.minor format.
|
|
173
|
+
* @returns The selected exception case or undefined if no case matches.
|
|
174
|
+
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
175
|
+
*/
|
|
176
|
+
export declare function getEncoderConfigurationExceptionCase(productId: number, encoderPort: number, encoderType: number, firmwareMajorMinorVersion: string): EncoderConfigurationExceptionCase | undefined;
|
package/src/lib/encoder.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCirculoEncoderBatteryModeOptions = exports.getCirculoEncoderBatteryModeDefaultValue = exports.circuloEncoderBatteryModeMap = exports.mapCirculoEncoderRegisterValueToErrors = exports.circuloEncoderRegisterErrors = exports.CirculoEncoderRegisterAddress = void 0;
|
|
3
|
+
exports.getEncoderConfigurationExceptionCase = exports.getCirculoEncoderBatteryModeOptions = exports.getCirculoEncoderBatteryModeDefaultValue = exports.circuloEncoderBatteryModeMap = exports.mapCirculoEncoderRegisterValueToErrors = exports.circuloEncoderRegisterErrors = exports.CirculoEncoderRegisterAddress = void 0;
|
|
4
|
+
const semver_1 = require("semver");
|
|
4
5
|
const product_1 = require("./product");
|
|
5
6
|
/**
|
|
6
7
|
* Enum of Circulo encoder register addresses.
|
|
@@ -232,4 +233,44 @@ function getCirculoEncoderBatteryModeOptions(productId, shaft) {
|
|
|
232
233
|
return [];
|
|
233
234
|
}
|
|
234
235
|
exports.getCirculoEncoderBatteryModeOptions = getCirculoEncoderBatteryModeOptions;
|
|
236
|
+
/**
|
|
237
|
+
* Selects the encoder configuration exception case based on the encoder ordinal, type, and product ID
|
|
238
|
+
*
|
|
239
|
+
* @param productId - The product ID to check against.
|
|
240
|
+
* @param encoderPort - The encoder port to check.
|
|
241
|
+
* @param encoderType - The encoder type to check.
|
|
242
|
+
* @param firmwareMajorMinorVersion - The firmware version in major.minor format.
|
|
243
|
+
* @returns The selected exception case or undefined if no case matches.
|
|
244
|
+
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
245
|
+
*/
|
|
246
|
+
function getEncoderConfigurationExceptionCase(productId, encoderPort, encoderType, firmwareMajorMinorVersion) {
|
|
247
|
+
const firmwareVersion = `${firmwareMajorMinorVersion}.0`;
|
|
248
|
+
// Case 1
|
|
249
|
+
const case1EncoderTypes = (0, semver_1.satisfies)(firmwareVersion, '>=5.0 <5.1') ? [4] : [4, 5];
|
|
250
|
+
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.0') &&
|
|
251
|
+
(0, product_1.isSomanetProductIdInRange)(productId, 'Circulo All') &&
|
|
252
|
+
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
253
|
+
(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
254
|
+
case1EncoderTypes.includes(encoderType)) {
|
|
255
|
+
return 'case1';
|
|
256
|
+
}
|
|
257
|
+
// Case 2
|
|
258
|
+
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.1') &&
|
|
259
|
+
(0, product_1.isSomanetProductIdInRange)(productId, 'Circulo Safe Motion') &&
|
|
260
|
+
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
261
|
+
!(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
262
|
+
encoderType === 4) {
|
|
263
|
+
return 'case2';
|
|
264
|
+
}
|
|
265
|
+
// Case 3
|
|
266
|
+
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.2') &&
|
|
267
|
+
(0, product_1.isSomanetProductIdInRange)(productId, 'Integro') &&
|
|
268
|
+
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
269
|
+
(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
270
|
+
encoderType === 5) {
|
|
271
|
+
return 'case3';
|
|
272
|
+
}
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
exports.getEncoderConfigurationExceptionCase = getEncoderConfigurationExceptionCase;
|
|
235
276
|
//# sourceMappingURL=encoder.js.map
|
package/src/lib/encoder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/encoder.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/encoder.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAGnC,uCAMmB;AAgCnB;;;;;GAKG;AACH,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,yFAAc,CAAA;IACd,yFAAc,CAAA;IACd,0GAAuB,CAAA;AACzB,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;AAED;;;;;;;;;;;;GAYG;AACU,QAAA,4BAA4B,GAA8C;IACrF;QACE,CAAC,EAAE;YACD,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,yCAAyC;YAChD,WAAW,EAAE,2DAA2D;YACxE,MAAM,EAAE,wCAAwC;YAChD,eAAe,EACb,uSAAuS;SAC1S;QACD,CAAC,EAAE;YACD,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,uCAAuC;YAC9C,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,gDAAgD;YACxD,eAAe,EACb,uSAAuS;SAC1S;QACD,CAAC,EAAE;YACD,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,yCAAyC;YAChD,WAAW,EAAE,2DAA2D;YACxE,MAAM,EAAE,wCAAwC;YAChD,eAAe,EACb,sNAAsN;SACzN;QACD,CAAC,EAAE;YACD,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,uCAAuC;YAC9C,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,gDAAgD;YACxD,eAAe,EACb,sNAAsN;SACzN;QACD,EAAE,EAAE;YACF,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,eAAe;YACtB,WA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up } from './product';
|
|
3
|
-
/** Encoder type: 1 */
|
|
4
|
-
declare class Hall {
|
|
5
|
-
/** Subindex: 3 */
|
|
6
|
-
static getResolution(polePairs: number): number;
|
|
7
|
-
}
|
|
8
|
-
/** Encoder type: 2 */
|
|
9
|
-
declare class Incremental {
|
|
10
|
-
/** Subindex: 4 */
|
|
11
|
-
static getZeroVelocityThreshold(inputValue: number): number;
|
|
12
|
-
/** Subindex: 23 */
|
|
13
|
-
static hasSameHallSensorPort(sensorPort: number, HALLSensorPort: number): boolean;
|
|
14
|
-
/** Subindex: 23 */
|
|
15
|
-
static supportsHallSensor(supportedEncoderTypes: number[]): boolean;
|
|
16
|
-
}
|
|
17
|
-
/** Encoder type: 3 */
|
|
18
|
-
declare class NikonA {
|
|
19
|
-
/** Subindex: 3 */
|
|
20
|
-
static getResolution(singleTurnBits: number): number;
|
|
21
|
-
/** Subindex: 8 */
|
|
22
|
-
static getClockFrequency(inputValue: number): number;
|
|
23
|
-
/** Subindex: 10 */
|
|
24
|
-
static getMultiturnBits(inputValue: number): 0 | 16;
|
|
25
|
-
/** Subindex: 12 */
|
|
26
|
-
static getSingleturnBits(inputValue: number): number;
|
|
27
|
-
/** Subindex: 28 */
|
|
28
|
-
static getSamplingFrequency(): number;
|
|
29
|
-
}
|
|
30
|
-
/** Encoder type: 4 */
|
|
31
|
-
declare class Biss {
|
|
32
|
-
/** Subindex: 8 */
|
|
33
|
-
static getClockFrequency(inputValue: number): number;
|
|
34
|
-
}
|
|
35
|
-
/** Encoder type: 6 */
|
|
36
|
-
declare class Rem16Mt {
|
|
37
|
-
/** Subindex: 3 */
|
|
38
|
-
static getResolution(inputValue: number, firmwareVersion: string): number;
|
|
39
|
-
/** Subindex: 28 */
|
|
40
|
-
static getSamplingFrequency(inputValue: number, firmwareVersion: string): number;
|
|
41
|
-
}
|
|
42
|
-
/** Encoder type: 7 */
|
|
43
|
-
declare class Ssi {
|
|
44
|
-
/** Subindex: 8 */
|
|
45
|
-
static getClockFrequency(inputValue: number): number;
|
|
46
|
-
}
|
|
47
|
-
/** Encoder type: 9 */
|
|
48
|
-
declare class SinCos {
|
|
49
|
-
/** Subindex: 3 */
|
|
50
|
-
static getResolution(sinewaveResolution: number, sinewaveCyclesPerRevolution: number): number;
|
|
51
|
-
}
|
|
52
|
-
declare class Case1 {
|
|
53
|
-
static getResolution(resolution: number, productGroup: ProductGroup): number;
|
|
54
|
-
static getClockFrequency(): number;
|
|
55
|
-
static getFrameSize(singleturnBits: number, multiturnBits: number): number;
|
|
56
|
-
static getMultiturnBits(multiturnBits: number, sensorPort: number): number;
|
|
57
|
-
static getMultiturnFirstBitPosition(): number;
|
|
58
|
-
static getSingleturnBits(singleturnBits: number, productGroup: ProductGroup): number;
|
|
59
|
-
static getSingleturnFirstBitPosition(multiturnBits: number): number;
|
|
60
|
-
static getTimeout(): number;
|
|
61
|
-
static getCrcPolynomial(): number;
|
|
62
|
-
static getMaximumTBusy(): number;
|
|
63
|
-
static getSamplingFrequency(multiturnBits: number): 2 | 1;
|
|
64
|
-
}
|
|
65
|
-
declare class Case2 {
|
|
66
|
-
static getClockFrequency(clockFrequency: number): number;
|
|
67
|
-
static getSamplingFrequency(): number;
|
|
68
|
-
}
|
|
69
|
-
declare class Case3 {
|
|
70
|
-
static getResolution(integratedEncoderStBitsUsed: number): number;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Modify the encoder configuration types subitem values based on the encoder type and firmware version.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* * `When encoder type is SinCos (9), apply function 'getResolution' to its subindex 3 value.`
|
|
77
|
-
* @link https://docs.google.com/spreadsheets/d/1tTGNMyg-40l4YxmDnXHrvVyIIyTcFc2ZauoABtgxPMA/edit?usp=sharing
|
|
78
|
-
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
79
|
-
*/
|
|
80
|
-
export declare class EncoderConfigurationException {
|
|
81
|
-
static Hall: typeof Hall;
|
|
82
|
-
static Incremental: typeof Incremental;
|
|
83
|
-
static NikonA: typeof NikonA;
|
|
84
|
-
static BiSS: typeof Biss;
|
|
85
|
-
static Rem16MT: typeof Rem16Mt;
|
|
86
|
-
static Ssi: typeof Ssi;
|
|
87
|
-
static SinCos: typeof SinCos;
|
|
88
|
-
static Case1: typeof Case1;
|
|
89
|
-
static Case2: typeof Case2;
|
|
90
|
-
static Case3: typeof Case3;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Selects the encoder configuration exception case based on the encoder ordinal, type, and product ID
|
|
94
|
-
*
|
|
95
|
-
* @param productId - The product ID to check against.
|
|
96
|
-
* @param encoderPort - The encoder port to check.
|
|
97
|
-
* @param encoderType - The encoder type to check.
|
|
98
|
-
* @param firmwareMajorMinorVersion - The firmware version in major.minor format.
|
|
99
|
-
* @returns The selected exception case or undefined if no case matches.
|
|
100
|
-
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
101
|
-
*/
|
|
102
|
-
export declare function getEncoderConfigurationExceptionCase(productId: number, encoderPort: number, encoderType: number, firmwareMajorMinorVersion: string): EncoderConfigurationExceptionCase | undefined;
|
|
103
|
-
export {};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEncoderConfigurationExceptionCase = exports.EncoderConfigurationException = void 0;
|
|
4
|
-
const semver_1 = require("semver");
|
|
5
|
-
const product_1 = require("./product");
|
|
6
|
-
/** Encoder type: 1 */
|
|
7
|
-
class Hall {
|
|
8
|
-
/** Subindex: 3 */
|
|
9
|
-
static getResolution(polePairs) {
|
|
10
|
-
return 4096 * polePairs;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/** Encoder type: 2 */
|
|
14
|
-
class Incremental {
|
|
15
|
-
/** Subindex: 4 */
|
|
16
|
-
static getZeroVelocityThreshold(inputValue) {
|
|
17
|
-
return Math.floor((inputValue * 100) / 6250) * 62.5;
|
|
18
|
-
}
|
|
19
|
-
/** Subindex: 23 */
|
|
20
|
-
static hasSameHallSensorPort(sensorPort, HALLSensorPort) {
|
|
21
|
-
// 'HALL sensor port cannot be the same as the device sensor port.'
|
|
22
|
-
return sensorPort === HALLSensorPort;
|
|
23
|
-
}
|
|
24
|
-
/** Subindex: 23 */
|
|
25
|
-
static supportsHallSensor(supportedEncoderTypes) {
|
|
26
|
-
// HALL Sensor port cannot be set on encoder type which does not support it.
|
|
27
|
-
return supportedEncoderTypes.includes(1);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/** Encoder type: 3 */
|
|
31
|
-
class NikonA {
|
|
32
|
-
/** Subindex: 3 */
|
|
33
|
-
static getResolution(singleTurnBits) {
|
|
34
|
-
return 1 << singleTurnBits;
|
|
35
|
-
}
|
|
36
|
-
/** Subindex: 8 */
|
|
37
|
-
static getClockFrequency(inputValue) {
|
|
38
|
-
const clockFrequencies = [2500, 4000, 6670, 8000, 16000];
|
|
39
|
-
return clockFrequencies.reduce((prev, curr) => Math.abs(curr - inputValue) < Math.abs(prev - inputValue) ? curr : prev);
|
|
40
|
-
}
|
|
41
|
-
/** Subindex: 10 */
|
|
42
|
-
static getMultiturnBits(inputValue) {
|
|
43
|
-
return inputValue > 0 ? 16 : 0;
|
|
44
|
-
}
|
|
45
|
-
/** Subindex: 12 */
|
|
46
|
-
static getSingleturnBits(inputValue) {
|
|
47
|
-
const bits = [17, 20, 22, 24];
|
|
48
|
-
return bits.reduce((prev, curr) => (Math.abs(curr - inputValue) < Math.abs(prev - inputValue) ? curr : prev));
|
|
49
|
-
}
|
|
50
|
-
/** Subindex: 28 */
|
|
51
|
-
static getSamplingFrequency() {
|
|
52
|
-
return 1;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
/** Encoder type: 4 */
|
|
56
|
-
class Biss {
|
|
57
|
-
/** Subindex: 8 */
|
|
58
|
-
static getClockFrequency(inputValue) {
|
|
59
|
-
return Math.round(25000 / Math.max(Math.round(25000 / inputValue), 5));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/** Encoder type: 6 */
|
|
63
|
-
class Rem16Mt {
|
|
64
|
-
/** Subindex: 3 */
|
|
65
|
-
static getResolution(inputValue, firmwareVersion) {
|
|
66
|
-
return (0, semver_1.satisfies)(`${firmwareVersion}.0`, '>=5.0 <5.2') ? 65536 : inputValue;
|
|
67
|
-
}
|
|
68
|
-
/** Subindex: 28 */
|
|
69
|
-
static getSamplingFrequency(inputValue, firmwareVersion) {
|
|
70
|
-
return (0, semver_1.satisfies)(`${firmwareVersion}.0`, '>=5.0 <5.2') ? 1 : inputValue;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/** Encoder type: 7 */
|
|
74
|
-
class Ssi {
|
|
75
|
-
/** Subindex: 8 */
|
|
76
|
-
static getClockFrequency(inputValue) {
|
|
77
|
-
return Math.round(25000 / Math.max(Math.round(25000 / inputValue), 5));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/** Encoder type: 9 */
|
|
81
|
-
class SinCos {
|
|
82
|
-
/** Subindex: 3 */
|
|
83
|
-
static getResolution(sinewaveResolution, sinewaveCyclesPerRevolution) {
|
|
84
|
-
return sinewaveResolution * sinewaveCyclesPerRevolution;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
class Case1 {
|
|
88
|
-
/* Subindex: 3 */
|
|
89
|
-
static getResolution(resolution, productGroup) {
|
|
90
|
-
if (productGroup === 'Circulo 7') {
|
|
91
|
-
return 524288;
|
|
92
|
-
}
|
|
93
|
-
if (productGroup === 'Circulo 9') {
|
|
94
|
-
return 1048576;
|
|
95
|
-
}
|
|
96
|
-
return resolution;
|
|
97
|
-
}
|
|
98
|
-
/* Subindex: 8 (takes precedence over Case 2) */
|
|
99
|
-
static getClockFrequency() {
|
|
100
|
-
return 4167;
|
|
101
|
-
}
|
|
102
|
-
/* Subindex: 9 */
|
|
103
|
-
static getFrameSize(singleturnBits, multiturnBits) {
|
|
104
|
-
return singleturnBits + multiturnBits;
|
|
105
|
-
}
|
|
106
|
-
/* Subindex: 10 */
|
|
107
|
-
static getMultiturnBits(multiturnBits, sensorPort) {
|
|
108
|
-
if (sensorPort === 1 && multiturnBits !== 0) {
|
|
109
|
-
return 18;
|
|
110
|
-
}
|
|
111
|
-
return multiturnBits;
|
|
112
|
-
}
|
|
113
|
-
/* Subindex: 11 */
|
|
114
|
-
static getMultiturnFirstBitPosition() {
|
|
115
|
-
return 0;
|
|
116
|
-
}
|
|
117
|
-
/* Subindex: 12 */
|
|
118
|
-
static getSingleturnBits(singleturnBits, productGroup) {
|
|
119
|
-
if (productGroup === 'Circulo 7') {
|
|
120
|
-
return 19;
|
|
121
|
-
}
|
|
122
|
-
if (productGroup === 'Circulo 9') {
|
|
123
|
-
return 20;
|
|
124
|
-
}
|
|
125
|
-
return singleturnBits;
|
|
126
|
-
}
|
|
127
|
-
/* Subindex: 13 */
|
|
128
|
-
static getSingleturnFirstBitPosition(multiturnBits) {
|
|
129
|
-
return multiturnBits;
|
|
130
|
-
}
|
|
131
|
-
/* Subindex: 14 */
|
|
132
|
-
static getTimeout() {
|
|
133
|
-
return 2;
|
|
134
|
-
}
|
|
135
|
-
/* Subindex: 15 */
|
|
136
|
-
static getCrcPolynomial() {
|
|
137
|
-
return 67;
|
|
138
|
-
}
|
|
139
|
-
/* Subindex: 16 */
|
|
140
|
-
static getMaximumTBusy() {
|
|
141
|
-
return 20;
|
|
142
|
-
}
|
|
143
|
-
/* Subindex: 28 */
|
|
144
|
-
static getSamplingFrequency(multiturnBits) {
|
|
145
|
-
return multiturnBits !== 0 ? 1 : 2;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
class Case2 {
|
|
149
|
-
/* Subindex: 8 */
|
|
150
|
-
static getClockFrequency(clockFrequency) {
|
|
151
|
-
return Math.round(25000 / Math.max(Math.round(25000 / clockFrequency), 5));
|
|
152
|
-
}
|
|
153
|
-
/* Subindex: 28 (takes precedence over Case 1) */
|
|
154
|
-
static getSamplingFrequency() {
|
|
155
|
-
return 1;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
class Case3 {
|
|
159
|
-
/* Subindex: 3 */
|
|
160
|
-
static getResolution(integratedEncoderStBitsUsed) {
|
|
161
|
-
return 1 << integratedEncoderStBitsUsed;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Modify the encoder configuration types subitem values based on the encoder type and firmware version.
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* * `When encoder type is SinCos (9), apply function 'getResolution' to its subindex 3 value.`
|
|
169
|
-
* @link https://docs.google.com/spreadsheets/d/1tTGNMyg-40l4YxmDnXHrvVyIIyTcFc2ZauoABtgxPMA/edit?usp=sharing
|
|
170
|
-
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
171
|
-
*/
|
|
172
|
-
class EncoderConfigurationException {
|
|
173
|
-
}
|
|
174
|
-
exports.EncoderConfigurationException = EncoderConfigurationException;
|
|
175
|
-
EncoderConfigurationException.Hall = Hall;
|
|
176
|
-
EncoderConfigurationException.Incremental = Incremental;
|
|
177
|
-
EncoderConfigurationException.NikonA = NikonA;
|
|
178
|
-
EncoderConfigurationException.BiSS = Biss;
|
|
179
|
-
EncoderConfigurationException.Rem16MT = Rem16Mt;
|
|
180
|
-
EncoderConfigurationException.Ssi = Ssi;
|
|
181
|
-
EncoderConfigurationException.SinCos = SinCos;
|
|
182
|
-
EncoderConfigurationException.Case1 = Case1;
|
|
183
|
-
EncoderConfigurationException.Case2 = Case2;
|
|
184
|
-
EncoderConfigurationException.Case3 = Case3;
|
|
185
|
-
/**
|
|
186
|
-
* Selects the encoder configuration exception case based on the encoder ordinal, type, and product ID
|
|
187
|
-
*
|
|
188
|
-
* @param productId - The product ID to check against.
|
|
189
|
-
* @param encoderPort - The encoder port to check.
|
|
190
|
-
* @param encoderType - The encoder type to check.
|
|
191
|
-
* @param firmwareMajorMinorVersion - The firmware version in major.minor format.
|
|
192
|
-
* @returns The selected exception case or undefined if no case matches.
|
|
193
|
-
* @link https://docs.google.com/spreadsheets/d/1E0HTiZQtGmby2BJ9kOGV0UwD3HT6xQ7QRLjNbXpx5V0/edit?usp=sharing
|
|
194
|
-
*/
|
|
195
|
-
function getEncoderConfigurationExceptionCase(productId, encoderPort, encoderType, firmwareMajorMinorVersion) {
|
|
196
|
-
const firmwareVersion = `${firmwareMajorMinorVersion}.0`;
|
|
197
|
-
// Case 1
|
|
198
|
-
const case1EncoderTypes = (0, semver_1.satisfies)(firmwareVersion, '>=5.0 <5.1') ? [4] : [4, 5];
|
|
199
|
-
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.0') &&
|
|
200
|
-
(0, product_1.isSomanetProductIdInRange)(productId, 'Circulo All') &&
|
|
201
|
-
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
202
|
-
(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
203
|
-
case1EncoderTypes.includes(encoderType)) {
|
|
204
|
-
return 'case1';
|
|
205
|
-
}
|
|
206
|
-
// Case 2
|
|
207
|
-
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.1') &&
|
|
208
|
-
(0, product_1.isSomanetProductIdInRange)(productId, 'Circulo Safe Motion') &&
|
|
209
|
-
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
210
|
-
!(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
211
|
-
encoderType === 4) {
|
|
212
|
-
return 'case2';
|
|
213
|
-
}
|
|
214
|
-
// Case 3
|
|
215
|
-
if ((0, semver_1.satisfies)(firmwareVersion, '>=5.2') &&
|
|
216
|
-
(0, product_1.isSomanetProductIdInRange)(productId, 'Integro') &&
|
|
217
|
-
(0, product_1.isEncoderPortUsable)(encoderPort, productId) &&
|
|
218
|
-
(0, product_1.isEncoderPortInternal)(encoderPort, productId) &&
|
|
219
|
-
encoderType === 5) {
|
|
220
|
-
return 'case3';
|
|
221
|
-
}
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
exports.getEncoderConfigurationExceptionCase = getEncoderConfigurationExceptionCase;
|
|
225
|
-
//# sourceMappingURL=encoder-configuration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"encoder-configuration.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/encoder-configuration.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAGnC,uCAAgH;AAEhH,sBAAsB;AACtB,MAAM,IAAI;IACR,kBAAkB;IAClB,MAAM,CAAC,aAAa,CAAC,SAAiB;QACpC,OAAO,IAAI,GAAG,SAAS,CAAC;IAC1B,CAAC;CACF;AAED,sBAAsB;AACtB,MAAM,WAAW;IACf,kBAAkB;IAClB,MAAM,CAAC,wBAAwB,CAAC,UAAkB;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACtD,CAAC;IACD,mBAAmB;IACnB,MAAM,CAAC,qBAAqB,CAAC,UAAkB,EAAE,cAAsB;QACrE,mEAAmE;QACnE,OAAO,UAAU,KAAK,cAAc,CAAC;IACvC,CAAC;IACD,mBAAmB;IACnB,MAAM,CAAC,kBAAkB,CAAC,qBAA+B;QACvD,4EAA4E;QAC5E,OAAO,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,sBAAsB;AACtB,MAAM,MAAM;IACV,kBAAkB;IAClB,MAAM,CAAC,aAAa,CAAC,cAAsB;QACzC,OAAO,CAAC,IAAI,cAAc,CAAC;IAC7B,CAAC;IACD,kBAAkB;IAClB,MAAM,CAAC,iBA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