background image

 

M-2004 & M-7004 User Manual, v 1.0.2, Apr. 2020                    E-mail: [email protected] 

Copyright ©  2017 ICP DAS Co., Ltd. All Rights Reserved.     

 

 

M-2004 and M-7004 

User Manual 

Version 1.0.2/ April 2020 

 

 

 

 

 

 

 

 

 

Summary of Contents for M-2004

Page 1: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 1 M 2004 and M 7004 User Manual Version 1 0 2 April 2020 ...

Page 2: ...t ICP DAS reserves the right to change this manual at any time without notification The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2017 by ICP DAS Co Ltd All rights are reserved Trademarks The names...

Page 3: ...ontents 3 Chapter 1 Hardware 4 1 1 Introduction 4 1 2 Features 7 1 3 Specifications 8 1 4 Pin Assignment 10 1 5 Wiring 12 1 6 Block Diagram 13 1 7 Dimensions 14 1 8 Jumper Settings 15 Chapter 2 Quick start 16 Chapter 3 Using DS18B20 Temperature Sensor 23 Chapter 4 DCON Command Sets 28 Chapter 5 Modbus Address Mappings 34 Chapter 6 Troubleshooting 41 ...

Page 4: ...l temperature sensor input The DS18B20 temperature sensor has a high accuracy of 0 5 C when measuring temperatures between 10 and 85 C with a total measurement range of between 55 and 125 C Up to 20 DS18B20 sensors can be connected to each port on the M 2004 M 7004 module in a daisy chain arrangement with a maximum wiring distance of 100 meters The M 2004 M 7004 module is fully RoHS compliant and ...

Page 5: ... 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 5 Applications Temperature Measurement Environment Monitoring Tunnel Monitoring Building Monitoring ...

Page 6: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 6 ...

Page 7: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 7 1 2 Features ...

Page 8: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 8 1 3 Specifications System Specifications M 2004 ...

Page 9: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 9 M 7004 ...

Page 10: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 10 1 4 Pin Assignment M 2004 ...

Page 11: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 11 M 7004 ...

Page 12: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 12 1 5 Wiring ...

Page 13: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 13 1 6 Block Diagram ...

Page 14: ...M 2004 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 14 1 7 Dimensions Dimensions Units mm M 2004 M 7004 ...

Page 15: ...o Ltd All Rights Reserved 15 1 8 Jumper Settings For the M 7004 modules the JP1 jumper can be used to enable providing the RS 485 bias The position of the JP1 jumper is shown in the figure below The settings for the JP1 jumper is as follows Enable RS 485 bias Disable RS 485 bias factory default ...

Page 16: ... provides the DCON Utility Pro program that can configure and test M 2004 M 7004 without understanding any DCON and Modbus RTU command Users can follow below steps to configure M 2004 M 7004 and read temperature readings from M 2004 M 7004 Step 1 Install DCON Utility Pro on the host Note DCON Utility pro supports M 2004 M 7004 for version 2 0 0 7 and later ICP DAS provides different versions of DC...

Page 17: ...Pro FTP http ftp icpdas com tw pub cd winpac napdos wp 8x4x_ce50 micro_sd dcon_utility_pro For ICP DAS CE6 platform PAC CD CD XPAC XPAC ATOM CE6 PC_Tools DCON_Utility_Pro FTP http ftp icpdas com tw pub cd xpac atom ce6 pc_tools dcon_ut ility_pro For ICP DAS CE7 platform and ARM CPU PAC CD CD WinPAC_AM335x Wp 5231 System_Disk Tools DCON_Utility_Pro FTP http ftp icpdas com tw pub cd winpac_am335x wp...

Page 18: ...E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 18 Step 2 Search and find the M 2004 M 7004 module Select the correct COM Port and search Find the M 2004 M 7004 module click the module name to enter configuration form ...

Page 19: ...ility Pro To read temperature each sensor must be assigned a channel index The easiest way is to select Temperature tab and select Assign all new sensor as default Then you can read the temperature for all sensors For the sensor which is not installed or not assigned its temperature reading is 999 99 for DCON protocol and 32768 for Modbus RTU protocol as shown below ...

Page 20: ...service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 20 Step 4 Manual update assign and remove sensor Select Update new sensor to manually assign sensor Select Update assigned sensor then you can read temperature reported by the sensor ...

Page 21: ...sor the temperature readings of all sensors will be changed to 999 99 Step 5 Save the Assigned Sensor to a csv file To ease checking comparing and re assigning sensors DCON Utility Pro provides the Export Assigned Sensor function as shown below to save sensor data to a Excel csv file Then use can have more convenience to check compare or re assign sensor in many sensors conditions ...

Page 22: ...icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 22 Use DCON Utility Pro to save assigned sensors to a file User can use the information saved in the file to check compare and re assign sensors between software and the sensors located in the field ...

Page 23: ...ors When the M 2004 M 7004 is powered on it scans all the DS18B20 sensors connected for each port Each scanned DS18B20 is checked to see whether a channel index is assigned If it is not assigned then the DS18B20 is added to the not assigned list The user has to check the not assigned list and assign channel index for all members in the not assigned list This needs to be done only once since all of...

Page 24: ...004 Followings are the procedure to configure the M 2004 M 7004 1 Refer to Chapter 2 and go through steps 1 and 2 2 Select Temperature tab 3 Select Port_0 4 Select Update new sensor and you will see the undefined sensor list Index in undefined list Serial Code Location 0 370008025B0C7010 A 1 EF0008025B23DE10 C 2 460008025AC79710 B 5 Select Undefined_Sensor_X_YYYYYYYYYYYYYYYY to assign channel inde...

Page 25: ...are assigned with new index 8 Select Update assign sensor and it will show the list of assigned sensors We can use channel index 0 to read temperature at location A channel index 1 to read temperature at location B and channel index 2 to read temperature at location C Assigned channel index Serial Code Location 0 370008025B0C7010 A 2 EF0008025B23DE10 C 1 460008025AC79710 B ...

Page 26: ... 26 If the sensor at location B is broken and to be replaced by a new sensor then do the followings 1 Select Assigned_Sensor_1_460008025AC79710 2 Select Remove 3 Disconnect the broken sensor from the port 4 Connect the new sensor to the port 5 Select Update new sensor and you will see the new sensor as undefined sensor ...

Page 27: ...rved 27 6 Select Undefined_Sensor_0_4A0008025ABFA110 to assign channel index 7 Set the new index and click on the Set button 8 Select Update assign sensor and it will show the updated list of assigned sensors Assigned channel index Serial Code Location 0 370008025B0C7010 A 2 EF0008025B23DE10 C 1 4A0008025ABFA110 B ...

Page 28: ...0 INIT short to GND AA1 else AAM read module name AAP Read Modbus RTU DCON protocol response AA0 DCON AA1 Modbus RTU AAPN Set Modbus RTU DCON protocol N 0 DCON 1 Modbus RTU AA2 read configuration AA5 read reset status AA1 first after power on AA0 others AAP Read temperature readings of all connected sensors of a port P port number 0 3 response sensor 0 reading in 0 01 C sensor 1 reading in 0 01 C ...

Page 29: ...umber 0 3 SS index of the sensor in the new list in hex 00 13 II channel index of the sensor in a port to be assigned in hex 00 13 AACH Clear all high latched temperature readings to the current values AACHP Clear all high latched temperature readings of a port to the current values P port number 0 3 AACHPII Clear high latched temperature reading of a sensor to the current value P port number 0 3 ...

Page 30: ...P port number 0 3 response AANN NN in hex 00 13 AANSNP Read number of not assigned sensors of a port P port number 0 3 response AANN NN in hex 00 13 AANSRP Read number of removed sensors of a port P port number 0 3 response AANN NN in hex 00 13 AARHP Read all high latched values of a port P port number 0 3 response sensor 0 reading in 0 01 C sensor 1 reading in 0 01 C sensor last reading in 0 01 C...

Page 31: ...hex 00 13 response sensor reading in 0 01 C AARMPII Remove a sensor from a port P port number 0 3 II index of the sensor in a port to be removed in hex 00 13 AARSP Rescan sensors connected to a port P port number 0 3 AASNPNN Read serial code of an assigned sensor of a port P port number 0 3 NN sensor channel index in hex 00 13 response AA 16 character serial code FFFFFFFFFFFFFFFF for no sensor AAS...

Page 32: ...haracter serial code FFFFFFFFFFFFFFFF for no sensor clear host watchdog timeout counter AA0 read host watchdog status AA1 clear host watchdog timeout status AA2 read host watchdog enable disable status and timeout value AA3ETT enable disable host watchdog and set timeout value E 0 disable host watchdog 1 enable host watchdog TT host watchdog timeout in 0 1s in hex format AARD read response delay t...

Page 33: ... Rate Setting CC Bits 5 0 Baud rate 0x03 0x0A Code 0x03 0x04 0x05 0x06 Baud 1200 2400 4800 9600 Code 0x07 0x08 0x09 0x0A Baud 19200 38400 57600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit Data Format Setting FF Bit 6 0 checksum disabled 1 checksum enabled ...

Page 34: ...ribute 30001 30020 40001 40020 Temperature readings of port 0 in 0 01 C R 30021 30040 40021 40040 Temperature readings of port 1 in 0 01 C R 30041 30060 40041 40060 Temperature readings of port 2 in 0 01 C R 30061 30080 40061 40080 Temperature readings of port 3 in 0 01 C R 30081 30084 40081 40084 Number of sensors of a port for port 0 to 3 R 30097 30100 40097 40100 Number of not assigned sensors ...

Page 35: ...f scanned sensors of a port for port 0 to 3 R 30145 30148 40145 40148 Number of error counts of a port for port 0 to 3 R 30161 30240 40161 40240 Serial number of sensors of port 0 4 registers for a sensor R 30241 30320 40241 40320 Serial number of sensors of port 1 4 registers for a sensor R 30321 30400 40321 40400 Serial number of sensors of port 2 4 registers for a sensor R 30401 30480 40401 404...

Page 36: ...lid range 3 10 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bit 10 even parity 1 stop bit 11 odd parity 1 stop bit R W 40488 RS 485 response delay time in ms valid range 0 30 R W 40489 RS 485 host watchdog timeout value 0 255 in 0 1s R W 40492 RS 485 host watchdog timeout count write 0 to clear R W 40513 40532 Assign channel index to a new sensor in the new list of port 0 W 40533 40552 Ass...

Page 37: ...32 High latched Temperature readings of port 1 in 0 01 C R 30633 30652 40633 40652 High latched Temperature readings of port 2 in 0 01 C R 30653 30672 40653 40672 High latched Temperature readings of port 3 in 0 01 C R 30673 30692 40673 40692 Low latched Temperature readings of port 0 in 0 01 C R 30693 30712 40693 40712 Low latched Temperature readings of port 1 in 0 01 C R 30713 30732 40713 40732...

Page 38: ...f port 1 4 registers for a sensor R 30913 30992 40913 40992 Serial number of not assigned sensors of port 2 4 registers for a sensor R 30993 31072 40993 41072 Serial number of not assigned sensors of port 3 4 registers for a sensor R 31073 31152 41073 41152 Serial number of removed sensors of port 0 4 registers for a sensor R 31153 31232 41153 41232 Serial number of removed sensors of port 0 4 reg...

Page 39: ...a sensor for port 2 W 00093 00112 Write 1 to remove the channel index of a sensor for port 3 W 00129 00132 Write 1 to clear all high latched temperature readings of a port for port 0 to 3 W 00161 00164 Write 1 to clear all low latched temperature readings of a port for port 0 to 3 W 00257 RS 485 Protocol 0 DCON 1 Modbus RTU Only for Modbus RTU protocol R W 00260 Modbus RTU host watchdog mode 0 sam...

Page 40: ...ing of a sensor of port 0 W 00405 00424 Write 1 to clear high latched temperature reading of a sensor of port 1 W 00425 00444 Write 1 to clear high latched temperature reading of a sensor of port 2 W 00445 00464 Write 1 to clear high latched temperature reading of a sensor of port 3 W 00465 00484 Write 1 to clear low latched temperature reading of a sensor of port 0 W 00485 00504 Write 1 to clear ...

Page 41: ... the RS 485 bias for M 7004 For M 2004 you can turn on the two B R switches to provide the RS 485 bias When the module receives a command the power LED is set to off The power LED is shown as on after the module responds This method can be used to check whether the module has received a command sent from the host If possible use another device to check whether the host can communicate with the dev...

Page 42: ...04 M 7004 User Manual v 1 0 2 Apr 2020 E mail service icpdas com Copyright 2017 ICP DAS Co Ltd All Rights Reserved 42 Revision History Revision Date Changes Made 1 0 2 2020 4 1 Add section 1 8 and Chapter 6 ...

Reviews: