Home

M-7065 - ICP DAS

image

Contents

1. Life Time Electrical 100 X 103 Full Load Interface Interface RS 485 Format N 8 1 N 8 2 E 8 1 08 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 7065D Power Input Voltage Range 10 30VDC M 7065 User s Manual Ver2 0 Dec 2008 8 Power Consumption 1 3W max 1 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 1065 650 IN COM IN Embedded 1N4 Controller Data RLICOM Data RLINO Vs RLSCOM GND RLSNO M 7065 User s Manual Ver2 0 Dec 2008 9 1 5 Wire Connection Dry Contact 0S IN com r OS IN com 08 INx T 18 INx TTL CMOS mt o ne IN com DS IN com Type Logic HIGH Logic LOW 06 INx L A ne INx ogic HIGH NPN Output PNP Output pH 06 IN com H OS IN com Relay Collector Relay ON Relay OFF AI 0S Output Tipe OS RLx NO DS RLx com RLx NO RLx COM M 7065 User s Manual Ver2 0 Dec 2008 10 1 6 Quick Start This Quick Start document
2. M 7065 User s Manual Ver2 0 Dec 2008 36 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 01 1 Response 0100005 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 2008 37 2 8 AA2 Description Reads the module configuration Syntax A AN CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 2 Command to read the module configuration Response Valid Command AATTCCFF CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF TT Type code of the module should be 40 for DIO module CC Baud Rate code of the module should be 0A FF Checksum and counter update direction settings of the module see Section 1 1 for details M 7065 User s Manual Ver2 0 Dec 2008 38 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 012 Response 01400A80 Reads the configuration of module 01 FF Sets the counter update 80 Reads
3. Delimiter for a valid command Delimiter for an invalid command AA 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 2008 49 Examples Command 01 1 Response 0100009 Reads counter data from channel 1 of module 01 and the returned counter value is 00009 Command 01C1 Response 01 Clears the counter value of channel 1 of module 01 and returns a valid response Command 01 1 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 2008 50 2 14 SAAF Description Reads the firmware version of a module Syntax AAF CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF F Command to read the firmware version Response Valid Command AA Data CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command 2 Delimiter for an invalid command AA Address of the responding module 00 to FF 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 2008 51 Examples Command 01F Response
4. Response No response Related Commands Section 2 27 AAO gt 2 28 AAI 2 29 AA2 2 30 AA3EVV 2 31 AA4V 2 32 AASV M 7065 User s Manual Ver2 0 Dec 2008 76 2 27 AA0 Description Reads the host watchdog status of a module Syntax AA0 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 0 Command to read the module status Response Valid Command AASS CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FE SS Two hexadecimal digits that represent the host watchdog status where Bit 7 O 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 2008 77 The host watchdog status is stored in EEPROM and can only be reset by using the AA1 command There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 030 Response 0304 Reads the host watchdog status of module 03 and returns 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 ho
5. Command Byte 2 3 00 00 starting channel numbers Byte 4 5 00 05 output channel number Byte 6 7 FD 8D CRC Response Byte 1 01 Function Code Byte 2 01 Byte count of response Byte 3 IF DOO DO3 Value Byte 4 5 11 70 CRC M 7065 User s Manual Ver2 0 Dec 2008 98 Command 05 01 00 40 00 04 3D 99 Response 05 01 01 07 11 7A Reads digital input high latch Command 05 01 01 03 00 01 OD B2 Response 05 01 01 00 50 B8 Reads modbus host watchdog s mode Command 05 01 01 10 00 O1 FC 77 Response 05 01 01 01 91 78 Reads reset status of modules Command 05 01 01 04 00 01 BC 73 Response 05 01 01 00 50 B8 Reads host watchdog setting enabled or not Command 05 01 01 OD 00 01 6C 71 Response 05 01 01 00 50 Bs 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 2008 99 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 0Ox00A0 0x00A4 M 7065 User s Manual Ver2 0 Dec 2008 100 3 2 02 0x02 Read discrete inputs This function code is used to read the current digital input value Request 00 Address 01 Function code Starting channel 02 03 e DI 0x0000 0x001F num
6. 2 word count 03 Register values B 2 Byte Register values Error Response 00 Address 01 Function code i Refer to Modbus standard 02 Exception code for more details Examples Command 05 03 01 E2 00 02 64 45 Response 05 03 04 70 65 00 00 B5 2C Reads module s name Command Byte 2 3 01 E2 Address mapping Byte 4 5 00 02 Word count Response Byte 2 04 Byte count of response Byte 3 6 70 65 00 00 70 65 Low word of module name 00 00 High word of module name M 7065 User s Manual Ver2 0 Dec 2008 104 Command 05 03 01 E4 00 01 C4 45 Response 05 03 02 00 05 89 87 Reads address of modules Command 01 03 00 00 00 08 44 0C Response 01 03 10 00 15 00 15 00 15 00 15 00 15 00 15 00 15 00 15 2D 56 Reads DI count of modules Command 05 03 01 E7 00 01 34 45 Response 05 03 02 00 00 49 84 Reads modbus response delay time Command 05 03 01 EB 00 O1 F4 46 Response 05 03 02 00 00 49 84 Reads the host watchdog timeout value of a module Command 00 03 30 38 00 01 OB 16 Response No response Informs all modules that the host is OK M 7065 User s Manual Ver2 0 Dec 2008 105 Supported modules M 7065 Valid starting DI Count Value 0x0000 0x0003 channel M 7065 User s Manual Ver2 0 Dec 2008 106 3 4 04 0x04 Read multiple registers This function code is used to read the current digital input counter value Request 00 Address 01 Function code
7. 2 20 AA Data Description Sets the digital output channels Syntax AA Data CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF Data Data to be written to the digital output channels Bit 0 of the value corresponds to DOO and bit 1 of the value corresponds to DOI etc When the bit is 1 it denotes that the digital output channel is on and O denotes that the digital output channel is off Response Valid Command gt CHKSUM CR Invalid Command AA CHKSUM CR Ignored Command CHKSUM CR gt Delimiter for a valid command 2 Delimiter for an invalid command Ignored Delimiter character M 7065 User s Manual Ver2 0 Dec 2008 64 watchdog timeout has occurred the digital output ports are set to safe value and the digital output value that was sent 1s ignored There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 02F Response gt Sets DOO gt DOI DO2 DO3 to on Related Commands Section 2 3 AAOO Data gt 2 4 AAOA Data 2 5 AAIcDD 2 6 AAAcDD 2 11 SAA6 2 19 AA M 7065 User s Manual Ver2 0 Dec 2008 65 2 21 AAO Name Description Sets the name of a module Syntax AAO Name CHKSUMI CR Delimiter character AA Address of the module to be set 00 to FF O Command to set the module name Name New name of the mo
8. 5 0 Baud rate Baud rate valid range 0x03 0x0A bits 7 6 00 no parity 1 stop bit 10 even parity 1 stop bit 11 odd parity 1 stop bit Clear Latched DI O Clear DI Count Firmware version low word AIA LS lt Firmware version high word M 7065 User s Manual Ver2 0 Dec 2008 94 Module name low word Module name high word DI Count Value Host watch dog timeout status write 1 to clear host watchdog timeout status Modbus reponse delay time in ms valid range 0 30 Host watchdog timeout count write O to clear Modbus host watchdog mode 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 1 enable O disable host watchdog Host watchdog timeout value 0 255 in 0 1s Protocol 0 DCON 1 Modbus Modbus Protocol Option 0 RTU 1 ASCII Reset status 1 first read after powered on 0 not the first read after powered on 312345 412345 Informs all modules that the host is OK 1 Modbus RTU Function Description Oxxxx 0x01 0x05 gt OxOF Function code 1xxxx 0x02 Function code 3xxxx 0x04 Function code 4xxxx 0x03 0x03 0x10 Function code 2 Address mapping of PLC Base 1 M 7065 User s Manual Ver2 0 Dec 2008 95 Function code 0x01 0x02 0x03 0x04 0x05 0x06 OxOF 0x46 Description Section Read coils 3 1 Read discrete inputs 3 2 Read multiple registers 3 3 Read multiple input registers 3 4 Write single
9. 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 coooonicccccconaconanonanonannnnononnnnnnnnnnnnnnononnnnnnos 131 3 8 9 40 0x28 Read Power on Value 133 3 8 10 40 0x29 Set DIJO Active Status 154 3 8 11 42 0x2A Read DIJO Active Status 136 3 8 12 53 0x35 Read the Response Delay Time 138 3 8 13 54 0x36 Set the Response Delay Time ooon 140 4 Modbus ASCI Protocole iiae leo AAA NA AAA 141 A APPEN Xose A A til tin 143 ATANTE Mod a 143 A 2 Dual Watchdog operation ss 144 AIRES CATS A A AAA A ia 145 AA Digita Output oerna E e Tee ads hi oe 146 A 5 Latched Digital Input sireeni iaoiae ias aai 147 M 7065 User s Manual Ver2 0 Dec 2008 4 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 1s 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
10. Manual Ver2 0 Dec 2008 109 3 5 05 0x05 Write single coils This function code is used to write the digital output value Request 00 Address Ol Function code DO 0x0000 0x001F Clear DI count value 0x0200 0x021F Safe Value 0x0080 0x009F Power On Value 02 03 Cee 0x00A0 0x00BF numbers O Clear Latched 0x0107 O Set WDT Mode 0x0103 O Set WDT Enable 0x0104 Clear WDT Status 0x010D A value OxFF00 sets the output to ON A value OxFF00 sets the 04 05 Output value output to OFF M 7065 User s Manual Ver2 0 Dec 2008 110 Response 00 Address 01 Function code The value is the same as Output channel 02 03 byte 02 and 03 of the numbers Request The value is the same as 04 05 Output value byte 04 and 05 of the Request Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 05 05 00 83 FF 00 7C 56 Response 05 05 00 83 FF 00 7C 56 Sets DO3 power on value to on Command 05 05 02 00 FF 00 8C 06 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 2008 111 Command 05 05 01 07 FF00 3D 83 Response 05 05 01 07 FF 00 3D 83 Clear DIO latch of modules Command 05 05 01 03 FF 00 7C 42 Response 05 05 01 03 FF 00 7C 42 Sets host watchdog mode Mode 1 Co
11. Reads DI count value 0x0000 0x001F Reads module address 0x01E4 Reads firmware version 0x01E0 Starting channel Reads module 02 03 numbers or address name 0x01E2 mapping Reads modbus delay response time 0x01E7 Reads timeout count Ox01EB Reads timeout value Ox01E8S Host OK 0x3038 0x0001 0x0020 04 05 Input channel number Word count M 7065 User s Manual Ver2 0 Dec 2008 107 Response 01 Function code Byte count of response 02 Byte Count 1 Byte B 2 word count 03 Register values B 2 Byte Register values Error Response 00 Address 01 Function code i Refer to Modbus standard 02 Exception code for more details Examples Command 05 04 01 E2 00 02 D1 85 Response 05 04 04 20 60 00 00 B5 9A Reads module s name Command 01 04 01 E4 00 01 7001 Response 01 04 02 00 01 78 FO Reads address of modules Command 01 03 00 00 00 02 C4 0B Response 01 03 04 00 15 00 15 2A 38 Reads DI count of modules M 7065 User s Manual Ver2 0 Dec 2008 108 Command 05 04 01 E7 00 01 81 85 Response 05 04 02 00 00 48 FO Reads modbus response delay time Command 05 04 01 EB 00 O1 41 86 Response 05 04 02 00 00 48 FO Reads the host watchdog timeout value of a module Command 00 04 30 38 00 01 BE D6 Response No response Informs all modules that the host is OK Supported modules M 7065 Valid starting DI Count Value 0x0000 0x0005 channel M 7065 User s
12. Safe Value Response Valid Command AA Data CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF Data Power On Value or Safe Value There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address M 7065 User s Manual Ver2 0 Dec 2008 86 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 OFOO Related Commands Section 2 32 AASV M 7065 User s Manual Ver2 0 Dec 2008 87 2 32 AASV Description Sets the current DO value as the power on DO value or the safe DO value Syntax AA5V CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 5 Command to set the power on value or the safe DO value V P Power On Value S Safe Value Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address M 7065 User s Manual Ver2 0 Dec 2008 88 Examples Command 037 Respon
13. code is used to set the power on value of a module Request Address Function code Sub Function code Power on Value 0x00 OxFF DOIO DO7 Power on Value 0x00 OxFF DO8 DO15 Power on Value 0x00 OxFF DO16 DO23 Power on Value 0x00 OxFF DO24 D031 Response 00 Address Ol Function code 02 Sub Function code 0 OK 03 Power on Value Others Error Error Response 00 Address 01 Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 131 Examples Command 05 46 27 OF BA C9 Response 05 46 27 00 FA CD Sets DOO DO3 power on value Examples Command 05 46 28 53 BF Response 05 46 28 OF BF 39 Reads power on value M 7065 User s Manual Ver2 0 Dec 2008 132 3 8 9 40 0x28 Read Power on Value This sub function code is used to read the power on value of a module Request 00 Address 1 247 Ol Function code 0x46 02 Sub Function code 0x28 Response Address Function code Sub Function code Power on Value 0x00 OxFF DOIO DO7 Power on Value 0x00 OxFF DO8 DO15 Power on Value 0x00 OxFF DO16 DO23 Power on Value 0x00 OxFF DO24 D031 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 133 3 8 10 40 0x29 Set DI O Active Status This sub function code is used to set th
14. coils 3 5 Write multiple registers 3 6 Write multiple coils 3 7 Read Write module settings 3 8 If the function specified in the message is not supported then the module responds as follows Address mapping of Protocol Base 0 Error Response 00 Address 1 Byte 1 to 247 01 Function code 1 Byte Function code 0x80 02 Exception code 1 Byte 01 If a CRC mismatch occurs the module will not respond M 7065 User s Manual Ver2 0 Dec 2008 96 3 1 01 0x01 Read coils This function code is used to read the current digital output readback value Request 00 Address Ol Function code e DO 0x0000 0x001F e DI 0x0020 0x003F DI O Latch High 0x0040 0x005F DI O Latch Low 0x0060 0x007F Safe Value 0x0080 0x009F Starting channel Power On Value 02 03 numbers or address Ox00A0 Ox00BF mapping Reads WDT Mode 0x0103 Reads WDT Enable 0x0104 Reads WDT Status 0x010D O Reads Protocol 0x0100 Reads Reset Status 0x0110 Output channel number 0x0001 0x0020 04 05 or bit count Bit count M 7065 User s Manual Ver2 0 Dec 2008 97 Response 00 Address 01 Function code Byte count of response 02 Byte Count B bit count 7 8 03 Bit values Bit values Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 05 01 00 00 00 05 FD 8D Response 05 01 01 1F 11 70 Reads digital output value
15. 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 icodas com pub cd 8000cd napdos driver dcon_utility For Linux fto 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 icodas 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 11 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 b
16. the counter update Rising Edge 00 Reads the counter update Falling Edge Command 012 Response 01400AC0 Reads the configuration of module 01 FF Sets the counter update CO Reads the counter update Rising Edge checksum enabled Related Commands Section 2 1 7 AANNTTCCFEF Related Topics Section 1 1 M 7065 User s Manual Ver2 0 Dec 2008 39 2 9 AA4 Description Reads the synchronized data that was retrieved by the last command Syntax AA4 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 4 Command to read the synchronized data Response Valid IS CHKSUMI CR Command Invalid 2 AA CHKSUM CR Command Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF S Status of the synchronized data 1 first read O not the first read Data Synchronized data See Section 1 2 for the data format M 7065 User s Manual Ver2 0 Dec 2008 40 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command Response No response Sends the synchronized sampling command Command 014 Response 10F0000 Reads the synchronized data for module 01 The module returns the synchronized data and sets the status byte to 1 to indicate that this 1s the first time the synchronized data has been rea
17. 00 00 00 00 C4 37 Sets the configuration of module 02 M 7065 User s Manual Ver2 0 Dec 2008 125 3 8 5 32 0x20 Read Firmware Version This sub function code is used to read the firmware version information of a module Request 00 Address 1 247 01 Function code 0x46 02 Sub Function code 0x20 Response 00 01 02 03 04 05 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 01 46 20 52 79 Response 05 46 20 02 00 00 23 81 Address Function code Sub Function code Major version 0x00 OxFF Minor version 0x00 OxFF Build version 0x00 OxFF M 7065 User s Manual Ver2 0 Dec 2008 126 3 8 6 33 0x21 Set Digital Input Count Edge This sub function code is used to set the digital input counter trigger edge value of a module Request Address Function code Sub Function code Edge setting value 0x00 OxFF DIO DI7 Edge setting value 0x00 0xFF DI8 DI15 Edge setting value 0x00 OxFF DI16 DI23 Edge setting value 0x00 OxFF DI24 DI31 rising edge 0 falling edge For example 0x03 denotes that channels 0 1 are set as rising edge and channels 2 3 are set as falling edge Response 00 Address Ol Function code 02 Sub Function code 0 OK 03 Edge setting value Others Error Error Response 00 Address 01 Function code Refer to Modbus standard 02 Exception code for more detai
18. 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 2008 52 2 15 AALS Description Reads the status of the latched digital input channels Syntax AALS CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF L Command to read the latched status S 0 read the low latched status 1 read the high latched status Response Valid Command Data CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 53 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 0016 Response gt Sets DOI 2 to on DOO 3 to off Command 01C Response 01 Sends the command to clear the status of the latched digital input channels of module 01 and returns a valid response 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 2008 54 Command 01L1 Response 060000 Sends the command t
19. 2 0 Dec 2008 81 2 29 AA2 Description Reads the host watchdog timeout value of a module Syntax AA0 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 2 Command to read the host watchdog timeout value Response Valid Command AAEVV CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF E 1 the host watchdog is enabled 0 the host watchdog is disabled VV 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 2008 82 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 032 Response 03190 Reads the host watchdog timeout value of module 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 AAO 2 28 AAI 2 30 AA3EVV 2 31 AA4V gt 2 32 AASV M 7065 User s Manual Ver2 0 Dec 2008 83 2 30 AAJEVV Description Enables disables the host watchdog and sets the host watchdog timeout value of a module Syntax AA3EVV CHKSUM CR Delimiter character AA Address of the module to be set 00 to
20. 3 54 0x36 Set the Response Delay Time This sub function code is used to set modbus response delay time of a module Request 00 Address 01 Function code 02 Sub Function code 03 Response Delay Time Response 00 Address 01 Function code 02 Sub Function code 03 Response Delay Time Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 140 4 Modbus ASCII Protocol 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 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 CReLF combination The LRC characters are appended to the command preceding the CReLF characters Command Format Leading Module Character Address Command LRC CR LF Response Format Data LRC CR LF Address Leading Module Character LRC Calculation All characters except for Leading Character and delimiter CReLF 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 2008 141 Example Modbu
21. DD 00 set the digital output channel to off 01 set the digital output channel to on Response Valid Command gt CHKSUM CR Invalid Command AA CHKSUM CR Ignored Command CHKSUM CR M 7065 User s Manual Ver2 0 Dec 2008 34 gt Delimiter for a valid command Delimiter for an invalid command Ignored Delimiter character watchdog timeout has occurred the digital output channel s are set to safe value and the digital output value that was sent is ignored There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 02A201 Response gt Sets DO2 to on Related Commands Section 2 3 AAOO Data 2 4 AAOA Data 2 5 HAA1CDD 2 11 AA6 gt 2 19 AA 2 20 AA Data M 7065 User s Manual Ver2 0 Dec 2008 35 2 7 HAAN Description Reads the digital input counter of channel N Syntax FAAN CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF N The channel to be read 0 to F Response Valid Command Data CHKSUM CR Invalid Command 4AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command An invalid command is returned 1f the specified channel is incorrect Data Five decimal digits representing the digital input counter data of the specified channel 00000 to 65535 AA Address of the responding module 00 to FF
22. Description Clears the status of the latched digital input channels Syntax AAC CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF C Command to clear the status of the latched digital input channels Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 47 Examples Command 016 Response gt Sets DOI 2 to on DOO 3 to off Command 01C Response 01 Sends the command to clear the status of the latched digital input channels of module 01 and returns a valid response 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 Related Commands Section 2 15 AALS M 7065 User s Manual Ver2 0 Dec 2008 48 2 13 SAACN Description Clears the digital input counter of channel N Syntax AACN CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF C Command to clear the digital input counter N The channel to be cleared 0 to F Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR
23. FF 3 Command to set the host watchdog 1 enable the host watchdog 0 disable the host watchdog VV 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 Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF M 7065 User s Manual Ver2 0 Dec 2008 84 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 013164 Response 01 Enables the host watchdog of module 01 and sets the host watchdog timeout value to 10 0 seconds The module returns a valid response Command 012 Response 01164 Reads the host watchdog timeout value of module 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 AAO 2 28 AAI 2 29 AA2 2 31 AA4V 2 32 AASV M 7065 User s Manual Ver2 0 Dec 2008 85 2 31 AA4V Description Reads the power on DO value or the safe DO value of a module Syntax AA4V CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 4 Command to read the power on DO value or the safe DO value V P Power On Value S
24. HKSUM CR Delimiter character Fak Synchronized sampling command Response 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 2008 24 Sends a command to read the synchronized data The status byte of the response is 1 which means that 1t 1s the first time the synchronized data has been read after the previous command Digital Output Ox0C Digital Input 0x03 Command 014 Response 00C0300 Sends a command to read the synchronized data The status byte of the response is 0 which means that it is NOT the first time the synchronized data has been read after the previous command Digital Output Ox0C Digital Input 0x03 Related Commands Section 2 9 AA4 M 7065 User s Manual Ver2 0 Dec 2008 25 2 3 AA00 Data Description Sets the digital output value of the lower eight channels DO0 DO7 Syntax AA00 Data CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 00 Command to set the digital output value of the lower eight channels DO0 DO7 Data A two digit hexadecimal value where bit 0 corresponds to DOO bit 1 corresponds to DOI etc When the bit is 1 it denotes that the digital output channel is on and 0 denot
25. 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 1 Table of Contents 1 EntroduC ons nina ns da 5 IT More Informations first A aia dao den 6 L Pin ASSIGNMENT AA A baste th en A et aes 7 153 Spe tiications AAA ES 8 LAC BLOCK DIASTAM A ER A aa 9 Lido WIFE CONNeCHOM A 10 PO LI A A O 11 1 7 Default a a 16 1 8 Configuration Tables ss 16 1 9 DIO Data Format Table ss 17 2 DCON Protocol A elie ds Ri eka Oo se ea ay 18 O PAANNTTCCF F craken O 22 a N T ARR ENA 24 2 3 RARO DAA A A A AAA RER 26 24 IA A LT 29 DAA Ra 32 AA A O A O yen pave esse oes 34 DEAN A A A A A A idad 36 2 ODA AE a TT ne 38 A At M ee AR Ak Yael aul and baa a E ne
26. OFF 1 247 Ox0F The value is the same as byte 02 and 03 of the Request 0x0001 0x0020 M 7065 User s Manual Ver2 0 Dec 2008 116 Error Response Refer to Modbus standard for more details Examples Command 05 OF 00 A1 00 03 01 07 72 BF Response 05 OF 00 Al 00 03 45 AC Sets Safe value DO1 DO3 Command 05 OF 00 00 00 03 01 FF CE E4 Response 05 OF 00 00 00 03 14 4E Sets DO value DOO DO3 Command 01 OF 02 00 00 08 01 FF BF 37 Response 01 OF 02 00 00 08 55 B5 Clear DI count DIO DI7 M 7065 User s Manual Ver2 0 Dec 2008 117 Supported modules M 7065 DO 0x0000 0x0005 Valid starting Clear DI Count Value 0x0200 0x0203 channel Safe Value 0x0080 0x0085 Power On Value 0xOOA0 0x00A5 M 7065 User s Manual Ver2 0 Dec 2008 118 3 8 46 0x46 Read Write module settings This function code is used to read the settings of the module or change the settings of the module The following sub function codes are supported Sub Function code Description Section 00 0x00 Read the module name 3 8 1 04 0x04 Set the module address 3 8 2 05 0x05 Read the communication settings 3 8 3 06 0x06 Set the communication settings 3 8 4 32 0x20 Read the firmware version 3 8 5 33 0x21 Set the DI count edge 3 8 6 34 0x22 Read DI count edge setting value 3 8 7 39 0x27 Set the DO power on value 3 8 8 40 0x28 Read the DO power on value 3 8 9 41 0x29 Set the DI O active stat
27. P1 Response 01 Sets the communication protocol of module 01 to 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 SAAP M 7065 User s Manual Ver2 0 Dec 2008 61 2 19 MAA Description Reads the status of the digital input output ports Syntax AA CHKSUMI CR Delimiter character AA Address of the module to be set 00 to FF Response Valid Command gt Data CHKSUM CR Invalid Command AA CHKSUMTI CR gt Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF Data Status of the digital input output ports a four digit hexadecimal value 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 2008 62 Examples Command 02 Response gt 0FOF Reads the digital input output port status of module 02 and returns gt 030F which denotes that RL1 RL2 RL3 and RL4 are on and IN1 IN2 IN3 and IN4 are on Related Commands Section 2 3 AA00 Data 2 4 AAOA Data 2 5 AAIcDD 2 6 AAAcDD 2 11 AA6 2 20 AA Data Related Topics Section 1 2 M 7065 User s Manual Ver2 0 Dec 2008 63
28. Response Delay Time of a module Syntax AARD CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF RD Command to read the Response Delay Time of a module 0 30 in 1ms Response Valid Command AA Data CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command 2 Delimiter for an invalid command AA 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 2008 92 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 Oms Related Commands Section 2 33 AARDvv M 7065 User s Manual Ver2 0 Dec 2008 93 3 Modbus RTU Protocol The Modbus protocol is developed by Modicon Inc originally developed for Modicon controllers Detailed information can be found at http www modicon com techpubs toc7 html You can also visit http www modbus org to find more valuable information Address Mapping Address Description Attribute Digital Output Channel R W Digital Input Channel Digital Input Channel High Latched DI O Channels AYA IA Z Low Latched DI O Channels Safe Value R W Power On Value R W Module address valid range 1 247 R W bits
29. TTCCFF 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 Type code should be 40 for DIO module CC Baud Rate code should be OA for DIO FF 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 AA Address of the module in hexadecimal format 00 to FF M 7065 User s Manual Ver2 0 Dec 2008 22 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 0101400A80 Response 01 Sets the counter update Rising Edge FF Sets the counter update 80 Sets the counter update Rising Edge 00 Sets the counter update Falling Edge Command 0101400A00 Response 01 Sets the counter update Falling Edge FF Sets the counter update 80 Sets the counter update Rising Edge 00 Sets the counter update Falling Edge Related Commands Section 2 8 SAA2 2 24 AAI 2 25 AATnn Related Topics Section 1 1 Configuration Tables M 7065 User s Manual Ver2 0 Dec 2008 23 2 2 Description When the command is received 1t will allow all modules to read data and will store the data for later retrieval Syntax C
30. 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 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 2008 6 1 2 Pin Assignment O9 TE ON TE HOOZTH ON ETY MODE TA ON PTY WOOT ON STY WOOSTY oz 1 7065 1 7065D 1 7065A 1 7065B DO he M 7065 User s Manual Ver2 0 Dec 2008 7 1 3 Specifications Counters 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 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 AC 250V 5A Contact Rating DC 30V 5A Operating Time Max 6ms Release Time Min 3ms Surge Strength 4 000VAC Insulation Resistance 1000MOhms min at 500VDC Mechanical 20 X 1016 OPS
31. active status A A Reserved OAS IAS Key Description OAS DO Active Status 0 output value 1 for relay active output value O for relay inactive 1 output value 0 for relay active output value 1 for relay inactive IAS DI Active Status 0 input value 1 for non signal or the low voltage input value O for high voltage 1 input value O 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 2008 71 2 24 AAI Description The Soft INIT command is used to enable modification of the Baud Rate and checksum settings using software only Syntax AAI CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF I Command to set the Sort INIT Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 72 Examples Command 031 Response 03 Sets Soft INIT Command 0303400700 Response 03 Attempts to change the Baud Rate of module 03 to 19200 without first adjusting the INIT pin The module returns an invalid reponse because
32. and 02D03 Response 02 Sets DI O active status Command 02D Response 0203 Reads DI O active status Fico ae Se MO Reserved OAS IAS Key Description DO Active Status 0 output value 1 for relay active OAS output value O for relay inactive 1 output value 0 for relay active output value 1 for relay inactive DI Active Status 0 input value 1 for non signal or the low voltage IAS input value 0 for high voltage 1 input value O for non signal or the low voltage input value 1 for high voltage DIO Active Status Related Commands Section 2 23 AADVV M 7065 User s Manual Ver2 0 Dec 2008 69 2 23 AADVV Description Sets Digital I O Active status Syntax AADVV CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF D Command to set the DI O active status VV A two digit hexadecimal value indicating the DI O active status Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 70 Examples Command 02D03 Response 02 Sets DI O active status Command 02D Response 0203 Reads DI O
33. asons then we will lose the key stroke information However with the read latched digital input command we can still get the key stroke information even we are not able to send command in B period For details of the read latched digital input command please refer to Sections 2 13 M 7065 User s Manual Ver2 0 Dec 2008 147
34. bers 0x0001 0x0020 04 05 Input channel number Bit count Response 00 Address Ol Function code Byte count of response 02 Byte Count B bit count 7 8 03 Bit values Bit values Error Response 00 Address 01 Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 101 Examples Command 05 02 00 00 00 04 78 4D Response 05 02 01 OF EO BC Reads digital iutput value Command Byte 2 3 00 00 starting channel numbers Byte 4 5 00 04 input channel number Byte 6 7 78 4D CRC Response Byte 1 02 Function Code Byte 2 01 Byte count of response Byte 3 OF DIO DI3 Value Supported modules M 7065 Valid Starting DI 0x0000 0x0003 channel M 7065 User s Manual Ver2 0 Dec 2008 102 3 3 03 0x03 Read multiple registers This function code is used to read the current digital input counter value Request 00 Address 01 Function code Reads DI count value 0x0000 0x001F Reads module address 0x01E4 Reads firmware version 0x01E0 Starting channel Reads module 02 03 numbers or address name 0x01E2 mapping Reads modbus delay response time 0x01E7 Reads timeout count Ox01EB Reads timeout value Ox01E8S Host OK 0x3038 0x0001 0x0020 04 05 Input channel number Word count M 7065 User s Manual Ver2 0 Dec 2008 103 Response 01 Function code Byte count of response 02 Byte Count 1 Byte B
35. d Digital Output OxOF Command 014 Response 0053 F00 Reads the synchronized data for module 01 The module returns the synchronized data and sets thestatus byte to O to indicate that the synchronized data has been read Digital Output 0x05 Digital Input Ox3F M 7065 User s Manual Ver2 0 Dec 2008 41 Related Commands Section 2 2 M 7065 User s Manual Ver2 0 Dec 2008 42 2 10 AA5 Description Reads the reset status of a module Syntax AA5 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 5 Command to read the module reset status Response Valid Command AAS CHKSUM CR Invalid Command AA CHKSUMI CR Delimiter for a valid command 2 Delimiter for an invalid command AA Address of the responding module 00 to FF S Reset status of the module 1 This is the first time the command has been sent since the module was powered on O 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 2008 43 There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 015 Response 011 Reads the reset status of module 01 The response shows that it is the first time the AAS command has been sen
36. dule max 6 characters Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address M 7065 User s Manual Ver2 0 Dec 2008 66 Examples Command 01M Response 017065 Reads the name of module 01 and returns the name 7065 Command 010M7065 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 2008 67 2 22 AAD Description Reads Digital I O Active status Syntax AAD CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF D Command to read the DI O active status Response Valid Command AAVV CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF VV A two digit hexadecimal value indicating the DI O active status There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address M 7065 User s Manual Ver2 0 Dec 2008 68 Examples Comm
37. e 00 to FF S The protocols supported by the module 0 DCON 1 DCON and Modbus RTU 3 DCON and Modbus RTU ASCII C 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 2008 58 0 DCON 1 Modbus RTU 3 Modbus ASCII There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 01P Response 0130 Reads the communication protocol of module 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 2008 59 2 18 SAAPN Description Sets the communication protocol Syntax A AP CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF P Command to set the communication protocol N 0 DCON 1 Modbus RTU 3 Modbus ASCII Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples M 7065 User s Manual Ver2 0 Dec 2008 60 Command 01
38. e shown The tool bars are used to set the COM port environment search for connected modules data logs etc FJ DCON Utility Yer 4 3 6 Fie COM Port Search Run Tenminal Help P The Found Out I 7000 8000 module Baa clic m Module Address Baudiate Alam Checksum Description 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 Searching Status COM Port COM 1 Address 00fdecl hex Baud Rate 9600 M 7065 User s Manual Ver2 0 Dec 2008 12 e 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 Field O Field O Field Field O Field n Field n Module Address Configuration field CRC16 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 OF BB F9 The supported DI O commands are as follows Function code Descri
39. e DI O active states of a module Request 00 Address Ol Function code 02 Sub Function code 03 DI O Active Status 0x00 0x03 7 6 5 4 3 2 1 0 Reserved OAS IAS Key Description DO Active Status 0 output value 1 for relay active OAS output value O for relay inactive 1 output value O for relay active output value 1 for relay inactive DI Active Status 0 input value 1 for non signal or the low voltage IAS input value 0 for high voltage 1 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 2008 134 Response 00 Address Ol Function code 02 Sub Function code 0 OK 03 DI O Active Status Others Error Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples 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 2008 135 3 8 11 42 0x2A Read DI O Active Status This sub function code is used to read the DI O active states of a module Request 1 247 0x46 0x2A Address Function code Sub Function code DI O Active Status 0x00 0x03 Refer to Modbus standard for more details Examples Command 01 46 29 02 7E 5C R
40. ed 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 gt 01 46 00 12 60 Modbus ASCII gt 014600B9 CReLF 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 15 1 7 Default Settings Default settings for the M 7065 modules are as follows e Protocol DCON e Module Address O1 e Baud Rate 9600 bps n 8 1 e Checksum Disabled 1 8 Configuration Tables Baud Rate Setting CC 7 6 5 4 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 0 8 1 Baud Rate Code bitO0 bit5 Code 03 04 05 06 07 08 09 OA Baud s 1200 2400 4800 9600 19200 38400 57600 115200 ate Type Code TT For M 7065 DIO modules the type code is fixed to 40 M 7065 User s Manual Ver2 0 Dec 2008 16 Data Format Setting FF 7 6 5 4 3 2 1 0 CU CS reserved reserved Key Description Checksum Setting CS 0 Disable 1 Enable Count Update 0 The counter is updated when there is a falling edge in CU the input signal 1 The cou
41. es that the digital output channel is off Response Valid Command gt CHKSUM CR Invalid Command AA CHKSUM CR Ignored Command CHKSUM CR gt Delimiter for a valid command Delimiter for an invalid command Ignored Delimiter character M 7065 User s Manual Ver2 0 Dec 2008 26 A host watchdog timeout has occurred the digital output channel s are set to safe value and the digital output value that was sent is ignored 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 010006 Response gt Sets DOO DO3 to off DOI DO2 to on and the module returns a valid response Command 010016 Response gt Sets DOO DO3 to off gt DOI DO2 to on DO6 DO7 DOS to off gt DOS to on Command 010005 Response Host Watchdog Timeout M 7065 User s Manual Ver2 0 Dec 2008 27 Related Commands Section 2 4 AAOA Data 2 5 AAIcDD 2 6 AAAcDD 2 11 AA6 2 19 AA 2 20 AA Data M 7065 User s Manual Ver2 0 Dec 2008 28 2 4 FAA0A Data Description Sets the digital output value DOO DO31 Syntax FAA0A Data CHKSUMI CR Delimiter character AA Address of the module to be set 00 to FF OA Command to set the digital output value DO0 D031 AAOA Data DOO DO7 AAOB Data DOS DO15 FAAOC Data DO16 DO23 AAOD Data DO24 DO31 Data A two di
42. esponse 01 46 29 00 FF 9D Sets the DI O active states M 7065 User s Manual Ver2 0 Dec 2008 136 Command 01 46 2A 93 BF Response 01 46 2A 02 7E AC Reads the DI O active states TRA NA AR Reserved OAS IAS Key Description DO Active Status 0 output value 1 for relay active OAS output value O for relay inactive 1 output value O for relay active output value 1 for relay inactive DI Active Status 0 input value 1 for non signal or the low voltage IAS input value 0 for high voltage 1 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 2008 137 3 8 12 53 0x35 Read the Response Delay Time This sub function code is used to read modbus response delay time of a module Request 00 Address 1 247 01 Function code 0x46 02 Sub Function code 0x35 Response 00 01 02 03 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 01 46 36 1E 77 AS Response 01 46 36 1E 77 AS Sets modbus response delay time 30ms Address Function code Sub Function code Response Delay Time M 7065 User s Manual Ver2 0 Dec 2008 138 Examples Command 01 46 35 D2 77 Response 01 46 35 1E 77 55 Reads modbus response delay time 30ms M 7065 User s Manual Ver2 0 Dec 2008 139 3 8 1
43. g in harsh or noisy environments the module may be shut down by external signals The circuit allows the module to work continuously without disruption The Host Watchdog is a software function that monitors the operating status of the host Its purpose is to prevent problems due to network communication errors or host malfunctions When a host watchdog timeout occurs the module will reset all outputs to a safe state in order to prevent any erroneous operations of the controlled target 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 2008 144 A 3 Reset Status The reset status of a module is set when the module is powered on or when the module is reset by the module watchdog It is cleared after the responding of the first SAAS command This can be used to check whether the module had been reset When the AA5 command responds that the reset status is cleared that means the module has not been reset since the last SAAS command was sent When the AA5 command responds that the reset status is set and it is not the first time SAAS 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 2008 145 A 4 Digital Output Besides setting by the set digital output commands the digital outputs can be set by two other conditions When the
44. git hexadecimal value where bit 0 corresponds to DOO bit 1 corresponds to DOI 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 2008 29 Response Valid Command gt CHKSUM CR Invalid Command AA CHKSUM CR Ignored Command CHKSUM CR gt Delimiter for a valid command Delimiter for an invalid command Ignored Delimiter character watchdog timeout has occurred the digital output channel s are set to safe value and the digital output value that was sent is ignored 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 gt Sets DOO to off gt DOI DO2 DO3 to on Command 010A06 Response Host Watchdog Timeout M 7065 User s Manual Ver2 0 Dec 2008 30 Command 010A0F Response gt Sets DOO DOI DO2 DO3 to on Command 020A00 Response gt Sets DOO gt DOI DO2 DOS to off Related Commands Section 2 3 AAOO Data 2 5 AAIcDD 2 6 AAAcDD 2 11 AA6 2 19 AA 2 20 AA Data M 7065 User s Manual Ver2 0 Dec 2008 31 2 5 AAIcDD Description Sets a single digital output channel of the lower eight channels Syntax AA1cDD CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF l Com
45. he communication protocol settings of a module Request 00 Address Ol Function code 02 Sub Function code 03 Reserved Response Address Function code Sub Function code 0 1 Modbus RTU 3 Modbus RTU ASCII Protocol support Baud Rate Reserved Reserved 0 DCON 1 Modbus RTU 3 Modbus ASCII Protocol Mode Reserved 0x00 0x00 M 7065 User s Manual Ver2 0 Dec 2008 122 Error Response Refer to Modbus standard for more details Examples Command 02 46 05 00 Response 02 46 05 03 OA 00 00 00 01 00 00 6B 12 Reads protocol M 7065 User s Manual Ver2 0 Dec 2008 123 3 8 4 06 0x06 Set Communication This sub function code is used to set the communication protocol of a module Request Address Function code Sub Function code Reserved Baud Rate Reserved Reserved DCON Protocol Mode Modbus RTU Modbus ASCII Reserved 0x00 0x00 Response 00 Address 01 Function code 02 Sub Function code 03 Reserved 04 Baud Rate M 7065 User s Manual Ver2 0 Dec 2008 124 Others Error 05 Reserved 0 OK 06 Others Error 07 Reserved 0 OK 08 Protocol Mode Others Error 09 10 Reserved 0x00 0x00 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 02 46 06 00 09 00 02 00 03 00 00 D4 F7 Response 02 46 06 00 00 00 00
46. host watchdog is enabled and a host watchdog timeout occurs the safe value is loaded into the digital output ports The set digital output commands have no effect on the digital output ports until the host watchdog timeout status is cleared The host watchdog timeout status is saved in the EEPROM The status is not changed even after power on reset It can be cleared only by the reset host watchdog timeout status command AA1 See Section A 2 for host watchdog details When the module is powered on and the host watchdog timeout status is cleared the power on value is loaded into the digital output ports If the host watchdog timeout status is not cleared on power on then the safe value is loaded into the digital output ports 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 2008 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 switch which is connected to the digital input channel of a module the input signal of the key stroke is a pulse signal as shown in the following figure If we just use the read digital input status command to read the signal and we cannot send the command during the B period due to some re
47. ls M 7065 User s Manual Ver2 0 Dec 2008 127 Examples Command 01 46 21 FF B8 1D Response 01 46 21 00 F8 5D Sets digital input count edge Rising edge Examples Command 01 46 22 92 79 Response 01 46 22 FF B8 ED Reads digital input count edge M 7065 User s Manual Ver2 0 Dec 2008 128 3 8 7 34 0x22 Read Digital Input Count Edge This sub function code is used to read the digital input counter trigger edge value of a module Request 00 Address 1 247 Ol Function code 0x46 02 Sub Function code 0x22 Response Address Function code Sub Function code 0x00 0xFF DIO DI7 Edge setting value Edge setting value 0x00 OxFF DIS DI15 Edge setting value 0x00 OxFF DI16 DI23 Edge setting value 0x00 OxFF DI24 DI31 rising edge 0 falling edge For example 0x03 denotes that channels 0 1 are set as rising edge and channels 2 3 are set as falling edge Error Response 00 Address 01 Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 129 Examples Command 05 46 21 3F B9 7D Response 05 46 21 00 F9 6D Sets DIO DI5 count edge Rising edge Examples Command 05 46 22 D3 B8 Response 05 46 22 3F B9 8D Reads digital input count edge M 7065 User s Manual Ver2 0 Dec 2008 130 3 8 8 39 0x27 Set Power on Value This sub function
48. mand to set a single digital output channel of the lower eight channels c Specifies the digital output channel to be set 0 to 7 DD 00 set the digital output channel to off 01 set the digital output channel to on Response Valid Command gt CHKSUM CR Invalid Command AA CHKSUM CR Ignored Command CHKSUM CR gt Delimiter for a valid command 2 Delimiter for an invalid command Ignored Delimiter character M 7065 User s Manual Ver2 0 Dec 2008 32 watchdog timeout has occurred the digital output channel s are set to safe value and the digital output value that was sent is ignored There will be no response if the command syntax 1s incorrect there is a communication error or there is no module with the specified address Examples Command 02 1001 Response gt Sets DOO to on Command 02 1401 Response gt Command 021301 Response gt Sets DO3 to on Related Commands Section 2 3 AAOO Data 2 4 AAOA Data 2 6 AAAcDD 2 11 AA6 2 19 AA 2 20 AA Data M 7065 User s Manual Ver2 0 Dec 2008 33 2 6 FAAACDD Description Sets a single digital output channel DOO DO31 Syntax FAAACDD CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF A Command to set a single digital output channel DOO DO31 AAAcDD DOO DO7 AABcDD DO8 DOIS AACcDD DO16 DO23 AADcDD DO24 DO31 c Specifies the digital output channel to be set 0 7
49. mapping byte 02 and 03 of the Request 04 05 Register value Register value Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 114 Examples Command 05 06 01 E7 00 10 38 49 Response 05 06 01 E7 00 10 38 49 Sets modbus response delay time 0 30 in 1ms Command Byte 2 3 01 E7 Address mapping Byte 4 5 00 10 delay 16 ms Response Byte 1 06 Function Code Command 05 06 01 E8 00 C8 08 10 Response 05 06 01 ES 00 C8 08 10 Sets host watchdog timeout value 0 255 in 0 1s Command 09 06 01 EB 00 00 F9 4A Response 09 06 01 EB 00 00 F9 4A Clear host watchdog timeout count M 7065 User s Manual Ver2 0 Dec 2008 115 3 7 15 0x0F Write multiple coils This function code is used to write the digital output value Request Address Function code Starting channel numbers Output channel number Byte Count Output value Response 00 Address 01 Function code Starting channel 02 03 numbers 04 05 Input channel number e DO 0x0000 0x001F O Clear DI count value 0x0200 0x021F O Safe Value 0x0080 0x009F O Power On Value Ox00A0 Ox00BF 0x0001 0x0020 Bit count B bit count 7 8 A bit corresponds to a channel When the bit is 1 it denotes that the value of the channel that was set is ON If the bit is 0 it denotes that the value of the channel that was set is
50. mmand 05 05 01 03 00 00 3D B2 Response 05 05 01 03 00 00 3D B2 Sets host watchdog mode Mode 0 Command 05 05 01 04 FF 00 CD 83 Response 05 05 01 04 FF 00 CD 83 Sets host watchdog enable Command 05 05 01 OD FF 00 1D 81 Response 05 05 01 OD FF 00 1D 81 Clear host watchdog status Command 05 05 01 00 FF 00 8C 42 Response 05 05 01 00 FF 00 8C 42 Sets protocol Bit 0 Command M 7065 User s Manual Ver2 0 Dec 2008 112 Byte 2 3 01 00 Protocol Bit 0 Byte 4 5 FF 00 Protocol bit1 bit0 11 01 00 Modbus ASCII Modbus RTU DCON Command 05 05 01 01 FF 00 DD 82 Response 05 05 01 01 FF 00 DD 82 Sets protocol Bit 1 Command Byte 2 3 01 01 Protocol Bit 1 Byte 4 5 FF 00 Protocol bit1 bit0 11 01 00 Modbus ASCII Modbus RTU 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 2008 113 3 6 06 0x06 Write multiple registers This function code is used to set the settings of the module Request 00 Address Ol Function code O Sets modbus reponse delay time 0x01E7 O Clear watchdog timeout count OxO1EB O Sets watchdog timeout value OxO1E8 02 03 Address mapping 04 05 Register value Register value Response 00 Address Ol Function code The value is the same as 02 03 Address
51. nabled See Sections 1 1 Data Format Setting for details CR End of command character carriage return Ox0D M 7065 User s Manual Ver2 0 Dec 2008 18 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 OFFh Example Command string 012 CR 1 Sum of the string 0 1 2 24h 30h 3 1h 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 POP 1720 40 46 40 0 21h 30h 3 1h 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 19 General Command Sets EA 4 M 7065 User s Manual Ver2 0 Dec 2008 20 Host Watchdog Command Sets Response Description Section No Response Host OK 2 26 lAASS Reads the Status 2 27 IAA Resets the Status 2 28 lAAVV 2 29 IAA Sets the Timeout Settings 2 30 AA Data 2 31 IAA Sets the PowerOn Safe Value 2 32 IAA Sets the Response Delay Time 2 33 AA Data 2 34 M 7065 User s Manual Ver2 0 Dec 2008 21 2 1 AANNTTCCFF Description Sets the configuration of a module Syntax AANN
52. nter 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 A ALS 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 17 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 Module Character Address Command CHKSUM CR Response Format Leading Module Character Address Data CHKSUM CR CHKSUM 2 character checksum which is present when the checksum setting is e
53. o 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 1 2 M 7065 User s Manual Ver2 0 Dec 2008 55 2 16 SAAM Description Reads the name of a module Syntax AAM CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF M Command to read the module name Response Valid Command AA Data CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 56 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 2008 57 2 17 SAAP Description Reads the communication protocol information Syntax AAP CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF P Command to read the communication protocol Response Valid Command AASC CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command de Delimiter for an invalid command AA Address of the responding modul
54. ption 0x01 Read coils 0x02 Read discrete inputs 0x03 Read multiple registers 0x04 Read multiple input registers 0x05 Write single coils OxOF Write multiple coils M 7065 User s Manual Ver2 0 Dec 2008 13 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 Ox0F from channels 0 to 4 the following command should be sent 01 OF 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 Leading Module Command LRC CR LF Character Address Response Format Leading Module D LR R LF Character Address a PRO S 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 2008 14 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 CReLF combination The LRC characters are appended to the command preceding the CReLF characters LRC Calculation All characters except for Leading Character and delimiter CReLF are add
55. s RTU gt 01 46 00 12 60 Modbus ASCII gt 014600B9 CR LF 1 hexadecimal 01h 46h 00h 47h 2 2 s complement B9h LRC M 7065 User s Manual Ver2 0 Dec 2008 142 A Appendix A 1 INIT Mode The M 7065 module has a build in EEPROM to store configuration information such as module address type code Baud Rate etc Occasionally the configuration of a module may be forgotten and there are no visual indications of the configuration of the module It is difficult to communicate with the module when the configuration of the module is unknown 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 1 Address 00 2 Baud Rate 9600pbs n 8 3 No checksum 4 Protocol DCON The configuration information stored in the EEPROM is not changed and can be read by sending the 002 CR command at 9600bps There are commands that require the module to be in INIT mode They are 1 AANNTTCCFF when changing the Baud Rate and checksum settings See Section 2 1 for details 2 AAPN see Section 2 18 for details M 7065 User s Manual Ver2 0 Dec 2008 143 A 2 Dual Watchdog operation Dual Watchdog Module Watchdog Host Watchdog The Module Watchdog is a hardware reset circuit that monitors the operating status of the module While workin
56. se gt Sets DOO DOI DO2 to on gt DO3 to off Command 035P Response 03 Sets the power on DO value and the module returns a valid response Command 03F Response gt Sets DOO DOI 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 2008 89 2 33 AARDvv Description Sets the Response Delay Time of a module Syntax AARDvv CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF RD Command to set the Response Delay Time of a module VV Response Delay Time 0 30 in Ims Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUMTI CR Delimiter for a valid command 2 Delimiter for an invalid command AA 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 2008 90 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 Oms Related Commands Section 2 34 AARD M 7065 User s Manual Ver2 0 Dec 2008 91 2 34 AARD Description Reads the
57. st watchdog is disabled and no host watchdog timeout has occurred M 7065 User s Manual Ver2 0 Dec 2008 78 Command 030 Response 0380 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 AAI 2 29 AA2 2 30 AA3EVV 2 31 AA4V 2 32 AASV M 7065 User s Manual Ver2 0 Dec 2008 79 2 28 AA1 Description Resets the host watchdog timeout status of a module Syntax AA1 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF l Command to reset the host watchdog timeout status Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 80 Examples Command 030 Response 0304 Reads the host watchdog status of module 03 and shows that a host watchdog timeout has occurred 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 AAO 2 29 AA2 2 30 AA3EVV 2 31 AA4V 2 32 AASV M 7065 User s Manual Ver
58. t since the module was powered on Command 015 Response 010 Reads the reset status of module 01 The response shows that there has been no module reset since the last AAS command was sent M 7065 User s Manual Ver2 0 Dec 2008 44 2 11 AA6 Description Reads the status of the digital input output channels Syntax A A6 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 6 Command to read the digital input output channels Response Valid Command Data CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA Address of the responding module 00 to FF Data Status of the digital input output channels a four digit hexadecimal value followed by 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 2008 45 Examples Command 016 Response 1F0000 Reads the digital input output channel status of module 01 Digital Output Ox 1F Command 016 Response 070F00 Reads the digital input output channel status of module 01 Digital Output 0x07 Digital Iutput OxOF Related Commands Section 2 3 AA00 Data 2 4 AAOA Data 2 5 AAIcDD 2 6 AAAcDD 2 19 AA 2 20 AA Data M 7065 User s Manual Ver2 0 Dec 2008 46 2 12 SAAC
59. the soft INIT timeout value is 0 Command 03T10 Response 03 Set the soft INIT time out value of module 01 to 16 seconds and returns a valid response Command 031 Response 03 Set the Soft INIT of module 01 and return a valid response M 7065 User s Manual Ver2 0 Dec 2008 73 Command 0301400740 Response 03 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 2008 74 2 25 AATnn Description Sets the soft INIT timeout value Syntax AATnn CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF T Command to set the Sort INIT timeout value nn Two hexadecimal digits representing the time out value in seconds The maximum timeout value is 60 seconds Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command AA 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 2008 75 2 26 Description Informs all modules that the host is OK Syntax CHKSUMI CR Delimiter character aS Host OK command Response No response Examples Command
60. ts 40 A nr RS on ce cd pou Gane San ve 43 2AT JAAG a ST E ts 45 2 T2 PAA O Re RG er Te A Re en O 47 LA Ns 49 O Te ee tant ented ele 51 DI DATS A A er te cena aa adie hata de ates 53 DMG DAME sah sce dase A ee te ae 56 M 7065 User s Manual Ver2 0 Dec 2008 2 27 SAAP mets A ne A ns 58 ZAS SAAPNG Caseig rune a a Rs nr cu ne 60 219 OAA RAS let TOA EA te 62 2 20 NI A ARAS 64 2 21 ARONA NO soci 38 A A ld 66 AT Y A OS 68 2 23 SAADVV nine ent tie 70 2 24 SAAT AS 72 2 29 SAAD NN ssl At EN aa rh en dE 75 AA TE se eRe EE aT Tete NAS ee CRP aT PNA ne a a ee ci 76 DARA it esse en En entr ae 77 226 NS 80 Dl DAA VER TEA EE E OE EE A E E E AE 82 230 a AAA A O 84 Di Dd SBA A ia 86 2 92 AN 88 DIVARARID VA sell aes A Aide 90 204 SAARD Es Re end a hd al Jatt 92 39 Modbus RTU Prot CO Laa 94 3 1 OT OXOT Read COUS air ta ivi tas 97 3 2 02 0x02 Read discrete inputs ss 101 3 3 03 0x03 Read multiple registers ss 103 3 4 04 0x04 Read multiple registers ss 107 3 5 05 0x05 Write single coll eierniie naesten tonteras loas jan et 110 3 6 06 0x06 Write multiple registers ss 114 3 7 15 0x0F Write multiple coils ss 116 3 8 46 0x46 Read Write module settings ss 119 3 8 1 00 0x00 Read Module Name 120 M 7065 User s Manual Ver2 0 Dec 2008 3 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
61. us 3 8 10 42 Ox2A Read the DI O active status 3 8 11 53 0x35 Read the response delay time 3 8 12 54 0x36 Set the response delay time 3 8 13 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 119 3 8 1 00 0x00 Read Module Name This sub function code is used to read the name of a module Request 00 Address 1 247 Ol Function code 0x46 02 Sub Function code 0x00 Response 00 01 02 03 06 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details Examples Command 05 46 00 53 Al Response 05 46 00 00 70 65 00 6A 2D Address Function code Sub Function code 0x00 0x70 0x65 0x00 for M 7065 Module name M 7065 User s Manual Ver2 0 Dec 2008 120 3 8 2 04 0x04 Set Module Address This sub function code is used to set the address of a module Request 00 Address 01 Function code 02 Sub Function code 03 Address 04 06 Reserved 0x00 0x00 0x00 Response 00 Address Ol Function code 02 Sub Function code 0 OK 03 Address Others Error 04 06 Reserved 0x00 0x00 0x00 Error Response 00 Address Ol Function code Refer to Modbus standard 02 Exception code for more details M 7065 User s Manual Ver2 0 Dec 2008 121 3 8 3 05 0x05 Read Communication This sub function code is used to read t

Download Pdf Manuals

image

Related Search

Related Contents

Installation Manual  Manual de instrucciones GDA300  ノ〟ノク/ククノノ@ 取扱説明書  Oasys ADC - Oasys Software  NEC MultiSync® LCD2690WUXi    Tc-ー 〝。H 取扱説明書  らくらくスタートブック  STIGA PARK    

Copyright © All rights reserved.
Failed to retrieve file