Home

I-7021 - ICP DAS

image

Contents

1. CHKSUM A 2 character checksum which is present when the checksum setting is enabled See Sections 1 11 Data Format Setting and 2 1 for details CR End of command character carriage return 0x0D 48 I 7021 22 24 M 7022 24 User Manual Rev B2 1 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 Pe 12000600 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 01200600A A CR Note All characters should be in upper case I 7021 22 24 M 7022 24 User Manual Rev B2 1 49 Command ction Reads the module configuration Reads the module reset status H N gt gt Nn NT mI gt gt Nn BE IS oo RE AA Data Reads the module name t AASC Reads the communication protocol Sets the communication protocol Sets the module name Command ction Faaa ina AA NTN WEN ane EX fae Sem cen Eon Econ call cal Ezal 5S gt gt gt gt Iris gt gt gt gt
2. ccccccccccccsssssesststteeeeees 173 As TEOUDIG SIOOUIINE ses G og sles Areca Melati E AE cence Aad a ERa 175 4 1 Communicating with the module eeeeeeeeeee 176 V AN 0 23 OE D SAAE SER REE oR en a RE RO eee ER PU rt 177 PSM IND Moduron ats cates cae ues use diabnca dotee ataaeanelen 177 A 2 Dual Watchdog Operation ccssssccscececeeeeeseesennes 179 A 3 Module Output Status 0 cceeeccesssscceceeeeceeeeeeseesenes 180 AA Reset Stattsricnn cot oh cape let nhl eaa a E ier a tetas 181 Pc Analog QU ses aa e eias 182 A 6 Slew Rate Control s seesseeeeeessesseeeessseerrssssesrreesssseeeese 184 4 I 7021 22 24 M 7022 24 User Manual Rev B2 1 A 7 Analog Output Read back ccccssssscccececeeeeeeeeeesenes A S Frame Ground ereen e e ee Soest ta dud mses A 9 Node Information Area e eessesseesseeseesseesssesseessssseesse I 7021 22 24 M 7022 24 User Manual Rev B2 1 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
3. 10UT TE VOUT L 1S Load Note To have voltage readback the IOUT and IOUT terminals should be short circuited oC 10UT 08 tout OS vouT Load sE oS vout w S 18 10uT oS 10uT e Ext PWR A JPI 1 7 2 Wiring diagram for the l 7024 l 7024R M 7024 and M 7024R 08 Voutx oy DS acnp oS Dix o OS B enp 22 1 702 1 22 24 M 7022 24 User Manual Rev B2 1 1 7 3 Wiring diagram for the M 7024U Voltage Output i oS acnp Current Output 1S Toutx 0S AGND ON State OFF State Digtal Input counter g DIx o DIx Dry Contact Source be DGND 4 DGND ON State OFF State Dial output gt Open Collector Sink CULOAR 963 Dox LoD H 16 Dox pe O8 DGND 0 DGND 3 5 50 VDC 3 5 50 VDC 1 7 4 Wiring diagram for the M 7028 Voltage Output 1 7 5 Wiring Recommendations Use 26 12 AWG wire for signal connections Strip the wire to a length of 740 5 mm Use a crimp terminal for wiring Avoid high voltage cables and power equipment as much as possible For RS 485 communication use insulated and twisted pair 24 AWG wire e g Belden 9841 1 7021 22 24 M 7022 24 User Manual Rev B2 1 23 1 8 Quick Start To install the module follow the steps below
4. GNSOV omoj 82 i OnNOA g l vt aN9 9 SA U VLVa 9 W1LVO A VIN anoa eoad coa Load 00d eld cia LId b oia 7028 O NOA GL 0 NO OONAV L NOA L no LONQV Cno cno cONQGV E NOA NO vVICONAV YNA pinoy 8z GNO a v SA U Viva 9 VLVA A ON ON LINOA 23n0 LISDNAV gino g no SONGV GINO L Gyno 11 1 7021 22 24 M 7022 24 User Manual Rev B2 1 1 3 Specifications I 7021 1 7021P 1 7022 M 7022 1 7024 M 7024 Analog Output Output Channels 1 2 4 Output Type mA V mA V mA V Accuracy 1 for I 7021 0 1 of FSR 0 1 of FSR 02 for I 7021P Resolution 12 bit for I 7021 12 bit 14 bit 16 bit for I 7021P Read back 1 of FSR 1 of FSR NA Accuracy Programmable 0 125 1024 mA s 0 125 1024 mA s 0 125 2048 mA s Output Slope 0 0625 512 V s 0 0625 512 V s 0 0625 1024 V s Current Load Int power 500 ohm Int power 500 ohm ___ Ext 24 V 1050 ohm Resistance Ext 24 V 1050 ohm _ Ext 24 V 1050 ohm Isolation 3000 Voc 3000 Voc 3000 Voc Modbus RTU M 7022 M 7024 Power Requirements 10 to 30 Vpc 10 to 30 Vpc 10 to 30 Voc Consumption 1 8 W 3 0 W 2 4 W Temperature Range Operating 25 C to 75 C 25 C to 75 C 25 C to 75 C Storage 40 C to 85 C 40 C to 85 C 40 C to 85 C Notes l A warm up period
5. 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 125 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 012 Response 01 1 FF Reads the host watchdog timeout value of module 01 and returns FF which denotes that the host watchdog is enabled and the host watchdog timeout value is 25 5 seconds Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Related Topics Section A 2 Dual Watchdog Operation 126 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 38 AA3SEVV 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 FF 3 Command to set the host watchdog E 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 character for a valid command Delimiter character for an invalid command AA Address of the responding module 0
6. incorrect there is a communication error or there is no module with the specified address 74 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Examples Command 0131F Response 01 Sets the analog output of module 01 to be increased by 31 and returns a valid response Related Commands Section 2 5 AAO Section 2 7 AA1 Note This command is only applicable to the I 7021 21P I 7021 22 24 M 7022 24 User Manual Rev B2 1 75 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 11 AA3NVV Description Adjusts the analog output of a specified channel for calibration Syntax AA3NVV CHKSUM CR Delimiter character AA Address of the module to be adjusted 00 to FF 3 Command to adjust the analog output N The channel to be adjusted zero based VV A two digit 2 s complement hexadecimal value to adjust the analog output The value of 00 to 5F is to increase 0 to 95 counts and FF to Al is to decrease 1 to 95 counts where each count is about 4 88uA or 2 44mV for I 7022 M 7022 and M 7028 2 44uA or 1 22mV for I 7024 24R and M 7024 24R 0 61uA or 0 30mA for M 7024U Response Valid Command AA CHKSUM CR Invalid Command 74A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF 76 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7
7. 01S1 Response 01 Reloads the factory calibration parameters for module 01 and returns a valid response Related Commands Section 2 6 AAON Section 2 8 AAIN Note This command is only applicable to the M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 117 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 33 AAO Name Description Sets the name of a module Syntax AAO Name CHKSUM 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 module max 6 characters Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 118 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 0107021N Response 01 Sets the name of module 01 to be 7021N and returns a valid response Command 01M Response 017021N Reads the name of module 01 and returns the name 7021N Related Commands Section 2 29 AAM I 7021 22 24 M 7022 24 User Manual Rev B2 1 119 I 7021 I 7021P I 7022 1
8. 1 The type code 4 is only available to M 7024U M 7028 and I 7022 M 7022 firmware version B1 2 and later 2 The type code 3 and 5 are only available to M 7024U and M 7028 Slew Rate Setting S S V s mA s 0 Immediate Immediate 1 0 0625 0 125 2 0 125 0 25 3 0 25 0 5 4 0 5 1 0 5 1 0 2 0 6 2 0 4 0 7 4 0 8 0 8 8 0 16 0 9 16 0 32 0 A 32 0 64 0 B 64 0 128 0 C 128 0 256 0 D 256 0 512 0 E 512 0 1024 0 40 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 12 M 7000 Notes The main difference between the I 7000 and M 7000 series is that the M 7000 series has additional support for the Modbus RTU communication protocol which is the default protocol of the M 7000 series The communication Baud Rates for the Modbus RTU protocol can be in the range of 1200 bps to 115200 bps Modbus functions supported by the module are described in Chapter 3 1 12 1 Protocol Switching To switch to the DCON protocol 1 Set Modbus register 00257 to 1 2 After a power on reset the communication protocol will be changed to DCON To switch to the Modbus RTU protocol 1 Sends the AAPN command and set N to a value of 1 Note that the INIT terminal should be connected to the GND terminal or the slide switch on the rear side of the module should be set to the INIT position See Section 2 31 for details 2 After a power on reset the communication protocol will be changed to the M
9. Description Reads the counter data of a specified digital input channel Syntax AAN CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF N The channel to be read zero based Response Valid Command 1A A Data CHKSUM CR Invalid Command 2 AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command An invalid command is returned if the specified channel is incorrect AA Address of the module in hexadecimal format 00 to FF Data Five digits data of the counter value of the specified channel 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 59 1 7024R M 7024R Examples Command 032 Response 0302513 Reads counter data from channel 2 of module 03 and returns the counter value 2513 Related Commands Section 2 26 AACN Section 2 47 AACECN Section 2 50 AARECN Notes 1 This command is only applicable to the I 7024R and M 7024R 2 For I 7024R and M 7024R with firmware version A2 3 and later it is recommended to use AARECN command to read the counter value 60 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 4 AAN Data Description Writes the data to a specified analog output channel Syntax AAN Data
10. 1 247 01 Function code 1 Byte 0x90 02 Exception code 1 Byte Refer to the Modbus standard for more details I 702 1 22 24 M 7022 24 User Manual Rev B2 1 161 3 9 M 7022 Address Mappings Address Description Attribute 40001 Analog output value R W 40002 40065 Analog output read back R 40066 40097 Safe output value R W 40098 40193 iPower on output value R W 40194 40257 Type code R W 40258 40289 Slew rate R W 40290 The following registers are supported by firmware version B102 and later Address Description Attribute 40481 Firmware version low word R 40482 __ Firmware version high word R 40483 Module name low word R 40484 Module name high word R 40485 Module address valid range 1 247 R W 40486 Bits 5 0 R W Baud rate 0x03 OxOA Code 0x03 0x04 0x05 0x06 Baud 1200 2400 14800 9600 Code 0x07 0x08 0x09 Ox0A Baud 19200 38400 57600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit 162 I 7021 22 24 M 7022 24 User Manual Rev B2 1 Address Description Attribute 40488 Modbus response delay time in ms R W valid range 0 30 40489 Host watchdog timeout value 0 255 R W in 0 1s 40492 H
11. 10 V Refer to Section 2 1 for details 4 Send command to output 10 V Refer to Section 2 4 for details 5 Repeat to send the trim command and check the meter until the meter s reading is nearest to 10 V Refer to Section 2 11 for details of sending the trim command 6 Send the 10 V calibration command Refer to Section 2 6 for details 7 Send command to output 10 V Refer to Section 2 4 for details 8 Repeat to send the trim command and check the meter until the meter s reading is nearest to 10 V Refer to Section 2 11 for details of sending the trim command 9 Send the 10 V calibration command Refer to Sections 2 8 for details 10 Repeat steps 1 to 9 for channel 1 2 and 3 Note The M 7024 24R must be switched to the DCON protocol mode before calibrating Refer to Sections 1 12 1 for details of the switching protocol 32 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U and M 7028 Analog Output Calibration p lt 9 Warm up the module for at least 30 minutes If you want to calibrate for current type then connect a current meter to the current output channel 0 terminal of the module If you want to calibrate for voltage type then connect a voltage meter to the voltage output channel 0 terminal of the module Set the type code to the type you want to calibrate Refer to Section 2 24 for details Send command to output zero calibration current voltage Refer to Section
12. I 7021 22 24 M 7022 24 User Manual Rev B2 1 Address Description Attribute 00001 Digital output value of channel 0 to 3 R W 00004 00129 Safe value of digital output channel 0 to3 R W 00132 00161 Power on value of digital output channel0 R W 00164 to3 00193 Counter update trigger edge of digital R W 00196 input channel 0 to 3 00257 Protocol 0 DCON 1 Modbus R W 00260 Modbus host watchdog mode R W 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 00261 1 enable 0 disable host watchdog R W 00264 Write 1 to clear latched DIO states W 00265 IDI active state R W 00266 IDO active state R W 00269 Modbus data format 0 hex 1 R W engineering 00270 Host watch dog timeout status write 1 R W to clear host watch dog timeout status 00272 Write 1 to load factory default W calibration parameters 00273 Reset status 1 first read after R powered on 0 not the first read after powered on 00513 Write 1 to clear counter value of W 00516 idigital input channel 0 to 3 00769 Enable retained analog output for R W 00772 Ichannel 0 to 3 I 702 1 22 24 M 7022 24 User Manual Rev B2 1 171 Analog Output Types Type Code Range Data Format Minimum Maximum 0 OmA 20mA on FEFFR L mA 20mA eadem 0000 FFFFh 2 OVON Aea oi FEFFR 3 10 V Hexadecimal 8000h
13. L 24 For current output adjust the jumper setting for the I 7021 21P I 7022 and M 7022 See Section 1 6 for the jumper settings Connect the output load See Section 1 2 for the terminal assignment and Section 1 7 for the wiring diagram Connect the module to the RS 485 network using the DATA and DATA terminals See Section 1 2 for the terminal assignment If the host is only equipped with an RS 232 interface then an RS 232 to RS 485 converter will be required Refer to the I 7000 Bus Converter User s Manual for more information Connect the module to the power supply using the Vs and GND terminals See Section 1 2 for the terminal assignment Note that the voltage supplied to the module should be in the range of 10 to 30 VDC For I 7000 modules configure the module by sending the 7 AANNTTCCFF command See Section 2 1 for details To configure the I 7022 the SAAONTS command must also be sent See Section 2 24 for details For M 7000 modules using the Modbus RTU protocol configure the module using the following Modbus registers 40485 40486 and 40487 The Modbus registers started at 40257 are required for configuring M 7022 M 7024U and M 7028 The default settings for the module can be found in Section 1 9 For I 7000 modules in order to write data to the analog output channels send the AA data or AAN data commands to the module See Sections 2 2 and 2 4 for details For M 7000 modules using the Modbus
14. TFFPh 4 ONY Tere io FFT 5 HSV Hexadecimal 8000h TPF 172 1 702 1 22 24 M 7022 24 User Manual Rev B2 1 3 13 M 7028 Address Mappings Address Description Attribute 30065 Analog output read back of channel 0 R 30072 s to 7 40065 40072 40001 Analog output value of channel 0 to 7 R W 40008 40097 Safe analog output value of channel 0 R W 40104 Ito7 40193 Power on analog output value of R W 40200 channel 0 to 7 40257 Analog output type code of channel 0 R W 40264 to7 40289 Analog output slew rate of channel 0 R W 40296 sito 7 40481 Firmware version low word R 40482 Firmware version high word R 40483 Module name low word 0x0070 R 40484 Module name high word Ox2800 R 40485 Module address valid range 1 247 R W 40486 Bits 5 0 R W Baud rate 0x03 OxOA Code 0x03 0x04 0x05 0x06 Baud 1200 2400 4800 9600 Code 0x07 0x08 0x09 Ox0A Baud 19200 38400 57600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit 40488 Modbus response delay time in ms R W valid range 0 30 40489 Host watchdog timeout value 0 255 R W in 0 1s I 7021 22 24 M 7022 24 User Manual Rev B2 1 173 Address Description Attribute 40492
15. 1 10 Calibration Warning It is not recommended that calibration be performed until the process is fully understood 1 7021 21P Current Output Calibration 1 Set the jumper JP1 to select internal power and connect a current meter to the current output terminal of the module If there is no current meter then you can use a voltage meter with a shunt resistor of 250 ohm and 0 1 The current I can be calculated using the equation I V voltage 250 0G sour 0 68 sour ca belli belli mA Meter 2 Warm up the module for at least 30 minutes 3 Set the type code to 30 0 20 mA Refer to Section 2 1 for details 4 Send command to output 4 mA Refer to Section 2 2 for details 5 Repeat to send the trim command and check the meter until the meter s reading is nearest to 4 mA Refer to Section 2 10 for details of sending the trim command 6 Send the 4 mA calibration command Refer to Section 2 5 for details 7 Send command to output 20 mA Refer to Section 2 2 for details 8 Repeat to send the trim command and check the meter until the meter s reading is nearest to 20 mA Refer to Section 2 10 for details of sending the trim command 9 Send the 20 mA calibration command Refer to Sections 2 7 for details I 7021 22 24 M 7022 24 User Manual Rev B2 1 27 1 7021 21P Voltage Output Calibration L 28 Connect a voltage meter to the voltage output terminal of the module Volt Meter Sh
16. 2 AA data Note This command is only applicable to the I 7021 21P I 7021 22 24 M 7022 24 User Manual Rev B2 1 79 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 13 AA4N Description Sets the current output of a specified channel as the power on value Syntax AA4N CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 4 Command to set the power on value N The channel to be set zero based Response Valid Command AA CHKSUM CR Invalid Command 74A CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 01100 000 Response gt Sets the output of channel 1 of module 01 to 0 0mA and returns a valid response 80 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Command 0141 Response 01 Sets the current output of channel 1 of module 01 as the power on value and returns a valid response Related Commands Section 2 4 AAN data Section 2 20 AA7N Notes This command is only applicable to the I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 81 I 7021 I 7021P
17. 20 mA span calibration Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 011 Response 01 Performs a 20 mA output calibration on module 01 and returns a valid response Related Commands Section 2 5 AAO0 Section 2 10 AA3VV 68 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021A I 7021P Related Topics Section 1 10 Calibration Note This command is only applicable to the I 7021 I 7021A and I 7021P I 7021 22 24 M 7022 24 User Manual Rev B2 1 69 I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 2 8 AA1N Description I 7022 M 7022 Performs 20 mA calibration 1 7024 1 7024R M 7024 M 7024R Performs 20 mA or 10 V calibration M 7022A M 7024U M 7028 Performs a span calibration Syntax AAIN CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF 1 Command for the 20 mA 10 V span calibration N Specifies the channel to be calibrated zero based Response Valid Command AA CHKSUM CR Invalid Command 2 AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid comm
18. 7000 series is the same as the I 7000 series with the exception that the M 7000 series offers extended support for the Modbus RTU protocol Some I 7000 modules feature a new design for the frame ground and INIT switch as Frame shown in the figure rear re view The frame ground provides enhanced static protection ESD abilities and ensures the module is more Frame reliable The INIT switch pom allows easier access to INIT mode Please refer to Sections A l and A 3 for more details INIT Switch The common features of the I 7021 21P I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 modules are as follows 6 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 3000Vpc 2500Vpc for M 7024U inter module isolation 2 Programmable power on value for analog output 3 Programmable slew rate 4 Software calibration The I 7021 is a single channel analog output module with 12 bit resolution and output read back function The I 7021P is similar to the I 7021 but with 16 bit resolution The I 7022 M 7022 is a 2 channel analog output module with 12 bit resolution and output read back function The I 7024 M 7024 is a 4 channel analog output module with 14 bit resolution and supports bipolar voltage output The I 7024R M 7024R is I 7024 M 7024 added 5
19. 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 34 Description Informs all modules that the host is OK Syntax CHKSUM CR Delimiter character a Host OK command Response No response Examples Command No response Sends a Host OK command to all modules Related Commands Section 2 35 AAO Section 2 36 AA1 Section 2 37 AA2 Section 2 38 AA3EVV Related Topics Section A 2 Dual Watchdog Operation 120 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 35 AA0 Description Reads the host watchdog status of a module Syntax AA0 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 0 Command to read the module status Response Valid command AASS CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF 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 The host watchdog status is stored in EEPROM and can only be reset by using the AA1 command I 7021 22 24 M 7022 24 User Manual
20. 7024U 2 50 AARECN Description Reads the digital input counter of a specified channel Syntax AARECN CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF RE Command to read the digital input counter CN N is to specify the channel to be read zero based Response Valid command AA Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF Data Five digits data of the counter value of the specified channel 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 151 1 7024R M 7024R M 7024U Examples Command 03REC1 Response 0300103 Reads data from channel 1 of module 03 and the returned counter value is 103 Command 02REC9 Response 02 Reads data from channel 9 of module 02 An error is returned because channel 9 is invalid Related Commands Section 2 47 AACECN Note 1 This command is only applicable to the I 7024R M 7024R with firmware version A2 3 and later and M 7024U 2 It is recommended to use this command to read the digital counter value for I 7024R M 7024R with firmware version A2 3 and later 152 I 7021 22 24 M 7022 24 User Manual Rev B2 1 3 Modbus RTU Protocol The Modbus pro
21. 85 C 40 C to 85 C 40 C to 85 C Notes 1 A warm up period of 30 minutes is recommended in order to achieve the complete performance results described in the specifications 2 The specifications are typical at 25 C unless otherwise stated I 7021 22 24 M 7022 24 User Manual Rev B2 1 13 M 7028 Analog Output Output Channels 8 Output Type mA V Accuracy 1 of FSR Resolution 12 bit Read back NA Accuracy Programmable 0 125 1024 mA s Output Slope 10 0625 512 V s Current Load 500 ohm Resistance Isolation 3000 Vpc Modbus RTU Yes Power Requirements 10 to 30 Vpc Consumption 14 3 W Temperature Range Operating 25 C to 75 C Storage 40 C to 85 C Notes 1 A warm up period of 30 minutes is recommended in order to achieve the complete performance results described in the specifications 2 The specifications are typical at 25 C unless otherwise stated I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 4 Block Diagrams 1 4 1 Block Diagram for the l 7021 and I 7021P VOUT EEPROM VOUT Photo isolation Embedded Ext PWR Controller IOUT IOUT VOUT1 VOUT1 ew sete Ext PWR1 oa IOUT1 isolation TOUTI Embedded Controller I 7021 22 24 M 7022 24 User Manual Rev B2 1 15 1 4 3 Block Diagram for the I 7024 and M 7024 EEPROM Photo isolation Embedded EEPROM Emb
22. CHKSUM CR Delimiter character AA Address of the module to be written 00 to FF N The analog output channel to be written zero based Data Data to be written to the analog output channel see Section 1 11 for the data format Response Valid Command gt CHKSUM CR Out of Range CHKSUM CR Ignored CHKSUM CR gt Delimiter character for a valid command Delimiter character indicates that the data is out of range If it is over range then the output will be set to the maximum value of the range If it is under range then the output will be set to the minimum value of the range Delimiter character indicates that the command is ignored because the host watchdog timeout occurs The output is set to the 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 61 I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples for l 7022 and M 7022 Command 012 Response 013F0600 Reads the configuration of module 01 It returns engineering data format Command 0190 Response 0110 Reads the configuration of analog output channel 0 of module 01 It returns output type 4 mA to 20 mA and output changing immediately Command 01005 000 Response gt Sets channel 0 of module 01 to output 5 mA The module returns a valid response Comman
23. GOGOHHGOS I 7021 22 24 M 7022 24 User Manual Rev B2 1 19 1 6 Jumper Settings Note To access the jumpers the cover must be opened 1 6 1 I 7021and I 7021P Jumper Settings For the I 7021 and I 7021P modules the power supply for current output can be either internal or external The power supply is selected using the JP1 jumper The position of the JP1 jumper is shown in the figure below l 7021 l 7021 P The settings for the JP1 jumper are as follows Select internal power It can drive load up to 500 ohm factory default Select external power It can drive load up to s 1050 ohm for 24 V external power supply 20 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 6 2 l 7022 and M 7022 Jumper Settings For the I 7022 and M 7022 modules the power supply for current output can be either internal or external The power supply is selected using the JP1 jumper for channel 0 and JP2 for channel 1 The positions of the JP1 and JP2 jumpers are shown in the figure below The settings for the JP1 and JP2 jumpers are as follows Select internal power It can drive load up to 500 ohm factory default 1050 ohm for 24 V external power supply Select external power It can drive load up to I 7021 22 24 M 7022 24 User Manual Rev B2 1 21 1 7 Wiring 1 7 1 Wiring diagram for the l 7021 l 7021P l 7022 and M 7022 08 vouT OS
24. Host watchdog timeout count write 0 R W to clear 00225 Status of current output open wire R 00232 10225 10232 00257 Protocol 0 DCON 1 Modbus R W 00260 Modbus host watchdog mode R W 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 00261 1 enable 0 disable host watchdog R W 00269 Modbus data format 0 hex 1 R W engineering 00270 Host watch dog timeout status write 1 R W to clear host watch dog timeout status 00272 Write 1 to load factory default W calibration parameters 00273 Reset status 1 first read after R powered on 0 not the first read after powered on Analog Output Types Type Code Range Data Format Minimum Maximum Engineering 0 20000 g i ae A Hexadecimal 0000h FFFFh Engineering 4000 20000 l POS eade na 0000h FFFFh Engineering 0 10000 Z NTE Hexadecimal 0000h FFFFh Engineering 10000 10000 3 SEA Hexadecimal 8000h 7FFFh S Engineering 0 5000 Aa Hexadecimal 0000h FFFFh Engineering 5000 5000 gt HY Hexadecimal 8000h 7FFFh 174 I 7021 22 24 M 7022 24 User Manual Rev B2 1 4 Troubleshooting If you are having difficulty using the I 7000 or M 7000 module here are some suggestions that may help If you cannot find the answers you need in these guides contact ICP DAS Product Support Contact information is located in Section 1 14 I 7021 22 24 M 7022 24 User Manual Rev B2 1 175 4 1 Communicating with the module If you attempt to communicate with
25. I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 14 AA5 Description Reads the reset status of a module Syntax AA5 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 5 Command to read the module reset status Response Valid Command AAS CHKSUM CR Invalid Command 7AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 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 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 82 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 015 Response 011 Reads the reset status of module 01 The response shows that it is the first time the AA5 command has been sent 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 AA5 command was sent Related Topics Section A 4 Reset Status I
26. RTU 1 7021 22 24 M 7022 24 User Manual Rev B2 1 protocol use Functions 06h or 10h to write the data to the analog output channels See Section 3 6 and 3 8 for details 7 If the host is a PC with a Windows operating system installed the DCON Utility can be used to allow easy configuration and reading of data The DCON Utility can be downloaded from the ICP DAS website http www icpdas com The documentation for the DCON Utility can be found in the Getting Started For I 7000 Series Modules manual Please refer to the I 7000 Bus Converter User s Manual and Getting Started For I 7000 Series Modules manuals for more details The Getting Started for I 7000 Series Modules manual can be downloaded from the ICP DAS website http www icpdas com I 702 1 22 24 M 7022 24 User Manual Rev B2 1 25 1 9 Default Settings Default settings for the I 7021 21P I 7022 I 7024 and I 7024R modules are as follows Module address 01 Analog output type 0 10 V Baud rate 9600 bps Checksum disabled Engineering unit format a J 7021 21P and I 7022 jumper setting internal power Default settings for the M 7022 M 7024 M 7024R M 7024U and M 7028 modules are as follows a Protocol Modbus RTU o Module address 01 a Analog output type 0 10 V Baud Rate 9600 bps 2 Engineering unit format M 7022 jumper setting internal power 26 I 7021 22 24 M 7022 24 User Manual Rev B2 1
27. Section A 5 Analog Output Note This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 63 I 7021 I 7021A I 7021P 2 5 AA0 Description I 7021 I 7021P Performs a 4 mA calibration I 7021A Performs a zero calibration Syntax AA0 CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF 0 Command for the 4 mA zero calibration Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 010 Response 01 Performs a 4 mA output calibration on module 01 and returns a valid response Related Commands Section 2 7 AA1 Section 2 10 AA3VV 64 I 702 1 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021A I 7021P Related Topics Section 1 10 Calibration Note This command is only applicable to the I 7021 I 7021A and I 7021P I 7021 22 24 M 7022 24 User Manual Rev B2 1 65 I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 2 6 AAON Description I 7022 M 7022 Performs 4 mA calibration I 7024 1 7024R M 7024 M 7024R Perf
28. Syntax AA6 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 6 Command to read the digital input channels Response Valid command Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data Status of the digital input channels a two digit hexadecimal value followed by 0000 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 86 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R Examples Command 016 Response OFO000 Reads the digital input channel status of module 01 and returns OF0000h which denotes that digital input channels 0 to 3 are on and digital input channel 4 is off Related Commands Section 2 48 AADI Notes 1 This command is only applicable to the I 7024R and M 7024R 2 For I 7024R and M 7024R with firmware version A2 3 and later it is recommended to use AADI command to read the digital input status I 7021 22 24 M 7022 24 User Manual Rev B2 1 87 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 17 AAGN Description Reads the last written analog output value of a specified channel Syntax AA6N CHKSUM CR Delimiter character AA Address of the module to be
29. become worse in a continental climate area Some I 7000 and all M 7000 modules feature a new design for the frame ground The frame ground provides a path for bypassing ESD which provides enhanced static protection ESD abilities and ensures the module is more reliable Either of the following options will provide a better protection for the module 1 If the module is DIN rail mounted connect the DIN rail to the earth ground because the DIN rail is contacted with the upper frame ground as shown in the figure below 2 Alternatively connect the lower frame ground terminal as shown in the figure below to a wire and connected the wire to the earth ground Frame ae Ground A Frame Ground Normal O g T 186 I 7021 22 24 M 7022 24 User Manual Rev B2 1 New DIN rail models are available that can easily be connected to the earth ground Each are made of stainless steel which is stronger than those made of aluminum There is a screw at one end and a ring terminal is included as shown in the figure below Refer to Section 1 13 1 for more information about the new DIN rail models I 7021 22 24 M 7022 24 User Manual Rev B2 1 187 A 9 Node Information Area Each I 7000 and M 7000 module has a built in EEPROM to store configuration information such as module address typ
30. hexadecimal format 00 to FF TT New type code see Section 1 11 for details For the I 7022 M 7022 M 7024U and M 7028 this field should be set to 3F 00 for M 7024U and M 7208 and use the AA9NTS command to set the type of each channel see Section 2 24 for details CC New Baud Rate code see Section 1 11 for details The module must be switched to INIT mode in order to change Baud Rates See Section A 1 for details FF Used to set the data format checksum and slew rate settings Section 1 11 For the I 7022 M 7022 M 7024U and M 7208 use the AA9NTS command to set the slew rate of each channel see Section 2 24 for details The module must be switched to INIT mode in order to change the checksum setting See Section A 1 for details 54 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Response Valid Command AA CHKSUM CR Invalid Command 4A CHKSUM CR Delimiter for a valid command 7 Delimiter for an invalid command If the Baud Rate or checksum settings are changed without connecting the INIT terminal to ground the module will return an invalid command AA Address of the module in hexadecimal format 00 to FF There will be no response if the command syntax is incorrect there is a communication error or there is no module with the specified address Examples Command 0102300600 Response 02 Changes the address of
31. i gt rg m MA Pd 2 o z T BE wf Go w f N NTN MTN Performs a 20mA calibration IAA IAA AA3VV IAA Adjusts the analog output for calibration 2 IAA IAA a N N N Fe N IO AA4 Wa o o Sets the current output value as power on value AA6 AA Data Reads the last written analog output value AA7 HAA Performs a 10V calibration Reads the analog output channel via an PAAS ARDA analog to digital converter I 7022 M 7022 Analog Output Command Sets Command i AAN Data gt Sets the analog output of a channel AAON Performs a 4mA calibration of a channel AAIN HAA Performs a 20mA calibration of a channel IA Adjusts the analog output of a channel for IAA IAA AA calibration IAA IAA N N 1 N oe N N le CaN NTN P 6 8 N AA3NVV N Sets the current output value of a channel as power on value SAA6N AA Data Reads the last written analog output value of a channel AATN HAA Performs a 10V calibration of a channel 2 19 50 I 702 1 22 24 M 7022 24 User Manual Rev B2 1 SAA4N N OO N N AA8N IAA Data Reads the analog output channel via an 222 analog to digital converter AA9N IAATS Reads the analog output configuration of a 22 channel AA9NTS IAA Sets the analog output configuration of a 2 24 channel I 7024 1 7024R M 7024 M 7024R Analog Output Command Sets Description Sets the
32. module 01 to 02 The module returns a valid response Command 0101300A00 Response 01 Changes the Baud Rate of module 01 to 115200bps The module returns an invalid command because it is not in INIT mode Command 0101300A00 Response 01 Changes the Baud Rate of module 01 to 115200bps and the module is in INIT mode The module returns a valid response I 7021 22 24 M 7022 24 User Manual Rev B2 1 55 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Related Commands Section 2 9 AA2 Related Topics Section 1 11 Configuration Tables Section A 1 INIT Mode Note Changes to the address type code data format and slew rate settings take effect immediately after a valid command is received Changes to the Baud Rate and checksum settings take effect on the next power on reset 56 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P 2 2 AA Data Description Writes the data to analog output channel Syntax AA Data CHKSUM CR Delimiter character AA Address of the module to be written 00 to FF Data Data to be written to the analog output channel see Section 1 11 for the data format Response Valid Command gt CHKSUM CR Out of Range CHKSUM CR Ignored CHKSUM CR gt Delimiter character for a valid command Delimiter character indicates that the data is out of range If it is over range then the output will be set to the maxi
33. of the responding module 00 to FF Data The safe analog output value see Section 1 11 for details of the data format 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 014 Response 0105 000 Reads the safe analog output value of module 01 and returns 05 000 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Section 2 42 AA5 Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command is only applicable to the I 7021 and I 7021P 130 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U 2 40 AA4 Description Reads the power on and safe digital output values of a module Syntax AA4 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 4 Command to read the power on and safe digital output values Response Valid command AAPPSS CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF PP Two hexadecimal digits to represent the power on DO value SS Two hexadecimal digits to represent the safe DO value There will be no response if the command syntax is incorrect there is
34. on analog output value of R W 40196 Ichannel 0 to 3 40257 Analog output type code of channel 0 R W 40260 ito 3 40289 Analog output slew rate of channel 0 R W 40292 lto3 40481 Firmware version low word R 40482 Firmware version high word R 40483 Module name low word 0x0070 R 40484 Module name high word 0x2425 R 40485 Module address valid range 1 247 R W 40486 Bits 5 0 R W Baud rate 0x03 OxOA Code 0x03 0x04 0x05 0x06 Baud 1200 12400 14800 19600 Code 10x07 0x08 0x09 IOx0A Baud 19200 38400 157600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit I 7021 22 24 M 7022 24 User Manual Rev B2 1 169 Address Description Attribute 40488 Modbus response delay time in ms R W valid range 0 30 40489 Host watchdog timeout value 0 255 R W in 0 1s 40492 Host watchdog timeout count write 0 R W to clear 00033 Digital input value of channel O to3 IR 00046 10033 10046 00065 High latched value of DI R 00068 10065 10068 00073 High latched value of DO R 00076 10073 10076 00097 Low latched value of DI R 00100 10097 10100 00105 Low latched value of DO R 00108 10105 10108 00225 Status of current output open wire or IR 00228 voltage output short circuit 10225 10228 170
35. read 00 to FF 6 Command to read the last written analog output value N The channel to be read zero based Response Valid command AA Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data The last written analog output value see Section 1 11 for details of the data format 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 88 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 01110 000 Response gt Sets the output of channel 1 of the module 01 to 10 000 and the module returns a valid response Command 0161 Response 01 10 000 Reads the last written analog output value of channel 1 of the module 01 and the module returns 10 000 Related Commands Section 2 4 AAN Data Section 2 22 AA8N Related Topics Section 1 11 Configuration Tables Section A 7 Analog Output Read back Notes This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 89 I 7021 I 7021P 2 18 AA7 Description Performs a 10 V calibration Syntax AA7 CHKSUM CR Delimiter character AA
36. read the digital input status for I 7024R M 7024R with firmware version A2 3 and later 148 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U 2 49 AADODD Description Sets the digital output ports of a module Syntax AADODD CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF DO Command to set the digital output ports DD 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 port is on and 0 denotes that the digital output port is off Response Valid command AA CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 149 M 7024U Examples Command 01D002 Response 01 Sets DOO 2 and 3 to off and DOI to on and the module returns a valid response Related Commands Section 2 48 AADI Notes 1 When a host watchdog timeout occurs the module will respond with an invalid command for this command and the DO value that was sent is ignored 2 This command is only applicable to the M 7024U 150 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R M
37. 0 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 127 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 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 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 37 AA2 Related Topics Section A 2 Dual Watchdog Operation Notes When a host watchdog timeout occurs the host watchdog is disabled The AA3EVV command should be sent again to re enable the host watchdog 128 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P 2 39 AA4 Description Reads the safe analog output value of a module Syntax AA4 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 4 Command to read the safe analog output value Response Valid command AA Data CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command 2 Delimiter character for an invalid command AA Address
38. 000 0 ae EIU Heradecimal l 3FFFK I 0000h Engineering 10000 10000 a oN AON Hexadecimal SEERA CO00h Engineering 5000 0 of P Hexadecimal 3FFFh 0000h Engineering 5000 5000 Ory Hexadecimal 3FFFh C000h I 7021 22 24 M 7022 24 User Manual Rev B2 1 165 3 11 M 7024R Address Mappings Address Description Attribute 40001 Analog output value R W 40004 40065 Analog output read back R 40068 40097 Safe output value R W 40100 40129 Counter value of digital input R 40133 40193 iPower on output value R W 40196 40481 Firmware version low word R 40482 __ Firmware version high word R 40483 Module name low word R 40484 Module name high word R 40485 Module address valid range 1 247 R W 40486 IBits 5 0 R W Baud rate 0x03 OxOA Code 0x03 0x04 0x05 0x06 Baud 1200 2400 14800 19600 Code 0x07 0x08 0x09 Ox0A Baud 19200 38400 57600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit 40487 Type code R W 40488 Modbus response delay time in ms R W valid range 0 30 40489 Host watchdog timeout value 0 255 R W in 0 Is 40492 Host watchdog timeout count write 0 R W to clear 166 I 7021 22 24 M 7022 24 User Manual Rev B2 1 Address Description
39. 021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 28 AAI Description Reads the INIT terminal status of a module Syntax S AATI CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF I Command to read the module INIT status Response Valid command AAS CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF S INIT terminal status of the module 0 The INIT terminal is connected to the GND terminal 1 The INIT terminal is not connected to the GND terminal 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 109 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 011 Response 010 Reads the INIT status of module 01 The response shows that the INIT terminal is connected to the GND terminal 110 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 29 AAM Description Reads the name of a module Syntax S AAM CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF M Command to read the mo
40. 024 and M 7024R only 0 for I 7022 M 7022 M 7024U and M 7028 CS Checksum setting 0 Disabled 1 Enabled I 7021 22 24 M 7022 24 User Manual Rev B2 1 37 Analog Output Type and Data Format Table for I 7021 and I 7021P Type Code Output Range Data Format Max Min Engineering unit 20 000 00 000 30 0 20 mA of FSR 100 00 000 00 2 s comp HEX FFF 000 Engineering unit 20 000 04 000 31 4 20 mA of FSR 100 00 000 00 2 s comp HEX FFF 000 Engineering unit 10 000 00 000 32 0 10V of FSR 100 00 000 00 2 s comp HEX FFF 000 Analog Output Type and Data Format Table for I 7022 and M 7022 Type Code Output Range Data Format Max Min Engineering unit 20 000 00 000 0 0 20 mA of FSR 100 00 000 00 2 s comp HEX FFF 000 Engineering unit 20 000 04 000 1 4 20mA of FSR 100 00 000 00 2 s comp HEX FFF 000 Engineering unit 10 000 00 000 2 0 10V of FSR 100 00 000 00 2 s comp HEX FFF 000 Engineering unit 05 000 00 000 4 0 5V of FSR 100 00 000 00 2 s comp HEX FFF 000 Note The type code 4 is only available to firmware version B1 2 and later 38 I 7021 22 24 M 7022 24 User Manual Rev B2 1 Analog Output Type and Data Format Table for I 7024 I 7024R M 7024 and M 7024R Type Code Output
41. 024R M 7024U M 7028 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 01321F Response 01 Sets the analog output channel 2 of module 01 to be increased by 31 and returns a valid response Related Commands Section 2 6 AAON Section 2 8 AAIN Note This command is only applicable to the I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 77 I 7021 I 7021P 2 12 AA4 Description Sets the current output as the power on value Syntax AA4 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 4 Command to set the power on value Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 0100 000 Response gt Sets the output of module 01 to 0 0mA and returns a valid response Command 014 Response 01 Sets the current output of module 01 as the power on value and returns a valid response 78 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Related Commands Section 2
42. 1 M 7024U 2 46 AABBHH Description Sets the retained analog output channel status of a module For a retained analog output channel its power on value will be the same as the value before power off Syntax AABBHH CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF BB Command to set the retained analog output channel status HH A two digit hexadecimal value where bit 0 corresponds to channel 0 bit 1 corresponds to channel 1 etc When the bit is 1 it denotes that the analog output channel is retained and 0 denotes that the analog output channel is not retained Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command 7 Delimiter character 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 143 M 7024U Examples Command 01BB02 Response 01 Sets the analog output channel of module 01 to be retained and returns a valid response Related Commands Section 2 45 AABB Note This command is only applicable to the M 7024U 144 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R M 7024U 2 47 AACECN Description Clears the digital input counter of a specified channel Syntax AAC
43. 2 4 for details Repeat to send the trim command and check the meter until the meter s reading is nearest to zero calibration current voltage Refer to Section 2 11 for details of sending the trim command Send the zero calibration command Refer to Section 2 6 for details Send command to output span calibration current voltage Refer to Section 2 4 for details Repeat to send the trim command and check the meter until the meter s reading is nearest to span calibration current voltage Refer to Section 2 11 for details of sending the trim command Send the span calibration command Refer to Section 2 8 for details 10 Repeat steps 1 to 9 for channel 1 2 and 3 Notes l 2 The zero span calibration voltages and currents are shown on the next page The M 7024U and M 7028 must be switched to the DCON protocol mode before calibrating Refer to Sections 1 12 1 for details of the switching protocol I 7021 22 24 M 7022 24 User Manual Rev B2 1 33 Calibration voltages current used by the M 7024U and M 7028 TypeCode O 1 2 3 4 5 voltage current voltage current 34 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 11 Configuration Tables Baud Rat e Setting CC 7 6 5 4 3 2 1 0 Data Baud Key Description Baud Baud Rate 03 1200 04 2400 05 4800 06 9600 07 19200 08 38400 09 57600 OA 115200 D
44. 24 User Manual Rev B2 1 M 7024U M 7028 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 01B Response 0102 Diagnoses the analog outputs of module 01 The module returns a valid response and channel 1 is either wire opening for current output or short circuit for voltage output Note This command is only applicable to the M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 105 1 7024R M 7024R 2 26 AACN Description Clears the digital input counter value of a specified channel Syntax AACN CHKSUM CR Delimiter character AA Address of the module to be cleared 00 to FF C Command to clear the digital input counter value N The channel to be cleared zero based Response Valid Command AA CHKSUM CR Invalid Command 7A4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 106 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R Examples Command 032 Response 0300103 Reads counter data from channel 2 of module 03 and the returned counter value is 103 Command 03C2 Response 03 Clears the counter value of c
45. 3EVV Section 2 39 AA4 Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command is only applicable to the I 7021 and I 7021P 136 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 43 AA5N Description Sets the current analog output value as the safe analog output value for a specified channel of a module Syntax AA5N CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 5 Command to set the safe analog output value N The channel to be set zero based Response Valid command AA CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command 2 Delimiter character 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 Examples Command 0151 Response 01 Sets the safe analog output value of channel 1 of module 01 and returns a valid response I 7021 22 24 M 7022 24 User Manual Rev B2 1 137 I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Section 2 41 AA4N Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command
46. 4 5 Block Diagram for the M 70240U nsss 17 1 4 6 Block Diagram for the M 7028 eeeeeeeeeee 17 LS DIMENS ONS sertesa aeaaea EES 18 1 5 1 Modules without Frame Ground cceeeeeeee 18 1 5 2 Modules with Frame Ground cceseeeesseeeeees 19 1 6 Jumper Settings ieveiiewsa cals covidecdinssitesngeadhuivnasashcanledoetdcatiaes 20 1 6 1 I 7021and I 7021P Jumper Settings 00 20 1 6 2 I 7022 and M 7022 Jumper Settings 005 21 DP NV ARVs enee Misused EEE E E E E E OEE 22 1 7 1 Wiring diagram for the I 7021 I 7021P I 7022 and INLET O22 iua a a a 22 1 7 2 Wiring diagram for the I 7024 I 7024R M 7024 and M 7024R uronin O E 22 1 7 3 Wiring diagram for the M 7024U eee 23 1 7 4 Wiring diagram for the M 7028 ee eeeeeeeeeee 23 1 7 5 Wiring Recommendations cccceceeeesseeeeeeeees 23 FS QUICK SIAR roc aati E ca inca ences TO 24 1 9 Default Settings piss ss citi Glont Sader hoe anaaivet Siscseens 26 t 10 Calibrati m ninn t a E dalle is 27 1 11 Configuration Tables cacao adwssceestves ese sae wecedulussindees 35 EIZ MET OOO NOES nnana a 41 1 12 1 Protocol Switching sessseseeeesessssssssesesereesssss 41 tI 2 INIT Mde innnan a 42 LIS Monn snn a rn a aSa 43 1 13 1 Din Rail Mount ict na nenccsecestie cota hates 43 L132 Piggyback Mounn overons 45 2 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 13 3 Wall Mounting 22 5 o ci acavcaaachineenaasivicacereaptees
47. 7021 22 24 M 7022 24 User Manual Rev B2 1 123 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 010 Response 0104 Reads the host watchdog status of module 01 and shows that a host watchdog timeout has occurred Command 011 Response 01 Resets the host watchdog timeout status of module 01 and returns a valid response Command 010 Response 0100 Reads the host watchdog status of module 01 and shows that no host watchdog timeout has occurred Related Commands Section 2 34 Section 2 35 AAO Section 2 37 AA2 Section 2 38 AA3EVV Related Topics Section A 2 Dual Watchdog Operation 124 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 37 AA2 Description Reads the host watchdog timeout value of a module Syntax AA2 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 2 Command to read the host watchdog timeout value Response Valid command AAEVV CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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
48. 7021 22 24 M 7022 24 User Manual Rev B2 1 83 I 7021 I 7021P 2 15 AA6 Description Reads the last written analog output value Syntax A A6 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 6 Command to read the last written analog output value Response Valid command AA Data CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data The last written analog output value see Section 1 11 for details of the data format 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 84 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Examples Command 0110 000 Response gt Sets the output of module 01 to 10 000 and the module returns a valid response Command 016 Response 0110 000 Reads the last written analog output value of module 01 and the module returns 10 000 Related Commands Section 2 2 AA Data Section 2 21 AA8 Related Topics Section 1 11 Configuration Tables Section A 7 Analog Output Read back Note This command is only applicable to the I 7021 21P I 7021 22 24 M 7022 24 User Manual Rev B2 1 85 1 7024R M 7024R 2 16 AA6 Description Reads the status of the digital input channels
49. Address of the module to be calibrated 00 to FF 7 Command for the 10 V calibration Response Valid Command AA CHKSUM CR Invalid Command 2 AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 017 Response 01 Performs a 10 V output calibration on module 01 and returns a valid response Related Commands Section 2 7 AA1 Section 2 10 AA3VV 90 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Related Topics Section 1 10 Calibration Note This command is only applicable to the I 7021 21P I 7021 22 24 M 7022 24 User Manual Rev B2 1 91 1 7022 M 7022 2 19 AA7N Description Performs a 10 V calibration on a specified channel Syntax AA7N CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF 7 Command for the 10 V calibration N Specifies the channel to be calibrated zero based Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 ther
50. Attribute 40494 Slew rate R W 00033 Digital input value R 00037 00065 High latched value of DI R 00069 00097 Low latched value of DI R 00101 00257 Protocol 0 DCON 1 Modbus RTU R W 00260 Modbus host watchdog mode R W 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 00261 1 enable 0 disable host watchdog R W 00264 Write 1 to clear latched DI W 00269 Modbus data format 0 hex 1 R W engineering 00270 Host watch dog timeout status write 1 R W to clear host watch dog timeout status 00273 Reset status 1 first read after R powered on 0 not the first read after powered on 00513 Write 1 to clear DI counter value W 00517 I 7021 22 24 M 7022 24 User Manual Rev B2 1 167 Output Types Type Code Output Range Data Format Max Min 30 U E ea T TOF 31 TemA e aie iA n T 32 TAUN e SEES aT 33 10 10V Mieradecimal 3FFFh C000h 34 A ae een ae Ot DELA ae 168 I 7021 22 24 M 7022 24 User Manual Rev B2 1 3 12 M 7024U Address Mappings Address Description Attribute 30065 Analog output read back of channel 0 R 30068 lto3 40065 40068 30129 Counter value of digital input channel R 30132 Oto3 40129 40132 40001 Analog output value of channel 0 to 3 R W 40004 40097 Safe analog output value of channel 0 R W 40100 to3 40193 Power
51. ECN CHKSUM CR Delimiter character AA Address of the module to be cleared 00 to FF CE Command to clear the digital input counter CN N is to specify the channel to be cleared zero based Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command 2 Delimiter character 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 145 1 7024R M 7024R M 7024U Examples Command 03REC1 Response 0300103 Reads data from channel 1 of module 03 and the returned counter value is 103 Command 03CEC1 Response 03 Clears the counter value of channel 1 of module 03 and returns a valid response Command 03REC1 Response 0300000 Reads counter data from channel 1 of module 03 and the returned counter value is 0 Related Commands Section 2 50 AARECN Note 1 This command is only applicable to the I 7024R M 7024R firmware version A2 3 and later and M 7024U 2 It is recommended to use this command to clear the digital counter for I 7024R M 7024R with firmware version A2 3 and later 146 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R M 7024U 2 48 AADI Description Reads the digital input and digital output status of a module
52. Range Data Format Max Min 30 0 20mA Engineering unit 20 000 00 000 31 4 20 mA Engineering unit 20 000 04 000 32 0 10 V Engineering unit 10 000 00 000 33 10 10V_ Engineering unit 10 000 10 000 34 0 5 V Engineering unit 05 000 00 000 35 5V 5V Engineering unit 05 000 05 000 Analog Output Type and Data Format Table for M 7024U and M 7028 Type Code Output Range Data Format Max Min Engineering unit 20 000 00 000 0 0 20 mA of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 20 000 04 000 1 4 20 mA of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 10 000 00 000 2 0 10 V of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 10 000 10 000 3 10 10V of FSR 100 00 100 00 2 s comp HEX 7FFF 8000 Engineering unit 05 000 00 000 4 0O 5V of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 05 000 05 000 5 5 5 V of FSR 100 00 100 00 2 s comp HEX 7FFF 8000 I 7021 22 24 M 7022 24 User Manual Rev B2 1 39 Analog Output Configuration for I 7022 M 7022 M 7204U and M 7028 Analog Output Type Setting T Type Code Output Range 0 0 mA 20 mA 1 4 mA 20 mA 2 OV l10V a 10 V 10 V 4 OV 5V 5 5V 5 V Notes
53. Rev B2 1 121 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 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 010 Response 0100 Reads the host watchdog status of module 01 and returns 00 meaning that the host watchdog is disabled and no host watchdog timeout has occurred Command 020 Response 0204 Reads the host watchdog status of module 02 and returns 04 meaning that a host watchdog timeout has occurred Related Commands Section 2 34 Section 2 36 AA1 Section 2 37 AA2 Sec 2 38 AA3EVV Related Topics Section A 2 Dual Watchdog Operation 122 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 36 AA1 Description Resets the host watchdog timeout status of a module Syntax AA1 CHKSUM CR Delimiter character AA Address of the module to be reset 00 to FF l Command to reset the host watchdog timeout status Response Valid command AA CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 I
54. Syntax AADI CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF DI Command to read the digital input and digital output status Response Valid command AAQOOTI CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF OO 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 port is on and 0 denotes that the digital output port is off It is OO for I 7024R M 7024R I A two digit hexadecimal value where bit 0 corresponds to DIO bit 1 corresponds to DI etc When the bit is 1 it denotes that the digital input port is on and O denotes that the digital input port is off I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R M 7024U 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 01DI Response 0100102 Reads the digital input and output port status of module 01 and returns 00102h which denotes that DOO and DT are on and DOI and DIO are off Related Commands Section 2 49 AADODD Note 1 This command is only applicable to the I 7024R M 7024R with firmware version A2 3 and later and M 7024U 2 It is recommended to use this command to
55. a communication error or there is no module with the specified address I 7021 22 24 M 7022 24 User Manual Rev B2 1 131 M 7024U Examples Command 014 Response 010000 Reads the power on DO value and the safe DO value of module 01 and returns 0000 Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Section 2 44 AASPPSS Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command is only applicable to the M 7024U 132 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 41 AA4N Description Reads the safe analog output value of a specified channel of a module Syntax AA4N CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 4 Command to read the safe analog output value N The channel to be read zero based Response Valid command AA Data CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command 2 Delimiter character for an invalid command AA Address of the responding module 00 to FF Data The safe analog output value see Section 1 11 for details of the data format 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 0141 Response 0105 000 Reads the safe analog ou
56. a nads agate 123 DIT DD eich E faa tsa E EE he tsa EA 125 Di VO RAAN EV Van Sa A E E 127 DDO PPG APP T E A A au 129 DAO AAA REEE A ETO T A age 131 DA Ve PAIN i a a dec a cult Malet AN 133 DAD IID EEA sa locate oahu iced cena ait a Sten EIE 135 2D IAIN oi O a a 137 DAA AP SPE SS a a L E EA eee 139 DADO AA BD ennnen aAA 141 ZAG CAABBHH tucahicclin tect os viet etadsc ure anata tines 143 2AT OAACECN a sheshcesinaces te cot re ds Bee Ms oats OAN 145 DAS ORADI in R R a ana akeces 147 ZAG AA DODD yi aetna EESE EATERS EEAS 149 PIVO AAR ECN mia eter NEEE TE 151 3 Modbus RTU Protocolar ea ei a a a 153 LOTOO Read COS aij aut earned atl abt GA Rica Sectees 154 3 2 02 0x02 Read Discrete Inputs eee ccceeeerteeeeees 155 3 3 03 0x03 Read Output Channels ccecceeeesseeeeees 156 3 4 04 0x04 Read Input Channels ee ceeeeseeteeeeees 157 3 5 05 0x05 Write Single Coil ic ici wercoccxvesnceswermnesevivecteiee 158 3 6 06 0x06 Write Single Register 0 eee eeeeeenneeeeees 159 3 7 15 OxOF Write Multiple Coils ec eeeeeeceeeteeees 160 3 8 16 0x10 Write Multiple Registers eee eeeeeees 161 3 9 M 7022 Address Mappings cc cccccccccceessessessssnteeeeees 162 3 10 M 7024 Address Mappings cccssseececeeeseeneeeeees 164 3 11 M 7024R Address Mappings cscssccceeeseenteeeeees 166 3 12 M 7024U Address Mappings ecssceeceeeeeenneeeeees 169 3 13 M 7028 Address Mappings
57. analog output of a channel Performs a 4mA or 10V calibration of a channel Performs a 20mA or 10V calibration of a channel AA IAA IAA IAA a IAA Adjusts the analog output of a channel for calibration Sets the current output value of a channel as 13 power on value AA Data Loe last written analog output value of 4 IAA Reads the power on value of a channel AA Data Reads the current analog output of a channel 2 2 M 7024U Analog Output Command Sets Command Description AAN Data gt Sets the analog output of a channel AAON Performs zero calibration of a channel AAIN Aa Performs span calibration of a channel N NTN PNY COFO TR SAA3NVV Adjusts the analog output of a channel for N _ n calibration AA4N Sets the current output value of a channel as power on value IAA IAA IAA IAA AA6N IAA Data Reads the last written analog output value of a channel AA7N Reads the power on value of a channel AATS AA AA 9 Oo N N N Ofl N AA8N AA Data Reads the current analog output of a channel 2 2 AA9N Reads the analog output configuration of a channel AA9NTS Sets the analog output configuration of a Q a gt o D m AAHH Reads the retained analog output status Sets the retained analog output status I 7021 22 24 M 7022 24 User Manual Rev B2 1 51 ale alos als gt gt gt gt wo Bos wiw T T M 7028 Analog Output Command Set
58. and 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 Examples Command 0111 Response 01 Performs a span calibration on channel of module 01 and returns a valid response 70 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 Related Commands Section 2 6 AAON Section 2 11 AA3NVV Related Topics Section 1 10 Calibration Notes This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 71 I 7021 I 7021P I 7022 I 7024 I 7024R M 7021A M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 2 9 AA2 Description Reads the module configuration Syntax AA2 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 2 Command to read the module configuration Response Valid Command AATTCCFF CHKSUM CR Invalid Command 7AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF TT Type code of the module For the I 7022 M 7022 M 7024U and M 7028 this field is to 3F and 00 for M 7024U and M 7028 see Section 1 110 for details CC Baud Rate code of the module see Sec
59. applicable to the M 7024U 140 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U 2 45 AABB Description Reads the retained analog output channel status of a module For a retained analog output channel its power on value will be the same as the value before power off Syntax AABB CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF BB Command to read the retained analog output channel status Response Valid command AAHH CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF HH A two digit hexadecimal value where bit 0 corresponds to channel 0 bit 1 corresponds to channel 1 etc When the bit is 1 it denotes that the analog output channel is retained and 0 denotes that the analog output channel is not retained 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 141 M 7024U Examples Command 01BB Response 0103 Reads retained analog output channel status of module 01 and the returned value is 03 which means both analog output channel 0 and 1 are retained Related Commands Section 2 46 AABBHH Note This command is only applicable to the M 7024U 142 I 7021 22 24 M 7022 24 User Manual Rev B2
60. ata Data Format 0 N81 1 N82 2 E81 3 O81 The firmware version that supports the data format other than N81 is as follows Module Firmware Version 7021 B2 0 and later 7022 B1 2 and later 7024 series A1 8 and later 7028 All I 7021 22 24 M 7022 24 User Manual Rev B2 1 35 Analog Output Type Setting TT Type Code Output Range 30 0 mA 20 mA 31 4 mA 20 mA 32 OV l10V 33 10V 10 V 34 0 5V 35 5V 5 V 3F For I 7022 M 7022 only 00 For M 7024U and M 7028 only Note 1 Type 30 31 and 32 are only applicable to the I 7021 I 7021P I 7024 I 7024R M 7024 and M 7024R 2 Types 33 34 and 35 are only applicable to the 1 7024 I 7024R M 7024 and M 7024R 3 For I 7022 and M 7022 this field must be set to 3F For M 7024U and M 7028 this field must be set to 00 36 I 7021 22 24 M 7022 24 User Manual Rev B2 1 Data Format Setting FF 7 6 5 4 3 2 1 0 0 CS SR DF Key Description DF Data format 00 Engineering unit 01 of FSR full scale range 10 2 s complement hexadecimal Note the data format 01 and 10 are only available to the I 7021 21P I 7022 M 7022 M 7024U and M 7028 SR Slew rate for I 7021 I 7021P I 7024 I 7024R M 7024 and M 7024R Note the setting 1111 is for I 7024 I 7024R M 7
61. channel digital inputs The M 7024U is a 4 channel analog output module with 16 bit resolution and supports bipolar voltage output There is also 4 channel digital inputs and 4 channel digital outputs for the M 7024U The M 7028 is a 8 channel analog output module with 12 bit resolution 1 7021 22 24 M 7022 24 User Manual Rev B2 1 q 1 1 More Information For more information regarding the I 7000 series please refer to chapter of the I 7000 Bus Converter User s Manual as shown below or visit the ICP DAS website http www icpdas com 1 1 The 7000 Series Overview 1 2 Related Documentation for the 7000 Series 1 3 Common Features of the 7000 Series 1 4 The 7000 Series System Network Configuration 1 5 7000 Dimensions I 702 1 22 24 M 7022 24 User Manual Rev B2 1 1 2 Terminal Assignment 7021 7021P LL oz ot aNg g sSA VLVa 5 VLVA A L LINI YMd K3 LNOA LNOA LNOI LNOI 7022 OLNOI L OLNOI OLNOA OLNOA 0YMd 3X3 LLNOI LLNOl LLNOA ot GN9 g SA 4 ViVd 5 VLVQ A LINI 1 7021 22 24 M 7022 24 User Manual Rev B2 1 7024 OL GN9 qg SA u Viva d VLVC A LINI 7024R ol GN9 qg SA d Viva 9 VW1VQ A LINI vid eld zia Lid oia I 7021 22 24 M 7022 24 User Manual Rev B2 1 10 7024U GNSV LINO GNSV CNOA GNSV EnA Nno GNSOV gnol aN vY L no
62. circuit that monitors the operating status of the module While working 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 I 7000 and M 7000 series modules include an internal Dual Watchdog making the control system more reliable and stable For more information regarding the Dual Watchdog please refer to Chapter 5 of the Getting Started For I 7000 Series Modules manual that can be downloaded from the ICP DAS website http www icpdas com I 702 1 22 24 M 7022 24 User Manual Rev B2 1 179 A 3 Module Output Status The power on reset and module watchdog reset will set all outputs to power on values Then the module can accept command to change the output values The host watchdog timeout will set the host watchdog timeout flag and set all outputs to safe values Then the output command will be ignored The module s LED will be blinking The reset host watchdog status command AAI must be sent to go to normal mode to accept the output command 180 I 7021 22 24 M 7022 24 User Manual Re
63. ct there is a communication error or there is no module with the specified address 112 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 01P Response 0110 Reads the communication protocol of module 01 and returns a response of 10 meaning that it supports both the DCON and Modbus RTU protocols and the protocol that will be used at the next power on reset is DCON Related Commands Section 2 31 AAPN Note This command is only applicable to the M 7022 M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 113 M 7022 M 7024 M 7024R M 7024U M 7028 2 31 AAPN Description Sets the communication protocol Syntax S AAPN 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 protocol 1 Modbus RTU protocol Before using this command the rear slide switch must be in the INIT position for M 7024U and M 7028 or the INIT terminal should be connected to the GND terminal for M 7022 M 7024 and M 7024R see Section A 1 for details The new protocol is saved in the EEPROM and will be effective after the next power on reset Response Valid Response AA CHKSUM CR Invalid Response AA CHKSUM CR Delimiter character for a valid response Delimiter character for an invalid response AA Address of the responding module 00 to FF There
64. ction code is used to read the current digital output read back value of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x01 02 03 Starting channel 2 Bytes 0x0000 0x0003 for M 7024U DO read back value 04 05 Number of 2 Bytes Ox0001 0x0004 for M 7024U output channel Note This function is only available to the M 7024U Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x01 02 Byte count 1 Byte 1 03 Data of output 1 Byte A bit corresponds to a channel channels When the bit is 1 it denotes that the channel is on If the bit is 0 it denotes that the channel is off Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x81 02 Exception code 1 Byte 02 starting channel out of range 03 starting channel number of output channels out of range incorrect number of bytes received 154 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024R M 7024U 3 2 02 0x02 Read Discrete Inputs This function code is used to read the digital input status of a module Request 00 Address 1 Byte 1 to 247 01 Function code 1 Byte Ox02 02 03 Starting channel 2 Bytes 0x20 to 0x24 for M 7024R 0x20 to 0x23 for M 7024U where 0x20 corresponds to channel 0 0x21 corresponds to channel 1 etc 04 05 jNumber of input 2 Bytes 1 to 5 for M 7024R chan
65. d 01025 000 Response Sets channel 0 of module 01 to output 25 mA The module returns an out of range response and the output is set to 20 mA Examples for l 7024 I 7024R M 7024 and M 7024R Command 012 Response 01300600 Reads the configuration of module 01 It returns output type 0 mA 20 mA engineering data format and output changing immediately Command 010 05 000 Response gt Sets channel 0 of module 01 to output 5 mA The module returns a valid response Command 010 25 000 Response Sets channel 0 of module 01 to output 25 mA The module returns an out of range response and the output is set to 20 mA 62 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples for M 7024U an M 7208 Command 012 Response 01000600 Reads the configuration of module 01 It returns engineering data format Command 0190 Response 0110 Reads the configuration of analog output channel 0 of module 01 It returns output type 4 mA to 20 mA and output changing immediately Command 010 05 000 Response gt Sets channel 0 of module 01 to output 5 mA The module returns a valid response Command 010 25 000 Response Sets channel 0 of module 01 to output 25 mA The module returns an out of range response and the output is set to 20 mA Related Commands Section 2 1 7 AANNTTCCEFF Section 2 9 AA2 Related Topics Section 1 11 Configuration Tables
66. dule 01 and the module returns 10 000 Command 018 Response 0101 000 Reads the current analog output value of module 01 and the module returns 01 000 Related Commands Section 2 2 AA Data Section 2 15 AA6 Related Topics Section 1 11 Configuration Tables Section A 6 Slew Rate Control Section A 7 Analog Output Read back Note This command is only applicable to the I 7021 21P I 7021 22 24 M 7022 24 User Manual Rev B2 1 97 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 22 AA8N Description Reads the current analog output value of a specified channel Syntax AA8N CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 8 Command to read the current analog output value N The channel to be read zero based Response Valid command AA Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data The current analog output value see Section 1 11 for details of the data format 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 98 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 012 Response 01320614 Reads the confi
67. dule name Response Valid command AA Data CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF Name 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 Examples Command 01M Response 017021 Reads the module name of module 01 and returns the name 7021 Related Commands Section 2 33 AAO Name I 7021 22 24 M 7022 24 User Manual Rev B2 1 111 M 7022 M 7024 M 7024R M 7024U M 7028 2 30 AAP Description Reads the communication protocol information Syntax SAAP CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF P Command to read the communication protocol Response Valid Response AASCI CHKSUM CR Invalid Response AA CHKSUM CR Delimiter character for a valid response Delimiter character for an invalid response AA Address of the responding module 00 to FF S The protocols supported by the module 0 only DCON protocol is supported 1 both the DCON and Modbus RTU protocols are supported C Current protocol saved in EEPROM that will be used at the next power on reset 0 the protocol set in EEPROM is DCON 1 the protocol set in EEPROM is Modbus RTU There will be no response if the command syntax is incorre
68. e If there is no current meter then you can use a voltage meter with a shunt resistor of 250 ohm and 0 1 The current I can be calculated using the equation I V voltage 250 i oO ToutN i we Ba Fa o IoutN 2 Warm up the module for at least 30 minutes 3 Set the type code to 30 0 20 mA Refer to Section 2 1 for details 4 Send command to output 0 mA Refer to Section 2 4 for details 5 Repeat to send the trim command and check the meter until the meter s reading is nearest to0 mA Refer to Section 2 11 for details of sending the trim command 6 Send the 0 mA calibration command Refer to Section 2 6 for details 7 Send command to output 20 mA Refer to Section 2 4 for details 8 Repeat to send the trim command and check the meter until the meter s reading is nearest to 20 mA Refer to Section 2 11 for details of sending the trim command 9 Send the 20 mA calibration command Refer to Sections 2 8 for details 10 Repeat steps 1 to 9 for channel 1 2 and 3 Note The M 7024 24R must be switched to the DCON protocol mode before calibrating Refer to Sections 1 12 1 for details of the switching protocol I 7021 22 24 M 7022 24 User Manual Rev B2 1 31 1 7024 24R M 7024 24R Voltage Output Calibration 1 Connect a voltage meter to the voltage output channel 0 terminal of the module amS Volt Meter 2 Warm up the module for at least 30 minutes 3 Set the type code to 33 10 V
69. e code Baud Rate etc One minor drawback is that there are no visual indications of the configuration of the module New I 7000 and M 7000 modules include node information areas that are protected by a cover as shown below and can be used to make a written record of the node information such as module address Baud Rate etc To access the node information areas first slide the covers outward as shown in the figure below 188 I 7021 22 24 M 7022 24 User Manual Rev B2 1
70. e is no module with the specified address Examples Command 0170 Response 01 Performs a 10 V output calibration on channel 0 of module 01 and returns a valid response Related Commands Section 2 8 AAIN Section 2 11 AA3NVV 92 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 M 7022 Related Topics Section 1 10 Calibration Note This command is only applicable to the I 7022 and M 7022 I 7021 22 24 M 7022 24 User Manual Rev B2 1 93 I 7024 I 7024R M 7024 M 7024R M 7024U M 7028 2 20 AA7N Description Reads the power on analog output value of a specified channel Syntax AA7N CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 7 Command to read the power on analog output value N The channel to be read zero based Response Valid command AA Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data The power on analog output value see Section 1 11 for details of the data format 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 94 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7024 I 7024R M 7024 M 7024R M 7024U M 7028 Examples Command 0172 Response 01 10 000 Reads the power
71. ection 1 11 for details S Analog output slew rate see Section 1 11 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 100 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 M 7022 M 7024U M 7028 Examples Command 0190 Response 0110 Reads the configuration of channel 0 for module 01 and returns a configuration of 4 to 20mA range and output changing immediately Related Commands Section 2 24 AAONTS Related Topics Section 1 11 Configuration Tables Note This command is only applicable to the I 7022 M 7022 M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 101 1 7022 M 7022 M 7024U M 7028 2 24 AAONTS Description Sets the analog output configuration of a specified channel Syntax AAINTS CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF Command to set the analog output configuration The channel to be set zero based Analog output type see Section 1 11 for details Analog output slew rate see Section 1 11 for details U ZO Response Valid command AA CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character 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 t
72. edded Controller Photo isolation 5 V O I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 4 5 Block Diagram for the M 7024U Vout0 Vout1 Vout2 Vout3 AGND Tout0 Tout1 Tout2 Tout3 Embedded Controller DATA RS 485 DATA Interface Isolation AGND DI0 DI1 DI2 DI3 DGND DO0 DO1 D02 DGND Embedded Controller I 7021 22 24 M 7022 24 User Manual Rev B2 1 17 1 5 Dimensions 1 5 1 Modules without Frame Ground The dimensions of the I 7021 I 7021P I 7022 and M 7022 are as shown below 29 50 2 SCREW M3 Wi Back View Side View a Top View Unit mm Front View 18 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 5 2 Modules with Frame Ground The dimensions of the I 7024 M 7024 I 7024R M 7024R M 7024U and M 7028 are as shown below 33 6 30 4 C 121 50 o i ee O 2 coe ro In in Oo z Back View 11 Side View se d L o0 1 20 838 DHHOONAHOOOHHE Top View Unit mm 7211 50 32 D A esssesssssee5 2 5 I Lf s x a 4 ISSVOGKOO OSS SOD Front View PGYO SOG
73. ensions DRS 360 5 360mm x 35mm to earth ground I 7021 22 24 M 7022 24 User Manual Rev B2 1 43 Part number Max number of modules Dimensions DRS 240 240mm x 35mm to earth ground Part number Max number of modules Dimensions DRS 125 125mm x 35mm to earth ground Note It is recommended that a 16 14 AWG wire is used to connect the DIN rail to the earth ground 44 1 7021 22 24 M 7022 24 User Manual Rev B2 1 1 13 2 Piggyback Mounting For l 7021 I 7021P I 7022 and M 7022 modules For other modules 45 1 7021 22 24 M 7022 24 User Manual Rev B2 1 1 13 3 Wall Mounting 46 1 7021 22 24 M 7022 24 User Manual Rev B2 1 1 14 Technical Support Should you encounter any problems while using the I 7000 and M 7000 module and are unable to find the help you need in this manual or on our website please contact ICP DAS Product Support Email service icpdas com Website http www icpdas com tw contact_us contact_us html When requesting technical support be prepared to provide the following information about your system 1 Module name and serial number The serial number can be found printed on the barcode label attached to the cover of the module 2 Firmware version See Section 2 27 for information regarding the command used to identify the firmware version Or read the Modbus re
74. ets Command Description AACECN IAA Resets the counter data of a digital channel IAA AAOOOII Reads the digital output and input status IAA Sets the digital output value IAA H QO aN jai o N P NT P O N P oo AARECN AA Data Reads the counter data of a digital channel ena IAAPPSS Reads the power on and safe digital output value Sets the power on and safe digital output i value 52 I 7021 22 24 M 7022 24 User Manual Rev B2 1 al aed gt J Soto N P K gE gt gt n gt E rg N Command i AAO or een AA3ETT Sets the host watchdog timeout settings MN QO N 5 N U K gt gt n n EB oP Lo Afo NISNISN wI Oo To in AA4 AA Data Reads the analog output safe value AA AA AA4N IAA Data Reads the safe value of an analog output channel AA AA N P N P N AA5 i Sets the current analog output value as i safe value AA5N Sets the current analog output value as i safe value for a channel N P OO Wk I 7021 22 24 M 7022 24 User Manual Rev B2 1 53 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 1 AANNTTCCFF Description Sets the configuration of an analog output module Syntax AANNTTCCFF CHKSUM CR Delimiter character AA Address of the module to be configured in hexadecimal format 00 to FF NN New address of the module in
75. gisters 40481 and 40482 for Modbus protocol 3 Host configuration type and operating system 4 If the problem is reproducible please give full details describing the procedure used to reproduce the problem 5 Any specific error messages displayed If a dialog box with an error message is displayed please include the full text of the dialog box including the text in the title bar 6 If the problem involves other programs or hardware devices please describe the details of the problem in full 7 Any comments and suggestions related to the problem are welcome ICP DAS will reply to your request by email within three business days I 702 1 22 24 M 7022 24 User Manual Rev B2 1 47 2 DCON Protocol All communication with I 7000 modules consists of commands generated by the host and responses transmitted by the I 7000 modules Each module has a unique ID number that is used for addressing purposes and is stored in non volatile memory The ID is 01 by default and can be changed using a user command All commands to the modules contain the ID address meaning that only the addressed module will respond The only exception to this is command Section 2 34 which are sent to all modules but 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
76. guration of module 01 and the module returns a response of 0 to 10V range 9600 bps 1V second slew rate and engineering data format Command 012 10 000 Response gt Sets the output of channel 2 of the module 01 to 10 000 and the module returns a valid response Command 0162 Response 01 10 000 Reads the last written analog output value of channel 2 of the module 01 and the module returns 10 000 Command 0182 Response 01 01 000 Reads the current analog output value of channel 2 of the module 01 and the module returns 01 000 Related Commands Section 2 4 AAN Data Section 2 17 AA6N Related Topics Section 1 11 Configuration Tables Section A 6 Slew Rate Control Section A 7 Analog Output Read back Note This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 99 1 7022 M 7022 M 7024U M 7028 2 23 AAQN Description Reads the analog output configuration of a specified channel Syntax AAON CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 9 Command to read the analog output configuration N The channel to be read zero based Response Valid command AATS CHKSUM CR Invalid command A4A CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the responding module 00 to FF T Analog output type see S
77. hannel 2 of module 03 and returns a valid response Command 032 Response 0300000 Reads counter data from channel 2 of module 03 and the returned counter value is 3 Related Commands Section 2 3 AAN Section 2 47 AACECN Section 2 50 AARECN Notes 1 This command is only applicable to the I 7024R and M 7024R 2 For I 7024R and M 7024R with firmware version A2 3 and later it is recommended to use AACECN command to clear the digital input status I 7021 22 24 M 7022 24 User Manual Rev B2 1 107 I 7021 I 7021P I 7022 1 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 2 27 AAF Description Reads the firmware version of a module Syntax AAF CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF F Command to read the firmware version Response Valid command AA Data CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 01F Response 01A2 0 Reads the firmware version of module 01 and shows that it is version A2 0 Command 02F Response 02B1 1 Reads the firmware version of module 02 and shows that it is version B1 1 108 I 7
78. here is no module with the specified address 102 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 M 7022 M 7024U M 7028 Examples Command 019121 Response 01 Sets the configuration of channel 1 for module 01 to 0 to 10V range and 0 625 V second slew rate and returns a valid response Related Commands Section 2 23 AA9N Related Topics Section 1 11 Configuration Tables Notes This command is only applicable to the I 7022 M 7022 M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 103 M 7024U M 7028 2 25 AAB Description Diagnoses the current output wire opening and voltage output short circuit status of the analog outputs Syntax AAB CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF B Command to diagnose the analog outputs Response Valid command AAHH CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF HH Represents the diagnostic results of every analog output channel 00 to OF for M 7024U and 00 to FF for M 7028 where bit 0 corresponds to channel 0 bit 1 corresponds to channel 1 etc When the bit is 1 it means that the channel is either wire opening for current output or short circuit for voltage output If the bit is O it means that the channel is normal 104 I 7021 22 24 M 7022
79. igital output value of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x05 02 03 Output channel 2 Bytes 0x0000 0x0003 for M 7024U numbers 04 05 Output value 2 Bytes A value of OxFFOO sets the output to ON A value of 0x0000 sets it to OFF All other values are illegal and will not affect the coil Note This function is only available to the M 7024U Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x05 02 03 Output channel 2 Bytes The value is the same as byte 02 and numbers 03 of the Request 04 05 Output value 2 Bytes The value is the same as byte 04 and 05 of the Request Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x85 02 Exception code 1 Byte Refer to the Modbus standard for more details 158 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7022 M 7024 M 7024R M 7024U 3 6 06 0x06 Write Single Register This function code is used to write a digital output value of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x06 02 03 Output channel 2 Bytes 0x0000 0x0001 for M 7022 numbers 0x0000 0x0003 for M 7024 0x0000 0x0003 for M 7024R 0x0000 0x0003 for M 7024U 0x0000 0x0007 for M 7028 04 05 Output value 2 Bytes Da
80. is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 138 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U 2 44 AA5PPSS Description Sets the power on and safe digital output values of a module Syntax AA5PPSS CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 5 Command to set the power on and safe digital output values PP Two hexadecimal digits to represent the power on DO value SS Two hexadecimal digits to represent the safe DO value Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 139 M 7024U Examples Command 0150000 Response 01 Sets the power on DO value to 0 and the safe DO value to 0 The module returns a valid response Command 014 Response 010000 Reads the power on DO value and the safe DO value of module 01 and returns 0000 Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Section 2 40 AA4 Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command is only
81. l 7021 l 7022 l 7024 M 7022 M 7024 and M 7028 Series User Manual Warranty All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for damages resulting from the use of this product ICP DAS reserves the right to change this manual at any time without notification The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 1999 2009 ICP DAS All rights reserved Trademark The names used for identification only may be registered trademarks of their respective companies Date 2015 10 15 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 Table of Contents DOO CU CEN OU Fox astra veneers ere e dese ones vane eke EE Ea eTA oo rE ame wane we 6 bel More Information senenin a ae eA 8 1 2 Terminal ASSignMent ccccsessssssccececeeecessesessnsaeeeeees 9 1 SuSE CIRC AUIONG a asdies a a R E ieee a healt RE 12 14 Block Did Or aims ino niente a 15 1 4 1 Block Diagram for the I 7021 and I 7021P 15 1 4 2 Block Diagram for the I 7022 and M 7022 15 1 4 3 Block Diagram for the I 7024 and M 7024 16 1 4 4 Block Diagram for the I 7024R and M 7024R 16 1
82. mum value of the range If it is under range then the output will be set to the minimum value of the range Delimiter character indicates that the command is ignored because the host watchdog timeout occurs The output is set to the 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 57 I 7021 I 7021P Examples Command 012 Response 01300600 Reads the configuration of module 01 It returns output type 0 mA 20 mA engineering data format and output changing immediately Command 0105 000 Response gt Sets module 01 to output 5 mA The module returns a valid response Command 0125 000 Response Sets module 01 to output 25 mA The module returns an out of range response and the output is set to 20 mA Command 032 Response 03300602 Reads the configuration of module 01 It returns output type 0 mA 20 mA hexadecimal data format and output changing immediately Command 03800 Response gt Sets module 03 to output 800h 10 mA The module returns a valid response Related Commands Section 2 1 7 AANNTTCCEFF Section 2 9 AA2 Related Topics Section 1 11 Configuration Tables Section A 5 Analog Output Note This command is only applicable to the I 7021 and I 7021P 58 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024R M 7024R 2 3 HAAN
83. nels 1 to 4 for M 7024U Note This function is only available to the M 7024R and M 7024U Response 00 Address 1 Byte 1 to 247 0l Function code 1 Byte 0x02 02 Byte count l Byte I 03 Data of input 1 Byte A bit corresponds to a channel channels When the bitis 1 it denotes that the channel is on If the bit is 0 it denotes that the channel is off Error Response 00 Address 1 Byte 1 to 247 0l Function code 1 Byte 0x82 02 Exception code l Byte 02 starting channel out of range 03 starting channel number of input channels out of range incorrect number of bytes received I 7021 22 24 M 7022 24 User Manual Rev B2 1 155 M 7022 M 7024 M 7024R M 7024U 3 3 03 0x03 Read Output Channels This function code is used to read the analog output values of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x03 02 03 Starting channel 2 Bytes 0x0000 0x0001 for M 7022 0x0000 0x0003 for M 7024 0x0000 0x0003 for M 7024R 0x0000 0x0003 for M 7024U 0x0000 0x0007 for M 7028 04 05 Number of 2 Bytes Ox0001 0x0002 for M 7022 output channels 0x0001 0x0004 for M 7024 N 0x0001 0x0004 for M 7024R 0x0001 0x0004 for M 7024U 0x0001 0x0008 for M 7028 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x03 02 Byte count l Byte Nx2 03 Da
84. ntil the meter s reading is nearest to 20 mA Refer to Section 2 11 for details of sending the trim command Send the 20 mA calibration command Refer to Sections 2 8 for details 10 Repeat steps 1 to 9 for channel 1 Note The M 7022 must be switched to the DCON protocol mode before calibrating Refer to Sections 1 12 1 and 3 3 4 for details of the switching protocol I 7021 22 24 M 7022 24 User Manual Rev B2 1 29 1 7022 M 7022 Voltage Output Calibration L 6 Ts Connect a voltage meter to the voltage output channel 0 terminal of the module Short the current output terminal for the read back requirement Warm up the module for at least 30 minutes Set the type code to 2 0 10 V Refer to Section 2 24 for details Send command to output 10 V Refer to Section 2 15 for details Repeat to send the trim command and check the meter until the meter s reading is nearest to 10 V Refer to Section 2 18 for details of sending the trim command Send the 10 V calibration command Refer to Section 2 21 for details Repeat steps to 9 for channel 1 Note The M 7022 must be switched to the DCON protocol mode before calibrating Refer to Section 1 12 1 for details of the switching protocol 30 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7024 24R M 7024 24R Current Output Calibration 1 Connect a current meter and an external power source to the current output channel 0 terminal of the modul
85. odbus RTU protocol I 7021 22 24 M 7022 24 User Manual Rev B2 1 41 1 12 2 INIT Mode When the module is powered on with the INIT pin connected to the GND pin or the rear slide switch set to the INIT position as shown in the figure below the module is in INIT mode see Section A 1 for details and the communication settings are as follows 1 Address 00 2 Baud Rate 9600 bps 3 No checksum 4 Protocol DCON If communication with the module is not possible set the module to the INIT mode and use the above settings to communicate with the module To read the current settings send the commands AA2 see Section 2 9 and SAAP see Section 2 30 To set new settings send the commands 7AANNTTCCFF see Section 2 1 and SAAPN see Section 2 31 The new communication settings will be effective after the next power on reset c o INIT Switch C Jes 42 I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 13 Mounting 1 13 1 Din Rail Mounting There are three new DIN rail models available Each is made of stainless steel which is stronger than those made of aluminum There is a screw at one end and a ring terminal is included so that it can be easily connected to the earth ground The three new DIN rail models are as follows Part number Max number of modules Dim
86. of 30 minutes is recommended in order to achieve the complete performance results described in the specifications 2 The specifications are typical at 25 C unless otherwise stated 12 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7024R M 7024R M 7024U Analog Output Output Channels 4 4 4 Output Type mA V mA V mA V Accuracy 1 of FSR 0 1 of FSR 02 of FSR Resolution 14 bit 14 bit 16 bit Read back NA NA NA Accuracy Programmable 0 125 2048 mA s 0 125 2048 mA s 0 125 1024 mA s Output Slope 0 0625 1024 V s 0 0625 1024 V s 0 0625 512 V s Current Load Ext 24 V 1050 ohm Ext 24 V 1050 ohm Int power 1000 ohm Resistance Digital Input Channels 5 5 4 Input Type Dry Contact Source Dry Contact Source Dry Contact Source Contact Level On Close to GND On Close to GND On Close to GND Off Open Off Open Off Open Counters 16 bit 16 bit 16 bit Min Pulse Width Min Pulse Width Min Pulse Width 5ms 10ms 10ms Digital Output Channels 4 Output Type Open Collector Sink Source Sink Load Voltage 3 5 Voc 50 Voc Max Load 700 mA Channel Current Isolation 3000 Voc 3000 Voc 2500 Voc Modbus RTU No Yes Yes Power Requirements 10 to 30 Vpc 10 to 30 Vpc 10 to 30 Vpc Consumption 3 2 W 3 2 W 4 5 W Temperature Range Operating 25 C to 75 C 25 C to 75 C 25 C to 75 C Storage 40 C to
87. on analog output value of channel 2 of the module 01 and the module returns 10 000 Related Commands Section 2 13 AA4N Note This command is only applicable to the I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 95 I 7021 I 7021P 2 21 AA8 Description Reads the current analog output value Syntax AA8 CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF 8 Command to read the current analog output value Response Valid command AA Data CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command or invalid type code AA Address of the responding module 00 to FF Data The current analog output value see Section 1 11 for details of the data format 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 96 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P Examples Command 012 Response 01320614 Reads the configuration of module 01 and the module returns a response of 0 to 10V range 9600 bps 1V second slew rate and engineering data format Command 0110 000 Response gt Sets the output of module 01 to 10 000 and the module returns a valid response Command 016 Response 01 10 000 Reads the last written analog output value of mo
88. orms 0 mA or 10 V calibration M 7022A M 7024U M 7028 Performs a zero calibration Syntax AAON CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF 0 Command for the 4 mA O mA 10 V zero calibration N Specifies the channel to be calibrated zero based Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter character for a valid command 2 Delimiter character 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 66 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 Examples Command 0101 Response 01 Performs a zero calibration on channel 1 of module 01 and returns a valid response Related Commands Section 2 8 AAIN Section 2 11 AA3NVV Related Topics Section 1 10 Calibration Notes This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7022A M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 67 I 7021 I 7021A I 7021P 2 7 AA1 Description I 7021 I 7021P Performs a 20 mA calibration I 7021A Performs a span calibration Syntax AA1 CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF l Command for the
89. ort the current output terminal for the read back requirement Warm up the module for at least 30 minutes Set the type code to 32 0 10 V Refer to Section 2 1 for details Send command to output 10 V Refer to Section 2 2 for details Repeat to send the trim command and check the meter until the meter s reading is nearest to 10 V Refer to Section 2 10 for details of sending the trim command Send the 10 V calibration command Refer to Section 2 18 for details I 7021 22 24 M 7022 24 User Manual Rev B2 1 1 7022 M 7022 Current Output Calibration i 9 mA Meter Set the jumper JP1 to select internal power and connect a current meter to the current output channel 0 terminal of the module If there is no current meter then you can use a voltage meter with a shunt resistor of 250 ohm and 0 1 The current I can be calculated using the equation I V voltage 250 Volt Meter Warm up the module for at least 30 minutes Set the type code to 0 0 20 mA Refer to Section 2 24 for details Send command to output 4 mA Refer to Section 2 4 for details Repeat to send the trim command and check the meter until the meter s reading is nearest to 4 mA Refer to Section 2 11 for details of sending the trim command Send the 4 mA calibration command Refer to Section 2 6 for details Send command to output 20 mA Refer to Section 2 4 for details Repeat to send the trim command and check the meter u
90. ost watchdog timeout count write 0 R W to clear 00257 Protocol 0 DCON 1 Modbus RTU R W 00258 Modbus Protocol 0 RTU 1 ASCII R W 00260 Modbus host watchdog mode R W 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 00261 1 enable 0 disable host watchdog R W 00269 Modbus data format 0 hex 1 R W engineering 00270 Host watch dog timeout status write 1 R W to clear host watch dog timeout status 00273 Reset status 1 first read after R powered on 0 not the first read after powered on Output Types Type Code Output Range Data Format Max Min Engineering 20000 0 Y OS 20S exadecimal OFEFh 0000h Engineering 20000 4000 i 420 m Hexadecimal OFFEh 0000h Engineering 10000 0 e O 10 V Hexadecimal OFFFh 0000h 4 0 5 Engineering 5000 0 Hexadecimal OFFFh 0000h Notes Engineering data format and type code 4 are supported by firmware version B102 and later I 7021 22 24 M 7022 24 User Manual Rev B2 1 163 3 10 M 7024 Address Mappings For M 7024 firmware version B202 and later the address mappings are as follows Address Description Attribute 40001 Analog output value R W 40004 40065 Analog output read back R 40068 40097 Safe output value R W 40100 40193 Power on output value R W 40196 40481 Firmware version low word R 40482 Firmware
91. put change to the specified value gradually in some applications The slew rate control is to adjust the output change rate The I 7021 I 7021P I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 modules support programmable slew rate control When an analog output command is received the analog output will change to the new value in the specified slew rate automatically The I 7021 I 7021P I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 modules update the analog output every 10 ms The analog output is updated smoothly until it reaches the specified output value 184 I 7021 22 24 M 7022 24 User Manual Rev B2 1 A 7 Analog Output Read back The I 7021 21P I 7022 and M 7022 modules have the analog to digital converter that can be used to monitor the analog output signal and provide the analog output read back If the difference between the specified analog output value and the analog output read back value is large then it could be improper wire connection or load The I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 modules do not have the analog to digital converter to monitor the analog output signal However they can respond the value that is set to the digital to analog converter This value cannot be used to check improper wire connection and load I 7021 22 24 M 7022 24 User Manual Rev B2 1 185 A 8 Frame Ground Electronic circuits are constantly vulnerable to ESD which
92. s Command Description gt Sets the analog output of a channel H gt NK AAON AAIN Performs zero calibration of a channel Nyt oo Performs span calibration of a channel IAA Adjusts the analog output of a channel for N oN AA3NVV N calibration Sets the current output value of a channel as power on value AA6N AA Data Reads the last written analog output value of a channel AA7N Aa o Reads the power on value of a channel AA8N AA Data Reads the current analog output of a channel AA9N aats Reads the analog output configuration of a channel IA Sets the analog output configuration of a channel 1 7024R M 7024R Digital Input Command Sets Command Description HAAN AA Data Reads the counter data of a digital channel AA6 Reads the digital input status AACN Resets the counter data of a digital channel Resets the counter data of a digital channel AAOOOII Reads the digital input status AARECN AA Data Reads the counter data of a digital channel Note It is recommended to use these commands for firmware version A2 3 and later AA4N N OO Sia NINI Re NTO nN gt gt aap Z N N U IAA IAA IAA IAA IAA IAA N N aS PF PITH ATATH gt gt g Z A A N SRE ales 5 NT SS oN N P NT P oo QlElFISZ gt gt gt gt Ae 14 Z N N M 7024U Digital Input and Output Command S
93. see aataieee 46 1 14 Technical Support sesers e suaiers 47 22 CON Pr tocol rencrien nianna aata ede owes 48 LEF ZAANNTICCF F eerie EEE p T 54 LZ AA DIA anae e aa a a ottates 57 LI TAAN eaea E E bs ite tos aaa ad 59 DA BAAN DOA scerc sit ticaientiveuak a a ae 61 PIISAA cect E ad cast Viae ce ET 64 DOS OI lah etal ahaa elie le alae Suse a ac lie con eaten ds 66 DEE DAA oe A N 68 TO IN eann S 70 FSAA ik ies RE A eee eta aes 72 DUNO SAGA SVN e E O GE 74 DDS AA SNV V eA E O EA 76 A PAA E A E E ER 78 DNS AAAI oraret RE E et a R E R EST 80 EDANA TA E A 82 ND IAA e E E N N 84 DO DANO Wiss seatenshrisnasu N O 86 DAT PANON che tects E ieee E E msds tence raed ce uimanets 88 LAIS PAA Ter E EE E E EOE 90 DAF AIT IN erran ar a E ASO 92 ZOSIA TN ane a E E 94 TAA A a akg N AN 96 2 DD DANON eS a A E N AN 98 DDO SION areen awd E EE dust E 100 22 SAAN o E T E 102 DD P AAB cadet eo inhaler aa colo ea aka 104 DO BON N ites tt Miata A 106 Dele IAT So sided aa ew ite a daca gales eae tan Med ena adidas aden 108 DDB Diet ho sus seuonca sienna dais eau A 109 DOO SAAM Beedle a a ll aide Matera lane 111 Ze SOD IAIP ste ea telah eters ine es tae neat de eh detec ined ss ocean Aca ioe 112 2A IN enparan a aAa A 114 PIAA S Aa ne a O are 116 2 IRAAN aE ae e NE A teers 118 DD E E A A A E E E EEE desublcetas 120 DD IN Orta ahea eesti adl E E 121 1 7021 22 24 M 7022 24 User Manual Rev B2 1 3 Ds DOSEN Nessa tara E ansehen seen se Se eo sto pa abies stron
94. t 04 05 Number of 2 Bytes The value is the same as byte 04 and output channels 05 of the Request Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte Ox8F 02 Exception code 1 Byte Refer to the Modbus standard for more details 160 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7022 M 7024 M 7024R M 7024U 3 8 16 0x10 Write Multiple Registers This function code is used to write the analog output values of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x10 02 03 Starting channel 2 Bytes 0x0000 0x0001 for M 7022 0x0000 0x0003 for M 7024 0x0000 0x0003 for M 7024R 0x0000 0x0003 for M 7024U 0x0000 0x0007 for M 7028 04 05 Number of 2 Bytes Ox0001 0x0002 for M 7022 output channels 0x0001 0x0004 for M 7024 N 0x0001 0x0004 for M 7024R 0x0001 0x0004 for M 7024U 0x0001 0x0008 for M 7028 06 Byte count 1 Byte Number of bytes of the following output values 2 x N 07 Data of output 2xN Data in the specified data format 2 channels Bytes bytes for each channel Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x10 02 03 Starting channel 2 Bytes The value is the same as byte 02 and 03 of the Request 04 05 Number of 2 Bytes The value is the same as byte 04 and output channels 05 of the Request Error Response 00 Address 1 Byte
95. ta in the specified data format Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x06 02 03 Output channel 2 Bytes The value is the same as byte 02 and numbers 03 of the Request 04 05 Output value 2 Bytes The value is the same as byte 04 and 05 of the Request Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x86 02 Exception code 1 Byte Refer to the Modbus standard for more details I 7021 22 24 M 7022 24 User Manual Rev B2 1 159 M 7024U 3 7 15 OxOF Write Multiple Coils This function code is used to write the digital output values of a module Request 00 Address 1 Byte 1 247 01 Function code 1 Byte OxOF 02 03 Starting channel 2 Bytes 0x0000 0x0003 for M 7024U 04 05 Number of 2 Bytes output channels 0x0001 0x0004 for M 7024U 06 Byte count N 1 Byte Number of bytes of the following output values 0x01 07 Data of output N A bit corresponds to a channel channels Bytes 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 OFF Note This function is only available to the M 7024U Response 00 Address 1 Byte 1 247 0l Function code 1 Byte OxOF 02 03 Starting channel 2 Bytes The value is the same as byte 02 and 03 of the Reques
96. ta of output Nx2 Data in the specified data format channels Bytes Error Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x83 02 Exception code 1 Byte 02 starting channel out of range 03 starting channel number of output channels out of range incorrect number of bytes received 156 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024R M 7024U 3 4 04 0x04 Read Input Channels This function code is used to read the current digital input counter value of a module Request 00 Address 1 Byte 1 to 247 01 Function code 1 Byte 0x04 02 03 Starting channel 2 Bytes Ox0080 to 0x0084 for M 7024R 0x0080 to 0x0083 for M 7024U 04 05 Number of input 2 Bytes l to 5 for M 7024R channels N 1 to 4 for M 7024U Note This function is only available to the M 7024R and M 7024U Response 00 Address 1 Byte 1 to 247 01 Function code 1 Byte 0x04 02 Byte count l Byte 2xN 03 Data of input 2xN _ Data of counter value channels Bytes Error Response 00 Address 1 Byte 1 to 247 01 Function code 1 Byte 0x84 02 Exception code l Byte 02 starting channel out of range 03 starting channel number of input channels out of range incorrect number of bytes received I 7021 22 24 M 7022 24 User Manual Rev B2 1 157 M 7024U 3 5 05 0x05 Write Single Coil This function code is used to write a d
97. th the module when the configuration of the module is unknown To help avoid this problem the I 7000 and M 7000 series 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 Address 00 Baud Rate 9600 bps No checksum Protocol DCON ee ce ae 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 7 AANNTTCCFFE when changing Baud Rate and checksum settings See Section 2 1 for details 2 AAPN see Section 2 31 for details I 7021 22 24 M 7022 24 User Manual Rev B2 1 177 Originally the INIT mode is accessed by connecting the INIT terminal to the GND terminal New I 7000 and M 7000 modules have the INIT switch located on the rear side of the module allow easier access to INIT mode For these modules INIT mode is accessed by sliding the INIT switch to the Init position as shown below Init Init Normal Normal i SS a _ ____ D EoD C_D i IE INIT Switch i e 178 I 7021 22 24 M 7022 24 User Manual Rev B2 1 A 2 Dual Watchdog Operation Dual Watchdog Module Watchdog Host Watchdog The Module Watchdog is a hardware reset
98. the module and receive no response first check the following oO 176 Ensure that the supplied power is within the range of 10 to 30 V DC If the supplied power is OK then the power LED should be on When the module receives a command the power LED is set to off The power LED is shown as on after the module responds This method can be used to check whether the module has received a command sent from the host If possible use another device to check whether the host can communicate with the device through the same RS 485 network If the host is a PC installed with a Windows operating system then execute the DCON Utility to determine whether the module can be found The DCON Utility can be downloaded from the ICP DAS website http www icpdas com The DCON Utility documentation can be found in the Getting Started For I 7000 Series Modules manual Set the module to INIT mode and communicate with the module using the following settings address 00 Baud Rate 9600bps no checksum and DCON protocol See Section A 1 for details I 702 1 22 24 M 7022 24 User Manual Rev B2 1 A Appendix A 1 INIT Mode Each I 7000 and M 7000 module has a built 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 wi
99. tion 1 11 for details FF Data format checksum settings and slew rate settings of the module see Section 1 11 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 72 I 702 1 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P I 7022 I 7024 I 7024R M 7021A M 7022 M 7022A M 7024 M 7024R M 7024U M 7028 Examples Command 012 Response 01300600 Reads the configuration of module 01 Command 022 Response 02330602 Reads the configuration of module 02 Related Commands Section 2 1 7 AANNTTCCFEF Related Topics Section 1 11 Configuration Tables I 7021 22 24 M 7022 24 User Manual Rev B2 1 73 I 7021 I 7021P 2 10 AA3VV Description Adjusts the analog output for calibration Syntax AA3VV CHKSUM CR Delimiter character AA Address of the module to be adjusted 00 to FF 3 Command to adjust the analog output VV A two digit 2 s complement hexadecimal value to adjust the analog output The value of 00 to 5F is to increase 0 to 95 counts and FF to Al is to decrease 1 to 95 counts where each count is about 4 88uA or 2 44mV Response Valid Command AA CHKSUM CR Invalid Command 74A CHKSUM CR Delimiter character for a valid command 2 Delimiter character for an invalid command AA Address of the responding module 00 to FF There will be no response if the command syntax is
100. tocol 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 M 7000 series modules support the Modbus RTU protocol The communication Baud Rates range from 1200bps to 115200bps The number of data bits is fixed to 8 For M 7022 firmware version B102 and later M 7024 firmware version B202 and later M 7024R M 7024U and M 7028 the parity can be none even or odd For M 7022 other versions and M 7024 other versions the parity and stop bits are fixed as no parity and 1 stop bit The following Modbus functions are supported Function Code Description Section 01 0x01 Read coils 3 1 02 0x02 Read digital inputs 3 2 03 0x03 Read output channels 3 3 04 0x04 Read input channels 3 4 05 0x05 Write single coil 3 5 06 0x06 Write single register 3 6 15 0x0F Write multiple coils 3 7 16 0x10 Write multiple registers 3 8 If the function specified in the message is not supported then the module responds as follows 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 I 7021 22 24 M 7022 24 User Manual Rev B2 1 153 M 7024U 3 1 01 0x01 Read Coils This fun
101. tput value of channel 1 of module 01 and returns 05 000 I 7021 22 24 M 7022 24 User Manual Rev B2 1 133 1 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U M 7028 Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA3EVV Section 2 43 AASN Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status Note This command is only applicable to the I 7022 I 7024 I 7024R M 7022 M 7024 M 7024R M 7024U and M 7028 134 I 7021 22 24 M 7022 24 User Manual Rev B2 1 I 7021 I 7021P 2 42 AA5 Description Sets the current analog output value as the safe analog output value Syntax AA5 CHKSUM CR Delimiter character AA Address of the module to be set 00 to FF 5 Command to set the safe analog output value Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 Examples Command 015 Response 01 Sets the safe analog output value of module 01 and returns a valid response I 7021 22 24 M 7022 24 User Manual Rev B2 1 135 I 7021 I 7021P Related Commands Section 2 34 Section 2 35 AAO Section 2 36 AAI1 Section 2 38 AA
102. ts If the host watchdog timeout status is not cleared on power on then the safe value is loaded into the analog output ports The safe value is set by the AA5 command for the I 7021 and I 7021P and by the AA5N command for the I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 The power on value is set by the AA4 command for the I 7021 and I 7021P and by the AA4N command for the I 7022 M 7022 I 7024 I 7024R M 7024 M 7024R M 7024U and M 7028 When the module receives the analog output command A A data or AAN data if the host watchdog timeout status is not cleared then it responds to indicate that the command is ignored If the host watchdog timeout status is cleared it responds gt to indicate a successful 182 I 7021 22 24 M 7022 24 User Manual Rev B2 1 command If the output value specified by the command is larger than the upper limit then it responds to indicate out of range and set the analog output to the upper limit If the output value specified by the command is less than the lower limit then it responds to indicate out of range and set the analog output to the lower limit I 7021 22 24 M 7022 24 User Manual Rev B2 1 183 A 6 Slew Rate Control Usually the output of an analog output module changes instantaneously That is when the module receives an output command its output changes to the specified value immediately However it may require that the out
103. v B2 1 A 4 Reset Status The reset status flag is set when the module is powered on or reset by the module watchdog It is cleared after the responding of the first read reset status command AAS5 This can be used to check whether the module had been reset When the AA5 command responds that the reset status 1s cleared that means the module has not been reset since the last AA5 command was sent When the AA5 command responds that the reset status is set and it is not the first time AA5 command is sent after powered on it means that the module has been reset by the module watchdog and the analog output value had been changed to the power on value I 7021 22 24 M 7022 24 User Manual Rev B2 1 181 A 5 Analog Output Besides setting by the analog output commands the analog outputs can be set by two other conditions When the host watchdog is enabled and a host watchdog timeout occurs the safe value is loaded into the analog output ports The analog output commands have no effect on the analog 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 analog output por
104. version high word R 40483 Module name low word R 40484 Module name high word R 40485 Module address valid range 1 247 R W 40486 IBits 5 0 R W Baud rate 0x03 OxOA Code 0x03 0x04 0x05 0x06 Baud 1200 2400 14800 9600 Code 0x07 0x08 0x09 Ox0A Baud 19200 38400 57600 115200 Bits 7 6 00 no parity 1 stop bit 01 no parity 2 stop bits 10 even parity 1 stop bit 11 odd parity 1 stop bit 40487 Type code R W 40488 Modbus response delay time in ms R W valid range 0 30 40489 Host watchdog timeout value 0 255 R W 164 in 0 1s I 7021 22 24 M 7022 24 User Manual Rev B2 1 Address Description Attribute 40492 Host watchdog timeout count write 0 R W to clear 40494 Slew rate R W 00257 Protocol 0 DCON 1 Modbus RTU R W 00260 Modbus host watchdog mode R W 0 same as I 7000 1 can use AO and DO command to clear host watchdog timeout status 00261 1 enable 0 disable host watchdog R W 00269 Modbus data format 0 hex 1 R W engineering 00270 Host watch dog timeout status write 1 R W to clear host watch dog timeout status 00273 Reset status 1 first read after R powered on 0 not the first read after powered on Output Types Type Code Output Range Data Format Max Min Engineering 20000 0 X pie DOMMES e adecimal SPEER Ii 0000h Engineering 20000 4000 al Fa AniS I exadecimal 3EEBh 0000h Engineering 10
105. will be no response if the command syntax is incorrect there is a communication error or there is no module with the specified address 114 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7022 M 7024 M 7024R M 7024U M 7028 Examples Command 01P1 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 30 AAP Related Topics Section A 1 INIT Mode Note This command is only applicable to the M 7022 M 7024 M 7024R M 7024U and M 7028 I 7021 22 24 M 7022 24 User Manual Rev B2 1 115 M 7024U M 7028 2 32 AAS1 Description Reloads the factory calibration parameters Syntax A ASI CHKSUM CR Delimiter character AA Address of the module to be reloaded 00 to FF Sl Command to reload the factory calibration parameters Response Valid command AA CHKSUM CR Invalid command 4A CHKSUM CR Delimiter character for a valid command Delimiter character 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 116 I 7021 22 24 M 7022 24 User Manual Rev B2 1 M 7024U M 7028 Examples Command

Download Pdf Manuals

image

Related Search

Related Contents

  Kenmore 4.6 cu. ft. Slide-In Electric Range - Black Owner's Manual    

Copyright © All rights reserved.
Failed to retrieve file