node-opcua-nodeset-cnc 2.75.0 → 2.76.0
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/dist/dt_cnc_position.d.ts +19 -19
- package/dist/dt_cnc_position.js +2 -2
- package/dist/enum_cnc_axis_status.d.ts +24 -24
- package/dist/enum_cnc_axis_status.js +29 -29
- package/dist/enum_cnc_channel_program_status.d.ts +32 -32
- package/dist/enum_cnc_channel_program_status.js +37 -37
- package/dist/enum_cnc_channel_status.d.ts +24 -24
- package/dist/enum_cnc_channel_status.js +29 -29
- package/dist/enum_cnc_operation_mode.d.ts +15 -15
- package/dist/enum_cnc_operation_mode.js +20 -20
- package/dist/enum_cnc_spindle_status.d.ts +32 -32
- package/dist/enum_cnc_spindle_status.js +37 -37
- package/dist/enum_cnc_spindle_turn_direction.d.ts +24 -24
- package/dist/enum_cnc_spindle_turn_direction.js +29 -29
- package/dist/index.d.ts +19 -19
- package/dist/index.js +35 -35
- package/dist/ua_cnc_alarm.d.ts +36 -36
- package/dist/ua_cnc_alarm.js +2 -2
- package/dist/ua_cnc_axis.d.ts +62 -62
- package/dist/ua_cnc_axis.js +2 -2
- package/dist/ua_cnc_axis_list.d.ts +15 -15
- package/dist/ua_cnc_axis_list.js +2 -2
- package/dist/ua_cnc_channel.d.ts +264 -264
- package/dist/ua_cnc_channel.js +2 -2
- package/dist/ua_cnc_channel_list.d.ts +15 -15
- package/dist/ua_cnc_channel_list.js +2 -2
- package/dist/ua_cnc_component.d.ts +16 -16
- package/dist/ua_cnc_component.js +2 -2
- package/dist/ua_cnc_drive.d.ts +78 -78
- package/dist/ua_cnc_drive.js +2 -2
- package/dist/ua_cnc_interface.d.ts +60 -60
- package/dist/ua_cnc_interface.js +2 -2
- package/dist/ua_cnc_message.d.ts +14 -15
- package/dist/ua_cnc_message.js +2 -2
- package/dist/ua_cnc_position_variable.d.ts +39 -39
- package/dist/ua_cnc_position_variable.js +2 -2
- package/dist/ua_cnc_spindle.d.ts +82 -82
- package/dist/ua_cnc_spindle.js +2 -2
- package/dist/ua_cnc_spindle_list.d.ts +221 -221
- package/dist/ua_cnc_spindle_list.js +2 -2
- package/package.json +10 -10
- package/source/dt_cnc_position.ts +1 -1
- package/source/ua_cnc_alarm.ts +3 -3
- package/source/ua_cnc_axis.ts +7 -7
- package/source/ua_cnc_axis_list.ts +1 -0
- package/source/ua_cnc_channel.ts +46 -44
- package/source/ua_cnc_channel_list.ts +1 -0
- package/source/ua_cnc_drive.ts +19 -19
- package/source/ua_cnc_interface.ts +5 -5
- package/source/ua_cnc_message.ts +1 -2
- package/source/ua_cnc_position_variable.ts +7 -7
- package/source/ua_cnc_spindle.ts +14 -14
- package/source/ua_cnc_spindle_list.ts +38 -37
package/source/ua_cnc_channel.ts
CHANGED
|
@@ -12,29 +12,29 @@ import { EnumCncChannelProgramStatus } from "./enum_cnc_channel_program_status"
|
|
|
12
12
|
import { EnumCncChannelStatus } from "./enum_cnc_channel_status"
|
|
13
13
|
import { DTCncPosition } from "./dt_cnc_position"
|
|
14
14
|
import { UACncPositionVariable } from "./ua_cnc_position_variable"
|
|
15
|
-
export interface UACncChannel_actFeedrate<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
16
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
17
|
-
euRange: UAProperty<DTRange,
|
|
15
|
+
export interface UACncChannel_actFeedrate<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
16
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
17
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
18
18
|
}
|
|
19
|
-
export interface UACncChannel_actJogIncrement<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
20
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
21
|
-
euRange: UAProperty<DTRange,
|
|
19
|
+
export interface UACncChannel_actJogIncrement<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
20
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
21
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
22
22
|
}
|
|
23
|
-
export interface UACncChannel_actOverride<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
24
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
25
|
-
euRange: UAProperty<DTRange,
|
|
23
|
+
export interface UACncChannel_actOverride<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
24
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
25
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
26
26
|
}
|
|
27
|
-
export interface UACncChannel_cmdFeedrate<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
28
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
29
|
-
euRange: UAProperty<DTRange,
|
|
27
|
+
export interface UACncChannel_cmdFeedrate<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
28
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
29
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
30
30
|
}
|
|
31
|
-
export interface UACncChannel_cmdOverride<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
32
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
33
|
-
euRange: UAProperty<DTRange,
|
|
31
|
+
export interface UACncChannel_cmdOverride<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
32
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
33
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
34
34
|
}
|
|
35
|
-
export interface UACncChannel_dryRunFeed<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
36
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
37
|
-
euRange: UAProperty<DTRange,
|
|
35
|
+
export interface UACncChannel_dryRunFeed<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
36
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
37
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* CNC channel component.
|
|
@@ -47,141 +47,143 @@ export interface UACncChannel_dryRunFeed<T, DT extends DataType> extends Omit<UA
|
|
|
47
47
|
* |isAbstract |false |
|
|
48
48
|
*/
|
|
49
49
|
export interface UACncChannel_Base extends UACncComponent_Base {
|
|
50
|
+
// PlaceHolder for $CncAxis$
|
|
51
|
+
// PlaceHolder for $CncSpindle$
|
|
50
52
|
/**
|
|
51
53
|
* actFeedrate
|
|
52
54
|
* Feedrate actual value.
|
|
53
55
|
*/
|
|
54
|
-
actFeedrate: UACncChannel_actFeedrate<number,
|
|
56
|
+
actFeedrate: UACncChannel_actFeedrate<number, DataType.Double>;
|
|
55
57
|
/**
|
|
56
58
|
* actGFunctions
|
|
57
59
|
* Array of active G functions; there can be several
|
|
58
60
|
* G functions active at a time (modal and non-modal
|
|
59
61
|
* G functions).
|
|
60
62
|
*/
|
|
61
|
-
actGFunctions: UADataItem<UInt32[],
|
|
63
|
+
actGFunctions: UADataItem<UInt32[], DataType.UInt32>;
|
|
62
64
|
/**
|
|
63
65
|
* actJogIncrement
|
|
64
66
|
* Active JOG increment.
|
|
65
67
|
*/
|
|
66
|
-
actJogIncrement: UACncChannel_actJogIncrement<number,
|
|
68
|
+
actJogIncrement: UACncChannel_actJogIncrement<number, DataType.Double>;
|
|
67
69
|
/**
|
|
68
70
|
* actMainProgramFile
|
|
69
71
|
* Path of active CNC main program.
|
|
70
72
|
*/
|
|
71
|
-
actMainProgramFile: UADataItem<UAString,
|
|
73
|
+
actMainProgramFile: UADataItem<UAString, DataType.String>;
|
|
72
74
|
/**
|
|
73
75
|
* actMainProgramFileOffset
|
|
74
76
|
* File offset of active CNC main program file.
|
|
75
77
|
*/
|
|
76
|
-
actMainProgramFileOffset?: UADataItem<UInt32,
|
|
78
|
+
actMainProgramFileOffset?: UADataItem<UInt32, DataType.UInt32>;
|
|
77
79
|
/**
|
|
78
80
|
* actMainProgramLine
|
|
79
81
|
* Line number of active CNC main program.
|
|
80
82
|
*/
|
|
81
|
-
actMainProgramLine?: UADataItem<UAString,
|
|
83
|
+
actMainProgramLine?: UADataItem<UAString, DataType.String>;
|
|
82
84
|
/**
|
|
83
85
|
* actMainProgramName
|
|
84
86
|
* Name of active CNC main program.
|
|
85
87
|
*/
|
|
86
|
-
actMainProgramName: UADataItem<UAString,
|
|
88
|
+
actMainProgramName: UADataItem<UAString, DataType.String>;
|
|
87
89
|
/**
|
|
88
90
|
* actMFunctions
|
|
89
91
|
* Array of active M functions: there can be several
|
|
90
92
|
* M functions active at a time (modal and non-modal
|
|
91
93
|
* M functions).
|
|
92
94
|
*/
|
|
93
|
-
actMFunctions: UADataItem<UInt32[],
|
|
95
|
+
actMFunctions: UADataItem<UInt32[], DataType.UInt32>;
|
|
94
96
|
/**
|
|
95
97
|
* actModalOffsetFunction
|
|
96
98
|
* Active zero offset function.
|
|
97
99
|
*/
|
|
98
|
-
actModalOffsetFunction: UADataItem<UInt32,
|
|
100
|
+
actModalOffsetFunction: UADataItem<UInt32, DataType.UInt32>;
|
|
99
101
|
/**
|
|
100
102
|
* actOperationMode
|
|
101
103
|
* Channel's active mode of operation.
|
|
102
104
|
*/
|
|
103
|
-
actOperationMode: UADataItem<EnumCncOperationMode,
|
|
105
|
+
actOperationMode: UADataItem<EnumCncOperationMode, DataType.Int32>;
|
|
104
106
|
/**
|
|
105
107
|
* actOverride
|
|
106
108
|
* Axis override actual value.
|
|
107
109
|
*/
|
|
108
|
-
actOverride: UACncChannel_actOverride<number,
|
|
110
|
+
actOverride: UACncChannel_actOverride<number, DataType.Double>;
|
|
109
111
|
/**
|
|
110
112
|
* actProgramBlock
|
|
111
113
|
* Block of lines containing the previous, actual
|
|
112
114
|
* and subsequent lines of a CNC part program.
|
|
113
115
|
*/
|
|
114
|
-
actProgramBlock: UADataItem<UAString[],
|
|
116
|
+
actProgramBlock: UADataItem<UAString[], DataType.String>;
|
|
115
117
|
/**
|
|
116
118
|
* actProgramFile
|
|
117
119
|
* Path of active CNC program file (main or
|
|
118
120
|
* subprogram).
|
|
119
121
|
*/
|
|
120
|
-
actProgramFile: UADataItem<UAString,
|
|
122
|
+
actProgramFile: UADataItem<UAString, DataType.String>;
|
|
121
123
|
/**
|
|
122
124
|
* actProgramFileOffset
|
|
123
125
|
* File offset of active CNC program file (main or
|
|
124
126
|
* subprogram).
|
|
125
127
|
*/
|
|
126
|
-
actProgramFileOffset?: UADataItem<UInt32,
|
|
128
|
+
actProgramFileOffset?: UADataItem<UInt32, DataType.UInt32>;
|
|
127
129
|
/**
|
|
128
130
|
* actProgramLine
|
|
129
131
|
* Line number of active CNC program (main or
|
|
130
132
|
* subprogram).
|
|
131
133
|
*/
|
|
132
|
-
actProgramLine?: UADataItem<UAString,
|
|
134
|
+
actProgramLine?: UADataItem<UAString, DataType.String>;
|
|
133
135
|
/**
|
|
134
136
|
* actProgramName
|
|
135
137
|
* Name of active CNC program (main or subprogram).
|
|
136
138
|
*/
|
|
137
|
-
actProgramName: UADataItem<UAString,
|
|
139
|
+
actProgramName: UADataItem<UAString, DataType.String>;
|
|
138
140
|
/**
|
|
139
141
|
* actProgramStatus
|
|
140
142
|
* Active channel program status
|
|
141
143
|
*/
|
|
142
|
-
actProgramStatus: UADataItem<EnumCncChannelProgramStatus,
|
|
144
|
+
actProgramStatus: UADataItem<EnumCncChannelProgramStatus, DataType.Int32>;
|
|
143
145
|
/**
|
|
144
146
|
* actStatus
|
|
145
147
|
* Active status of channel.
|
|
146
148
|
*/
|
|
147
|
-
actStatus: UADataItem<EnumCncChannelStatus,
|
|
149
|
+
actStatus: UADataItem<EnumCncChannelStatus, DataType.Int32>;
|
|
148
150
|
/**
|
|
149
151
|
* blockMode
|
|
150
152
|
* Block mode status (true in case of block mode is
|
|
151
153
|
* active, else false).
|
|
152
154
|
*/
|
|
153
|
-
blockMode: UADataItem<boolean,
|
|
155
|
+
blockMode: UADataItem<boolean, DataType.Boolean>;
|
|
154
156
|
/**
|
|
155
157
|
* cmdFeedrate
|
|
156
158
|
* Feedrate setpoint value.
|
|
157
159
|
*/
|
|
158
|
-
cmdFeedrate: UACncChannel_cmdFeedrate<number,
|
|
160
|
+
cmdFeedrate: UACncChannel_cmdFeedrate<number, DataType.Double>;
|
|
159
161
|
/**
|
|
160
162
|
* cmdOperationMode
|
|
161
163
|
* Channel’s mode of operation setpoint value.
|
|
162
164
|
*/
|
|
163
|
-
cmdOperationMode: UADataItem<EnumCncOperationMode,
|
|
165
|
+
cmdOperationMode: UADataItem<EnumCncOperationMode, DataType.Int32>;
|
|
164
166
|
/**
|
|
165
167
|
* cmdOverride
|
|
166
168
|
* Override setpoint value.
|
|
167
169
|
*/
|
|
168
|
-
cmdOverride: UACncChannel_cmdOverride<number,
|
|
170
|
+
cmdOverride: UACncChannel_cmdOverride<number, DataType.Double>;
|
|
169
171
|
/**
|
|
170
172
|
* dryRunFeed
|
|
171
173
|
* Test feedrate.
|
|
172
174
|
*/
|
|
173
|
-
dryRunFeed: UACncChannel_dryRunFeed<number,
|
|
175
|
+
dryRunFeed: UACncChannel_dryRunFeed<number, DataType.Double>;
|
|
174
176
|
/**
|
|
175
177
|
* feedHold
|
|
176
178
|
* Feed status (true in case of feed hold active,
|
|
177
179
|
* else false).
|
|
178
180
|
*/
|
|
179
|
-
feedHold: UADataItem<boolean,
|
|
181
|
+
feedHold: UADataItem<boolean, DataType.Boolean>;
|
|
180
182
|
/**
|
|
181
183
|
* id
|
|
182
184
|
* Unique numeric channel identifier.
|
|
183
185
|
*/
|
|
184
|
-
id: UAProperty<UInt32,
|
|
186
|
+
id: UAProperty<UInt32, DataType.UInt32>;
|
|
185
187
|
/**
|
|
186
188
|
* posTcpBcsA
|
|
187
189
|
* Actual position of the tool center point in
|
|
@@ -259,7 +261,7 @@ export interface UACncChannel_Base extends UACncComponent_Base {
|
|
|
259
261
|
* ID of active tool; returns zero if no tool is
|
|
260
262
|
* present.
|
|
261
263
|
*/
|
|
262
|
-
toolId: UADataItem<UInt32,
|
|
264
|
+
toolId: UADataItem<UInt32, DataType.UInt32>;
|
|
263
265
|
}
|
|
264
266
|
export interface UACncChannel extends UACncComponent, UACncChannel_Base {
|
|
265
267
|
}
|
|
@@ -23,6 +23,7 @@ import { EnumCncChannelStatus } from "./enum_cnc_channel_status"
|
|
|
23
23
|
* |isAbstract |false |
|
|
24
24
|
*/
|
|
25
25
|
export interface UACncChannelList_Base {
|
|
26
|
+
// PlaceHolder for $CncChannel$
|
|
26
27
|
}
|
|
27
28
|
export interface UACncChannelList extends UAObject, UACncChannelList_Base {
|
|
28
29
|
}
|
package/source/ua_cnc_drive.ts
CHANGED
|
@@ -7,21 +7,21 @@ import { UAAnalogItem } from "node-opcua-nodeset-ua/source/ua_analog_item"
|
|
|
7
7
|
import { DTRange } from "node-opcua-nodeset-ua/source/dt_range"
|
|
8
8
|
import { UADataItem } from "node-opcua-nodeset-ua/source/ua_data_item"
|
|
9
9
|
import { UACncComponent, UACncComponent_Base } from "./ua_cnc_component"
|
|
10
|
-
export interface UACncDrive_actLoad<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
11
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
12
|
-
euRange: UAProperty<DTRange,
|
|
10
|
+
export interface UACncDrive_actLoad<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
11
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
12
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
13
13
|
}
|
|
14
|
-
export interface UACncDrive_actPower<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
15
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
16
|
-
euRange: UAProperty<DTRange,
|
|
14
|
+
export interface UACncDrive_actPower<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
15
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
16
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
17
17
|
}
|
|
18
|
-
export interface UACncDrive_actTorque<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
19
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
20
|
-
euRange: UAProperty<DTRange,
|
|
18
|
+
export interface UACncDrive_actTorque<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
19
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
20
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
21
21
|
}
|
|
22
|
-
export interface UACncDrive_cmdTorque<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
23
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
24
|
-
euRange: UAProperty<DTRange,
|
|
22
|
+
export interface UACncDrive_cmdTorque<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
23
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
24
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Base component for CNC specific drive componentes
|
|
@@ -41,39 +41,39 @@ export interface UACncDrive_Base extends UACncComponent_Base {
|
|
|
41
41
|
* that administrates this drive to expose drive’s
|
|
42
42
|
* channel affiliation.
|
|
43
43
|
*/
|
|
44
|
-
actChannel: UADataItem<NodeId,
|
|
44
|
+
actChannel: UADataItem<NodeId, DataType.NodeId>;
|
|
45
45
|
/**
|
|
46
46
|
* actLoad
|
|
47
47
|
* Drive load actual value.
|
|
48
48
|
*/
|
|
49
|
-
actLoad: UACncDrive_actLoad<number,
|
|
49
|
+
actLoad: UACncDrive_actLoad<number, DataType.Double>;
|
|
50
50
|
/**
|
|
51
51
|
* actPower
|
|
52
52
|
* Drive power actual value.
|
|
53
53
|
*/
|
|
54
|
-
actPower: UACncDrive_actPower<number,
|
|
54
|
+
actPower: UACncDrive_actPower<number, DataType.Double>;
|
|
55
55
|
/**
|
|
56
56
|
* actTorque
|
|
57
57
|
* Drive torque actual value.
|
|
58
58
|
*/
|
|
59
|
-
actTorque: UACncDrive_actTorque<number,
|
|
59
|
+
actTorque: UACncDrive_actTorque<number, DataType.Double>;
|
|
60
60
|
/**
|
|
61
61
|
* cmdTorque
|
|
62
62
|
* Drive torque setpoint value.
|
|
63
63
|
*/
|
|
64
|
-
cmdTorque: UACncDrive_cmdTorque<number,
|
|
64
|
+
cmdTorque: UACncDrive_cmdTorque<number, DataType.Double>;
|
|
65
65
|
/**
|
|
66
66
|
* isInactive
|
|
67
67
|
* Drive inactive state (true in case of inactive
|
|
68
68
|
* drive, else false).
|
|
69
69
|
*/
|
|
70
|
-
isInactive: UADataItem<boolean,
|
|
70
|
+
isInactive: UADataItem<boolean, DataType.Boolean>;
|
|
71
71
|
/**
|
|
72
72
|
* isVirtual
|
|
73
73
|
* Virtual axis (no hardware present; true in case
|
|
74
74
|
* of virtual axis, else fals).
|
|
75
75
|
*/
|
|
76
|
-
isVirtual: UADataItem<boolean,
|
|
76
|
+
isVirtual: UADataItem<boolean, DataType.Boolean>;
|
|
77
77
|
}
|
|
78
78
|
export interface UACncDrive extends UACncComponent, UACncDrive_Base {
|
|
79
79
|
}
|
|
@@ -37,31 +37,31 @@ export interface UACncInterface_Base {
|
|
|
37
37
|
* List of CNC spindle objects.
|
|
38
38
|
*/
|
|
39
39
|
cncSpindleList: UACncSpindleList;
|
|
40
|
-
cncTypeName?: UAProperty<UAString,
|
|
40
|
+
cncTypeName?: UAProperty<UAString, DataType.String>;
|
|
41
41
|
/**
|
|
42
42
|
* fix
|
|
43
43
|
* Version of CNC interface considering changes in
|
|
44
44
|
* implementation (Bug Fix).
|
|
45
45
|
*/
|
|
46
|
-
fix?: UAProperty<UAString,
|
|
46
|
+
fix?: UAProperty<UAString, DataType.String>;
|
|
47
47
|
/**
|
|
48
48
|
* vendorName
|
|
49
49
|
* Name of CNC system vendor. Format and content may
|
|
50
50
|
* be chosen by vendor.
|
|
51
51
|
*/
|
|
52
|
-
vendorName: UAProperty<UAString,
|
|
52
|
+
vendorName: UAProperty<UAString, DataType.String>;
|
|
53
53
|
/**
|
|
54
54
|
* vendorRevision
|
|
55
55
|
* Vendor revision of CNC interface. Format and
|
|
56
56
|
* content may be chosen by vendor.
|
|
57
57
|
*/
|
|
58
|
-
vendorRevision: UAProperty<UAString,
|
|
58
|
+
vendorRevision: UAProperty<UAString, DataType.String>;
|
|
59
59
|
/**
|
|
60
60
|
* version
|
|
61
61
|
* Version of CNC interface - corresponds to version
|
|
62
62
|
* of OPC UA companion standard.
|
|
63
63
|
*/
|
|
64
|
-
version: UAProperty<UAString,
|
|
64
|
+
version: UAProperty<UAString, DataType.String>;
|
|
65
65
|
}
|
|
66
66
|
export interface UACncInterface extends UAObject, UACncInterface_Base {
|
|
67
67
|
}
|
package/source/ua_cnc_message.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { UABaseEvent, UABaseEvent_Base } from "node-opcua-nodeset-ua/source/ua_b
|
|
|
10
10
|
* |typedDefinition |11:CncMessageType ns=11;i=1011 |
|
|
11
11
|
* |isAbstract |false |
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
14
|
-
}
|
|
13
|
+
export type UACncMessage_Base = UABaseEvent_Base;
|
|
15
14
|
export interface UACncMessage extends UABaseEvent, UACncMessage_Base {
|
|
16
15
|
}
|
|
@@ -17,24 +17,24 @@ import { DTCncPosition } from "./dt_cnc_position"
|
|
|
17
17
|
* |dataType Name |DTCncPosition ns=11;i=3007 |
|
|
18
18
|
* |isAbstract |false |
|
|
19
19
|
*/
|
|
20
|
-
export interface UACncPositionVariable_Base<T extends DTCncPosition
|
|
20
|
+
export interface UACncPositionVariable_Base<T extends DTCncPosition> extends UABaseDataVariable_Base<T, DataType.ExtensionObject> {
|
|
21
21
|
/**
|
|
22
22
|
* actPos
|
|
23
23
|
* Position current value.
|
|
24
24
|
*/
|
|
25
|
-
actPos: UABaseDataVariable<number,
|
|
25
|
+
actPos: UABaseDataVariable<number, DataType.Double>;
|
|
26
26
|
/**
|
|
27
27
|
* cmdPos
|
|
28
28
|
* Position setpoint value.
|
|
29
29
|
*/
|
|
30
|
-
cmdPos: UABaseDataVariable<number,
|
|
31
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
32
|
-
euRange: UAProperty<DTRange,
|
|
30
|
+
cmdPos: UABaseDataVariable<number, DataType.Double>;
|
|
31
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
32
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
33
33
|
/**
|
|
34
34
|
* remDist
|
|
35
35
|
* Remaining distance to go.
|
|
36
36
|
*/
|
|
37
|
-
remDist: UABaseDataVariable<number,
|
|
37
|
+
remDist: UABaseDataVariable<number, DataType.Double>;
|
|
38
38
|
}
|
|
39
|
-
export interface UACncPositionVariable<T extends DTCncPosition
|
|
39
|
+
export interface UACncPositionVariable<T extends DTCncPosition> extends UABaseDataVariable<T, DataType.ExtensionObject>, UACncPositionVariable_Base<T> {
|
|
40
40
|
}
|
package/source/ua_cnc_spindle.ts
CHANGED
|
@@ -11,13 +11,13 @@ import { EnumCncSpindleStatus } from "./enum_cnc_spindle_status"
|
|
|
11
11
|
import { EnumCncSpindleTurnDirection } from "./enum_cnc_spindle_turn_direction"
|
|
12
12
|
import { DTCncPosition } from "./dt_cnc_position"
|
|
13
13
|
import { UACncPositionVariable } from "./ua_cnc_position_variable"
|
|
14
|
-
export interface UACncSpindle_actSpeed<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
15
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
16
|
-
euRange: UAProperty<DTRange,
|
|
14
|
+
export interface UACncSpindle_actSpeed<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
15
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
16
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
17
17
|
}
|
|
18
|
-
export interface UACncSpindle_cmdSpeed<T, DT extends DataType> extends Omit<UAAnalogItem<T,
|
|
19
|
-
engineeringUnits: UAProperty<EUInformation,
|
|
20
|
-
euRange: UAProperty<DTRange,
|
|
18
|
+
export interface UACncSpindle_cmdSpeed<T, DT extends DataType> extends Omit<UAAnalogItem<T, DT>, "engineeringUnits"|"euRange"> { // Variable
|
|
19
|
+
engineeringUnits: UAProperty<EUInformation, DataType.ExtensionObject>;
|
|
20
|
+
euRange: UAProperty<DTRange, DataType.ExtensionObject>;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* CNC spindle component.
|
|
@@ -34,27 +34,27 @@ export interface UACncSpindle_Base extends UACncDrive_Base {
|
|
|
34
34
|
* actGear
|
|
35
35
|
* Gear stage actual value.
|
|
36
36
|
*/
|
|
37
|
-
actGear: UADataItem<UInt32,
|
|
37
|
+
actGear: UADataItem<UInt32, DataType.UInt32>;
|
|
38
38
|
/**
|
|
39
39
|
* actOverride
|
|
40
40
|
* Override actual value.
|
|
41
41
|
*/
|
|
42
|
-
actOverride: UAAnalogItem<number,
|
|
42
|
+
actOverride: UAAnalogItem<number, DataType.Double>;
|
|
43
43
|
/**
|
|
44
44
|
* actSpeed
|
|
45
45
|
* Speed actual value.
|
|
46
46
|
*/
|
|
47
|
-
actSpeed: UACncSpindle_actSpeed<number,
|
|
47
|
+
actSpeed: UACncSpindle_actSpeed<number, DataType.Double>;
|
|
48
48
|
/**
|
|
49
49
|
* actStatus
|
|
50
50
|
* Actual spindle state.
|
|
51
51
|
*/
|
|
52
|
-
actStatus: UADataItem<EnumCncSpindleStatus,
|
|
52
|
+
actStatus: UADataItem<EnumCncSpindleStatus, DataType.Int32>;
|
|
53
53
|
/**
|
|
54
54
|
* actTurnDirection
|
|
55
55
|
* Turn direction actual value.
|
|
56
56
|
*/
|
|
57
|
-
actTurnDirection: UADataItem<EnumCncSpindleTurnDirection,
|
|
57
|
+
actTurnDirection: UADataItem<EnumCncSpindleTurnDirection, DataType.Int32>;
|
|
58
58
|
/**
|
|
59
59
|
* anglePos
|
|
60
60
|
* Spindle angular position values in case of
|
|
@@ -67,17 +67,17 @@ export interface UACncSpindle_Base extends UACncDrive_Base {
|
|
|
67
67
|
* cmdGear
|
|
68
68
|
* Gear stage setpoint value.
|
|
69
69
|
*/
|
|
70
|
-
cmdGear: UADataItem<UInt32,
|
|
70
|
+
cmdGear: UADataItem<UInt32, DataType.UInt32>;
|
|
71
71
|
/**
|
|
72
72
|
* cmdOverride
|
|
73
73
|
* Override setpoint value.
|
|
74
74
|
*/
|
|
75
|
-
cmdOverride: UAAnalogItem<number,
|
|
75
|
+
cmdOverride: UAAnalogItem<number, DataType.Double>;
|
|
76
76
|
/**
|
|
77
77
|
* cmdSpeed
|
|
78
78
|
* Speed setpoint value.
|
|
79
79
|
*/
|
|
80
|
-
cmdSpeed: UACncSpindle_cmdSpeed<number,
|
|
80
|
+
cmdSpeed: UACncSpindle_cmdSpeed<number, DataType.Double>;
|
|
81
81
|
}
|
|
82
82
|
export interface UACncSpindle extends UACncDrive, UACncSpindle_Base {
|
|
83
83
|
}
|