10-channel universal voltage input & current input, thermocouple input module (9 pages)
Summary of Contents for ICP DAS USA M-7065
Page 1
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. /200 8 ---1...
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. /200 8 ---5...
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. /200 8 ---6...
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. /200 8 ---8...
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. /200 8 ---9...
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/...
Page 12
All ICPDAS I/M-7000 modules supported by the current version of the DCON utility software that are currently connected to the RS-485 network will be listed in this area. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---12...
Page 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.
Page 14
Data [LRC] CR LF Character Address 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. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---14...
Page 15
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. /200 8 ---15...
(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. /200 8 ---17...
Leading Module Data [CHKSUM] Character Address CHKSUM 2-character checksum which is present when the checksum setting is enabled.See Sections 1.1 (Data Format Setting) for details. End of command character, carriage return (0x0D) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---18...
Page 19
“!”+”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. /200 8 ---19...
Page 20
Sets the Module Name 2.22 ~AAD !AAF Reads the DI/O active status. 2.23 ~AADVV Sets the DI/O active status. 2.24 ~AAI Sets the soft INIT 2.25 ~AATnn Set the soft INIT timeout value M-7065 User’s Manual Ver2.0, Dec. /200 8 ---20...
Page 21
Sets the Timeout Settings 2.31 ~AA4V !AA(Data) Reads the PowerOn/Safe Value 2.32 ~AA5V Sets the PowerOn/Safe Value 2.33 ~AARDvv Sets the Response Delay Time 2.34 ~AARD !AA(Data) Reads the Response Delay Time M-7065 User’s Manual Ver2.0, Dec. /200 8 ---21...
Used to set the counter update direction and checksum (Section 1.1). Response: Valid Command: !AA[CHKSUM](CR) Invalid Command: ?AA[CHKSUM](CR) Delimiter for a valid command. Delimiter for an invalid command. Address of the module in hexadecimal format (00 to FF) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---22...
Page 23
FF (Sets the counter update) 80 : Sets the counter update (Rising Edge) 00 : Sets the counter update (Falling Edge) Related Commands: Section 2.8 $AA2、2.24 ~AAI、2.25 ~AATnn Related Topics: Section 1.1 Configuration Tables M-7065 User’s Manual Ver2.0, Dec. /200 8 ---23...
Page 24
There is no response with this command. To access the data, another command, $AA4, must be sent, see Section 2.11 for details. Examples: Command:#** Response: No response Sends the synchronized sampling command. Command:$014 Response:!10C0300 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---24...
Page 25
NOT the first time the synchronized data has been read after the previous #** command. Digital Output : 0x0C Digital Input : 0x03 Related Commands: Section 2.9 $AA4 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---25...
Response: >[CHKSUM](CR) Valid Command: ?AA[CHKSUM](CR) Invalid Command: Ignored Command:  > Delimiter for a valid command. Delimiter for an invalid command. Ignored Delimiter character. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---26...
Page 27
Response:> Sets DO0、DO3 to off,DO1、DO2 to on, and the module returns a valid response. Command:#010016 Response:> Sets DO0、DO3 to off,DO1、DO2 to on DO6、DO7、DO8 to off,DO5 to on Command:#010005 Response:! Host Watchdog Timeout. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---27...
DO0, bit 1 corresponds to DO1, etc. When the bit is 1, it denotes that the digital output channel is on, and 0 denotes that the digital output channel is off. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---29...
Page 30
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. Examples: Command:#010A0E Response:> Sets DO0 to off,DO1、DO2、DO3 to on. Command:#010A06 Response:! Host Watchdog Timeout. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---30...
Page 31
Command:#010A0F Response:> Sets DO0、DO1、DO2、DO3 to on. Command:#020A00 Response:> Sets DO0、DO1、DO2、DO3 to off. Related Commands: Section 2.3 #AA00(Data)、2.5 #AA1cDD 2.6#AAAcDD、2.11 $AA6、2.19 @AA 2.20 @AA(Data) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---31...
01 : set the digital output channel to on. Response: Valid Command: >[CHKSUM](CR) ?AA[CHKSUM](CR) Invalid Command: Ignored Command:  > Delimiter for a valid command. Delimiter for an invalid command. Ignored Delimiter character M-7065 User’s Manual Ver2.0, Dec. /200 8 ---32...
Page 33
Examples: Command:#021001 Response:> Sets DO0 to on. Command:#021401 Response:> Command:#021301 Response:> Sets DO3 to on. Related Commands: Section 2.3 #AA00(Data)、2.4 #AA0A(Data) 2.6#AAAcDD、2.11 $AA6、2.19 @AA 2.20 @AA(Data) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---33...
Specifies the digital output channel to be set. (0-7) 00 : set the digital output channel to off. 01 : set the digital output channel to on. Response: Valid Command: >[CHKSUM](CR) Invalid Command: ?AA[CHKSUM](CR) Ignored Command:  M-7065 User’s Manual Ver2.0, Dec. /200 8 ---34...
Page 35
Examples: Command:#02A201 Response:> Sets DO2 to on Related Commands: Section 2.3 #AA00(Data)、2.4 #AA0A(Data) 2.5 #AA1cDD、2.11 $AA6、2.19 @AA 2.20 @AA(Data) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---35...
An invalid command is returned if the specified channel is incorrect. (Data) Five decimal digits representing the digital input counter data of the specified channel (00000 to 65535). Address of the responding module (00 to FF) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---36...
Page 37
Reads data from channel 1 of module 01 and the returned counter value is 00005. Command:#015 Response:!0100005 Reads data from channel 5 of module 01 and the returned counter value is 00005. Related Commands: Section 2.13 #AACN M-7065 User’s Manual Ver2.0, Dec. /200 8 ---37...
Type code of the module, should be 40 for DIO module. Baud Rate code of the module,should be 0A Checksum and counter update direction settings of the module, see Section 1.1 for details. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---38...
Page 39
Command:$012 Response:!01400AC0 Reads the configuration of module 01. FF (Sets the counter update) C0 : Reads the counter update (Rising Edge), checksum enabled. Related Commands: Section 2.1 %AANNTTCCFF Related Topics: Section 1.1 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---39...
Delimiter for an invalid command. Address of the responding module (00 to FF) Status of the synchronized data 1:first read 0:not the first read (Data) Synchronized data. See Section 1.2 for the data format. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---40...
Page 41
Reads the synchronized data for module 01. The module returns the synchronized data and sets thestatus byte to 0 to indicate that the synchronized data has been read Digital Output : 0x05 Digital Input : 0x3F M-7065 User’s Manual Ver2.0, Dec. /200 8 ---41...
0:This is not the first time the command has been sent since the module was powered on, which denotes that there has been no module reset since the last $AA5 command was sent. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---43...
Page 44
Command:$015 Response:!010 Reads the reset status of module 01. The response shows that there has been no module reset since the last $AA5 command was sent. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---44...
00. See Section 1.2 for details. 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---45...
Page 46
01. Digital Output : 0x1F Command:$016 Response:!070F00 Reads the digital input/output channel status of module 01. Digital Output : 0x07 Digital Iutput : 0x0F Related Commands: Section 2.3 #AA00(Data)、2.4 #AA0A(Data) 2.5 #AA1cDD、2.6 #AAAcDD、2.19 @AA 2.20 @AA(Data) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---46...
Address of the responding module (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-7065 User’s Manual Ver2.0, Dec. /200 8 ---47...
Page 48
Sends the command to read the status of the low latched digital input channels of module 01. Low Latched DI : 0x3F Low Latched DO : 0x09 Related Commands: Section 2.15 $AALS M-7065 User’s Manual Ver2.0, Dec. /200 8 ---48...
Address of the responding module (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-7065 User’s Manual Ver2.0, Dec. /200 8 ---49...
Page 50
Clears the counter value of channel 1 of module 01 and returns a valid response. Command:#011 Response:!0100000 Reads counter data from channel 1 of module 01 and the returned counter value is 0. Related Commands: Section 2.7 #AAN M-7065 User’s Manual Ver2.0, Dec. /200 8 ---50...
(Data) Firmware version string of the module 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---51...
Page 52
Examples: Command:$01F Response:!0102.00 Reads the firmware version of module 01, and shows that it is version 02.00. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---52...
Delimiter for an invalid command. Address of the responding module (00 to FF) (Data) Status of the latched digital input channels, a four- digit hexadecimal value followed by 00. See Section 1.2 for details. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---53...
Page 54
Command:$01L0 Response:!093F00 Sends the command to read the status of the low latched digital input channels of module 01. Low Latched DI : 0x3F Low Latched DO : 0x09 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---54...
Page 55
Sends the command to read the status of the high latched digital input channels of module 01. High Latched DI : 0x00 High Latched DO : 0x06 Related Commands: Section 2.12 $AAC Related Topics: Section M-7065 User’s Manual Ver2.0, Dec. /200 8 ---55...
Address of the responding module (00 to FF) (Data) Name string of the module 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---56...
Page 57
Command:$01M Response:!017065 Reads the module name of module 01 and returns the name. Related Commands: Section 2.21 ~AAO(Name) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---57...
The protocols supported by the module 0: DCON 1: DCON and Modbus RTU 3: DCON and Modbus RTU/ASCII The current protocol that is saved in the EEPROM that will be used at the next power-on reset M-7065 User’s Manual Ver2.0, Dec. /200 8 ---58...
Page 59
01 and returns a response of 30 meaning that it supports the DCON and Modbus RTU/ASCII protocols and the protocol that will be used at the next power-on reset is DCON. Related Commands: Section 2.18 $AAPN M-7065 User’s Manual Ver2.0, Dec. /200 8 ---59...
Address of the responding module (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. Examples: M-7065 User’s Manual Ver2.0, Dec. /200 8 ---60...
Page 61
Modbus RTU and returns an invalid response because the module is not in INIT mode. Command:$01P1 Response:!01 Sets the communication protocol of module 01 to Modbus RTU and returns a valid response. Related Commands: Section 2.17 $AAP M-7065 User’s Manual Ver2.0, Dec. /200 8 ---61...
Page 62
See Section 1.2 for details. 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---62...
Page 63
RL1, RL2, RL3 and RL4 are on and IN1, IN2, IN3 and IN4 are on . Related Commands: Section 2.3 #AA00(Data)、2.4 #AA0A(Data) 2.5 #AA1cDD、2.6 #AAAcDD、2.11 $AA6 2.20 @AA(Data) Related Topics: Section 1.2 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---63...
0 denotes that the digital output channel is off. Response: Valid Command: >[CHKSUM](CR) ?AA[CHKSUM](CR) Invalid Command: Ignored Command:  > Delimiter for a valid command. Delimiter for an invalid command. Ignored Delimiter character M-7065 User’s Manual Ver2.0, Dec. /200 8 ---64...
Page 65
Examples: Command:@02F Response:> Sets DO0、DO1、DO2、DO3 to on. Related Commands: Section 2.3 #AA00(Data)、2.4 #AA0A(Data)、 2.5 #AA1cDD、2.6#AAAcDD、2.11 $AA6、2.19 @AA M-7065 User’s Manual Ver2.0, Dec. /200 8 ---65...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---66...
Page 67
7065. Command:~01OM7065 Response:!01 Sets the name of module 01 to be “ M7065” and returns a valid response. Command:$01M Response:!01M7065 Reads the name of module 01 and returns the name M7065. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---67...
A two-digit hexadecimal value indicating the DI/O active status. 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---68...
Page 69
1 for non-signal or the low voltage; input value 0 for high voltage input value 0 for non-signal or the low voltage; input value 1 for high voltage (DI/O Active Status) Related Commands: Section 2.23 ~AADVV M-7065 User’s Manual Ver2.0, Dec. /200 8 ---69...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---70...
Page 71
1 for non-signal or the low voltage; input value 0 for high voltage input value 0 for non-signal or the low voltage; input value 1 for high voltage Related Commands: Section 2.22 ~AAD M-7065 User’s Manual Ver2.0, Dec. /200 8 ---71...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---72...
Page 73
Set the soft INIT time out value of module 01 to 16 seconds and returns a valid response. Command:~03I Response:!03 Set the Soft INIT of module 01 and return a valid response. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---73...
Page 74
Attempts to change the Baud Rate of module 01 to 19200 without first adjusting the INIT * pin.The module returns an in valid response. Related Commands: : : : Section 2.25 ~AATnn M-7065 User’s Manual Ver2.0, Dec. /200 8 ---74...
Delimiter for an invalid command. Address of the responding module 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---75...
Page 76
Informs all modules that the host is OK. Syntax: ~** [CHKSUM](CR) Delimiter character Host OK command Response: No response Examples: Command: ~** Response: No response Related Commands: Section 2.27 ~AA0、2.28 ~AA1、2.29 ~AA2 2.30 ~AA3EVV、2.31 ~AA4V、 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---76...
Bit 7: 0 indicates that the host watchdog is disabled, and 1 indicates that the host watchdog is enabled, Bit 2: 1 indicates that a host watchdog timeout has occurred, and 0 indicates that no host watchdog timeout has occurred. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---77...
Page 78
04, meaning that a host watchdog timeout has occurred. Command:~030 Response:!0300 Reads the host watchdog status of module 03 and returns 00, meaning that the host watchdog is disabled and no host watchdog timeout has occurred. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---78...
Page 79
Reads the host watchdog status of module 03 and returns 08, meaning that the host watchdog is enabled. Sents ~** to clear watchdog timeout value. Related Commands: Section 2.26 ~**、2.28 ~AA1、2.29 ~AA2 2.30 ~AA3EVV、2.31 ~AA4V、 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---79...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---80...
Page 81
Command:~031 Response:!03 Resets the host watchdog timeout status of module 03 and returns a valid response. Related Commands: Section 2.26 ~**、2.27 ~AA0、2.29 ~AA2 2.30 ~AA3EVV、2.31 ~AA4V、 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---81...
1: the host watchdog is enabled 0: the host watchdog is disabled Two hexadecimal digits to represent the timeout value in tenths of a second, for example, 01 denotes 0.1 seconds and FF denotes 25.5 seconds. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---82...
Page 83
03 and returns 0x90, which denotes that the host watchdog is enabled and the host watchdog timeout value is 14.4 seconds Related Commands: Section 2.26 ~**、2.27 ~AA0、2.28 ~AA1 2.30 ~AA3EVV、2.31 ~AA4V、 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---83...
01 denotes 0.1 seconds and FF denotes 25.5 seconds. Response: !AA[CHKSUM](CR) Valid Command: Invalid Command: ?AA[CHKSUM](CR) Delimiter for a valid command. Delimiter for an invalid command. Address of the responding module (00 to M-7065 User’s Manual Ver2.0, Dec. /200 8 ---84...
Page 85
01. The module returns 164, which denotes that the host watchdog is enabled and the host watchdog timeout value is 10.0 seconds. Related Commands: Section 2.26 ~**、2.27 ~AA0、2.28 ~AA1 2.29 ~AA2、2.31 ~AA4V、 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---85...
(Data) Power On Value or Safe Value 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---86...
Page 87
Examples: Command:~034P Response:!030700 Reads the power-on DO value of module 03 and returns 0700. Command:~034S Response:!030F00 Reads the safe DO value of module 03 and returns 0F00. Related Commands: Section 2.32 ~AA5V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---87...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---88...
Page 89
Sets DO0、DO1、DO2、DO3 to on Command:~035S Response:!03 Sets the safe DO value and the module returns a valid response. Command:~034S Response:!030F00 Reads the safe DO value of module 03. Related Commands: Section 2.31 ~AA4V M-7065 User’s Manual Ver2.0, Dec. /200 8 ---89...
Address of the responding module (00 to 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---90...
Page 91
Examples: Command:~03RD1E Response:!03 Sets the Response Delay Time, the value is 1E. (30ms) Command:~03RD Response:!0300 Reads the Response Delay Time, the value is 00. (0ms). Related Commands: Section 2.34 ~AARD M-7065 User’s Manual Ver2.0, Dec. /200 8 ---91...
Address of the responding module(00 to FF) (Data) Response Delay Time Value 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-7065 User’s Manual Ver2.0, Dec. /200 8 ---92...
Page 93
Examples: Command:~03RD1E Response:!03 Sets the Response Delay Time, the value is 1E. (30ms) Command:~03RD Response:!0300 Reads the Response Delay Time, the value is 00. (0ms). Related Commands: Section 2.33 ~AARDvv M-7065 User’s Manual Ver2.0, Dec. /200 8 ---93...
00: no parity, 1 stop bit 10: even parity, 1 stop bit 11: odd parity, 1 stop bit 00264 Clear Latched DI/O 00513 Clear DI Count 40481 Firmware version (low word) 40482 Firmware version (high word) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---94...
Page 95
Informs all modules that the host is OK Modbus RTU Function Description: (0xxxx) : 0x01、0x05、0x0F Function code (1xxxx) : 0x02 Function code (3xxxx) : 0x04 Function code (4xxxx) : 0x03、0x03、0x10 Function code Address mapping of PLC(Base 1). M-7065 User’s Manual Ver2.0, Dec. /200 8 ---95...
Page 96
Protocol(Base 0). Error Response Address 1 Byte 1 to 247 Function code 1 Byte Function code + 0x80 Exception code 1 Byte If a CRC mismatch occurs, the module will not respond. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---96...
Page 99
Response:05 01 01 00 50 B8 Resets the host watchdog timeout status of a module Command:05 01 01 00 00 09 [ 6C 71 ] Response:05 01 02 01 00 49 AC Reads protocol of module M-7065 User’s Manual Ver2.0, Dec. /200 8 ---99...
Page 100
Supported modules : M-7065 DO : 0x0000~0x0004 DI : 0x0020~0x0023 High Latched DI Channel : 0x0040~0x0043 Valid starting channel Low Latched DI Channel : 0x0060~0x0063 Safe Value : 0x0080~0x0084 Power On Value : 0x00A0~0x00A4 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---100...
(B=(bit count + 7)/8) Bit values B Byte Bit values Error Response: Address 1 Byte 1-247 Function code 1 Byte 0x82 Refer to Modbus standard Exception code 1 Byte for more details M-7065 User’s Manual Ver2.0, Dec. /200 8 ---101...
Set WDT Mode : 0x0103 Set WDT Enable : 0x0104 Clear WDT Status : 0x010D A value 0xFF00 sets the output to ON 04-05 Output value 2 Byte A value 0xFF00 sets the output to OFF M-7065 User’s Manual Ver2.0, Dec. /200 8 ---110...
Page 111
Response:05 05 02 00 FF 00 8C 06 Clear digital input count Command:05 05 00 02 FF 00 [ 2C 7E ] Response:05 05 00 02 FF 00 2C 7E Sets DO2 to on M-7065 User’s Manual Ver2.0, Dec. /200 8 ---111...
02 and 03 of the Request 04-05 Register value 2 Byte Register value Error Response: Address 1 Byte 1-247 Function code 1 Byte 0x86 Refer to Modbus standard Exception code n Byte for more details M-7065 User’s Manual Ver2.0, Dec. /200 8 ---114...
1-247 Function code 1 Byte 0x0F Starting channel The value is the same as byte 02 02-03 2 Byte numbers and 03 of the Request 04-05 Input channel number 2 Byte 0x0001-0x0020 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---116...
Page 118
Supported modules : M-7065 DO : 0x0000~0x0005 Valid starting Clear DI Count Value : 0x0200-0x0203 channel Safe Value : 0x0080~0x0085 Power On Value : 0x00A0~0x00A5 M-7065 User’s Manual Ver2.0, Dec. /200 8 ---118...
Read the response delay time 3.8.12 54 (0x36) Set the response delay time 3.8.13 Error Response Address 1 Byte 1-247 Function code 1 Byte 0xC6 Refer to Modbus standard Exception code 1 Byte for more details M-7065 User’s Manual Ver2.0, Dec. /200 8 ---119...
2~3 are set as falling edge Error Response: Address 1 Byte 1-247 Function code 1 Byte 0xC6 Refer to Modbus standard Exception code 1 Byte for more details M-7065 User’s Manual Ver2.0, Dec. /200 8 ---129...
1 for non-signal or the low voltage; input value 0 for high voltage input value 0 for non-signal or the low voltage; input value 1 for high voltage (DI/O Active Status) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---134...
Page 135
Command:01 46 29 02 [ 7E 5C ] Response:01 46 29 00 FF 9D Sets the DI/O active states Examples: Command:01 46 2A [ 93 BF ] Response:01 46 2A 02 7E AC Reads the DI/O active states M-7065 User’s Manual Ver2.0, Dec. /200 8 ---135...
0xC6 Refer to Modbus standard Exception code 1 Byte for more details Examples: Command:01 46 29 02 [ 7E 5C ] Response:01 46 29 00 FF 9D Sets the DI/O active states M-7065 User’s Manual Ver2.0, Dec. /200 8 ---136...
Page 137
1 for non-signal or the low voltage; input value 0 for high voltage input value 0 for non-signal or the low voltage; input value 1 for high voltage (DI/O Active Status) M-7065 User’s Manual Ver2.0, Dec. /200 8 ---137...
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. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---141...
To help avoid this problem, the M-7065 has a special mode called “INIT mode”. When the module is powered on in “INIT mode” the configuration of the module is reset as follows, allowing it to be operated as normal.
The M-7065 DIO module include an internal Dual Watchdog, making the control system more reliable and stable. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---144...
$AA5 command is sent, it means the module has been reset and the digital output value had been changed to the power-on value. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---145...
Both the safe value and power-on value are set by the ~AA5V command. Refer to Section 2.32 for details. M-7065 User’s Manual Ver2.0, Dec. /200 8 ---146...
A.5 Latched Digital Input The M-7065 DIO module provide commands to read the latched high digital input and latched low digital input status. Following is an example to show the usefulness of the latched digital input. When we want to read the key stroke of a key...
Need help?
Do you have a question about the M-7065 and is the answer not in the manual?
Questions and answers