Knowledge Base
Article

DONGKER XY-MD02 - temperature and humidity sensor

Edit

DONGKER XY-MD02 - temperature and humidity sensor

Description

  • Device class: temperature and humidity sensor
  • Brand: DONGKER
  • Name in My Devices: DONGKER XY-MD02
  • Housing: DIN rail module with an SHT20 sensor element
  • Serial number: typed in when you add the sensor

LoggerV Connection

Interface Protocol Port or baud rate
RS-485 Modbus RTU LoggerV port Bus Speed
Ethernet Modbus TCP 502 by default
  • Ethernet: through a Modbus TCP to RTU gateway. Not tested with this sensor.
  • Sensor baud rates: 9600, 14400 or 19200 bit/s
  • Modbus address range: 1 to 247

Plant Control Functions

  • Monitoring only: no commands

Recorded Data

Field Unit
Temperature °C
Humidity %RH

Wiring

The Add-Device wizard makes the connection diagrams. See How to add a device in myPower24. The Solar MD connection guide for this sensor is below.

Solar MD connection guide SMD_SMD_LV2/TEMP_HUMID_MS_00: the Logger V2 EMS, its RS485-1 ports with a 120 Ohm terminator, and the XY-MD02 and CWT-TH03S-H sensors wired to the RS485 pair and the 24 VDC and ground rails

  • LoggerV port: RS485-1. The bus cable goes into PORT 1.
  • Termination: a 120 Ohm RJ45 termination resistor in RS485-1 PORT 2
  • RJ45 crimp: T568B pinout of the ANSI/TIA-568-E standard
  • RS485 B+ conductor: RJ45 pin 4, to the sensor terminal B-
  • RS485 A- conductor: RJ45 pin 5, to the sensor terminal A+
  • Sensor terminals, left to right: B-, A+ (RS485), then -, + (DC5-30V)
  • Supply: the + terminal to the 24 VDC rail, the - terminal to the ground rail
  • Factory serial settings: 9600-8-N-1
  • Factory Modbus address: 1
  • Address and baud rate: change them through Modbus, with Slave ID and Baudrate on the Settings tab.

The plus and minus signs are different at the two ends. Connect B to B and A to A.

Setup

  1. Connect the cable and the supply as the diagram from the wizard shows.
  2. Add the device on the LoggerV. See How to add a device in myPower24. Select the DONGKER XY-MD02.
  3. Set the port Bus Speed to the baud rate of the sensor. A new sensor uses 9600.
  4. Type a serial number in Serial Number:. Use a site asset number, up to 50 characters.
  5. Type the Modbus address of the sensor in Modbus Slave ID:.
  6. If you do not know the address, click Try scan range. Type a range (1-10) or a comma-separated list. This button is on serial ports with LoggerV firmware 9.269 or a higher version.
  7. If two or more sensors share one RS485 line, give each sensor a different address. Open Settings > Communication Settings and set Slave ID. The LoggerV moves to the new address with the sensor.
  8. Open Actual Values. Make sure that Temperature and Humidity change with the conditions at the sensor.

Do not change Baudrate on the device page unless you also change the LoggerV port and all other devices on the line. The setting changes the rate of this sensor only. Then the sensor does not reply.

Device Page

  • Actual Values (opens first): Measurements card with Temperature (°C) and Humidity (%RH). Communication card with Slave ID and Baudrate, read only.
  • Settings, Calibration: Temperature Correction (°C) and Humidity Correction (%RH), -10.0 to +10.0, in steps of 0.1
  • Settings, Communication Settings: Slave ID (1 to 247) and Baudrate
  • Healthy link: Temperature and Humidity change. Baudrate shows a rate label, for example 9600bps.
  • Start-up value: 0.0 °C and 0.0 %RH before the first reading

The sensor adds each correction to its own reading before it sends the value. A correction changes the recorded data from that time on. It does not change the data recorded before.

Troubleshooting

  • "Failed to scan ID (device did not respond to all register groups)": the sensor did not reply to the two register groups, so the LoggerV did not add it. Make sure that B goes to B and A goes to A. Make sure that the port Bus Speed and the sensor baud rate are the same. Then examine the address. The same message shows when a different device replies at that address.
  • "Serial Number required. Please provide serial number": you clicked Try to connect with an empty Serial Number field. Type a serial number.
  • The sensor does not reply after a period of correct operation: examine the termination resistor in RS485-1 PORT 2. Make sure that no other device on the line uses the same Slave ID. Make sure that all devices on the line use the same baud rate.
  • Reading is always high or low by the same amount: examine Temperature Correction and Humidity Correction in Settings > Calibration.
  • "Permission denied! Required permission [basic].": you do not have Editor access or higher to the plant.

Permissions

  • Viewer: the device page and the recorded data, read only
  • Editor, Installer or Full control: all four settings on the Settings tab
  • Advanced and OEM roles: no more access on this device

A higher level includes all lower-level access.

Tips and Gotchas

  • Two sensors on one line: connect and address one sensor at a time. Two sensors at the same address reply at the same time. Thus the scan finds no sensor.

Related articles