motion-master-client 0.0.358 → 0.0.359
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 +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/error-reports.d.ts +69 -0
- package/src/lib/error-reports.js +29 -0
- package/src/lib/error-reports.js.map +1 -0
- package/src/lib/smm-od-v2.json +5 -5
- package/src/lib/error-report.d.ts +0 -15
- package/src/lib/error-report.js +0 -3
- package/src/lib/error-report.js.map +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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/error-reports';
|
|
9
10
|
export * from './lib/ethercat';
|
|
10
11
|
export * from './lib/ethernet';
|
|
11
12
|
export * from './lib/fetch';
|
package/src/index.js
CHANGED
|
@@ -9,6 +9,7 @@ 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/error-reports"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./lib/ethercat"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./lib/ethernet"), exports);
|
|
14
15
|
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,yDAA+B;AAC/B,yDAA+B;AAC/B,sDAA4B;AAC5B,yDAA+B;AAC/B,qEAA2C;AAC3C,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,0DAAgC;AAChC,oFAA0D;AAC1D,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,oDAA0B;AAC1B,wDAA8B;AAC9B,wEAA8C;AAC9C,oDAA0B;AAC1B,uDAA6B;AAC7B,oDAA0B;AAC1B,gEAAsC;AACtC,sDAA4B;AAC5B,sDAA4B;AAC5B,8DAAoC;AACpC,qDAA2B;AAC3B,kFAAwD"}
|
|
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,8DAAoC;AACpC,yDAA+B;AAC/B,yDAA+B;AAC/B,sDAA4B;AAC5B,yDAA+B;AAC/B,qEAA2C;AAC3C,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,0DAAgC;AAChC,oFAA0D;AAC1D,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,oDAA0B;AAC1B,wDAA8B;AAC9B,wEAA8C;AAC9C,oDAA0B;AAC1B,uDAA6B;AAC7B,oDAA0B;AAC1B,gEAAsC;AACtC,sDAA4B;AAC5B,sDAA4B;AAC5B,8DAAoC;AACpC,qDAA2B;AAC3B,kFAAwD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a single error report entry loaded from `error-reports-v2.json`.
|
|
4
|
+
*
|
|
5
|
+
* Error reports describe known error conditions, affected firmware versions,
|
|
6
|
+
* error codes, and suggested remedies.
|
|
7
|
+
*/
|
|
8
|
+
export interface ErrorReport {
|
|
9
|
+
/**
|
|
10
|
+
* Logical grouping or category of the error (e.g. "Communication", "Safety").
|
|
11
|
+
*/
|
|
12
|
+
group: string;
|
|
13
|
+
/**
|
|
14
|
+
* Short, human-readable error title or summary.
|
|
15
|
+
*/
|
|
16
|
+
errorReport: string;
|
|
17
|
+
/**
|
|
18
|
+
* Detailed technical description of the error.
|
|
19
|
+
*/
|
|
20
|
+
longForm: string;
|
|
21
|
+
/**
|
|
22
|
+
* High-level explanation intended for users or integrators.
|
|
23
|
+
*/
|
|
24
|
+
explanation: string;
|
|
25
|
+
/**
|
|
26
|
+
* Raw list or formatted representation of associated error codes.
|
|
27
|
+
*/
|
|
28
|
+
errorCodeList: string;
|
|
29
|
+
/**
|
|
30
|
+
* Recommended actions or steps to resolve the error.
|
|
31
|
+
*/
|
|
32
|
+
remedy: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether the error applies to firmware version 4.2.
|
|
35
|
+
*/
|
|
36
|
+
'v4.2': boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the error applies to firmware version 4.4.
|
|
39
|
+
*/
|
|
40
|
+
'v4.4': boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the error applies to firmware version 5.0.
|
|
43
|
+
*/
|
|
44
|
+
'v5.0': boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the error applies to firmware version 5.1.
|
|
47
|
+
*/
|
|
48
|
+
'v5.1': boolean;
|
|
49
|
+
/**
|
|
50
|
+
* List of firmware identifiers where this error is known to occur.
|
|
51
|
+
*/
|
|
52
|
+
firmwares: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Numeric error code reported by the device or firmware.
|
|
55
|
+
*/
|
|
56
|
+
errorCode: number;
|
|
57
|
+
/**
|
|
58
|
+
* Unique identifier for this error report entry.
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Fetches the error reports JSON as an Observable.
|
|
64
|
+
* Can optionally cache the result.
|
|
65
|
+
*
|
|
66
|
+
* @param useCache Whether to cache the result for future subscribers. Default: true.
|
|
67
|
+
* @returns Observable of ErrorReport array
|
|
68
|
+
*/
|
|
69
|
+
export declare function getErrorReports(useCache?: boolean): Observable<ErrorReport[]>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getErrorReports = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const fetch_1 = require("./fetch");
|
|
7
|
+
/**
|
|
8
|
+
* Fetches the error reports JSON as an Observable.
|
|
9
|
+
* Can optionally cache the result.
|
|
10
|
+
*
|
|
11
|
+
* @param useCache Whether to cache the result for future subscribers. Default: true.
|
|
12
|
+
* @returns Observable of ErrorReport array
|
|
13
|
+
*/
|
|
14
|
+
function getErrorReports(useCache = true) {
|
|
15
|
+
// Internal cache holder
|
|
16
|
+
let cached$;
|
|
17
|
+
// The actual getter
|
|
18
|
+
const fetch$ = () => (0, rxjs_1.defer)(() => (0, fetch_1.fetchAndResolve)('/error-reports-v2.json', 'json', false));
|
|
19
|
+
if (!useCache) {
|
|
20
|
+
return fetch$();
|
|
21
|
+
}
|
|
22
|
+
// Create cached observable if needed
|
|
23
|
+
if (!cached$) {
|
|
24
|
+
cached$ = fetch$().pipe((0, operators_1.shareReplay)({ bufferSize: 1, refCount: false }));
|
|
25
|
+
}
|
|
26
|
+
return cached$;
|
|
27
|
+
}
|
|
28
|
+
exports.getErrorReports = getErrorReports;
|
|
29
|
+
//# sourceMappingURL=error-reports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-reports.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/error-reports.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AACzC,8CAA6C;AAC7C,mCAA0C;AA2E1C;;;;;;GAMG;AACH,SAAgB,eAAe,CAAC,QAAQ,GAAG,IAAI;IAC7C,wBAAwB;IACxB,IAAI,OAA8C,CAAC;IAEnD,oBAAoB;IACpB,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,IAAA,YAAK,EAAC,GAAG,EAAE,CAAC,IAAA,uBAAe,EAAC,wBAAwB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAE3F,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,MAAM,EAAE,CAAC;KACjB;IAED,qCAAqC;IACrC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,IAAA,uBAAW,EAAC,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;KAC1E;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAjBD,0CAiBC"}
|
package/src/lib/smm-od-v2.json
CHANGED
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
{
|
|
1558
1558
|
"parameterName": "SLT input",
|
|
1559
1559
|
"variableName": "STR_ConfiguredInput",
|
|
1560
|
-
"group": "SLT",
|
|
1560
|
+
"group": "Safety functions (SLT)",
|
|
1561
1561
|
"index": 9906,
|
|
1562
1562
|
"subindex": 1,
|
|
1563
1563
|
"description": "Specifies the associated safe digital input used for activation of the safety function",
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
{
|
|
1575
1575
|
"parameterName": "SLT source",
|
|
1576
1576
|
"variableName": "torqueSource",
|
|
1577
|
-
"group": "SLT",
|
|
1577
|
+
"group": "Safety functions (SLT)",
|
|
1578
1578
|
"index": 9906,
|
|
1579
1579
|
"subindex": 2,
|
|
1580
1580
|
"description": "The specified torque source to be used for supervision.",
|
|
@@ -1591,7 +1591,7 @@
|
|
|
1591
1591
|
{
|
|
1592
1592
|
"parameterName": "f_PosLim_SLT",
|
|
1593
1593
|
"variableName": "f_UL_STR",
|
|
1594
|
-
"group": "SLT",
|
|
1594
|
+
"group": "Safety functions (SLT)",
|
|
1595
1595
|
"index": 26289,
|
|
1596
1596
|
"subindex": 1,
|
|
1597
1597
|
"description": "Torque upper limit",
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
{
|
|
1608
1608
|
"parameterName": "f_NegLimit_SLT",
|
|
1609
1609
|
"variableName": "f_LL_STR",
|
|
1610
|
-
"group": "SLT",
|
|
1610
|
+
"group": "Safety functions (SLT)",
|
|
1611
1611
|
"index": 26290,
|
|
1612
1612
|
"subindex": 1,
|
|
1613
1613
|
"description": "Torque lower limit",
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
{
|
|
1624
1624
|
"parameterName": "SLT Limit violation reaction",
|
|
1625
1625
|
"variableName": "STRLimitViolationReaction",
|
|
1626
|
-
"group": "SLT",
|
|
1626
|
+
"group": "Safety functions (SLT)",
|
|
1627
1627
|
"index": 26291,
|
|
1628
1628
|
"subindex": 1,
|
|
1629
1629
|
"description": "The limit violation reaction for SLT",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ErrorReport {
|
|
2
|
-
group: string;
|
|
3
|
-
errorReport: string;
|
|
4
|
-
longForm: string;
|
|
5
|
-
explanation: string;
|
|
6
|
-
errorCodeList: string;
|
|
7
|
-
remedy: string;
|
|
8
|
-
'v4.2': boolean;
|
|
9
|
-
'v4.4': boolean;
|
|
10
|
-
'v5.0': boolean;
|
|
11
|
-
'v5.1': boolean;
|
|
12
|
-
firmwares: string[];
|
|
13
|
-
errorCode: number;
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
package/src/lib/error-report.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-report.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/error-report.ts"],"names":[],"mappings":""}
|