01
RS-485 Serial Link
Half-duplex differential bus interfaceNo port selected
8N1 (8-bit, No parity, 1 stop)|CRC16 Polynomial: 0xA001|Modbus RTU Frame Encoding|Binary-to-Hex Data Conversion
02
Sensor Interrogation
Modbus RTU bus scan via FC 0x03 register readto
Establish RS-485 link first to begin bus interrogation
03
Hardcode New Address
FC 0x06 Write Single Register to EEPROM address 0x0000Constructs a Modbus RTU frame targeting register 0x0000 using function code FC 0x06 (Write Single Holding Register). The 8-byte frame is assembled as: [ADDR] [0x06] [REG_H][REG_L] [VAL_H][VAL_L] [CRC_L][CRC_H]. Binary data is converted to hexadecimal for transmission. CRC16 checksum (polynomial 0xA001) validates frame integrity. The sensor acknowledges using its old address, then switches to the new address permanently in EEPROM.
04
EEPROM Persistence Verification
Confirm hardcoded address survives power-cyclePower-Cycle Protocol:
- Disconnect the sensor's power supply (keep RS-485 A/B data lines connected)
- Wait at least 10 seconds for capacitor discharge
- Reconnect power and allow sensor to initialize
- Click verify to read register 0x0000 at the hardcoded address and confirm EEPROM retention
Communication Log