-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.py
More file actions
37 lines (36 loc) · 912 Bytes
/
vars.py
File metadata and controls
37 lines (36 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from opcua.ua import VariantType
# Define opc vars that will be affected by the MCU
mcu_vars = {
'displacement' : {
'name' : "Displacement",
'type' : VariantType.Int16,
'value' : 0,
},
'avel' : {
'name' : "Angular_Velocity",
'type' : VariantType.Int16,
'value' : 0,
},
'lvel' : {
'name' : "Linear_Velocity",
'type' : VariantType.Int16,
'value' : 0,
}
}
plc_vars = {
'dir' : {
'name' : "Up",
'type' : VariantType.Boolean,
'value' : True
},
'motion' : {
'name' : "InMotion",
'type' : VariantType.Boolean,
'value' : False
},
'curFloor' : {
'name' : "Current Floor",
'type' : VariantType.Int16,
'value' : 0
}
}