ICPDAS I-7000, M-7000, M-7084 User Manual

1
M-7084
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 - 2012 ICP DAS. All rights reserved.
Trademark
The names used for identification only may be registered trademarks of their respective companies.
Date: 2019/3/4
M-7084 User Manual, Rev. A1.3 7PH-013-A13
2
Table of Contents
1. Introduction ...................................................................................... 5
1.1 More Information ..................................................................... 6
1.2 Terminal Assignment ............................................................... 7
1.3 Specifications ........................................................................... 8
1.3.1 I/O Specifications ............................................................ 8
1.3.2 System Specifications ..................................................... 9
1.4 Block Diagram ....................................................................... 10
1.4.1 Block Diagram for the M-7084 ..................................... 10
1.5 Dimensions ............................................................................. 11
1.6 Wiring ..................................................................................... 12
1.6.1 M-7084 Wiring .............................................................. 12
1.6.2 Wiring Recommendations ............................................. 12
1.7 Quick Start .............................................................................. 13
1.8 Default Settings ...................................................................... 15
1.9 Configuration Tables .............................................................. 16
1.10 M-7000 Notes ....................................................................... 20
1.10.1 Protocol Switching ...................................................... 20
1.10.2 INIT Mode ................................................................... 21
1.11 Mounting .............................................................................. 22
1.11.1 Din-Rail Mounting ...................................................... 22
1.11.2 Piggyback Mounting ................................................... 24
1.11.3 Wall Mounting ............................................................ 25
1.12 Technical Support ................................................................ 26
2. DCON Protocol .............................................................................. 27
2.1 %AANNTTCCFF .................................................................. 31
2.2 #AA ........................................................................................ 34
2.3 #AAN ..................................................................................... 35
2.4 $AA0N ................................................................................... 37
2.5 $AA0N(Data) ......................................................................... 39
2.6 $AA2 ...................................................................................... 41
2.7 $AA3N ................................................................................... 43
2.8 $AA3N(Data) ......................................................................... 45
2.9 $AA4 ...................................................................................... 47
2.10 $AA4VV .............................................................................. 49
2.11 $AA5 .................................................................................... 51
M-7084 User Manual, Rev. A1.3 7PH-013-A13
3
2.12 $AA5VV .............................................................................. 53
2.13 $AA6 .................................................................................... 55
2.14 $AA6N ................................................................................. 57
2.15 $AA7 .................................................................................... 59
2.16 $AA7VV .............................................................................. 61
2.17 $AA7CNRVV ...................................................................... 63
2.18 $AA8CN ............................................................................... 65
2.19 $AAF .................................................................................... 67
2.20 $AAI ..................................................................................... 68
2.21 $AAM ................................................................................... 70
2.22 $AAP .................................................................................... 71
2.23 $AAPN ................................................................................. 73
2.24 @AABB ............................................................................... 75
2.25 @AABBVV ......................................................................... 77
2.26 @AAFA ............................................................................... 79
2.27 @AAFAVV .......................................................................... 81
2.28 @AAFH ............................................................................... 83
2.29 @AAFHVV .......................................................................... 85
2.30 @AAFT ................................................................................ 87
2.31 @AAFTVV .......................................................................... 89
2.32 @AAGN ............................................................................... 91
2.33 @AAPN(Data) ..................................................................... 93
2.34 @AASC ................................................................................ 95
2.35 @AASCVV .......................................................................... 97
2.36 ~** ........................................................................................ 99
2.37 ~AA0 .................................................................................. 100
2.38 ~AA1 .................................................................................. 102
2.39 ~AA2 .................................................................................. 104
2.40 ~AA3EVV .......................................................................... 106
2.41 ~AAI ................................................................................... 108
2.42 ~AAO(Name) ..................................................................... 110
2.43 ~AARD ............................................................................... 112
2.44 ~AARDVV ......................................................................... 114
2.45 ~AATnn .............................................................................. 116
3. Modbus RTU Protocol ................................................................. 119
3.1 M-7084 Modbus Address Mapping ..................................... 120
4. Troubleshooting ............................................................................ 122
4.1 Communicating with the module ......................................... 123
M-7084 User Manual, Rev. A1.3 7PH-013-A13
4
A. Appendix ..................................................................................... 124
A.1 INIT Mode ........................................................................... 124
A.2 Dual Watchdog Operation ................................................... 126
A.3 Frame Ground ...................................................................... 127
A.4 Node Information Area ....................................................... 129
A.5 Reset Status ......................................................................... 130
A.6 Frequency Measurement ..................................................... 131
M-7084 User Manual, Rev. A1.3 7PH-013-A13
5
Some M-7000 modules feature a new design for the frame ground and INIT switch as shown in the figure (rear view). The frame ground provides enhanced static protection (ESD) abilities and ensures the module is more reliable. The INIT switch allows easier access to INIT mode. Please refer to Sections A.1 and A.3 for more details.
1. Introduction
The I-7000 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. Communication between the module and the host is in ASCII format via an RS-485 bi­directional serial bus standard. Baud Rates are software programmable and transmission speeds of up to 115.2 Kbps can be selected.
The functionality of the M-7000 series is the same as the I­7000 series, with the exception that the M-7000 series offers extended support for the Modbus RTU protocol.
The M-7084 supports up counting, up-down counting, pulse direction counting, quadrature counting and frequency measurement.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
6
1.1 The 7000 Series Overview
1.2 Related Documentation for the 7000 Series
1.3 Common Features of the 7000 Series
1.4 The 7000 Series System Network Configuration
1.5 7000 Dimensions
1.1 More Information
For more information regarding the I-7000/M-7000 series, please refer to chapter 1 of the I-7000 Bus Converter Users Manual as shown below or visit the ICP DAS website
http://www.icpdas.com.
For details of INIT mode operation, please refer to
Section A.1 INIT Mode.
For details of module watchdog and host watchdog,
please refer to Section A.2 Dual Watchdog Operation.
For details of ESD protection and grounding, please
refer to Section A.3 Frame Ground.
The node information area can be written with some
information, please refer to Section A.4 Node Information Area for details.
There is a way to check whether the module is reset,
please refer to Section A.5 Reset Status for details.
For details of frequency measurement, please refer to
Section A.6 Frequency Measurement.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
7
1.2 Terminal Assignment
M-7084 User Manual, Rev. A1.3 7PH-013-A13
8
Counter/Frequency/Encoder Input
Channels
4-channel Up/Down Counter (CW/CCW) 4-channel Direction/Pulse Counter (Bi­direction) 4-channel A/B Phase (Quadrature Counting) 8-channel Up Counter 8-channel Frequency
Contact
Wet
Sink/Source (NPN/PNP)
Sink
Types
Counter, Frequency, Encoder
Counter/Encoder Bits
32-bit (4,294,967,295)
On Voltage Level
+3.5 VDC ~ +30 VDC
Off Voltage Level
+1 VDC Max.
Programmable Digital Filter
1 ~ 32767 μs
Individual Channel Configuration
Yes
Counter Mode
Up, Up/Down
Encoder Mode
CW/CCW, Direction/Pulse, AB Phase
Frequency Mode
Yes
Max. Speed
3.5 VDC ~ 10 VDC: 200 kHz 10 VDC ~ 30 VDC: 150 kHz
Frequency Accuracy
±0.4% of Input Frequency
Virtual Battery Backup to Preserve Counter Values
Yes
1.3 Specifications
1.3.1 I/O Specifications
M-7084 User Manual, Rev. A1.3 7PH-013-A13
9
Communication
Interface
RS-485
Format
N81, N82, E81, O81
Baud Rate
1200 ~ 115200 bps
Protocol
Modbus RTU, DCON
Dual Watchdog
Yes, Module (1.6 Seconds), Communication (Programmable)
LED Indicator
Power
1 LED, Red
Isolation
Intra-module Isolation, Field-to-Logic
3000 VDC
EMS Protection
ESD (IEC 61000-4-2)
+/-4 kV Contact for Each Terminal
EFT (IEC 61000-4-4)
+/-4 kV for Power
Surge (IEC 61000-4-5)
+/-3 kV for Power Line
Power
Reverse Polarity Protection
Yes
Input Range
10 ~ 30 VDC
Consumption
1.32 W Max.
Mechanical
Dimensions (W x L x H)
72 mm x 123 mm x 35 mm
Installation
DIN-Rail, Wall Mounting
Environment
Operating Temperature
-25 ~ +75°C
Storage Temperature
-30 ~ +80°C
Humidity
10 ~ 90% RH, Non-condensing
1.3.2 System Specifications
M-7084 User Manual, Rev. A1.3 7PH-013-A13
10
1.4 Block Diagram
1.4.1 Block Diagram for the M-7084
M-7084 User Manual, Rev. A1.3 7PH-013-A13
11
Back View
Top View
Front View
Side View
Unit : mm
lnit
Normal
1.5 Dimensions
M-7084 User Manual, Rev. A1.3 7PH-013-A13
12
1.6 Wiring
1.6.1 M-7084 Wiring
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-7084 User Manual, Rev. A1.3 7PH-013-A13
13
1.7 Quick Start
To install the module, follow the steps below:
1. Refer to 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 to the module should be in the range of +10 to +30 VDC.
4. Configure the module by sending the %AANNTTCCFF
command and the $AA7CNRVV command. See Section
2.1 and 2.17 for details. For M-7000 modules using the Modbus RTU protocol, configure the module using the following registers: 40257 ~ 40264, 40485, and 40486.
The default settings for the module can be found in Section 1.8.
5. To read data from the input channels, send the #AAN
command to the module. See Sections 2.3 for details. For M-7000 modules using the Modbus RTU protocol, use Function 03h to read the data from the input channels.
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 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.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
14
Please 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-7084 User Manual, Rev. A1.3 7PH-013-A13
15
1.8 Default Settings
Default settings for the M-7084 modules are as follows:
Protocol: Modbus RTU 。 Module Address: 01 。 Type: Type 50, up counter 。 Baud Rate: 9600 bps
M-7084 User Manual, Rev. A1.3 7PH-013-A13
16
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: eight data bits, no parity, and one stop bit 1: eight data bits, no parity, and two stop bit 2: eight data bits, even parity, and one stop bit 3: eight data bits, odd parity, and one stop bit
Type Code
Input Type
50
Up counter
51
Frequency
54
Up/down counter
55
Pulse/direction counter
56
Quadrature counter
1.9 Configuration Tables
Baud Rate Setting (CC)
Type Setting (TT)
M-7084 User Manual, Rev. A1.3 7PH-013-A13
17
7 6 5 4 3 2 1
0
RD
CS
RD
DF
Key
Description
DF
Data format 00: Engineering unit. The data consist of +, 6
digits and one decimal point. This data format is only for the frequency type.
10: Hexadecimal
CS
Checksum setting 0: Disabled 1: Enabled
RD
Reserved
Type Code
Counter type
Data Format
Min
Max 50
Up
Hex
00000000
FFFFFFFF
54
Up/down
Hex
80000000
7FFFFFFF
55
Pulse/direction
Hex
80000000
7FFFFFFF
56
Quadrature
Hex
80000000
7FFFFFFF
Data Format Setting (FF)
Note: The reserved bits should be zero.
Counter Type and Data Format Table
M-7084 User Manual, Rev. A1.3 7PH-013-A13
18
Up/down Counting
When InA0 is used as an up counting clock and InB0 is used as a down counting clock, the counter will be increased by one for every falling edge of InA0 and decreased by one for every falling edge of InB0.
Pulse/direction Counting
The InB0 is used for direction counting. When InB0 is high, the counter will be increased by one for every falling edge of InA0. When InB0 is low, the counter will be decreased by one for every falling edge of InA0.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
19
Quadrature Counting
When InA0 is used as the A signal and InB0 is used as the B signal, the counter will be increased by one when the InA0 phase leads by 90 degrees to InB0 and the counter will be decreased by one when the InA0 phase lags by 90 degrees to InB0.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
20
1.10 M-7000 Notes
The main difference between the I-7000 and M-7000 series is that the M-7000 series has additional support for the Modbus RTU communication protocol, which is the default protocol of the M-7000 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.10.1 Protocol Switching
To switch to the DCON protocol:
1. Set Modbus register 00257 to 0. See Section 3.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 for the modules without frame ground, the INIT* terminal should be connected to the GND terminal, and for the modules with frame ground, the slide switch on the rear side of the module should be set to the INIT position, see the figure on the next page. See Section 2.23 for details.
2. After a power-on reset, the communication protocol will
be changed to the Modbus RTU protocol.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
21
1.10.2 INIT Mode
When the module is powered on, with the rear slide switch set to the INIT position as shown in the figure below for modules with frame ground, or with the INIT* pin connected to the GND pin for modules without frame ground, 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.22). To set new settings, send the commands %AANNTTCCFF, (see Section 2.1) and $AAPN, (see Section 2.23). The new communication settings will be effective after the next power-on reset.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
22
Part number
Max. number of modules
Dimensions
DRS-360
5
360mm x 35mm
1.11 Mounting
1.11.1 Din-Rail Mounting
There are three new DIN rail models available. Each is made of stainless steel, which is stronger than those made of aluminum. There is a screw at one end and a ring terminal is included so that it can be easily connected to the earth ground. The three new DIN rail models are as follows.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
23
Part number
Max. number of modules
Dimensions
DRS-240
3
240mm x 35mm
Part number
Max. number of modules
Dimensions
DRS-125
2
125mm x 35mm
Note: It is recommended that a 16 – 14 AWG wire is used to
connect the DIN rail to the earth ground.
M-7084 User Manual, Rev. A1.3 7PH-013-A13
24
1.11.2 Piggyback Mounting
M-7084 User Manual, Rev. A1.3 7PH-013-A13
25
1.11.3 Wall Mounting
M-7084 User Manual, Rev. A1.3 7PH-013-A13
26
1.12 Technical Support
Should you encounter any problems while using the I-7000 and M-7000 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 Sections 2.19 and 3.1 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. Any 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-7084 User Manual, Rev. A1.3 7PH-013-A13
27
Leading
Character
Module
Address
Command
[CHKSUM]
CR
Leading
Character
Module
Address
Data
[CHKSUM]
CR
2. DCON Protocol
All communication with I-7000 modules consists of commands generated by the host and responses transmitted by the I-7000 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.36), which is sent to all modules, but the modules do not reply to the command.
Command Format:
Response Format:
CHKSUM A 2-character checksum which is present when
the checksum setting is enabled. See Sections
1.9 (Data Format Setting) and 2.1 for details.
CR End of command character, carriage return
(0x0D)
M-7084 User Manual, Rev. A1.3 7PH-013-A13
28
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-7084 User Manual, Rev. A1.3 7PH-013-A13
29
General Command Sets
Command
Response
Description
Section
%AANNTTCCFF
!AA
Sets the Module Configuration
2.1
$AA2
!AANNTTCCFF
Reads the Module Configuration
2.6
$AA5
!AAS
Reads the Reset Status
2.11
$AAF
!AA(Data)
Reads the firmware Version
2.19
$AAI
!AAS
Reads the INIT Status
2.20
$AAM
!AA(Data)
Reads the Module Name
2.21
$AAP
!AASC
Reads the communication protocol
2.22
$AAPN
!AA
Sets the communication protocol
2.23
~AAI
!AA
Software INIT
2.41
~AAO(Name)
!AA
Sets the Module Name
2.42
~AARD
!AAVV
Reads the Response Delay Time
2.43
~AARDVV
!AA
Sets the Response Delay Time
2.44
~AATnn
!AA
Sets the Software INIT Timeout
2.45
Counter/Frequency Command Sets
Command
Response
Description
Section
#AA
>(Data)
Reads the Input Data of All Channels
2.2
#AAN
>(Data)
Reads the Input Data of the Specified Channel
2.3
$AA0N
!AA(Data)
Reads the Low Pass Filter Time of the Specified Channel
2.4
$AA0N(Data)
!AA
Sets the Low Pass Filter Time of the Specified Channel
2.5
$AA3N
!AA(Data)
Reads the Maximum Counter Value of the Specified Channel
2.7
$AA3N(Data)
!AA
Sets the Maximum Counter Value of the Specified Channel
2.8
$AA4
!AAVV
Reads the Low Pass Filter Channel Mask
2.9
$AA4VV
!AA
Sets the Low Pass Filter Channel Mask
2.10
$AA5VV
!AA
Starts/Stop Counting
2.12
$AA6
!AAVV
Reads the Start/Stop Counting Status
2.13
M-7084 User Manual, Rev. A1.3 7PH-013-A13
30
Command
Response
Description
Section
$AA6N
!AA
Clears the Counter Value of the Specified Channel
2.14
$AA7
!AAVV
Shows the Overflow Status of All Channels
2.15
$AA7VV
!AA
Clears the Overflow Status
2.16
$AA7CNRVV
!AA
Sets the Single Channel Type
2.17
$AA8CN
!AACNRVV
Reads the Channel Type of the Specified Channel
2.18
@AABB
!AAVV
Reads the Battery Backup Status
2.24
@AABBVV
!AA
Sets the Battery Backup Status
2.25
@AAFA
!AAVV
Reads the Auto Frequency Mode Status
2.26
@AAFAVV
!AA
Sets the Auto Frequency Mode Status
2.27
@AAFH
!AAVV
Reads the High Frequency Mode Status
2.28
@AAFHVV
!AA
Sets the High Frequency Mode Status
2.29
@AAFT
!AAVV
Reads the Frequency Measurement Timeout
2.30
@AAFTVV
!AA
Sets the Frequency Measurement Timeout
2.31
@AAGN
!AA(Data)
Reads the Preset Counter Value of the Specified Channel
2.32
@AAPN(Data)
!AA
Sets the Preset Counter Value of the Specified Channel e
2.33
@AASC
!AAVV
Reads the Stop Counting on Overflow Status
2.34
@AASCVV
!AA
Sets the Stop Counting on Overflow Status
2.35
Host Watchdog Command Sets
Command
Response
Description
Section
~**
No Response
Host OK
2.36
~AA0
!AASS
Reads the Status
2.37
~AA1
!AA
Resets the Status
2.38
~AA2
!AAVV
Reads the Timeout Settings
2.39
~AA3EVV
!AA
Sets the Timeout Settings
2.40
M-7084 User Manual, Rev. A1.3 7PH-013-A13
Loading...
+ 101 hidden pages