motion-master-client 0.0.309 → 0.0.310
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/lib/fetch.js +2 -2
- package/src/lib/fetch.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +13 -1
- package/src/lib/motion-master-req-res-client.js +20 -0
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/motion-master.proto.d.ts +182 -2
- package/src/lib/motion-master.proto.js +1882 -4
- package/src/lib/request-status-resolver.js +9 -0
- package/src/lib/request-status-resolver.js.map +1 -1
- package/src/lib/types.d.ts +3 -0
- package/src/lib/types.js.map +1 -1
- package/src/lib/util.d.ts +13 -0
- package/src/lib/util.js +32 -1
- package/src/lib/util.js.map +1 -1
|
@@ -77,6 +77,8 @@ export namespace motionmaster {
|
|
|
77
77
|
stopCirculoEncoderNarrowAngleCalibrationProcedure?: (motionmaster.MotionMasterMessage.Request.IStopCirculoEncoderNarrowAngleCalibrationProcedure|null);
|
|
78
78
|
startOsCommand?: (motionmaster.MotionMasterMessage.Request.IStartOsCommand|null);
|
|
79
79
|
executeForwardCall?: (motionmaster.MotionMasterMessage.Request.IExecuteForwardCall|null);
|
|
80
|
+
getSystemInformation?: (motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null);
|
|
81
|
+
setPdoMode?: (motionmaster.MotionMasterMessage.Request.ISetPdoMode|null);
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
class Request implements IRequest {
|
|
@@ -130,7 +132,9 @@ export namespace motionmaster {
|
|
|
130
132
|
public stopCirculoEncoderNarrowAngleCalibrationProcedure?: (motionmaster.MotionMasterMessage.Request.IStopCirculoEncoderNarrowAngleCalibrationProcedure|null);
|
|
131
133
|
public startOsCommand?: (motionmaster.MotionMasterMessage.Request.IStartOsCommand|null);
|
|
132
134
|
public executeForwardCall?: (motionmaster.MotionMasterMessage.Request.IExecuteForwardCall|null);
|
|
133
|
-
public
|
|
135
|
+
public getSystemInformation?: (motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null);
|
|
136
|
+
public setPdoMode?: (motionmaster.MotionMasterMessage.Request.ISetPdoMode|null);
|
|
137
|
+
public type?: ("pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|"getSystemInformation"|"setPdoMode");
|
|
134
138
|
public static create(properties?: motionmaster.MotionMasterMessage.IRequest): motionmaster.MotionMasterMessage.Request;
|
|
135
139
|
public static encode(message: motionmaster.MotionMasterMessage.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
136
140
|
public static encodeDelimited(message: motionmaster.MotionMasterMessage.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
@@ -1851,6 +1855,44 @@ export namespace motionmaster {
|
|
|
1851
1855
|
public toJSON(): { [k: string]: any };
|
|
1852
1856
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1853
1857
|
}
|
|
1858
|
+
|
|
1859
|
+
interface IGetSystemInformation {
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
class GetSystemInformation implements IGetSystemInformation {
|
|
1863
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Request.IGetSystemInformation);
|
|
1864
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Request.IGetSystemInformation): motionmaster.MotionMasterMessage.Request.GetSystemInformation;
|
|
1865
|
+
public static encode(message: motionmaster.MotionMasterMessage.Request.IGetSystemInformation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1866
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Request.IGetSystemInformation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1867
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Request.GetSystemInformation;
|
|
1868
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Request.GetSystemInformation;
|
|
1869
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1870
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Request.GetSystemInformation;
|
|
1871
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Request.GetSystemInformation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1872
|
+
public toJSON(): { [k: string]: any };
|
|
1873
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
interface ISetPdoMode {
|
|
1877
|
+
deviceAddress?: (number|null);
|
|
1878
|
+
mode?: (number|null);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
class SetPdoMode implements ISetPdoMode {
|
|
1882
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Request.ISetPdoMode);
|
|
1883
|
+
public deviceAddress: number;
|
|
1884
|
+
public mode: number;
|
|
1885
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Request.ISetPdoMode): motionmaster.MotionMasterMessage.Request.SetPdoMode;
|
|
1886
|
+
public static encode(message: motionmaster.MotionMasterMessage.Request.ISetPdoMode, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1887
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Request.ISetPdoMode, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1888
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Request.SetPdoMode;
|
|
1889
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Request.SetPdoMode;
|
|
1890
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1891
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Request.SetPdoMode;
|
|
1892
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Request.SetPdoMode, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1893
|
+
public toJSON(): { [k: string]: any };
|
|
1894
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1895
|
+
}
|
|
1854
1896
|
}
|
|
1855
1897
|
|
|
1856
1898
|
interface IStatus {
|
|
@@ -1889,6 +1931,8 @@ export namespace motionmaster {
|
|
|
1889
1931
|
circuloEncoderConfiguration?: (motionmaster.MotionMasterMessage.Status.ICirculoEncoderConfiguration|null);
|
|
1890
1932
|
osCommand?: (motionmaster.MotionMasterMessage.Status.IOsCommand|null);
|
|
1891
1933
|
forwardCall?: (motionmaster.MotionMasterMessage.Status.IForwardCall|null);
|
|
1934
|
+
systemInformation?: (motionmaster.MotionMasterMessage.Status.ISystemInformation|null);
|
|
1935
|
+
pdoMode?: (motionmaster.MotionMasterMessage.Status.IPdoMode|null);
|
|
1892
1936
|
}
|
|
1893
1937
|
|
|
1894
1938
|
class Status implements IStatus {
|
|
@@ -1928,7 +1972,9 @@ export namespace motionmaster {
|
|
|
1928
1972
|
public circuloEncoderConfiguration?: (motionmaster.MotionMasterMessage.Status.ICirculoEncoderConfiguration|null);
|
|
1929
1973
|
public osCommand?: (motionmaster.MotionMasterMessage.Status.IOsCommand|null);
|
|
1930
1974
|
public forwardCall?: (motionmaster.MotionMasterMessage.Status.IForwardCall|null);
|
|
1931
|
-
public
|
|
1975
|
+
public systemInformation?: (motionmaster.MotionMasterMessage.Status.ISystemInformation|null);
|
|
1976
|
+
public pdoMode?: (motionmaster.MotionMasterMessage.Status.IPdoMode|null);
|
|
1977
|
+
public type?: ("systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|"systemInformation"|"pdoMode");
|
|
1932
1978
|
public static create(properties?: motionmaster.MotionMasterMessage.IStatus): motionmaster.MotionMasterMessage.Status;
|
|
1933
1979
|
public static encode(message: motionmaster.MotionMasterMessage.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1934
1980
|
public static encodeDelimited(message: motionmaster.MotionMasterMessage.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
@@ -5298,6 +5344,140 @@ export namespace motionmaster {
|
|
|
5298
5344
|
}
|
|
5299
5345
|
}
|
|
5300
5346
|
}
|
|
5347
|
+
|
|
5348
|
+
interface ISystemInformation {
|
|
5349
|
+
version?: (string|null);
|
|
5350
|
+
startOptions?: (motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null);
|
|
5351
|
+
}
|
|
5352
|
+
|
|
5353
|
+
class SystemInformation implements ISystemInformation {
|
|
5354
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.ISystemInformation);
|
|
5355
|
+
public version: string;
|
|
5356
|
+
public startOptions?: (motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null);
|
|
5357
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.ISystemInformation): motionmaster.MotionMasterMessage.Status.SystemInformation;
|
|
5358
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.ISystemInformation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5359
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.ISystemInformation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5360
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.SystemInformation;
|
|
5361
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.SystemInformation;
|
|
5362
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5363
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.SystemInformation;
|
|
5364
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.SystemInformation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5365
|
+
public toJSON(): { [k: string]: any };
|
|
5366
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
namespace SystemInformation {
|
|
5370
|
+
|
|
5371
|
+
interface IStartOptions {
|
|
5372
|
+
driver?: (string|null);
|
|
5373
|
+
mac?: (string|null);
|
|
5374
|
+
reqResPort?: (number|null);
|
|
5375
|
+
pubSubPort?: (number|null);
|
|
5376
|
+
ips?: (string[]|null);
|
|
5377
|
+
pdoMode?: (string|null);
|
|
5378
|
+
}
|
|
5379
|
+
|
|
5380
|
+
class StartOptions implements IStartOptions {
|
|
5381
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions);
|
|
5382
|
+
public driver: string;
|
|
5383
|
+
public mac: string;
|
|
5384
|
+
public reqResPort: number;
|
|
5385
|
+
public pubSubPort: number;
|
|
5386
|
+
public ips: string[];
|
|
5387
|
+
public pdoMode: string;
|
|
5388
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions): motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions;
|
|
5389
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5390
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5391
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions;
|
|
5392
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions;
|
|
5393
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5394
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions;
|
|
5395
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5396
|
+
public toJSON(): { [k: string]: any };
|
|
5397
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5398
|
+
}
|
|
5399
|
+
}
|
|
5400
|
+
|
|
5401
|
+
interface IPdoMode {
|
|
5402
|
+
success?: (motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null);
|
|
5403
|
+
error?: (motionmaster.MotionMasterMessage.Status.PdoMode.IError|null);
|
|
5404
|
+
}
|
|
5405
|
+
|
|
5406
|
+
class PdoMode implements IPdoMode {
|
|
5407
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.IPdoMode);
|
|
5408
|
+
public success?: (motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null);
|
|
5409
|
+
public error?: (motionmaster.MotionMasterMessage.Status.PdoMode.IError|null);
|
|
5410
|
+
public status?: ("success"|"error");
|
|
5411
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.IPdoMode): motionmaster.MotionMasterMessage.Status.PdoMode;
|
|
5412
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.IPdoMode, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5413
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.IPdoMode, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5414
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.PdoMode;
|
|
5415
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.PdoMode;
|
|
5416
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5417
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.PdoMode;
|
|
5418
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.PdoMode, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5419
|
+
public toJSON(): { [k: string]: any };
|
|
5420
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5421
|
+
}
|
|
5422
|
+
|
|
5423
|
+
namespace PdoMode {
|
|
5424
|
+
|
|
5425
|
+
interface ISuccess {
|
|
5426
|
+
code?: (motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code|null);
|
|
5427
|
+
message?: (string|null);
|
|
5428
|
+
}
|
|
5429
|
+
|
|
5430
|
+
class Success implements ISuccess {
|
|
5431
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess);
|
|
5432
|
+
public code: motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code;
|
|
5433
|
+
public message: string;
|
|
5434
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess): motionmaster.MotionMasterMessage.Status.PdoMode.Success;
|
|
5435
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5436
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5437
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.PdoMode.Success;
|
|
5438
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.PdoMode.Success;
|
|
5439
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5440
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.PdoMode.Success;
|
|
5441
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.PdoMode.Success, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5442
|
+
public toJSON(): { [k: string]: any };
|
|
5443
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
namespace Success {
|
|
5447
|
+
|
|
5448
|
+
enum Code {
|
|
5449
|
+
UNSPECIFIED = 0
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
interface IError {
|
|
5454
|
+
code?: (motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code|null);
|
|
5455
|
+
message?: (string|null);
|
|
5456
|
+
}
|
|
5457
|
+
|
|
5458
|
+
class Error implements IError {
|
|
5459
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.PdoMode.IError);
|
|
5460
|
+
public code: motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code;
|
|
5461
|
+
public message: string;
|
|
5462
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.PdoMode.IError): motionmaster.MotionMasterMessage.Status.PdoMode.Error;
|
|
5463
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.PdoMode.IError, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5464
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.PdoMode.IError, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5465
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.PdoMode.Error;
|
|
5466
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.PdoMode.Error;
|
|
5467
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5468
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.PdoMode.Error;
|
|
5469
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.PdoMode.Error, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5470
|
+
public toJSON(): { [k: string]: any };
|
|
5471
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5472
|
+
}
|
|
5473
|
+
|
|
5474
|
+
namespace Error {
|
|
5475
|
+
|
|
5476
|
+
enum Code {
|
|
5477
|
+
UNSPECIFIED = 0
|
|
5478
|
+
}
|
|
5479
|
+
}
|
|
5480
|
+
}
|
|
5301
5481
|
}
|
|
5302
5482
|
}
|
|
5303
5483
|
}
|