ICP DAS M-2017 User Manual

1
M-2017 User Manual
Warranty
All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for damages resulting from the use of this product. 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 1999 - 2015 ICP DAS. All rights reserved.
Trademark
The names used for identification only may be registered trademarks of their respective companies.
Date: 2021/01/14
M-2017 User Manual, Rev: B2.5
2
Table of Contents
1. Introduction ............................................................................................... 4
1.1 More Information ............................................................................. 6
1.2 Terminal Assignment ....................................................................... 7
1.3 Specifications ................................................................................... 9
1.4 Block Diagrams .............................................................................. 10
1.4.1 Block diagram for the M-2017 ............................................. 10
1.5 Dimensions ..................................................................................... 11
1.6 Wiring Diagrams ............................................................................ 12
1.6.1 Wiring diagram for the M-2017 ........................................... 12
1.6.2 Wiring Recommendations .................................................... 12
1.7 Quick Start ...................................................................................... 13
1.8 Default Settings .............................................................................. 15
1.9 Calibration ...................................................................................... 16
1.10 Configuration Tables .................................................................... 17
1.11 M-2000 Notes ............................................................................... 22
1.11.1 Protocol Switching ............................................................. 22
1.11.2 INIT Mode .......................................................................... 23
1.12 Technical Support......................................................................... 24
2. DCON Protocol ....................................................................................... 25
2.1 %AANNTTCCFF .......................................................................... 29
2.2 #AA ................................................................................................ 33
2.3 #AAN ............................................................................................. 35
2.4 $AA0 .............................................................................................. 37
2.5 $AA1 .............................................................................................. 39
2.6 $AA2 .............................................................................................. 41
2.7 $AA5VV ........................................................................................ 43
2.8 $AA6 .............................................................................................. 45
2.9 $AA7CiRrr ..................................................................................... 47
2.10 $AA8Ci ........................................................................................ 49
2.11 $AAA ........................................................................................... 51
2.12 $AAF ............................................................................................ 53
2.13 $AAM ........................................................................................... 54
2.14 $AAP ............................................................................................ 56
2.15 $AAPN ......................................................................................... 58
2.16 $AAS1 .......................................................................................... 60
2.17 ~AACT ......................................................................................... 62
2.18 ~AACTVV ................................................................................... 64
2.19 ~AAEV ......................................................................................... 66
2.20 ~AAO(Name) ............................................................................... 68
2.21 ~AARD ......................................................................................... 70
M-2017 User Manual, Rev: B2.5
3
2.22 ~AARDVV ................................................................................... 72
2.23 ~** ................................................................................................ 74
2.24 ~AA0 ............................................................................................ 75
2.25 ~AA1 ............................................................................................ 77
2.26 ~AA2 ............................................................................................ 79
2.27 ~AA3EVV .................................................................................... 81
3. Modbus RTU Protocol ............................................................................ 83
3.1 02 (0x02) Read Input Status ........................................................... 84
3.2 04 (0x04) Read Input Channels ...................................................... 85
3.3 70 (0x46) Read/Write Module Settings ......................................... 86
3.3.1 Sub-function 00 (0x00) Read module name ........................ 87
3.3.2 Sub-function 04 (0x04) Set module address ........................ 88
3.3.3 Sub-function 05 (0x05) Read communication settings ........ 89
3.3.4 Sub-function 06 (0x06) Set communication settings ........... 90
3.3.5 Sub-function 07 (0x07) Read type code ............................... 91
3.3.6 Sub-function 08 (0x08) Set type code .................................. 92
3.3.7 Sub-function 32 (0x20) Read firmware version ................... 93
3.3.8 Sub-function 37 (0x25) Read channel enabled/disabled status
............................................................................................... 94
3.3.9 Sub-function 38 (0x26) Set channel enable/disable ............. 95
3.3.10 Sub-function 41 (0x29) Read miscellaneous settings ........ 96
3.3.11 Sub-function 42 (0x2A) Write miscellaneous settings ...... 97
3.4 Address Mappings .......................................................................... 98
3.4.1 M-2017 Address Mappings .................................................. 98
3.5 Engineering Data Format Table ................................................... 100
4. Troubleshooting .................................................................................... 101
4.1 Communicating with the module ................................................. 102
4.2 Reading Data ................................................................................ 103
A. Appendix .............................................................................................. 104
A.1 INIT Mode ................................................................................... 104
A.2 Dual Watchdog Operation ........................................................... 106
A.3 Frame Ground .............................................................................. 107
Revision History ........................................................................................ 108
M-2017 User Manual, Rev: B2.5
4
1. Introduction
The M-2000 series is a family of network data acquisition and control modules, providing analog-to-digital, digital­to-analog, digital input/output, timer/counter and other functions. The modules can be remotely controlled using a set of commands, which we call the DCON protocol, or the standard Modbus RTU protocol. Communication between the module and the host is via an RS-485 bi­directional serial bus standard. Baud Rates are software programmable and transmission speeds of up to 115.2K baud can be selected.
The M-2000 modules feature a new design for the frame ground and INIT switch as shown in the figure below. The frame ground provides enhanced static protection (ESD) abilities and ensures the module is more reliable. The INIT switch allows INIT mode to be accessed more easily. Refer to Sections A.1 and A.3 for more details.
The M-2017 is an 8-channel voltage and current input module, with the ability to connect various types of inputs to a single module. It supports for fast mode, 60 samples/second. The M-2017 modules are designed for industrial plant environments and have special input
M-2017 User Manual, Rev: B2.5
5
circuits to provide 240Vrms continuous overload protection.
M-2017 User Manual, Rev: B2.5
6
1.1 More Information
Please visit the ICP DAS website http://www.icpdas.com for more information regarding the M-2000 series.
M-2017 User Manual, Rev: B2.5
7
SW1
INIT
On for INIT mode
T.R.
On to provide 120 ohm terminal resistance on the RS-485 bus
B.R.
On to provide 1k ohm bias resistance on the RS-485 bus. If the RS-485 converter does not provide the bias, then both of the B.R. switches should be turned on.
1.2 Terminal Assignment
M-2017 User Manual, Rev: B2.5
8
M-2017 User Manual, Rev: B2.5
9
M-2017
Analog Input
Input Channels
8 differential
Input Type
mV, V, mA (switch selectable)
Sampling Rate
10 samples/sec (normal) 60 samples/sec (fast)
Bandwidth
15.7Hz (normal)
78.7Hz (fast)
Accuracy
±0.1% (normal) ±0.5% (fast)
Zero Drift
20µV/°C
Span Drift
25ppm/°C
CMR@50/60Hz
86dB min
NMR@50/60Hz
100dB min
Input Impedance
1MΩ
Current Impedance
125Ω, 1/4W
Voltage overload Protection
±240V Isolation
3000V DC
Individual Channel Configurable
Yes Modbus RTU
Yes
Power
Requirement
+10 to +48V DC
Consumption
0.6W
Temperature Range
Operating
-25°C to +75°C
Storage
-30°C to +75°C
1.3 Specifications
Note: A warm up period of 30 minutes is recommended in order to
achieve the complete performance results described in the specifications.
M-2017 User Manual, Rev: B2.5
10
1.4 Block Diagrams
1.4.1 Block diagram for the M-2017
M-2017 User Manual, Rev: B2.5
11
1.5 Dimensions
The dimensions of the M-2017 are as shown below.
M-2017 User Manual, Rev: B2.5
12
1.6 Wiring Diagrams
1.6.1 Wiring diagram for the M-2017
1.6.2 Wiring Recommendations
Use 26-12 AWG wire for signal connections. Strip the wire to a length of 7±0.5mm.
Use a crimp terminal for wiring. Avoid high-voltage cables and power equipment as
much as possible.
For RS-485 communication, use insulated and
twisted pair 24 AWG wire, e.g. Belden 9841.
M-2017 User Manual, Rev: B2.5
13
1.7 Quick Start
To install the module, follow the steps below:
1. Connect the analog input. See Section 1.2 for the
terminal assignment and Section 1.6 for the wiring diagram.
2. Connect the module to the RS-485 network using the
DATA+ and DATA- terminals. See Section 1.2 for the terminal assignment. If the host is only equipped with an RS-232 interface, then an RS-232 to RS-485 converter will be required. Refer to the I-7000 Bus Converter Users Manual” for more information.
3. Connect the module to the power supply using the +Vs
and GND terminals. See Section 1.2 for the terminal assignment. Note that the voltage supplied should be in the range of +10 to +48V DC.
4. For DCON protocol, configure the module by sending
the %AANNTTCCFF and $AA7CiRrr commands. See Section 2.1 and 2.9 for details. For Modbus RTU protocol, configure the module using the following Modbus registers: 40257, 40485 and 40486. See Section 3.4.1 for details.
The default settings for the module can be found in Section 1.8.
5. For DCON protocol, in order to read data from the
input channels, send either the #AA or #AAN command to the module. See Sections 2.2 and 2.3 for details. For the Modbus RTU protocol, use Function 04h to read the data from the input channels. See Section 3.2 for details.
6. If the host is a PC with a Windows operating system
installed, the DCON Utility can be used to allow easy configuration and reading of data. The DCON Utility
M-2017 User Manual, Rev: B2.5
14
can be downloaded from the ICP DAS website (http://www.icpdas.com). The documentation for the DCON Utility can be found in the Getting Started For I-7000 Series Modules” manual.
Refer to the I-7000 Bus Converter Users Manual and Getting Started For I-7000 Series Modules manuals for more details. The Getting Started For I- 7000 Series Modules” manual can be downloaded from the ICP DAS website (http://www.icpdas.com).
M-2017 User Manual, Rev: B2.5
15
1.8 Default Settings
Default settings for the M-2017 are:
Protocol: Modbus RTU ▫ Module address: 01 ▫ Analog input type: Type 08, -10V to 10V ▫ Baud Rate: 9600 bps ▫ Filter set at 60Hz rejection ▫ Normal mode
M-2017 User Manual, Rev: B2.5
16
Type Code
08
09
0A
0B
0C
0D
Zero
Input
0V
0V
0V
0mV
0mV
0mA
Span
Input
+10V
+5V
+1V
+500mV
+150mV
+20mA
1.9 Calibration
Warning: It is not recommended that calibration be performed until the process is fully understood.
The calibration procedure is as follows:
1. Warm up the module for 30 minutes.
2. Set the type code of channel 0 to the type you want to
calibrate. Refer to Sections 2.9 for details.
3. Enable calibration. Refer to Section 2.17 for details.
4. Apply the zero calibration voltage/current to channel 0.
5. Send the zero calibration command. Refer to Sections
2.5 for details.
6. Apply the span calibration voltage/current to channel 0.
7. Send the span calibration command. Refer to Sections
2.4 for details.
8. Repeat steps 3 to 7 three times.
Notes:
1. When calibrating type 0D for the M-2017, the SW2
switch of channel 0 should be set to the ON position.
2. Calibration voltages and currents are shown below.
3. The M-2000 series modules must be switched to the
DCON protocol mode before calibrating. Refer to Section 1.11.1 for details of the switching protocol.
Calibration voltages/current used by the M-2017:
M-2017 User Manual, Rev: B2.5
17
7 6 5 4 3 2 1 0 Data
Baud
Key
Description
Baud
Baud Rate 03: 1200 04: 2400 05: 4800 06: 9600 07: 19200 08: 38400 09: 57600 0A: 115200
Data
Data Format 0: N81 1: N82 2: E81 3: O81
1.10 Configuration Tables
Baud Rate Setting (CC)
M-2017 User Manual, Rev: B2.5
18
Type Code
Analog Input Type
Range
07
+4 to +20mA
4mA ~ 20mA
08
+/-10V
-10V ~ 10V
09
+/-5V
-5V ~ 5V
0A
+/-1V
-1V ~ 1V
0B
+/-500mV
-500mV ~ 500mV
0C
+/-150mV
-150mV ~ 150mV
0D
+/-20mA
-20mA ~ 20mA
1A
0 to +20mA
0 ~ 20mA
1D
+4 to +20mA
4mA ~ 20mA
Analog Input Type Setting (TT)
M-2017 User Manual, Rev: B2.5
19
7 6 5 4 3 2 1 0 FS
CS
MS
Reserved
DF
Key
Description
DF
Data format 00: Engineering unit 01: % of FSR (full scale range) 10: 2s complement hexadecimal
MS
Mode settings 0: Normal mode (16 bits) 1: Fast mode (12 bits)
CS
Checksum settings 0: Disabled 1: Enabled
FS
Filter settings 0: 60Hz rejection 1: 50Hz rejection
Data Format Setting (FF)
Note: The reserved bits should be zero.
M-2017 User Manual, Rev: B2.5
20
Type code
Input Type
Data Format
+F.S
-F.S.
07
+4 to +20
mA
Engineering unit
+20.000
+04.000
% of FSR
+100.00
+000.00
2s comp HEX
FFFF
0000
08
-10 to +10 V
Engineering unit
+10.000
-10.000
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
09
-5 to +5 V
Engineering unit
+5.0000
-5.0000
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
0A
-1 to +1 V
Engineering unit
+1.0000
-1.0000
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
0B
-500 to +500 mV
Engineering unit
+500.00
-500.00
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
0C
-150 to +150 mV
Engineering unit
+150.00
-150.00
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
0D
-20 to +20 mA
Engineering unit
+20.000
-20.000
% of FSR
+100.00
-100.00
2s comp HEX
7FFF
8000
1A
0 to +20
mA
Engineering unit
+20.000
+00.000
% of FSR
+100.00
+000.00
2s comp HEX
FFFF
0000
1D
4 to +20
mA
Engineering unit
+20.000
+04.000
% of FSR
+100.00
+020.00
2s comp HEX
FFFF
1999
Analog Input Type and Data Format Table
M-2017 User Manual, Rev: B2.5
21
Under Range
Engineering Unit
-9999.9
% of FSR
-999.99
2s Complement HEX
0000
Under Range
Engineering Unit
-00.000
% of FSR
-000.00
2s Complement HEX
0000
Under Range
Engineering Unit
-32768
2s Complement HEX
0000
Under Range
Engineering Unit
0
2s Complement HEX
0000
4 ~ 20 mA, type code 07, and 0 ~ 20 mA under range reading with DCON protocol
4 ~ 20 mA, type code 1D, under range reading with DCON protocol
4 ~ 20 mA, type code 07, and 0 ~ 20 mA under range reading with Modbus protocol
4 ~ 20 mA, type code 1D, under range reading with Modbus protocol
M-2017 User Manual, Rev: B2.5
22
1.11 M-2000 Notes
The M-2000 series support for the Modbus RTU communication protocol, which is the default protocol of the M-2000 series. The communication Baud Rates for the Modbus RTU protocol can be in the range of 1200 bps to 115200 bps.
Modbus functions supported by the module are described in Chapter 3.
1.11.1 Protocol Switching
To switch to the DCON protocol:
1. Set the Modbus register 00257 to 0. See Section 3.4.1
for details.
2. After a power-on reset, the communication protocol
will be changed to DCON.
To switch to the Modbus RTU protocol:
1. Sends the $AAPN command and set N to a value of 1.
Note that the SW1 INIT switch on the bottom side of the module should be set to the ON position, see the figure on the next page. See Section 2.15 for details.
2. After a power-on reset, the communication protocol
will be changed to the Modbus RTU protocol.
M-2017 User Manual, Rev: B2.5
23
1.11.2 INIT Mode
When the module is powered on, with the SW1 INIT switch set to the ON position as shown in the figure below, the module is in INIT mode, (see Section A.1 for details), and the communication settings are as follows:
1. Address: 00
2. Baud Rate: 9600 bps
3. No checksum
4. Protocol: DCON
If communication with the module is not possible, set the module to the INIT mode and use the above settings to communicate with the module. To read the current settings, send the commands $AA2, (see Section 2.6), and $AAP, (see Section 2.14). To set new settings, send the commands %AANNTTCCFF, (see Section 2.1) and $AAPN, (see Section 2.15). The new communication settings will be effective after the next power-on reset.
M-2017 User Manual, Rev: B2.5
24
1.12 Technical Support
Should you encounter problems while using the M-2000 module, and are unable to find the help you need in this manual or on our website, please contact ICP DAS Product Support.
Email: service@icpdas.com Website: http://www.icpdas.com.tw/contact_us/contact_us.html
When requesting technical support, be prepared to provide the following information about your system:
1. Module name and serial number: The serial number can
be found printed on the barcode label attached to the cover of the module.
2. Firmware version: See Section 2.12 and 3.4, Modbus
registers 40481 and 40482, for information regarding the command used to identify the firmware version.
3. Host configuration (type and operating system)
4. If the problem is reproducible, please give full details
describing the procedure used to reproduce the problem.
5. Specific error messages displayed. If a dialog box with
an error message is displayed, please include the full text of the dialog box, including the text in the title bar.
6. If the problem involves other programs or hardware
devices, please describe the details of the problem in full.
7. Any comments and suggestions related to the problem
are welcome.
ICP DAS will reply to your request by email within three business days.
M-2017 User Manual, Rev: B2.5
25
Leading
Character
Module
Address
Command
[CHKSUM]
CR
Leading
Character
Module
Address
Data
[CHKSUM]
CR
2. DCON Protocol
All communication with M-2000 modules consists of commands generated by the host and responses transmitted by the M-2000 modules. Each module has a unique ID number that is used for addressing purposes and is stored in non-volatile memory. The ID is 01 by default and can be changed using a user command. All commands to the modules contain the ID address, meaning that only the addressed module will respond. The only exception to this is command ~** (Section 2.23), which are sent to all modules, but in these cases, the modules do not reply to the command.
Command Format:
Response Format:
CHKSUM A 2-character checksum that is present
when the checksum setting is enabled. See Section 1.10 and 2.1 for details.
CR End of command character, carriage return
(0x0D)
M-2017 User Manual, Rev: B2.5
26
Checksum Calculation:
1. Calculate the ASCII code sum of all the characters in
the command/response string except for the carriage return character (CR).
2. The checksum is equal to the sum masked by 0ffh.
Example:
Command string: $012(CR)
1. Sum of the string = “$+0+1+2 =
24h+30h+31h+32h = B7h
2. Therefore the checksum is B7h, and so
CHKSUM = B7
3. The command string with the checksum = $012B7(CR)
Response string: !01200600(CR)
1. Sum of the string =
!+0+1+2+0+0+6+0+0 = 21h+30h+31h+32h+30h+30h+36h+30h+30h = 1AAh
2. Therefore the checksum is AAh, and so
CHKSUM = AA
3. The response string with the checksum
= !01200600AA(CR)
Note:
All characters should be in upper case.
M-2017 User Manual, Rev: B2.5
27
General Command Sets
Command
Response
Description
Section
%AANNTTCCFF
!AA
Set Module Configuration
2.1
#AA
>(Data)
Reads the Analog Inputs of All Channels
2.2
#AAN
>(Data)
Reads the Analog Input of the Specified Channel
2.3
$AA0
!AA
Performs a Span Calibration
2.4
$AA1
!AA
Performs a Zero Calibration
2.5
$AA2
!AANNTTCCFF
Reads the Module Configuration
2.6
$AA5VV
!AA
Enables/Disables the Channel
2.7
$AA6
!AAVV
Reads the Channel Enable/Disable Status
2.8
$AA7CiRrr
!AA
Sets the Single Channel Range Configuration
2.9
$AA8Ci
!AACiRrr
Reads the Single Channel Range Configuration
2.10
$AAA
>(data)
Reads the Analog Inputs of All Channels in Hex Format
2.11
$AAF
!AA(Data)
Reads the Firmware Version
2.12
$AAM
!AA(Data)
Reads the Module Name
2.13
$AAP
!AASC
Reads the Protocol
2.14
$AAPN
!AA
Sets the Protocol
2.15
$AAS1
!AA
Reloads the Default Calibration Parameters
2.16
~AACT
!AAVV
Reads the 4mA under range threshold
2.17
~AACTVV
!AA
Sets the 4mA under range threshold
2.18
~AAEV
!AA
Enables/Disables the Calibration
2.19
~AAO(Name)
!AA
Sets the Module Name
2.20
~AARD
!AAVV
Reads the response delay setting
2.21
~AARDVV
!AA
Sets the response delay setting
2.22
M-2017 User Manual, Rev: B2.5
28
Host Watchdog Command Sets
Command
Response
Description
Section
~**
No Response
Host OK
2.23
~AA0
!AASS
Reads the Host Watchdog Status
2.24
~AA1
!AA
Resets the Host Watchdog Status
2.25
~AA2
!AAETT
Reads the Host Watchdog Timeout Settings
2.26
~AA3ETT
!AA
Sets the Host Watchdog Timeout Settings
2.27
M-2017 User Manual, Rev: B2.5
29
2.1 %AANNTTCCFF
Description:
Sets the configuration of an analog input module.
Syntax: %AANNTTCCFF[CHKSUM](CR)
% Delimiter character AA Address of the module to be configured in
hexadecimal format (00 to FF)
NN New address of the module in hexadecimal format
(00 to FF)
TT New type code, see Section 1.11 for details. Not
used by the M-2017. For the M-2017, use the $AA7CiRrr command to set the type of each channel, see Section 2.9 for details.
CC New Baud Rate code, see Section 1.10 for details.
To change the Baud Rate, the INIT switch must be switched to the ON position. See Section A.1 for details.
FF Used to set the data format, checksum, and filter
settings (Section 1.10). To change the checksum setting, the INIT switch must be switched to the ON position. See Section A.1 for details.
M-2017 User Manual, Rev: B2.5
30
Response:
Valid Response: !AA[CHKSUM](CR) Invalid Response: ?AA[CHKSUM](CR) ! Delimiter character for a valid response ? Delimiter character for an invalid response. If
changing the Baud Rate or checksum settings without switching the INIT switch to the ON position, the module will return an invalid command.
AA Address of the module in hexadecimal format (00
to FF)
There will be no response if the command syntax is incorrect, there is a communication error, or there is no module with the specified address.
M-2017 User Manual, Rev: B2.5
Loading...
+ 78 hidden pages