Skip to main content

4-20 mA Add-On

Configuration Parameters

In addition to the GW4 configuration parameters the add-on has the following specific parameters:

Analog Channel Parameters

Description
KeyTypePossible ValuesDefault
Enable measurement on 4–20 mA input channel 1 (CH1)ch1EnableBooltrue / false
false = channel disabled
true
Number of seconds to wait for the CH1 sensor to get ready after power onch1PreReadSecNumberSeconds (integer)
0…
1
Number samples to take for a single CH1 measurementch1SamplesNumber1-1000
200
Scaling factor applied to the raw CH1 valuech1FactorNumberNumeric (float)
e.g. 1.0, 0.1
1
Offset added to the CH1 value after scalingch1OffsetNumberNumeric (float)
e.g. 0, -5.0
0
High alarm threshold for CH1 measurement valuech1AlarmHighNumberNumeric (float)
empty = disabled
[not set]
Low alarm threshold for CH1 measurement valuech1AlarmLowNumberNumeric (float)
empty = disabled
[not set]
Enable measurement on 4–20 mA input channel 2 (CH2)ch2EnableBooltrue / false
false = channel disabled
true
Number of seconds to wait for the CH2 sensor to get ready after power-onch2PreReadSecNumberSeconds (integer)
0…
1
Number of samples taken for a single CH2 measurementch2SamplesNumber1-1000
200
Scaling factor applied to the raw CH2 valuech2FactorNumberNumeric (float)1
Offset added to the CH2 value after scalingch2OffsetNumberNumeric (float)0
High alarm threshold for CH2 measurement valuech2AlarmHighNumberNumeric (float)
empty = disabled
[not set]
Low alarm threshold for CH2 measurement valuech2AlarmLowNumberNumeric (float)
empty = disabled
[not set]
Cron schedule used while an alarm is active, overriding the normal device cronalarmCronStringCron expression (string)
empty = no override
[not set]
Number of seconds CH1 stays powered after first power-on or brownoutch1PwrAfterBrownoutDurIntegerSeconds (integer)
0 = disabled
0
Detailed Description

chXFactor and chXOffset Parameters

The measured raw value is multiplied by chXFactor and then chXOffset is added. All further calculations and alarm checks are done with this derived value.


chXAlarmLow and chXAlarmHigh Parameters

If the calculated measurement value is above chXAlarmHigh or below chXAlarmLow, an alarm is triggered. The number of triggered alarms and the time in the alarm state is measured and transmitted.


alarmCron Parameter

In case of an active alarm, this cron is used instead of the regular cron. If empty, the regular sensor cron will be used.

LoRaWAN Communication

The current firmware version does not yet support LoRaWAN for the 4–20 mA add-on.