motion-master-client 0.0.424 → 0.0.426
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/api.js +66 -34
- package/src/api.js.map +1 -1
- package/src/lib/circulo.d.ts +207 -0
- package/src/lib/circulo.js +334 -35
- package/src/lib/circulo.js.map +1 -1
- package/src/lib/motion-master-client.d.ts +28 -1
- package/src/lib/motion-master-client.js +48 -3
- package/src/lib/motion-master-client.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +44 -7
- package/src/lib/motion-master-req-res-client.js +100 -10
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/types.d.ts +17 -1
package/src/lib/types.d.ts
CHANGED
|
@@ -297,10 +297,26 @@ export interface PositionProfileConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
holdingDuration?: number;
|
|
299
299
|
/**
|
|
300
|
-
* If `relative` is true, the
|
|
300
|
+
* If `relative` is true, the target is an offset. The drive adds it to the position selected by the position option code (0x60F2),
|
|
301
|
+
* see `positionOptionCode`. The target is written to 0x607A and the set point is applied with the relative bit (6) of the controlword set.
|
|
302
|
+
* On firmware older than v5.6.0, which ignores the relative bit, the target is added to the actual position (0x6064) and the sum is written
|
|
303
|
+
* as the absolute target position (0x607A).
|
|
301
304
|
* If `relative` is false, the target is used as the absolute target position (0x607A).
|
|
302
305
|
*/
|
|
303
306
|
relative?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Position option code (0x60F2:00) for a relative move. Bits 0 and 1 select what the drive adds the offset to:
|
|
309
|
+
* 0 the previous target, 1 the demand position, 2 the actual position.
|
|
310
|
+
*
|
|
311
|
+
* When not given, bits 0 and 1 are set to 1 (demand position) and the other bits are kept. The drive resets the previous
|
|
312
|
+
* target to 0 every time it is enabled, so with 0 the first relative move after enabling goes to the target as an absolute position.
|
|
313
|
+
* With 1, a relative move starts from the drive's own target. After a move that was interrupted, for example by a quick stop, the demand
|
|
314
|
+
* position keeps the target of that move, so the next relative move goes to that target plus the offset.
|
|
315
|
+
*
|
|
316
|
+
* 0x60F2 is an on-demand object. When the value changes, the drive is taken through Switch On Disabled and Ready To Switch On
|
|
317
|
+
* to apply it, which disables the drive if it is enabled. Only used when `relative` is true and the firmware is v5.6.0 or newer.
|
|
318
|
+
*/
|
|
319
|
+
positionOptionCode?: number;
|
|
304
320
|
/**
|
|
305
321
|
* Controls whether a quick stop is issued after the target is reached.
|
|
306
322
|
*
|