ICP DAS USA M-7065D User manual

Type
User manual
M-7065 User’s Manual Ver2.0, Dec. /2008 ---1
M-7065
User Manual
Warranty
All products manufactured by ICP DAS are under warranty
regarding defective materials for a period of one year, beginning
from the date of delivery to the original purchaser.
Warning!
ICP DAS assumes no liability for any damage resulting
from the use of this product. ICP DAS reserves the right to
change this manual at any time without notice. The information
furnished by ICP DAS is believed to be accurate and reliable.
However, no responsibility is assumed by ICP DAS for its use,
not for any infringements of patents or other rights of third
parties resulting from its use.
Copyright
Copyright @ 2007 by ICP DAS Co., Ltd. All rights are
reserved.
Trademark
The names used for identification only may be registered
trademarks of their respective companies.
M-7065 User’s Manual Ver2.0, Dec. /2008 ---2
Table of Contents
1. Introduction ..................................................................................................... 5
1.1 More Information .................................................................................... 6
1.2 Pin Assignment ........................................................................................ 7
1.3 Specifications ............................................................................................. 8
1.4 Block Diagram ......................................................................................... 9
1.5 Wire Connection .................................................................................... 10
1.6 Quick Start ............................................................................................. 11
1.7 Default Settings ........................................................................................ 16
1.8 Configuration Tables ............................................................................... 16
1.9 DI/O Data Format Table ...................................................................... 17
2. DCON Protocol ............................................................................................ 18
2.1 %AANNTTCCFF......................................................................................... 22
2.2 #** ............................................................................................................... 24
2.3 #AA00(Data) ................................................................................................. 26
2.4 #AA0A(Data) ................................................................................................ 29
2.5 #AA1cDD ...................................................................................................... 32
2.6 #AAAcDD ..................................................................................................... 34
2.7 #AAN ............................................................................................................ 36
2.8 $AA2 ............................................................................................................. 38
2.9 $AA4 ............................................................................................................. 40
2.10 $AA5 ........................................................................................................... 43
2.11 $AA6 ........................................................................................................... 45
2.12 $AAC .......................................................................................................... 47
2.13 $AACN ........................................................................................................ 49
2.14 $AAF .......................................................................................................... 51
2.15 $AALS ......................................................................................................... 53
2.16 $AAM.......................................................................................................... 56
M-7065 User’s Manual Ver2.0, Dec. /2008 ---3
2.17 $AAP .......................................................................................................... 58
2.18 $AAPN ........................................................................................................ 60
2.19 @AA ........................................................................................................... 62
2.20 @AA(Data) ................................................................................................. 64
2.21 ~AAO(Name) .............................................................................................. 66
2.22 ~AAD .......................................................................................................... 68
2.23 ~AADVV ..................................................................................................... 70
2.24 ~AAI ........................................................................................................... 72
2.25 ~AATnn ...................................................................................................... 75
2.26 ~** ............................................................................................................. 76
2.27 ~AA0 .......................................................................................................... 77
2.28 ~AA1 .......................................................................................................... 80
2.29 ~AA2 .......................................................................................................... 82
2.30 ~AA3EVV .................................................................................................. 84
2.31 ~AA4V ....................................................................................................... 86
2.32 ~AA5V ....................................................................................................... 88
2.33 ~AARDvv ................................................................................................... 90
2.34 ~AARD ....................................................................................................... 92
3. Modbus RTU Protocol ................................................................................. 94
3.1 01(0x01) Read coils ..................................................................................... 97
3.2 02(0x02) Read discrete inputs ..................................................................... 101
3.3 03(0x03) Read multiple registers ................................................................ 103
3.4 04(0x04) Read multiple registers ................................................................ 107
3.5 05(0x05) Write single coils ......................................................................... 110
3.6 06(0x06) Write multiple registers ................................................................ 114
3.7 15(0x0F) Write multiple coils ..................................................................... 116
3.8 46(0x46) Read/Write module settings ..................................................... 119
3.8.1 00(0x00) Read Module Name .............................................................. 120
M-7065 User’s Manual Ver2.0, Dec. /2008 ---4
3.8.2 04(0x04) Set Module Address ............................................................. 121
3.8.3 05(0x05) Read Communication ........................................................... 122
3.8.4 06(0x06) Set Communication .............................................................. 124
3.8.5 32(0x20) Read Firmware Version ...................................................... 126
3.8.6 33(0x21) Set Digital Input Count Edge .............................................. 127
3.8.7 34(0x22) Read Digital Input Count Edge .......................................... 129
3.8.8 39(0x27) Set Power-on Value ............................................................. 131
3.8.9 40(0x28) Read Power-on Value .......................................................... 133
3.8.10 40(0x29) Set DI/O Active Status ....................................................... 134
3.8.11 42(0x2A) Read DI/O Active Status ................................................... 136
3.8.12 53(0x35) Read the Response Delay Time ............................................. 138
3.8.13 54(0x36) Set the Response Delay Time ................................................ 140
4. Modbus ASCII Protocol .............................................................................. 141
A. Appendix ........................................................................................................ 143
A.1 INIT Mode .................................................................................................. 143
A.2 Dual Watchdog operation........................................................................... 144
A.3 Reset Status ................................................................................................ 145
A.4 Digital Output ............................................................................................ 146
A.5 Latched Digital Input ................................................................................. 147
M-7065 User’s Manual Ver2.0, Dec. /2008 ---5
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 I-7000 and M-7000 DIO modules support TTL
signal,photo-isolated digital input, AC voltage digital
input, relay contact output, solid-state relay output,
photoMOS output and open-collector output.
M-7065 User’s Manual Ver2.0, Dec. /2008 ---6
1.1 More Information
For more information regarding the I-7000 series, please
refer to chapter 1 of the “I-7000 Bus Converter User’s
Manual” as shown below or visit the ICP DAS website
http://www.icpdas.com.
M-7065 User’s Manual Ver2.0, Dec. /2008 ---7
1.2 Pin Assignment
M-7065 User’s Manual Ver2.0, Dec. /2008 ---8
1.3 Specifications
Digital Input
Channels 4
Input Type Sink, Source, isolated channels with common ground or power
Off Voltage Level +1V max.
On Voltage Level +4 to +30V
Input Impedance 3K Ohms, 0.5W
Counters
channels : 4
Max. Counters : 16-bit (65535)
Max. Input Frequency : 100Hz
Min. Pulse Width : 5ms
Photo-Isolation 3750Vrms
Relay Output
Channels 5
Relay Type Form "A” relay SPST (N.O.)
Contact Rating
AC: 250V @5A
DC: 30V @5A
Operating Time(Max.) 6ms
Release Time(Min.) 3ms
Surge Strength 4,000VAC
Insulation Resistance 1000MOhms min. at 500VDC
Life Time
Mechanical : 20 X 10^6 OPS
Electrical : 100 X 10^3 Full Load
Interface
Interface RS-485
Format N, 8, 1 / N, 8, 2 / E 8, 1 / O 8, 1
Baud Rate 1200 ~ 115200bps
LED Display
1 LED as Power/ Communication indicator
4 LEDs as Digital Input indicators and 5 LEDs as Relay Output indicators (for I-7065D)
Power
Input Voltage Range 10~30VDC
M-7065 User’s Manual Ver2.0, Dec. /2008 ---9
Power Consumption 1.3W (max.)(I-7065) / 1.3W (max.)(I-7065D)
Environment
Operating Temperature
-25 to 75°C
Storage Temperature -40 to 85°C
Humidity 5 to 95%, non-condensing
Ordering information
M-7065 4-channel Isolated Digital Input and 5-channel Relay Output Module with 16-bit Counters
1.4 Block Diagram
M-7065
M-7065 User’s Manual Ver2.0, Dec. /2008 ---10
1.5 Wire Connection
Input
Type
Dry Contact
TTL/CMOS
NPN Output PNP Output
Output
Type
Relay Collector
Relay ON Relay OFF
M-7065 User’s Manual Ver2.0, Dec. /2008 ---11
1.6 Quick Start
This Quick Start document describes the methods used to quickly set up
and test the M-7065 using the ICP DAS DCON Utility. After confirming
that the module is operational, more applications or software support be
found by referring to the following links:
For Win32:
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_utility/
For Linux:
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_linux/
SDK tool:
Active X: ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_activex/
DDE server: ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_dde/
DLL: ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_dll/
Indusoft: ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_indusoft/
Labview: ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_labview/
Loading the DCON Utility
1. The required installation file can be downloaded from:
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_utility/setup/
More information related to about version numbers and the latest supported
modules can be obtained from
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/dcon_utility/
M-7065 User’s Manual Ver2.0, Dec. /2008 ---12
Setting up and testing the module
1. After installing the DCON Utility, there will be a shortcut icon for the DCON
Utility located on the Windows desktop. Double click this icon to launch
the DCON Utility to set the module’s configuration to fit with your
application. After double clicking the icon, the following screen will be
shown:
All
ICPDAS
I/M-7000
modules
supported
by
the
current
version
of
the
DCON
utility
so
f
tware
that
are
currently
connected
t
o
the
RS-485
network
will
be
listed
in
this
area.
The
tool
bars
are
used
t
o
set
the
COM
port
environment,
search
for connected
modules,
da
t
a
logs,
etc.
The
tool
bars
are
used
t
o
set
the
COM
port
environment,
search
for
connected
modules,
data
logs,
etc.
M-7065 User’s Manual Ver2.0, Dec. /2008 ---13
How do I set the configuration of the modules ?
ICP DAS M-7065 DIO module are command based. A series of
commands are provided to allow the configuration and DI/O
functions to be set. The basic DI/O and configuration commands are
listed below. Refer to the following links for more information.
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/7000/manual/modbusdio.pdf
The Configuration command structure of the Modbus RTU is as
follows:
*n: This value depends on the Sub-function code. Please refer to the
“Modbus DIO User’s Manual” for more details.
Ex: To modify the power-on value of the module from 01, the
following command should be sent:
01 46 27 0F BB F9
The supported DI/O commands are as follows:
Function code Description
0x01 Read coils
0x02 Read discrete inputs
0x03 Read multiple registers
0x04 Read multiple input registers
0x05 Write single coils
0x0F Write multiple coils
M-7065 User’s Manual Ver2.0, Dec. /2008 ---14
Ex: To read the current DI value of channels 0 to 5, the following
command should be sent:
01 02 00 00 00 05 B8 09
Ex: To write the DO value 0x0F from channels 0 to 4, the following
command should be sent:
01 0F 00 00 00 04 01 FF 7E D6
Ex: To only set the DO value of channel 2 to 1, the following
command should be sent:
01 05 00 02 FF 00 2D FA
The Configuration command structure of the Modbus ASCII is
as follows:
Command Format:
Response Format:
Using Modbus ASCII Protocol, all command are coded in
hexadecimal values, represented with readable ASCII characters.
Only the characters 0...9 and A...F are used for coding.
Leading
Character
Module
Address
Command
[LRC] CR
LF
Leading
Character
Module
Address
Data [LRC] CR
LF
M-7065 User’s Manual Ver2.0, Dec. /2008 ---15
Using Modbus ASCII Protocol, characters are used to start and
end a frame. The Leading Character ':' is used to flag the start of a
command and each command is ended with a CR•LF combination.
The LRC characters are appended to the command preceding the
CR•LF characters.
LRC Calculation:
All characters except for Leading Character (:) and delimiter
(CR•LF) are added with a carry being discarded. Total value is
converted to binary notation, is converted to 2’s complements, then
to hexadecimal figures, that is, LRC.
Example :
Modbus RTU => 01 46 00 [ 12 60 ]
Modbus ASCII => :014600B9(CR•LF)
(1.) hexadecimal = 01h+46h+00h = 47h
(2.) 2’s complement: = B9h (LRC)
Technical Support
If you have problems about using the M-7065 DIO module,
please contact ICP DAS Product Support.
Email: Service@icpdas.com
M-7065 User’s Manual Ver2.0, Dec. /2008 ---16
1.7 Default Settings
Default settings for the M-7065 modules are as follows
Protocol
DCON
Module Address
01
Baud Rate9600 bps,n,8,1
ChecksumDisabled
1.8 Configuration Tables
Baud
Rate Setting
(CC)
7
6 5 4 3 2 1 0
Parity Baud Rate Code
Parity (bit6~bit7)
Code
00 01 10 11
Parity
n,8,1 n,8,2 e,8,1 o,8,1
Baud Rate Code (bit0~bit5)
Code
03 04 05 06 07 08 09 0A
Baud
Rate
1200 2400 4800 9600 19200
38400
57600
115200
Type Code (TT)
For M-7065 DIO modules, the type code is fixed to 40
M-7065 User’s Manual Ver2.0, Dec. /2008 ---17
Data Format Setting (FF)
7
6 5 4 3 2 1 0
CU
CS
reserved
reserved
Key Description
CS
Checksum Setting
0: Disable
1: Enable
CU
Count Update
0: The counter is updated when there is a falling edge in
the input signal.
1: The counter is updated when there is a rising edge in
the input signal.
Note: The reserved bits should be zero.
1.9 DI/O Data Format Table
The data format of the response of the $AA4, $AA6 and
$AALS commands is:
(the First Data)(the Second Data)00.
The data format of the response of the @AA commands is:
(the First Data)(the Second Data).
Note: both the First Data and the Second Data are in
two hexadecimal digits format.
Module The First Data The Second Data
M-7065 DO0-DO5 00~1F DI0-DI3 00~0F
M-7065 User’s Manual Ver2.0, Dec. /2008 ---18
2. DCON Protocol
All communication with M-7000 modules consists of
commands generated by the host and responses transmitted
by the M-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
commands #**(Section 2.2) and ~** (Section 2.26), which
are sent to all modules, but in both of these cases, the
modules do not reply to the command.
Command Format:
Leading
Character
Module
Address
Command [CHKSUM]
CR
Response Format:
Leading
Character
Module
Address
Data [CHKSUM]
CR
CHKSUM 2-character checksum which is present when
the checksum setting is enabled.See Sections
1.1 (Data Format Setting) for details.
CR End of command character, carriage return
(0x0D)
M-7065 User’s Manual Ver2.0, Dec. /2008 ---19
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-7065 User’s Manual Ver2.0, Dec. /2008 ---20
General Command Sets
Command Response Description Section
%AANNTTCCFF
!AA Sets the Module Configuration
2.1
#** No Response Synchronized Sampling
2.2
#AA00(Data) > Sets the Digital Output
2.3
#AA0A(Data) > Sets the Digital Output
2.4
#AA1cDD > Sets the Digital Output
2.5
#AAAcDD > Sets the Digital Output
2.6
#AAN !AA(Data) Reads the Digital Input Counter
2.7
$AA2 !AANNTTCCFF
Reads the Module Configuration
2.8
$AA4 !S(Data) Reads the Synchronized Data
2.9
$AA5 !AAS Reads the Reset Status
2.10
$AA6 !(Data) Reads the Digital I/O Status
2.11
$AAC !AA Clears the Latched DI Status
2.12
$AACN !AA Clears the Digital InputCounter
2.13
$AAF !AA(Data) Reads the firmware Version
2.14
$AALS !(Data) Reads the Latched DI Status
2.15
$AAM !AA(Data) Reads the Module Name
2.16
$AAP !AASC Reads the communication protocol
2.17
$AAPN !AA Sets the communication protocol
2.18
@AA >(Data) Reads the Digital I/O Status
2.19
@AA(Data) > Sets the Digital Output Channels
2.20
~AAO(Name) !AA Sets the Module Name
2.21
~AAD !AAF Reads the DI/O active status.
2.22
~AADVV !AA Sets the DI/O active status.
2.23
~AAI !AA Sets the soft INIT
2.24
~AATnn !AA Set the soft INIT timeout value
2.25
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147

ICP DAS USA M-7065D User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI