Integrating an XY MD02 Sensor with Modbus RTU into Click PLC
Using Modbus RTU (RS485), we will connect the XY-MD02 Temperature and Humidity Sensor to the Click PLC. The Click will be the Client (Master), and the Sensor will be the Server (Slave). This is an ideal sensor to place in a panel to ensure that the panel is within a working temperature and humidity range. The XY-MD02 is an industrial Modbus RTU device that reads temperature and humidity. We will create a Click PLC program that will read the temperature and humidity from the sensor. We will also read the parameters from this sensor, like unit number, baud rate, temperature offset, and humidity offset. Let’s get started. More information can be obtained at our website. This includes all of the links mentioned in this video. https://accautomation.ca/integrating-xy-md02-sensor-modbus-rtu-click-plc/ XY-MD02 Temperature Humidity Sensor - Modbus RTU (RS485) Purchase Amazon.com https://amzn.to/3PbBryH Amazon.ca https://amzn.to/3Etmy65 Manual http://www.sah.rs/media/sah/techdocs/xy-md02-manual.pdf Connection to Raspberry Pi https://www.instructables.com/XY-MD02-Temperature-and-Humidity-Sensor-Module-Mod/ 00:00 Integrating an XY-MD02 Sensor with Modbus RTU into Click PLC 01:58 Wiring the XY-MD02 to a Click PLC 02:51 Click PLC Modbus RTU Program