motion-master-client 0.0.340 → 0.0.341

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.
@@ -5,18 +5,21 @@ import { UIFeaturesConfig } from './parameter';
5
5
  import { DeviceRef, DeviceRefObj } from './types';
6
6
  export declare const filenamePartRegExp: RegExp;
7
7
  /**
8
- * Represents a single device with extended properties beyond those provided by the Motion Master API.
9
- * Certain properties, such as the ID (serial number), hardware description, and integro variant, require additional file requests from Motion Master.
8
+ * Represents a single device with extended metadata beyond what the Motion Master API provides.
9
+ *
10
+ * Some properties—such as the serial number, hardware description, and variant—must be retrieved
11
+ * through additional file requests from Motion Master.
10
12
  */
11
13
  export interface Device {
12
14
  /**
13
- * The EtherCAT alias number of the device.
15
+ * The EtherCAT alias of the device, if configured.
14
16
  */
15
17
  alias?: number;
16
18
  /**
17
- * The unique address assigned to the device in the network.
18
- * This number is included in messages to Motion Master to reference the device.
19
- * Since the device address changes with each power cycle, the client library uses {@link DeviceRef} for consistent device referencing.
19
+ * The device address assigned by the EtherCAT master.
20
+ *
21
+ * Used when sending commands to Motion Master. Since the address changes after each
22
+ * power cycle, the client library uses {@link DeviceRef} as a stable reference.
20
23
  */
21
24
  deviceAddress: number;
22
25
  /**
@@ -25,7 +28,7 @@ export interface Device {
25
28
  */
26
29
  deviceProductId?: string;
27
30
  /**
28
- * The firmware ID for the device, used to identify and resolve the corresponding firmware package.
31
+ * Firmware ID used to identify and resolve the firmware package for the device.
29
32
  */
30
33
  fwid?: string;
31
34
  /**
@@ -33,75 +36,118 @@ export interface Device {
33
36
  */
34
37
  hardwareDescription?: HardwareDescription;
35
38
  /**
36
- * A unique identifier for the device.
37
- * The device serial number is a strong candidate for this identifier.
39
+ * Unique identifier of the device, typically its serial number.
38
40
  */
39
41
  id: string;
40
42
  /**
41
- * Identifier for the image file associated with the device.
42
- * Retrieved from the assembly or device entries in the hardware description file.
43
+ * Identifier of the image associated with this device.
44
+ * Retrieved from the assembly or device entries of the hardware description file.
43
45
  */
44
46
  imageId?: string;
45
47
  /**
46
- * Parsed `.variant` file containing variant-specific information.
48
+ * Parsed `.variant` file describing variant-specific information.
47
49
  */
48
50
  integroVariant?: IntegroVariant;
49
51
  /**
50
- * Device position in the network stack.
51
- * Note: In SOEM, the position starts at 1, as 0 is reserved for broadcasting.
52
- * In the IgH EtherCAT Master, the position starts at 0.
52
+ * Device position in the EtherCAT topology.
53
+ *
54
+ * - SOEM: positions start at 1 (0 is broadcast)
55
+ * - IgH EtherCAT Master: positions start at 0
53
56
  */
54
57
  position?: number;
55
58
  /**
56
- * The product ID of the device or assembly.
59
+ * Product ID of the device or its assembly.
57
60
  * Example: `6000`
58
61
  */
59
62
  productId?: string;
60
63
  /**
61
- * The serial number of the device as read from the hardware description file.
64
+ * Serial number read from the hardware description file.
62
65
  */
63
66
  serialNumber?: string;
64
67
  /**
65
- * Parsed `.stack_info.json` file containing stack-related metadata.
68
+ * Parsed `.stack_info.json` file with stack-related metadata.
66
69
  */
67
70
  stackInfo?: StackInfo;
68
71
  /**
69
- * The type of the device, which can be one of the following:
72
+ * Device type:
70
73
  * - `0`: UNSPECIFIED
71
74
  * - `1`: SOMANET_CIA401_ETHERCAT
72
75
  * - `2`: SOMANET_CIA402_ETHERCAT
73
76
  */
74
77
  type?: number;
75
78
  /**
76
- * User interface configuration for device-specific features.
79
+ * UI configuration for device-specific features.
77
80
  */
78
81
  uiFeaturesConfig?: UIFeaturesConfig;
79
82
  /**
80
- * This is a combination of the product ID and revision for a device.
83
+ * Product ID and revision combined.
81
84
  * Example: `8506-01`
82
85
  */
83
86
  versionedDeviceProductId?: string;
84
87
  /**
85
- * This is a combination of the product ID and revision for a device or assembly.
88
+ * Product or assembly ID and revision combined.
86
89
  * Example: `6000-01`
87
90
  */
88
91
  versionedProductId?: string;
89
92
  }
93
+ /**
94
+ * Returns the first defined value from a {@link DeviceRefObj}.
95
+ */
90
96
  export declare function getDeviceRefFromDeviceRefObj(deviceRefObj: DeviceRefObj): string | number | null;
97
+ /**
98
+ * Ensures that a {@link DeviceRef} is numeric if possible.
99
+ *
100
+ * If the value is numeric-like, it is converted to a number; otherwise the original string is returned.
101
+ */
91
102
  export declare function ensureDeviceRef(deviceRef: DeviceRef): DeviceRef;
103
+ /**
104
+ * Converts a {@link DeviceRef} into a structured {@link DeviceRefObj}.
105
+ *
106
+ * - Numbers ≤ `0xffff` are treated as device positions.
107
+ * - Larger numbers are treated as device addresses.
108
+ * - Strings are treated as serial numbers.
109
+ */
92
110
  export declare function makeDeviceRefObj(deviceRef: DeviceRef): DeviceRefObj;
111
+ /**
112
+ * Type guard verifying that a value is a valid {@link DeviceRef}.
113
+ */
93
114
  export declare function isDeviceRef(deviceRef: any): deviceRef is DeviceRef;
115
+ /**
116
+ * Validates the structure of a {@link DeviceRefObj}.
117
+ */
94
118
  export declare function isValidDeviceRefObj(obj: DeviceRefObj): boolean;
119
+ /**
120
+ * Parses a single device log line.
121
+ *
122
+ * Expected format:
123
+ * `HH:MM:SS.mmm LEVEL|MESSAGE`
124
+ */
95
125
  export declare function parseDeviceLog(line: string): DeviceLogLine | undefined;
126
+ /**
127
+ * Parses multi-line log content into an array of {@link DeviceLogLine}.
128
+ */
96
129
  export declare function parseDeviceLogContent(content: string): DeviceLogLine[];
130
+ /**
131
+ * Computes the "zero home offset" given a home offset and the current device position.
132
+ */
97
133
  export declare function computeZeroHomeOffsetFromPosition(homeOffset: number, position: number): number;
98
134
  /**
99
- * The FoE read command with the filename "fs-stackunlock=DD1317" enables writing or deleting protected files (i.e., files that begin with a dot ".").
135
+ * Name of the FoE file used to unlock protected filesystem operations.
136
+ *
137
+ * Sending a FoE read command with this filename allows writing or deleting
138
+ * protected files (i.e., files whose names start with a dot).
100
139
  */
101
140
  export declare const stackUnlockFilename = "fs-stackunlock=DD1317";
102
141
  /**
103
- * Base64-encoded empty firmware binary used during a Factory Reset to remove the currently installed firmware.
142
+ * Base64-encoded empty firmware image used during Factory Reset
143
+ * to remove the currently installed firmware.
104
144
  */
105
145
  export declare const emptyAppBase64 = "UEsDBBQACAAIABBye08AAAAAAAAAAAAAAAANACAAYXBwX2VtcHR5LmJpblVUDQAHMHfeXTB33l0wd95ddXgLAAEE6AMAAAToAwAAAwBQSwcIAAAAAAIAAAAAAAAAUEsBAhQDFAAIAAgAEHJ7TwAAAAACAAAAAAAAAA0AIAAAAAAAAAAAAKSBAAAAAGFwcF9lbXB0eS5iaW5VVA0ABzB33l0wd95dMHfeXXV4CwABBOgDAAAE6AMAAFBLBQYAAAAAAQABAFsAAABdAAAAAAA=";
146
+ /**
147
+ * Returns `true` if the filename represents a multi-part ZIP file.
148
+ */
106
149
  export declare function isFilenamePart(filename: string): boolean;
150
+ /**
151
+ * Default set of files preserved during Factory Reset.
152
+ */
107
153
  export declare const factoryResetDefaultFilesToKeep: string[];
package/src/lib/device.js CHANGED
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.factoryResetDefaultFilesToKeep = exports.isFilenamePart = exports.emptyAppBase64 = exports.stackUnlockFilename = exports.computeZeroHomeOffsetFromPosition = exports.parseDeviceLogContent = exports.parseDeviceLog = exports.isValidDeviceRefObj = exports.isDeviceRef = exports.makeDeviceRefObj = exports.ensureDeviceRef = exports.getDeviceRefFromDeviceRefObj = exports.filenamePartRegExp = void 0;
4
4
  exports.filenamePartRegExp = /^(.*?)(?:\.zip(?:\.part\d+)?)$/;
5
+ /**
6
+ * Returns the first defined value from a {@link DeviceRefObj}.
7
+ */
5
8
  function getDeviceRefFromDeviceRefObj(deviceRefObj) {
6
9
  for (const [_, value] of Object.entries(deviceRefObj)) {
7
10
  if (value !== undefined) {
@@ -11,11 +14,23 @@ function getDeviceRefFromDeviceRefObj(deviceRefObj) {
11
14
  return null;
12
15
  }
13
16
  exports.getDeviceRefFromDeviceRefObj = getDeviceRefFromDeviceRefObj;
17
+ /**
18
+ * Ensures that a {@link DeviceRef} is numeric if possible.
19
+ *
20
+ * If the value is numeric-like, it is converted to a number; otherwise the original string is returned.
21
+ */
14
22
  function ensureDeviceRef(deviceRef) {
15
23
  const n = Number(deviceRef);
16
24
  return isNaN(n) ? deviceRef : n;
17
25
  }
18
26
  exports.ensureDeviceRef = ensureDeviceRef;
27
+ /**
28
+ * Converts a {@link DeviceRef} into a structured {@link DeviceRefObj}.
29
+ *
30
+ * - Numbers ≤ `0xffff` are treated as device positions.
31
+ * - Larger numbers are treated as device addresses.
32
+ * - Strings are treated as serial numbers.
33
+ */
19
34
  function makeDeviceRefObj(deviceRef) {
20
35
  deviceRef = ensureDeviceRef(deviceRef);
21
36
  if (typeof deviceRef === 'number') {
@@ -31,18 +46,30 @@ function makeDeviceRefObj(deviceRef) {
31
46
  }
32
47
  }
33
48
  exports.makeDeviceRefObj = makeDeviceRefObj;
49
+ /**
50
+ * Type guard verifying that a value is a valid {@link DeviceRef}.
51
+ */
34
52
  function isDeviceRef(deviceRef) {
35
53
  return (deviceRef !== undefined &&
36
54
  deviceRef !== null &&
37
55
  (typeof deviceRef === 'string' || (typeof deviceRef === 'number' && deviceRef >= 0)));
38
56
  }
39
57
  exports.isDeviceRef = isDeviceRef;
58
+ /**
59
+ * Validates the structure of a {@link DeviceRefObj}.
60
+ */
40
61
  function isValidDeviceRefObj(obj) {
41
62
  return (Number.isFinite(Number(obj.deviceAddress)) ||
42
63
  (typeof obj.devicePosition === 'number' && obj.devicePosition >= 0) ||
43
64
  typeof obj.deviceSerialNumber === 'string');
44
65
  }
45
66
  exports.isValidDeviceRefObj = isValidDeviceRefObj;
67
+ /**
68
+ * Parses a single device log line.
69
+ *
70
+ * Expected format:
71
+ * `HH:MM:SS.mmm LEVEL|MESSAGE`
72
+ */
46
73
  function parseDeviceLog(line) {
47
74
  const re = /^(\d{2}:\d{2}:\d{2}\.\d+)\s(.*)\|(.*)$/gm;
48
75
  const result = re.exec(line);
@@ -56,6 +83,9 @@ function parseDeviceLog(line) {
56
83
  return;
57
84
  }
58
85
  exports.parseDeviceLog = parseDeviceLog;
86
+ /**
87
+ * Parses multi-line log content into an array of {@link DeviceLogLine}.
88
+ */
59
89
  function parseDeviceLogContent(content) {
60
90
  return content
61
91
  .split('\n')
@@ -63,22 +93,35 @@ function parseDeviceLogContent(content) {
63
93
  .filter((l) => l !== undefined);
64
94
  }
65
95
  exports.parseDeviceLogContent = parseDeviceLogContent;
96
+ /**
97
+ * Computes the "zero home offset" given a home offset and the current device position.
98
+ */
66
99
  function computeZeroHomeOffsetFromPosition(homeOffset, position) {
67
100
  return homeOffset - position;
68
101
  }
69
102
  exports.computeZeroHomeOffsetFromPosition = computeZeroHomeOffsetFromPosition;
70
103
  /**
71
- * The FoE read command with the filename "fs-stackunlock=DD1317" enables writing or deleting protected files (i.e., files that begin with a dot ".").
104
+ * Name of the FoE file used to unlock protected filesystem operations.
105
+ *
106
+ * Sending a FoE read command with this filename allows writing or deleting
107
+ * protected files (i.e., files whose names start with a dot).
72
108
  */
73
109
  exports.stackUnlockFilename = 'fs-stackunlock=DD1317';
74
110
  /**
75
- * Base64-encoded empty firmware binary used during a Factory Reset to remove the currently installed firmware.
111
+ * Base64-encoded empty firmware image used during Factory Reset
112
+ * to remove the currently installed firmware.
76
113
  */
77
114
  exports.emptyAppBase64 = 'UEsDBBQACAAIABBye08AAAAAAAAAAAAAAAANACAAYXBwX2VtcHR5LmJpblVUDQAHMHfeXTB33l0wd95ddXgLAAEE6AMAAAToAwAAAwBQSwcIAAAAAAIAAAAAAAAAUEsBAhQDFAAIAAgAEHJ7TwAAAAACAAAAAAAAAA0AIAAAAAAAAAAAAKSBAAAAAGFwcF9lbXB0eS5iaW5VVA0ABzB33l0wd95dMHfeXXV4CwABBOgDAAAE6AMAAFBLBQYAAAAAAQABAFsAAABdAAAAAAA=';
115
+ /**
116
+ * Returns `true` if the filename represents a multi-part ZIP file.
117
+ */
78
118
  function isFilenamePart(filename) {
79
119
  return exports.filenamePartRegExp.test(filename);
80
120
  }
81
121
  exports.isFilenamePart = isFilenamePart;
122
+ /**
123
+ * Default set of files preserved during Factory Reset.
124
+ */
82
125
  exports.factoryResetDefaultFilesToKeep = [
83
126
  '.assembly_config',
84
127
  '.factory_config',
@@ -1 +1 @@
1
- {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/device.ts"],"names":[],"mappings":";;;AAMa,QAAA,kBAAkB,GAAG,gCAAgC,CAAC;AAqGnE,SAAgB,4BAA4B,CAAC,YAA0B;IACrE,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACrD,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,oEAOC;AAED,SAAgB,eAAe,CAAC,SAAoB;IAClD,MAAM,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC;AAHD,0CAGC;AAED,SAAgB,gBAAgB,CAAC,SAAoB;IACnD,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QACjC,IAAI,SAAS,IAAI,MAAM,EAAE;YACvB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC;SACtC;aAAM;YACL,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;SACrC;KACF;SAAM;QACL,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC;KAC1C;AACH,CAAC;AAXD,4CAWC;AAED,SAAgB,WAAW,CAAC,SAAc;IACxC,OAAO,CACL,SAAS,KAAK,SAAS;QACvB,SAAS,KAAK,IAAI;QAClB,CAAC,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,OAAO,SAAS,KAAK,QAAQ,IAAI,SAA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C;AAEzR,SAAgB,cAAc,CAAC,QAAgB;IAC7C,OAAO,0BAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC;AAFD,wCAEC;AAEY,QAAA,8BAA8B,GAAG;IAC5C,kBAAkB;IAClB,iBAAiB;IACjB,uBAAuB;IACvB,UAAU;IACV,iBAAiB;CAClB,CAAC"}
1
+ {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/device.ts"],"names":[],"mappings":";;;AAMa,QAAA,kBAAkB,GAAG,gCAAgC,CAAC;AAwGnE;;GAEG;AACH,SAAgB,4BAA4B,CAAC,YAA0B;IACrE,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACrD,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,oEAOC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,SAAoB;IAClD,MAAM,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC;AAHD,0CAGC;AAED;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,SAAoB;IACnD,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QACjC,IAAI,SAAS,IAAI,MAAM,EAAE;YACvB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC;SACtC;aAAM;YACL,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;SACrC;KACF;SAAM;QACL,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC;KAC1C;AACH,CAAC;AAXD,4CAWC;AAED;;GAEG;A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AAED;;GAEG;AACH,SAAgB,iCAAiC,CAAC,UAAkB,EAAE,QAAgB;IACpF,OAAO,UAAU,GAAG,QAAQ,CAAC;AAC/B,CAAC;AAFD,8EAEC;AAED;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,uBAAuB,CAAC;AAE3D;;;GAGG;AACU,QAAA,cAAc,GACzB,sRAAsR,CAAC;AAEzR;;GAEG;AACH,SAAgB,cAAc,CAAC,QAAgB;IAC7C,OAAO,0BAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC;AAFD,wCAEC;AAED;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,kBAAkB;IAClB,iBAAiB;IACjB,uBAAuB;IACvB,UAAU;IACV,iBAAiB;CAClB,CAAC"}
@@ -1938,8 +1938,6 @@ export declare class MotionMasterReqResClient {
1938
1938
  * and lists the supported pin modes. If all pin modes for a pin are disabled, the array defaults to `[0]`.
1939
1939
  */
1940
1940
  getSupportedDios(deviceRef: DeviceRef): Observable<number[][]>;
1941
- getMaxValuePercentageColor(percentage: number): "" | "#6ba853" | "#aeb303" | "#e69138" | "#fb262e";
1942
- getMaxValuePercentageLabel(percentage: number): "" | "Calibration was successful. Encoder system is robust to mechanical displacements and temperature expansions." | "Calibration was successful. Encoder system is robust to small mechanical displacements and temperature expansions." | "Calibration was successful. Mechanical displacement and temperature expansions should be avoided." | "Phase error is too high. The absolute position can't be computed reliably. Adjust mechanical position and repeat calibration.";
1943
1941
  /**
1944
1942
  * Checks the Circulo encoder error status registers for a specified encoder ordinal.
1945
1943
  *
@@ -3762,38 +3762,6 @@ class MotionMasterReqResClient {
3762
3762
  }));
3763
3763
  }));
3764
3764
  }
3765
- // TODO: Move to another file
3766
- getMaxValuePercentageColor(percentage) {
3767
- if (percentage >= 50 && percentage <= 100) {
3768
- return '#6ba853';
3769
- }
3770
- else if (percentage > 20 && percentage < 50) {
3771
- return '#aeb303';
3772
- }
3773
- else if (percentage > 0 && percentage <= 20) {
3774
- return '#e69138';
3775
- }
3776
- else if (percentage <= 0) {
3777
- return '#fb262e';
3778
- }
3779
- return '';
3780
- }
3781
- // TODO: Move to another file
3782
- getMaxValuePercentageLabel(percentage) {
3783
- if (percentage >= 50 && percentage <= 100) {
3784
- return 'Calibration was successful. Encoder system is robust to mechanical displacements and temperature expansions.';
3785
- }
3786
- else if (percentage > 20 && percentage < 50) {
3787
- return 'Calibration was successful. Encoder system is robust to small mechanical displacements and temperature expansions.';
3788
- }
3789
- else if (percentage > 0 && percentage <= 20) {
3790
- return 'Calibration was successful. Mechanical displacement and temperature expansions should be avoided.';
3791
- }
3792
- else if (percentage <= 0) {
3793
- return "Phase error is too high. The absolute position can't be computed reliably. Adjust mechanical position and repeat calibration.";
3794
- }
3795
- return '';
3796
- }
3797
3765
  /**
3798
3766
  * Checks the Circulo encoder error status registers for a specified encoder ordinal.
3799
3767
  *