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.
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, digitalto-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 bidirectional 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 User’s 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 User’s 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.
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.
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.
CREnd 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)
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
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.