Skip to content

Instantly share code, notes, and snippets.

@kohlerdominik
Created December 12, 2018 18:38
Show Gist options
  • Save kohlerdominik/bd1583f3fde904a97b53e85c2ee33f65 to your computer and use it in GitHub Desktop.
Save kohlerdominik/bd1583f3fde904a97b53e85c2ee33f65 to your computer and use it in GitHub Desktop.
Lookup Table for Mbus VIF Field
<?php
return
[ // Type Unit Multiplicator
1 => ['Energy', 'Wh', '0.01'],
2 => ['Energy', 'Wh', '0.1'],
3 => ['Energy', 'Wh', '1'],
4 => ['Energy', 'Wh', '10'],
5 => ['Energy', 'Wh', '100'],
6 => ['Energy', 'Wh', '1000'],
7 => ['Energy', 'Wh', '10000'],
8 => ['Energy', 'J', '1'],
9 => ['Energy', 'J', '10'],
10 => ['Energy', 'J', '100'],
11 => ['Energy', 'J', '1000'],
12 => ['Energy', 'J', '10000'],
13 => ['Energy', 'J', '100000'],
14 => ['Energy', 'J', '1000000'],
15 => ['Energy', 'J', '10000000'],
16 => ['Volume', 'm3', '0.000001'],
17 => ['Volume', 'm3', '0.00001'],
18 => ['Volume', 'm3', '0.0001'],
19 => ['Volume', 'm3', '0.001'],
20 => ['Volume', 'm3', '0.01'],
21 => ['Volume', 'm3', '0.1'],
22 => ['Volume', 'm3', '1'],
23 => ['Volume', 'm3', '10'],
24 => ['Mass', 'kg', '0.001'],
25 => ['Mass', 'kg', '0.01'],
26 => ['Mass', 'kg', '0.1'],
27 => ['Mass', 'kg', '1'],
28 => ['Mass', 'kg', '10'],
29 => ['Mass', 'kg', '100'],
30 => ['Mass', 'kg', '1000'],
31 => ['Mass', 'kg', '10000'],
32 => ['On Time', 'seconds]'],
33 => ['On Time', 'minutes]'],
34 => ['On Time', 'hours]'],
35 => ['On Time', 'days]'],
36 => ['Operating Time', 'seconds]'],
37 => ['Operating Time', 'minutes]'],
38 => ['Operating Time', 'hours]'],
39 => ['Operating Time', 'days]'],
40 => ['Power', 'W', '0.001'],
41 => ['Power', 'W', '0.01'],
42 => ['Power', 'W', '0.1'],
43 => ['Power', 'W', '1'],
44 => ['Power', 'W', '10'],
45 => ['Power', 'W', '100'],
46 => ['Power', 'W', '1000'],
47 => ['Power', 'W', '10000'],
48 => ['Power', 'J/h', '1'],
49 => ['Power', 'J/h', '10'],
50 => ['Power', 'J/h', '100'],
51 => ['Power', 'J/h', '1000'],
52 => ['Power', 'J/h', '10000'],
53 => ['Power', 'J/h', '100000'],
54 => ['Power', 'J/h', '1000000'],
55 => ['Power', 'J/h', '10000000'],
56 => ['Volume Flow', 'm3/h', '0.000001'],
57 => ['Volume Flow', 'm3/h', '0.00001'],
58 => ['Volume Flow', 'm3/h', '0.0001'],
59 => ['Volume Flow', 'm3/h', '0.001'],
60 => ['Volume Flow', 'm3/h', '0.01'],
61 => ['Volume Flow', 'm3/h', '0.1'],
62 => ['Volume Flow', 'm3/h', '1'],
63 => ['Volume Flow', 'm3/h', '10'],
64 => ['Volume Flow ext', 'm3/min', '0.0000001'],
65 => ['Volume Flow ext', 'm3/min', '0.000001'],
66 => ['Volume Flow ext', 'm3/min', '0.00001'],
67 => ['Volume Flow ext', 'm3/min', '0.0001'],
68 => ['Volume Flow ext', 'm3/min', '0.001'],
69 => ['Volume Flow ext', 'm3/min', '0.01'],
70 => ['Volume Flow ext', 'm3/min', '0.1'],
71 => ['Volume Flow ext', 'm3/min', '1'],
72 => ['Volume Flow ext', 'm3/s', '0.000000001'],
73 => ['Volume Flow ext', 'm3/s', '0.00000001'],
74 => ['Volume Flow ext', 'm3/s', '0.0000001'],
75 => ['Volume Flow ext', 'm3/s', '0.000001'],
76 => ['Volume Flow ext', 'm3/s', '0.00001'],
77 => ['Volume Flow ext', 'm3/s', '0.0001'],
78 => ['Volume Flow ext', 'm3/s', '0.001'],
79 => ['Volume Flow ext', 'm3/s', '0.01'],
80 => ['Mass Flow', 'kg/h', '0.001'],
81 => ['Mass Flow', 'kg/h', '0.01'],
82 => ['Mass Flow', 'kg/h', '0.1'],
83 => ['Mass Flow', 'kg/h', '1'],
84 => ['Mass Flow', 'kg/h', '10'],
85 => ['Mass Flow', 'kg/h', '100'],
86 => ['Mass Flow', 'kg/h', '1000'],
87 => ['Mass Flow', 'kg/h', '10000'],
88 => ['Flow Temperature', '°C', '0.001'],
89 => ['Flow Temperature', '°C', '0.01'],
90 => ['Flow Temperature', '°C', '0.1'],
91 => ['Flow Temperature', '°C', '1'],
92 => ['Return Temperature', '°C', '0.001'],
93 => ['Return Temperature', '°C', '0.01'],
94 => ['Return Temperature', '°C', '0.1'],
95 => ['Return Temperature', '°C', '1'],
96 => ['Temperature Diff', '°K', '0.001'],
97 => ['Temperature Diff', '°K', '0.01'],
98 => ['Temperature Diff', '°K', '0.1'],
99 => ['Temperature Diff', '°K', '1'],
100 => ['External Temperature', '°C', '0.001'],
101 => ['External Temperature', '°C', '0.01'],
102 => ['External Temperature', '°C', '0.1'],
103 => ['External Temperature', '°C', '1'],
104 => ['Pressure', 'bar', '0.001'],
105 => ['Pressure', 'bar', '0.01'],
106 => ['Pressure', 'bar', '0.1'],
107 => ['Pressure', 'bar', '1'],
108 => ['Time Point', 'date]'],
109 => ['Time Point', 'time&date]'],
110 => ['Units for HCA'],
111 => ['Reserved'],
112 => ['Averaging Duration', 'seconds]'],
113 => ['Averaging Duration', 'minutes]'],
114 => ['Averaging Duration', 'hours]'],
115 => ['Averaging Duration', 'days]'],
116 => ['Actuality Duration', 'seconds]'],
117 => ['Actuality Duration', 'minutes]'],
118 => ['Actuality Duration', 'hours]'],
119 => ['Actuality Duration', 'days]'],
120 => ['Fabrication No'],
121 => ['Identification'],
122 => ['Bus Address'],
123 => ['unknown'],
124 => ['unknwon'],
125 => ['unknown'],
126 => ['unknown'],
127 => ['unknown',
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment