Skip to Content

CXAIN Command - Analog Input Configuration

Configures the interpretation of magnitudes read by the device’s AD inputs, allowing transformation and scaling of values according to the application.


What is it for?

Use caseDescription
📊 Fuel sensorsConvert voltage to liters or percentage
🌡️ Temperature sensorsTransform analog signal to °C
Voltage measurementScale voltage readings
📈 Custom calibrationAdjust readings to specific units

  • It is recommended to recalibrate the analog reading constant through the AR Command
  • The AD value reading for each input can be obtained through the AIN Command
  • To query all readings obtained from all AD inputs of the device or generate a report with these values, use the AD Report

Commands

Configure

SCXAINaabccccdeeeefgggghiiiijkkkklmmmm

Query

QCXAINaa

Response

RCXAINaabccccdeeeefgggghiiiijkkkklmmmm

Parameters

FieldDescriptionRange
aaAnalog signal index00-02, 07
bLower limit sign (BOTTOM)+/-
ccccLower limit magnitude (BOTTOM)0000-9999
dUpper limit sign (TOP)+/-
eeeeUpper limit magnitude (TOP)0000-9999
fFirst measured value sign (XA)+/-
ggggTenths of volt for first measured value (XA)0000-9999
hSecond measured value sign (XB)+/-
iiiiTenths of volt for second measured value (XB)0000-9999
jSign of value to display referred to first measured value (YA)+/-
kkkkValue to display referred to first measured value (YA)0000-9999
lSign of value to display referred to second measured value (YB)+/-
mmmmValue to display referred to second measured value (YB)0000-9999

Conversion formula: The system linearly interpolates between points (XA, YA) and (XB, YB) to convert the read voltage into the desired magnitude.


Examples

Configure analog input 00

>SCXAIN00-9999+9999-0000+0001-0000+0001< // aa=00 → Analog input index 0 // b=- → Negative lower limit // cccc=9999 → Lower limit value: -9999 // d=+ → Positive upper limit // eeee=9999 → Upper limit value: +9999

Fuel sensor 0-5V → 0-100 liters

>SCXAIN00+0000+0100+0000+0050+0000+0100< // Maps 0V-5V to 0-100 liters // XA=0.0V → YA=0 liters // XB=5.0V → YB=100 liters

Compatibility

💾Firmware:v1.00.00
SPLegacy
ULLegacy
MTLegacy
C3Legacy
C5Legacy
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated