node-opcua-nodeset-pack-ml 2.99.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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022-2023 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
4
+
5
+ Copyright (c) 2014-2022 Etienne Rossignon
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
8
+ this software and associated documentation files (the "Software"), to deal in
9
+ the Software without restriction, including without limitation the rights to
10
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11
+ the Software, and to permit persons to whom the Software is furnished to do so,
12
+ subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "node-opcua-nodeset-pack-ml",
3
+ "version": "2.99.0",
4
+ "description": "pure nodejs OPCUA SDK - module node-opcua-nodeset-pack-ml",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc -b"
9
+ },
10
+ "author": "Etienne Rossignon <etienne.rossignon@sterfive.com>",
11
+ "license": "MIT",
12
+ "dependencies": {
13
+ "node-opcua-address-space-base": "2.99.0",
14
+ "node-opcua-basic-types": "2.99.0",
15
+ "node-opcua-data-access": "2.99.0",
16
+ "node-opcua-data-model": "2.99.0",
17
+ "node-opcua-extension-object": "2.99.0",
18
+ "node-opcua-nodeid": "2.99.0",
19
+ "node-opcua-nodeset-ua": "2.99.0",
20
+ "node-opcua-variant": "2.99.0"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "source"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git://github.com/node-opcua/node-opcua.git"
29
+ },
30
+ "keywords": [
31
+ "OPCUA",
32
+ "opcua",
33
+ "m2m",
34
+ "iot",
35
+ "opc ua",
36
+ "internet of things"
37
+ ],
38
+ "homepage": "http://node-opcua.github.io/",
39
+ "gitHead": "90ce9f5b44d74198d84a384de622dfa94fd05c0c"
40
+ }
@@ -0,0 +1,29 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { Int32, UAString } from "node-opcua-basic-types"
3
+ import { ExtensionObject } from "node-opcua-extension-object"
4
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
5
+ /**
6
+ * | | |
7
+ * |-----------|--------------------------------------------------|
8
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
9
+ * | nodeClass |DataType |
10
+ * | name |15:PackMLAlarmDataType |
11
+ * | isAbstract|false |
12
+ */
13
+ export interface DTPackMLAlarm extends DTStructure {
14
+ /** A unique number assigned to each type of alarm, stop or warning.*/
15
+ ID: Int32; // Int32 ns=0;i=6
16
+ /** An alarm, stop or warning message number associated to the ID to allow for user specific detail or to break down the Alarm.ID to greater detail*/
17
+ value: Int32; // Int32 ns=0;i=6
18
+ /** The actual text of the alarm, stop or warning for those machines capable of providing string information*/
19
+ message: UAString; // String ns=0;i=12
20
+ /** A user defined value which indicates what type of alarm, stop or warning has occurred. E.g. electrical, mechanical, process limit, …*/
21
+ category: Int32; // Int32 ns=0;i=6
22
+ /** The date and time that the alarm, stop or warning occurred, in ISO 8601 format (year, month, day, hour, minute, second, msec), as an array of 32 bit integers. Any unused date time elements should be set to zero*/
23
+ dateTime: Date; // DateTime ns=0;i=294
24
+ /** The date and time that the alarm, stop or warning has been acknowledged, in ISO 8601 format (year, month, day, hour, minute, second, msec), as an array of 32 bit integers. Any unused date time elements should be set to zero*/
25
+ ackDateTime: Date; // DateTime ns=0;i=294
26
+ /** This variable is true when the alarm is active*/
27
+ trigger: boolean; // Boolean ns=0;i=1
28
+ }
29
+ export interface UDTPackMLAlarm extends ExtensionObject, DTPackMLAlarm {};
@@ -0,0 +1,26 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { EUInformation } from "node-opcua-data-access"
3
+ import { Int32, UAString } from "node-opcua-basic-types"
4
+ import { ExtensionObject } from "node-opcua-extension-object"
5
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
6
+ /**
7
+ * | | |
8
+ * |-----------|--------------------------------------------------|
9
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
10
+ * | nodeClass |DataType |
11
+ * | name |15:PackMLCountDataType |
12
+ * | isAbstract|false |
13
+ */
14
+ export interface DTPackMLCount extends DTStructure {
15
+ /** A user defined value that represents the consumed (processed or defective) material. Typically this is an SKU number or a user material master number.*/
16
+ ID: Int32; // Int32 ns=0;i=6
17
+ /** A string description of the material.*/
18
+ name: UAString; // String ns=0;i=12
19
+ /** OPC UA engineering unit information for the count.*/
20
+ unit: EUInformation; // ExtensionObject ns=0;i=887
21
+ /** The amount of consumed (processed or defective) material on the current production job.*/
22
+ count: Int32; // Int32 ns=0;i=6
23
+ /** The cumulative count value of the material produced (or consumed). This counter gives the user a non-resetting counter that may be used for OEE calculations*/
24
+ accCount: Int32; // Int32 ns=0;i=6
25
+ }
26
+ export interface UDTPackMLCount extends ExtensionObject, DTPackMLCount {};
@@ -0,0 +1,24 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { EUInformation } from "node-opcua-data-access"
3
+ import { Int32, UAString } from "node-opcua-basic-types"
4
+ import { ExtensionObject } from "node-opcua-extension-object"
5
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
6
+ /**
7
+ * | | |
8
+ * |-----------|--------------------------------------------------|
9
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
10
+ * | nodeClass |DataType |
11
+ * | name |15:PackMLDescriptorDataType |
12
+ * | isAbstract|false |
13
+ */
14
+ export interface DTPackMLDescriptor extends DTStructure {
15
+ /** A unique number assigned to the parameter*/
16
+ ID: Int32; // Int32 ns=0;i=6
17
+ /** The name of the parameter*/
18
+ name: UAString; // String ns=0;i=12
19
+ /** OPC UA engineering unit information*/
20
+ unit: EUInformation; // ExtensionObject ns=0;i=887
21
+ /** This is the numeric value of the parameter*/
22
+ value: number; // Float ns=0;i=10
23
+ }
24
+ export interface UDTPackMLDescriptor extends ExtensionObject, DTPackMLDescriptor {};
@@ -0,0 +1,20 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { Int32 } from "node-opcua-basic-types"
3
+ import { ExtensionObject } from "node-opcua-extension-object"
4
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
5
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
6
+ /**
7
+ * | | |
8
+ * |-----------|--------------------------------------------------|
9
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
10
+ * | nodeClass |DataType |
11
+ * | name |15:PackMLIngredientsDataType |
12
+ * | isAbstract|false |
13
+ */
14
+ export interface DTPackMLIngredients extends DTStructure {
15
+ /** A unique number assigned to the ingredient.*/
16
+ ingredientID: Int32; // Int32 ns=0;i=6
17
+ /** The array of Parameters that correspond to the ingredient*/
18
+ parameter: DTPackMLDescriptor[]; // ExtensionObject ns=15;i=16
19
+ }
20
+ export interface UDTPackMLIngredients extends ExtensionObject, DTPackMLIngredients {};
@@ -0,0 +1,23 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { Int32 } from "node-opcua-basic-types"
3
+ import { ExtensionObject } from "node-opcua-extension-object"
4
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
5
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
6
+ import { DTPackMLIngredients } from "./dt_pack_ml_ingredients"
7
+ /**
8
+ * | | |
9
+ * |-----------|--------------------------------------------------|
10
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
11
+ * | nodeClass |DataType |
12
+ * | name |15:PackMLProductDataType |
13
+ * | isAbstract|false |
14
+ */
15
+ export interface DTPackMLProduct extends DTStructure {
16
+ /** A unique number assigned to the product.*/
17
+ productID: Int32; // Int32 ns=0;i=6
18
+ /** The array of Process variables associated with this product*/
19
+ processVariables: DTPackMLDescriptor[]; // ExtensionObject ns=15;i=16
20
+ /** The array of ingredients associated with this product.*/
21
+ ingredients: DTPackMLIngredients[]; // ExtensionObject ns=15;i=17
22
+ }
23
+ export interface UDTPackMLProduct extends ExtensionObject, DTPackMLProduct {};
@@ -0,0 +1,24 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { Int32 } from "node-opcua-basic-types"
3
+ import { ExtensionObject } from "node-opcua-extension-object"
4
+ import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure"
5
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
6
+ /**
7
+ * | | |
8
+ * |-----------|--------------------------------------------------|
9
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
10
+ * | nodeClass |DataType |
11
+ * | name |15:PackMLRemoteInterfaceDataType |
12
+ * | isAbstract|false |
13
+ */
14
+ export interface DTPackMLRemoteInterface extends DTStructure {
15
+ /** This is the unique number for the downstream/upstream unit machine using a common tag structure as the unit machine.*/
16
+ number: Int32; // Int32 ns=0;i=6
17
+ /** A user defined command number associated with coded value from a remote unit. This number is a coded value sent from one node on the network to another.*/
18
+ controlCmdNumber: Int32; // Int32 ns=0;i=6
19
+ /** This is the command value associated with the ControlCmdNumber above.*/
20
+ cmdValue: Int32; // Int32 ns=0;i=6
21
+ /** The parameter tags associated to commanded remote interface are typically used for command parameters that are given to the unit machine from remote machines.*/
22
+ parameter: DTPackMLDescriptor[]; // ExtensionObject ns=15;i=16
23
+ }
24
+ export interface UDTPackMLRemoteInterface extends ExtensionObject, DTPackMLRemoteInterface {};
@@ -0,0 +1,28 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+
3
+ /**
4
+ * | | |
5
+ * |-----------|--------------------------------------------------|
6
+ * | namespace |http://opcfoundation.org/UA/PackML/ |
7
+ * | nodeClass |DataType |
8
+ * | name |15:ProductionMaintenanceModeEnum |
9
+ * | isAbstract|false |
10
+ */
11
+ export enum EnumProductionMaintenanceModeEnum {
12
+ /**
13
+ * This is an invalid mode
14
+ */
15
+ Invalid = 0,
16
+ /**
17
+ * Machine is in production mode
18
+ */
19
+ Produce = 1,
20
+ /**
21
+ * Machine is in maintenance mode
22
+ */
23
+ Maintenance = 2,
24
+ /**
25
+ * Machine is in manual mode
26
+ */
27
+ Manual = 3,
28
+ }
@@ -0,0 +1,13 @@
1
+ export * from "./dt_pack_ml_alarm";
2
+ export * from "./dt_pack_ml_count";
3
+ export * from "./dt_pack_ml_descriptor";
4
+ export * from "./dt_pack_ml_ingredients";
5
+ export * from "./dt_pack_ml_product";
6
+ export * from "./dt_pack_ml_remote_interface";
7
+ export * from "./enum_production_maintenance_mode_enum";
8
+ export * from "./ua_pack_ml_admin_object";
9
+ export * from "./ua_pack_ml_base_object";
10
+ export * from "./ua_pack_ml_base_state_machine";
11
+ export * from "./ua_pack_ml_execute_state_machine";
12
+ export * from "./ua_pack_ml_machine_state_machine";
13
+ export * from "./ua_pack_ml_status_object";
@@ -0,0 +1,38 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAObject } from "node-opcua-address-space-base"
3
+ import { DataType } from "node-opcua-variant"
4
+ import { Int32 } from "node-opcua-basic-types"
5
+ import { UABaseDataVariable } from "node-opcua-nodeset-ua/source/ua_base_data_variable"
6
+ import { DTPackMLAlarm } from "./dt_pack_ml_alarm"
7
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
8
+ import { DTPackMLCount } from "./dt_pack_ml_count"
9
+ /**
10
+ * | | |
11
+ * |----------------|--------------------------------------------------|
12
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
13
+ * |nodeClass |ObjectType |
14
+ * |typedDefinition |15:PackMLAdminObjectType ns=15;i=5 |
15
+ * |isAbstract |false |
16
+ */
17
+ export interface UAPackMLAdminObject_Base {
18
+ accTimeSinceReset?: UABaseDataVariable<Int32, DataType.Int32>;
19
+ alarm?: UABaseDataVariable<DTPackMLAlarm[], DataType.ExtensionObject>;
20
+ alarmExtent?: UABaseDataVariable<Int32, DataType.Int32>;
21
+ alarmHistory?: UABaseDataVariable<DTPackMLAlarm[], DataType.ExtensionObject>;
22
+ alarmHistoryExtent?: UABaseDataVariable<Int32, DataType.Int32>;
23
+ machDesignSpeed?: UABaseDataVariable<number, DataType.Float>;
24
+ modeCumulativeTime?: UABaseDataVariable<Int32[], DataType.Int32>;
25
+ modeCurrentTime?: UABaseDataVariable<Int32[], DataType.Int32>;
26
+ parameter?: UABaseDataVariable<DTPackMLDescriptor[], DataType.ExtensionObject>;
27
+ prodConsumedCount?: UABaseDataVariable<DTPackMLCount[], DataType.ExtensionObject>;
28
+ prodDefectiveCount?: UABaseDataVariable<DTPackMLCount[], DataType.ExtensionObject>;
29
+ prodProcessedCount?: UABaseDataVariable<DTPackMLCount[], DataType.ExtensionObject>;
30
+ stateCumulativeTime?: UABaseDataVariable<Int32[], DataType.Int32>;
31
+ stateCurrentTime?: UABaseDataVariable<Int32[], DataType.Int32>;
32
+ stopReason?: UABaseDataVariable<DTPackMLAlarm, DataType.ExtensionObject>;
33
+ stopReasonExtent?: UABaseDataVariable<Int32, DataType.Int32>;
34
+ warning?: UABaseDataVariable<DTPackMLAlarm[], DataType.ExtensionObject>;
35
+ warningExtent?: UABaseDataVariable<Int32, DataType.Int32>;
36
+ }
37
+ export interface UAPackMLAdminObject extends UAObject, UAPackMLAdminObject_Base {
38
+ }
@@ -0,0 +1,38 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAObject, UAMethod, UAProperty } from "node-opcua-address-space-base"
3
+ import { DataType, Variant, VariantOptions } from "node-opcua-variant"
4
+ import { LocalizedText } from "node-opcua-data-model"
5
+ import { EUInformation } from "node-opcua-data-access"
6
+ import { NodeId } from "node-opcua-nodeid"
7
+ import { Int32, UAString } from "node-opcua-basic-types"
8
+ import { DTArgument } from "node-opcua-nodeset-ua/source/dt_argument"
9
+ import { DTRange } from "node-opcua-nodeset-ua/source/dt_range"
10
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
11
+ import { DTPackMLProduct } from "./dt_pack_ml_product"
12
+ import { DTPackMLRemoteInterface } from "./dt_pack_ml_remote_interface"
13
+ import { UAPackMLAdminObject } from "./ua_pack_ml_admin_object"
14
+ import { UAPackMLBaseStateMachine } from "./ua_pack_ml_base_state_machine"
15
+ import { UAPackMLStatusObject } from "./ua_pack_ml_status_object"
16
+ /**
17
+ * | | |
18
+ * |----------------|--------------------------------------------------|
19
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
20
+ * |nodeClass |ObjectType |
21
+ * |typedDefinition |15:PackMLBaseObjectType ns=15;i=6 |
22
+ * |isAbstract |false |
23
+ */
24
+ export interface UAPackMLBaseObject_Base {
25
+ admin: UAPackMLAdminObject;
26
+ baseStateMachine: UAPackMLBaseStateMachine;
27
+ packMLVersion?: UAProperty<UAString, DataType.String>;
28
+ remoteCommand?: UAMethod;
29
+ setInterlock?: UAMethod;
30
+ setMachSpeed: UAMethod;
31
+ setParameter: UAMethod;
32
+ setProduct: UAMethod;
33
+ setUnitMode: UAMethod;
34
+ status: UAPackMLStatusObject;
35
+ tagID?: UAProperty<UAString, DataType.String>;
36
+ }
37
+ export interface UAPackMLBaseObject extends UAObject, UAPackMLBaseObject_Base {
38
+ }
@@ -0,0 +1,35 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAMethod } from "node-opcua-address-space-base"
3
+ import { DataType, VariantOptions } from "node-opcua-variant"
4
+ import { LocalizedText, QualifiedName } from "node-opcua-data-model"
5
+ import { NodeId } from "node-opcua-nodeid"
6
+ import { UInt32 } from "node-opcua-basic-types"
7
+ import { DTArgument } from "node-opcua-nodeset-ua/source/dt_argument"
8
+ import { UAFiniteStateMachine, UAFiniteStateMachine_Base } from "node-opcua-nodeset-ua/source/ua_finite_state_machine"
9
+ import { UAState } from "node-opcua-nodeset-ua/source/ua_state"
10
+ import { UATransition } from "node-opcua-nodeset-ua/source/ua_transition"
11
+ import { UABaseDataVariable } from "node-opcua-nodeset-ua/source/ua_base_data_variable"
12
+ import { UAPackMLMachineStateMachine } from "./ua_pack_ml_machine_state_machine"
13
+ /**
14
+ * | | |
15
+ * |----------------|--------------------------------------------------|
16
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
17
+ * |nodeClass |ObjectType |
18
+ * |typedDefinition |15:PackMLBaseStateMachineType ns=15;i=3 |
19
+ * |isAbstract |false |
20
+ */
21
+ export interface UAPackMLBaseStateMachine_Base extends UAFiniteStateMachine_Base {
22
+ abort?: UAMethod;
23
+ aborted: UAState;
24
+ abortedToCleared: UATransition;
25
+ aborting: UAState;
26
+ abortingToAborted: UATransition;
27
+ availableStates: UABaseDataVariable<NodeId[], DataType.NodeId>;
28
+ availableTransitions: UABaseDataVariable<NodeId[], DataType.NodeId>;
29
+ clear?: UAMethod;
30
+ cleared?: UAState;
31
+ clearedToAborting: UATransition;
32
+ machineState: UAPackMLMachineStateMachine;
33
+ }
34
+ export interface UAPackMLBaseStateMachine extends Omit<UAFiniteStateMachine, "availableStates"|"availableTransitions">, UAPackMLBaseStateMachine_Base {
35
+ }
@@ -0,0 +1,149 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAMethod } from "node-opcua-address-space-base"
3
+ import { DataType } from "node-opcua-variant"
4
+ import { NodeId } from "node-opcua-nodeid"
5
+ import { UAFiniteStateMachine, UAFiniteStateMachine_Base } from "node-opcua-nodeset-ua/source/ua_finite_state_machine"
6
+ import { UABaseDataVariable } from "node-opcua-nodeset-ua/source/ua_base_data_variable"
7
+ import { UAState } from "node-opcua-nodeset-ua/source/ua_state"
8
+ import { UATransition } from "node-opcua-nodeset-ua/source/ua_transition"
9
+ /**
10
+ * | | |
11
+ * |----------------|--------------------------------------------------|
12
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
13
+ * |nodeClass |ObjectType |
14
+ * |typedDefinition |15:PackMLExecuteStateMachineType ns=15;i=1 |
15
+ * |isAbstract |false |
16
+ */
17
+ export interface UAPackMLExecuteStateMachine_Base extends UAFiniteStateMachine_Base {
18
+ availableStates: UABaseDataVariable<NodeId[], DataType.NodeId>;
19
+ availableTransitions: UABaseDataVariable<NodeId[], DataType.NodeId>;
20
+ /**
21
+ * complete
22
+ * The machine has finished the COMPLETING state and
23
+ * is now waiting for a Reset command before
24
+ * transitioning to the RESETTING state
25
+ */
26
+ complete: UAState;
27
+ completeToResetting: UATransition;
28
+ /**
29
+ * completing
30
+ * Normal operation has run to completion (i.e.,
31
+ * processing of material at the infeed will stop).
32
+ */
33
+ completing: UAState;
34
+ completingToComplete: UATransition;
35
+ /**
36
+ * execute
37
+ * Once the machine is processing materials it is
38
+ * deemed to be executing or in the EXECUTE state.
39
+ */
40
+ execute: UAState;
41
+ executeToCompleting: UATransition;
42
+ executeToHolding: UATransition;
43
+ executeToSuspending: UATransition;
44
+ /**
45
+ * held
46
+ * The HELD state holds the machine's operation
47
+ * while material blockages are cleared, or to stop
48
+ * throughput while a downstream problem is
49
+ * resolved, or enable the safe correction of an
50
+ * equipment fault before the production may be
51
+ * resumed.
52
+ */
53
+ held: UAState;
54
+ heldToUnholding: UATransition;
55
+ hold?: UAMethod;
56
+ /**
57
+ * holding
58
+ * Issuing the Unhold command will retrieve the
59
+ * saved set-points and return the status conditions
60
+ * to prepare the machine to re-enter the normal
61
+ * EXECUTE state
62
+ */
63
+ holding: UAState;
64
+ holdingToHeld: UATransition;
65
+ /**
66
+ * idle
67
+ * This is a state which indicates that RESETTING is
68
+ * complete. This state maintains the machine
69
+ * conditions which were achieved during the
70
+ * RESETTING state, and performs operations required
71
+ * when the machine is in IDLE.
72
+ */
73
+ idle: UAState;
74
+ idleToStarting: UATransition;
75
+ reset?: UAMethod;
76
+ /**
77
+ * resetting
78
+ * will typically cause a machine to sound a horn
79
+ * and place the machine in a state where components
80
+ * are energized awaiting a START command
81
+ */
82
+ resetting: UAState;
83
+ resettingToIdle: UATransition;
84
+ start?: UAMethod;
85
+ /**
86
+ * starting
87
+ * This state provides the steps needed to start the
88
+ * machine and is a result of a starting type
89
+ * command (local or remote). Following this
90
+ * command, the machine will begin to Execute
91
+ */
92
+ starting: UAState;
93
+ startingToExecute: UATransition;
94
+ startingToHolding: UATransition;
95
+ suspend?: UAMethod;
96
+ /**
97
+ * suspended
98
+ * The machine may be running at a relevant set
99
+ * point speed, but there is no product being
100
+ * produced while the machine is waiting for
101
+ * external process conditions to return to normal.
102
+ */
103
+ suspended: UAState;
104
+ suspendedToHolding: UATransition;
105
+ suspendedToUnsuspending: UATransition;
106
+ /**
107
+ * suspending
108
+ * This state is a result of a change in monitored
109
+ * conditions due to process conditions or factors.
110
+ * The trigger event will cause a temporary
111
+ * suspension of the EXECUTE state. SUSPENDING is
112
+ * typically the result of starvation of upstream
113
+ * material in-feeds (i.e., container feed, beverage
114
+ * feed, crown feed, lubricant feed, etc.) that is
115
+ * outside the dynamic speed control range or a
116
+ * downstream out-feed blockage that prevents the
117
+ * machine from EXECUTING continued steady production
118
+ */
119
+ suspending: UAState;
120
+ suspendingToHolding: UATransition;
121
+ suspendingToSuspended: UATransition;
122
+ toComplete?: UAMethod;
123
+ unhold?: UAMethod;
124
+ /**
125
+ * unholding
126
+ * The UNHOLDING state is a response to an operator
127
+ * command to resume the EXECUTE state. Issuing the
128
+ * Unhold command will retrieve the saved set-points
129
+ * and return the status conditions to prepare the
130
+ * machine to re-enter the normal EXECUTE state
131
+ */
132
+ unholding: UAState;
133
+ unholdingToExecute: UATransition;
134
+ unholdingToHolding: UATransition;
135
+ unsuspend?: UAMethod;
136
+ /**
137
+ * unsuspending
138
+ * This state is a result of a machine generated
139
+ * request from SUSPENDED state to go back to the
140
+ * EXECUTE state. The actions of this state may
141
+ * include ramping up speeds, turning on vacuums,
142
+ * and the re-engagement of clutches.
143
+ */
144
+ unsuspending: UAState;
145
+ unsuspendingToExecute: UATransition;
146
+ unsuspendingToHolding: UATransition;
147
+ }
148
+ export interface UAPackMLExecuteStateMachine extends Omit<UAFiniteStateMachine, "availableStates"|"availableTransitions">, UAPackMLExecuteStateMachine_Base {
149
+ }
@@ -0,0 +1,57 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAMethod } from "node-opcua-address-space-base"
3
+ import { DataType } from "node-opcua-variant"
4
+ import { NodeId } from "node-opcua-nodeid"
5
+ import { UAFiniteStateMachine, UAFiniteStateMachine_Base } from "node-opcua-nodeset-ua/source/ua_finite_state_machine"
6
+ import { UABaseDataVariable } from "node-opcua-nodeset-ua/source/ua_base_data_variable"
7
+ import { UAState } from "node-opcua-nodeset-ua/source/ua_state"
8
+ import { UATransition } from "node-opcua-nodeset-ua/source/ua_transition"
9
+ import { UAPackMLExecuteStateMachine } from "./ua_pack_ml_execute_state_machine"
10
+ /**
11
+ * | | |
12
+ * |----------------|--------------------------------------------------|
13
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
14
+ * |nodeClass |ObjectType |
15
+ * |typedDefinition |15:PackMLMachineStateMachineType ns=15;i=2 |
16
+ * |isAbstract |false |
17
+ */
18
+ export interface UAPackMLMachineStateMachine_Base extends UAFiniteStateMachine_Base {
19
+ availableStates: UABaseDataVariable<NodeId[], DataType.NodeId>;
20
+ availableTransitions: UABaseDataVariable<NodeId[], DataType.NodeId>;
21
+ /**
22
+ * clearing
23
+ * Initiated by a state command to clear faults that
24
+ * may have occurred when ABORTING, and are present
25
+ * in the ABORTED state.
26
+ */
27
+ clearing: UAState;
28
+ clearingToStopped: UATransition;
29
+ /**
30
+ * executeState
31
+ * StateMachine that provides additional sube
32
+ */
33
+ executeState: UAPackMLExecuteStateMachine;
34
+ reset?: UAMethod;
35
+ running: UAState;
36
+ runningToStopping: UATransition;
37
+ stop?: UAMethod;
38
+ /**
39
+ * stopped
40
+ * The machine is powered and stationary after
41
+ * completing the STOPPING state. All communications
42
+ * with other systems are functioning (if
43
+ * applicable).
44
+ */
45
+ stopped: UAState;
46
+ stoppedToRunning: UATransition;
47
+ /**
48
+ * stopping
49
+ * This state executes the logic which brings the
50
+ * machine to a controlled stop as reflected by the
51
+ * STOPPED state.
52
+ */
53
+ stopping: UAState;
54
+ stoppingToStopped: UATransition;
55
+ }
56
+ export interface UAPackMLMachineStateMachine extends Omit<UAFiniteStateMachine, "availableStates"|"availableTransitions">, UAPackMLMachineStateMachine_Base {
57
+ }
@@ -0,0 +1,37 @@
1
+ // ----- this file has been automatically generated - do not edit
2
+ import { UAObject, UAProperty } from "node-opcua-address-space-base"
3
+ import { DataType } from "node-opcua-variant"
4
+ import { NodeId } from "node-opcua-nodeid"
5
+ import { Int32 } from "node-opcua-basic-types"
6
+ import { UAAnalogItem } from "node-opcua-nodeset-ua/source/ua_analog_item"
7
+ import { UABaseDataVariable } from "node-opcua-nodeset-ua/source/ua_base_data_variable"
8
+ import { DTPackMLDescriptor } from "./dt_pack_ml_descriptor"
9
+ import { DTPackMLProduct } from "./dt_pack_ml_product"
10
+ import { DTPackMLRemoteInterface } from "./dt_pack_ml_remote_interface"
11
+ /**
12
+ * | | |
13
+ * |----------------|--------------------------------------------------|
14
+ * |namespace |http://opcfoundation.org/UA/PackML/ |
15
+ * |nodeClass |ObjectType |
16
+ * |typedDefinition |15:PackMLStatusObjectType ns=15;i=4 |
17
+ * |isAbstract |false |
18
+ */
19
+ export interface UAPackMLStatusObject_Base {
20
+ curMachSpeed: UAAnalogItem<number, DataType.Float>;
21
+ equipmentBlocked: UABaseDataVariable<boolean, DataType.Boolean>;
22
+ equipmentStarved: UABaseDataVariable<boolean, DataType.Boolean>;
23
+ machSpeed: UAAnalogItem<number, DataType.Float>;
24
+ materialInterlock?: UABaseDataVariable<boolean[], DataType.Boolean>;
25
+ materialInterlocked?: UABaseDataVariable<boolean, DataType.Boolean>;
26
+ parameter?: UABaseDataVariable<DTPackMLDescriptor[], DataType.ExtensionObject>;
27
+ product?: UABaseDataVariable<DTPackMLProduct[], DataType.ExtensionObject>;
28
+ remoteParameter?: UABaseDataVariable<DTPackMLRemoteInterface[], DataType.ExtensionObject>;
29
+ stateChangeInProcess?: UABaseDataVariable<boolean, DataType.Boolean>;
30
+ stateRequested?: UABaseDataVariable<Int32, DataType.Int32>;
31
+ unitModeChangeInProcess?: UABaseDataVariable<boolean, DataType.Boolean>;
32
+ unitModeCurrent: UABaseDataVariable<Int32, DataType.Int32>;
33
+ unitModeRequested?: UABaseDataVariable<boolean, DataType.Boolean>;
34
+ unitSupportedModes: UAProperty<NodeId, DataType.NodeId>;
35
+ }
36
+ export interface UAPackMLStatusObject extends UAObject, UAPackMLStatusObject_Base {
37
+ }