NOVUS AUTOMATION
23/53
o
Config:
{"n_channels":4,"timestamp":43277.57784722,"frame_format":"descriptive_static","enabled_dig":0,"enabled_analog_1":1,"enabled_analog
_2":0,"enabled_analog_3":1,"hash":"9401ACBDFFD105D653DAE5222470B47127455BBC","gmt":-
180,"tag_dig":"","tag_analog_1":"Analog1","tag_analog_2":"","tag_analog_3":"Analog3","unit_dig":"","unit_analog_1":"Celsius","unit_analog
_2":"","unit_analog_3":"Celsius","sp_alarm_low_dig":0.000,"sp_alarm_low_analog_1":40.500,"sp_alarm_low_analog_2":0.000,"sp_alarm_l
ow_analog_3":0.000,"sp_alarm_high_dig":0.000,"sp_alarm_high_analog_1":0.000,"sp_alarm_high_analog_2":0.000,"sp_alarm_high_anal
og_3":20.000}
•
Dynamic Descriptive:
Send information only about the enabled variables, grouping each variable in a unitary manner.
o
Status:
{"n_channels":2,"timestamp":43277.41043981,"battery":5.69,"ch_analog_1":22.800,"ch_analog_3":22.800,"alarm_low_analog_1":1,"alarm_lo
w_analog_3":0,"alarm_high_analog_1":0,"alarm_high_analog_3":1,"buzzer_state":0}
o
Config:
{"n_channels":2,"timestamp":43277.58234954,"frame_format":"descriptive_dynamic","enabled_analog_1":1,"enabled_analog_3":1,"hash":"94
01ACBDFFD105D653DAE5222470B47127455BBC","gmt":-
180,"tag_analog_1":"Analog1","tag_analog_3":"Analog3","unit_analog_1":"Celsius","unit_analog_3":"Celsius","sp_alarm_low_analog_1":40.50
0,"sp_alarm_low_analog_3":0.000,"sp_alarm_high_analog_1":0.000,"sp_alarm_high_analog_3":20.000}
7.4.3
BOOLEAN FORMAT
A Boolean data consists of a data type that basically has two values: 0 or 1 or false or true, with 0 being false and 1 being true. Both the MQTT
protocol and
NXperience
software support that, according to the pattern chosen by the user, boolean values are displayed in numeric format or in
string format.
The
NXperience Boolean Format
parameter (see
section of the
chapter) tells you how Boolean variables
will be displayed within the JSON frame, as you can see in the examples below.
•
Numeric
:
{"n_channels":4,"timestamp":43277.45657407,"battery":5.69,"value_channels":[0.000,23.400,0.000,23.400],"alarm_low":[
0
,
1
,
0
,
0
],"alarm_high":[
0
,
0
,
0
,
1
],"buzzer_state":
0
}
•
String
:
{"n_channels":4,"timestamp":43277.45446759,"battery":5.69,"value_channels":[0.000,23.300,0.000,23.300],"alarm_low":[
false
,
true
,
false
,
false
]
,"alarm_high":[
false
,
false
,
false
,
true
],"buzzer_state":
false
}