Payload format - Format wildcards
Used both for reports an historical records
%n
Channel type (I, O, AN, PI)
%i
I/O channel number
%v
I/O channel value in numeric format
%b
/O channel value in boolean format (true - false)
For historical records only
%t
Seconds since 1970
%d
Day
%M
Month
%y
Year
%h
Hour
%m
Minutes
%s Seconds
%x
Historical record type
R: General report
HC: By change
HT: By time - current value
MIN-AL: By low value
N_AL: Normal value
MAX-AL: By high value
HTMIN: By time - minimum value
HTMAX: By time - maximum value
HTAV: By time - average value
Publish example
Here are some examples following the configuration on the previous snapshots.
Analog input channels 1, 2, 3 and 4:
[{A1:893},{A2:41},{A3:312},{A4:1933}]
Historical record for analog input channel 2, at Feb21 2020 08:02:20pm with value 41
[{"ts":"1582315320000","values":{A2HT:41}}]
Digital output channel 2 with value 1
Historical record for digital output channel 2, at Feb21 2020 08:05:34pm with value 1
[{"ts":"1582315534000","values":{O2HC:1}}]
Reports
We will now see the types of reports and how to configure them. The reports are configured individually
in each channel, to access the report configuration screen go to the Configurator, the “Channels” menu
and here select the type of channel and channel number by double clicking on it. A configuration screen
will be displayed where you have the available configurations for that channel.
It is important to be aware that when the GRD-MQ losses connection with the broker and recovers it or is
GRD-MQ User Manual
Reports and Historical records
43 / 84
Summary of Contents for GRD-MQ Series
Page 26: ...Analog inputs GRD MQ User Manual Physical Inputs Outputs 25 84 ...
Page 33: ...2020 09 28 GRD MQ User Manual Features of power supply and inputs outputs 32 84 ...
Page 74: ...2020 11 20 GRD MQ User Manual Scripts Publish Subscribe 73 84 ...
Page 76: ...Wiring Terminal Blocks 2020 10 05 GRD MQ User Manual GRD1620 MQ 3G 75 84 ...
Page 79: ...2020 10 05 GRD MQ User Manual GRD3621 MQ 3G 78 84 ...
Page 83: ...Wiring Terminal Blocks 2020 10 05 GRD MQ User Manual GRD3534 MQ 3G 82 84 ...