[r908]: / branches / develop / mqttsparkplug / mqttsparkplug-unittest / Device / Plc Logic / mqttsparkplug / GVL_metrics / svnobj  Maximize  Restore  History

Download this file

34 lines (33 with data), 11.2 kB

 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
{attribute 'qualified_only'}
VAR_GLOBAL
    Timestamp : systimertc.systime;
    // Edge 1 and 2 Data   
        (_name := "Bool/B2", _dataType := Sparkplug.MetricDataType.Boolean, _uLint := 1),
        (_name := "DateTime/DT1", _dataType := Sparkplug.MetricDataType.DateTime, _uLint := 0),
        (_name := "DateTime/DT3", _dataType := Sparkplug.MetricDataType.DateTime, _uLint := 0),
        (_name := "Float/F2", _dataType := Sparkplug.MetricDataType.Float, _lReal := 2.0),
        (_name := "Double/D1", _dataType := Sparkplug.MetricDataType.Double, _lReal := 4.0),
        (_name := "Double/D3", _dataType := Sparkplug.MetricDataType.Double, _lReal := 6.0),
        (_name := "Int8/I82", _dataType := Sparkplug.MetricDataType.Int8, _uLint := 8),
        (_name := "Int16/I161", _dataType := Sparkplug.MetricDataType.Int16, _uLint := 10),
        (_name := "Int16/I163", _dataType := Sparkplug.MetricDataType.Int16, _uLint := 12),
        (_name := "Int32/I322", _dataType := Sparkplug.MetricDataType.Int32, _uLint := 14),
        (_name := "Int64/I641", _dataType := Sparkplug.MetricDataType.Int64, _uLint := 16),
        (_name := "Int64/I643", _dataType := Sparkplug.MetricDataType.Int64, _uLint := 18),
        (_name := "Uint8/by2", _dataType := Sparkplug.MetricDataType.Uint8, _uLint := 20),
        (_name := "UInt16/w1", _dataType := Sparkplug.MetricDataType.UInt16, _uLint := 22),
        (_name := "UInt16/w3", _dataType := Sparkplug.MetricDataType.UInt16, _uLint := 24),
        (_name := "Uint32/dw2", _dataType := Sparkplug.MetricDataType.Uint32, _uLint := 26),
        (_name := "UInt64/lw1", _dataType := Sparkplug.MetricDataType.UInt64, _uLint := 28),
        (_name := "UInt64/lw3", _dataType := Sparkplug.MetricDataType.UInt64, _uLint := 30),
        (_name := "WString/ws2", _dataType := Sparkplug.MetricDataType.String_, _WSTRING := "why"),
    arMetrics_D1 : ARRAY[0..5] OF Sparkplug.FB_Metric := [(_name := "Float/F1",
            _dataType := Sparkplug.MetricDataType.Float,
            _lReal := 1.0),
        (_name := "Bool/B3", _dataType := Sparkplug.MetricDataType.Boolean, _uLint := 1)];
    // Edge 1 and 2 - Device 2 
    arMetrics_D3 : ARRAY[0..5] OF Sparkplug.FB_Metric := [(_name := "Float/F1",
END_VAR
NetVarProperties
ParameterList
bool