Home

tm-da1p1r1 user manual

image

Contents

1. Address Description Attribute 00033 Digital input value of channel 0 R 10033 00065 High latched value of DI R 10065 00073 High latched value of DO R 10073 00097 Low latched value of DI R 10097 00105 Low latched value of DO R 10105 00001 Digital output value of channel 0 R W 00129 Safe value of digital output channel 0 R W 00161 Power on value of digital output channel 0 R W 00193 Counter update trigger edge of digital R W input channel 0 00257 Protocol 0 DCON 1 Modbus R W 00258 Protocol 0 Modbus RTU 1 Modbus R W ASCII 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 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 digital input channel 0 104 tM DA1P1R1 User Manual Rev B2 0 Analog Outputs Type Range Data Format Minimum Maximum Code 0 0 mA 20 mA Engineering 0 20000 Hexadecimal 0000h FFFFh 1 4 mA 20 mA Engineering 4000 20000 Hexadecimal 0000h FFFFh 2 OV 10 V Engineering 0 10000 Hexa
2. 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 98 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 3 5 05 0x05 Write Single Coil 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 0x05 02 03 Output channel 2 Bytes 0x0000 for tM DAIPIR1 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 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 tM DA1P1R1 User Manual Rev B2 0 99
3. tM DA1P1R1 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 for tM DAIPIR1 numbers 04 05 Output value 2 Bytes Data 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 100 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 3 7 15 0x0F 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 Ox0OF 02 03 Starting channel 2 Bytes 0x0000 for tM DA1P1R1 04 05 Number of 2 Bytes output channels 0x0001 for tM DA1P1R1 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
4. AA4 AASPPSS Command Wk AAO AAI AA2 AA3ETT AA4N AASN Digital Input and Output Command Sets Description Resets the counter data of a digital channel AAOOOII Reads the digital output and input status IAA Sets the digital output value IAA AA Data Reads the counter data of a digital channel 1A APPSS ies the power on and safe digital output Sets the power on and safe digital output value Host Watchdog Command Sets Host is OK Reads the host watchdog status Resets the host watchdog status Reads the host watchdog timeout settings Sets the host watchdog timeout settings A Description Reads the safe value of an analog output AA Data channel T 1A Sets the current analog output value as i safe value for a channel tM DA1P1R1 User Manual Rev B2 0 27 tM DA1P1R1 2 1 AANNTTCCFF Description Sets the configuration of an analog output module Syntax AANNTTCCFF CHKSUM CR o AA NN TT CC FF 28 Delimiter character Address of the module to be configured in hexadecimal format 00 to FF New address of the module in hexadecimal format 00 to FF New type code see Section 1 10 for details Not used by the tM DAIPIRI1 For the tM DAIPIRI use the AAONTS command to set the type of each channel see Section 2 13 for details New Baud Rate code see Section 1 10 for details To change the Baud Rate the right slide switch must be set to the INIT position See Sec
5. 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 56 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 011 Response 010 Reads the INIT status of module 01 The response shows that the right slide is in the INIT position tM DA1P1R1 User Manual Rev B2 0 57 tM DA1P1R1 2 16 AAM Description Reads the name of a module Syntax AAM CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF M Command to read the module 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 Se
6. Warning It is not recommended that calibration be performed until the process is fully understood L Warm up the module for at least 30 minutes 2 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 13 for details Send command to output zero calibration current voltage 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 zero calibration current voltage Refer to Section 2 6 for details of sending the trim command Send the zero calibration command Refer to Section 2 3 for details Send command to output span calibration current voltage 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 span calibration current voltage Refer to Section 2 6 for details of sending the trim command Send the span calibration command Refer to Section 2 4 for details tM DAIP1R1 User Manual Rev B2 0 Notes 1 The zero span calibration voltages and currents are shown as below 2 The tM DA1P1R1 must be switched to the DCON protocol mode before calibrating Refer to Section 3
7. AA1N Description Performs a span calibration Syntax AAIN CHKSUM CR Delimiter character AA Address of the module to be calibrated 00 to FF l Command for the span calibration N Specifies the channel to be calibrated O for tM DAIPIRI 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 0110 Response 01 Performs a span calibration on channel 0 of module 01 and returns a valid response tM DA1P1R1 User Manual Rev B2 0 35 tM DA1P1R1 Related Commands Section 2 3 AAON Section 2 6 AA3NVV Related Topics Section 1 9 Calibration 36 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 5 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 7A4A 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 tM DA1PIR1 this field is set to 00 CC Baud R
8. AResetStatisS a e ah E E A E t 112 AL AMAIOS OULDUE sees scsuviaiitacedesarstatedeap isan a Rt 113 AO Slew Rate Controleren eA Ae Be eee 115 A 7 Analog Output Read back ee eecececeeeesteeeeeeeeeeneees 116 A 6 Frame Ground eio eren nce eea aan EEs 117 tM DA1P1R1 User Manual Rev B2 0 3 1 Introduction The tM 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 or the standard Modbus 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 2K baud can be selected The tM series feature a new design for the frame ground and INIT switch as shown in the figure The frame ground provides enhanced static protection ESD abilities and ensures the module is more reliable The INIT switch allows easier access to INIT mode Please refer to Sections A 1 and A 8 for more details Run lt Init i mi The features of the tM DA1PI1R1 are as follows 1 2500Vpc inter module isolation 2 Programmable power on values for analog output and digital output 3 Programmable slew rate for analog output 4 tM DAIP1R1 User Manual Rev B2 0 ey ae Software calibration one channel
9. Delimiter character AA Address of the module to be read 00 to FF 6 Command to read the last written analog output value N The channel to be read O for tW DAIPIR1 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 10 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 tM DA1P1R1 User Manual Rev B2 0 45 tM DA1P1R1 Examples Command 01010 000 Response gt Sets the output of channel 0 of the module 01 to 10 000 and the module returns a valid response Command 0160 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 2 AAN Data Section 2 11 A A8N Related Topics Section 1 10 Configuration Tables Section A 7 Analog Output Read back 46 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 10 AA7N Description Reads the power on analog output value of a specified channel Syntax A A7N 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 chan
10. 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 tM DA1P1R1 User Manual Rev B2 0 43 tM DA1P1R1 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 44 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 9 AA6N Description Reads the last written analog output value of a specified channel Syntax AA6N CHKSUM CR
11. 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 20 tM DA1P1R1 User Manual Rev B2 0 1 11 Mounting 1 11 1 Din Rail Mounting There are three new DIN rail models available Each is made of stainless steel which is stronger than those made of aluminum There is a screw at one end and a ring terminal is included so that it can be easily connected to the earth ground The three new DIN rail models are as follows Part number Max number of modules Dimensions DRS 360 5 360mm x 35mm to earth ground tM DA1P1R1 User Manual Rev B2 0 21 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 22 tM DAIPI1R1 User Manual Rev B2 0 1 12 Technical Support Should you encounter any problems while using the tM series module and are unable to find the help you need in this manual or on our website please contact ICP DAS Product Support Email servic
12. 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 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 03RECO Response 0300103 Reads data from channel 0 of module 03 and the returned counter value is 103 Command 03CECO Response 03 Clears the counter value of channel 0 of module 03 and returns a valid response Command 03RECO Response 0300000 Reads counter data from channel 0 of module 03 and the returned counter value is 0 Related Commands Section 2 34 AARECN tM DA1P1R1 User Manual Rev B2 0 87 tM DA1P1R1 2 32 AADI Description Reads the digital input and digital output status of a module 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 AAQOOITI 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 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 I A two digit hexadecimal value where bit 0 corresponds to DIO bit 1 corresponds to DI1 etc When the bit i
13. output changing immediately Command 01005 000 Response gt Sets channel 0 of module 01 to output 5 mA The module returns a valid response Command 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 Related Commands Section 2 1 7 AANNTTCCFF Section 2 5 AA2 Related Topics Section 1 10 Configuration Tables Section A 5 Analog Output 32 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 2 3 AAON Description 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 zero calibration N Specifies the channel to be calibrated O for tM DAIPIRI1 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 0100 Response 01 Performs a zero calibration on channel O of module 01 and returns a valid response tM DA1P1R1 User Manual Rev B2 0 33 tM DA1P1R1 Related Commands Section 2 4 AAIN Section 2 6 AA3NVV Related Topics Section 1 9 Calibration 34 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 4
14. 0 11 1 6 Wiring Voltage Output Vout0 acnp i Oo Co Load Current Output I 4 5 Iout0 4l L Tout0 Load Digital Input Counter Wirin ON State OFF State 8 Readback as 1 Readback as 0 Close to Dry GND Open p10 2 p10 LN J pry 6n Dry Contact Lo G Dry GND Open Open 3 5 VDC 50 VDC 1 VDC Max Wet DIO DI Contact S S 0 3 5 50 VDC S Wet COM 1 VDC Max S Wet COM Relay Output OFF State ON State tM DAIP1R1 User Manual Rev B2 0 12 1 6 1 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 tM DAIPI1R1 User Manual Rev B2 0 1 7 Quick Start Please refer to the Quick Start for tW DAIPIRI1 14 tM DA1P1R1 User Manual Rev B2 0 1 8 Default Settings Default settings for the tW DA1PIR1 are as follows o o o o o Protocol Modbus RTU Module address 01 Analog output type 0 10 V Baud rate 9600 bps Engineering unit format tM DA1P1R1 User Manual Rev B2 0 1 9 Calibration
15. 12 bit analog output one channel digital input one channel relay output tM DAIPI1R1 User Manual Rev B2 0 1 1 More Information o For details of INIT mode operation please refer to Section A 1 INIT Mode o For details of module watchdog and host watchdog please refer to Section A 2 Dual Watchdog Operation o For details of ESD protection and grounding please refer to Section A 8 Frame Ground 6 tM DA1P1R1 User Manual Rev B2 0 1 2 Terminal Assignment tM DAIP1R1 User Manual Rev B2 0 1 3 Specifications System Specifications Communication Interface Format Baud Rate Protocol Watchdog LED Indicators Diaplay System LED Indicator T O LED Indicator Isolation Intra module Isolation Filed to Logic EMS Protection ESD IEC 61000 4 2 EFT IEC 61000 4 4 Surge IEC 61000 4 5 Power Reverse Polarity Protection Input Range Consumption Mechanical Dimensions W x Lx H Installation Environment Operating Temperature Storage Temperature Humidity RS 485 N 8 1 N 8 2 O 8 1 E 8 1 1200 115200 bps DCON Modbus RTU Modbus ASCII Communication Programmable Yes 1 LED as Power Communication Indicator 2500 VDC 4 kV contact for Each Terminal 8 kV Air for Random Point 4 kV for Power Line Yes 10 30 VDC 1 8 W max 52 mm x 98 mm x 27 mm DIN Rail Mounting 25 75 C 30 80 C 10 95 RH Non condensing 8 tM DAIPIRI User Manual Rev B2 0 I O Spec
16. AU OM sns cnn R E ER E 16 1 10 Configuration Tables ick oct Wan ealed Seite 18 DIVA OUI ea ceccaa tes tak a a aes a Onan rns dans 21 1 11 1 Din Rail Mounting cece esscsccecececeeeeeseesenenes 21 1 12 Technical Support juccce cae ietatcen aac cinikeaaiessecueesditeiteeds 23 2 DRC ON GPTOLOC I terse ae sesareand sete sce tha bosteas E E E 24 ZN TOPE NAG GE cerne hates cite acti aead at euiat cuter R 28 Ded NINN DAU A erei ie sued EEEO 31 DDD AON eo A a cokacoen eet aasluaasawontdes st ovusnesbons 33 Dh PAIN oaa E canned sacmdigton 35 a NE aOR E E uefa Gace 37 OSAAN VV ence E AEAN Wines aes 39 DISA AAN ooreen E 41 TE DAAN TEA E AY eter eee are 43 ZO SANON en E liar a Sakae atalino 45 Oy AA NE a haste ed ashen a N S 47 ALSAN SN Soenna ulate bere daesaaasn beads tapes aecetdavaadaen 49 PA A WR ONG teas eae TEE EA Sih is ETE E 51 DU BAAN ES e ec este east Urea Balides iia tate hedleebebseds ae DEAD see sacs ieichehe tie Sa A ty tnosanetpseedesds 55 ZED AA eas ciatvceacareriarecs ethene ta O 56 UGA UNI a EE 58 DIT DAP A A E 59 DUB WAP ING aa E a E 6l ZVO SAAN ame aee a A reel vase eaSerlectanttita lee heii 63 2 tM DAIP1R1 User Manual Rev B2 0 DD PANO yal wee hace ae sot acta astaks a tet E EE 66 EDDIE 720 8d RE REN ROT eT OEE Eee TREES Y ETOP AE ROT TE Ee nn 68 De PI sch eri eats EE cea foe css Neal enced 70 22 RAAS ENN sisson ceth sasete Goad Sesea iatae cones aascuiiven a Se ataiae 12 DIODE a E EE A E E EE E oree 74 DED IDA
17. 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 96 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 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 0l Function code 1 Byte 0x03 02 03 Starting channel 2 Bytes 0x0000 for tM DAIPIRI 04 05 Number of 2 Bytes 0x0001 for tM DA1P1R1 output channels N Response 00 Address 1 Byte 1 247 01 Function code 1 Byte 0x03 02 Byte count l Byte Nx2 03 Data of output Nx2 Data in the specified data format channels Bytes Error Response 00 Address 1 Byte 1 247 0l 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 tM DA1P1R1 User Manual Rev B2 0 97 tM DA1P1R1 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 0x0080 for tM DAI1PIR1 04 05 Number of input 2 Bytes l for tM DAIPIR1 channels N
18. Rev B2 0 93 3 Modbus RTU Protocol The Modbus protocol is developed by Modicon Inc originally developed for Modicon controllers Detailed information can be found at http www modicon com techpubs toc7 html You can also visit http www modbus org to find more valuable information The tM series modules support both the Modbus RTU and Modbus ASCII protocols The communication Baud Rates range from 1200bps to 115200bps 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 94 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 3 1 01 0x01 Read Coils This function 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 0x00
19. is cleared the power on value is loaded into the analog output ports 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 AA5N command The power on value is set by the AA4N command 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 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 tM DA1P1R1 User Manual Rev B2 0 113 than the lower limit then it responds to indicate out of range and set the analog output to the lower limit 114 tM DA1P1R1 User Manual Rev B2 0 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 output change to the specified value gradually in some applications The slew rate control is to adjust the output change rate The tM DA1P1R1 modules support programmable slew rate control When an analog output c
20. the command syntax is incorrect there is a communication error or there is no module with the specified address tM DA1P1R1 User Manual Rev B2 0 49 tM DA1P1R1 Examples Command 012 Response 01000614 Reads the configuration of module 01 and the module returns a response of 9600 bps and engineering data format Command 010 10 000 Response gt Sets the output of channel 0 of the module 01 to 10 000 and the module returns a valid response Command 0160 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 0180 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 2 HAAN Data Section 2 9 AA6N Related Topics Section 1 10 Configuration Tables Section A 6 Slew Rate Control Section A 7 Analog Output Read back 50 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 12 AA9N Description Reads the analog output configuration of a specified channel Syntax AA9NI 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 O for tM DAIPIRI Response Valid command AATS CHKSUM CR Invalid command AA CHKSUM CR Delimiter character for a valid command Delimiter character for an invalid command AA Address of the resp
21. 00 for tM DA1P1R1 DO read back value 04 05 Number of 2 Bytes 0x0001 for tM DA1PIR1 output channel 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 tM DA1P1R1 User Manual Rev B2 0 95 tM DA1P1R1 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 for tM DAIPIR1 where 0x20 corresponds to channel 0 04 05 Number of input 2 Bytes 1 for tM DAIPIR1 channels Response 00 Address 1 Byte 1 to 247 01 Function code 1 Byte Ox02 02 Byte count 1 Byte l 03 Data of input 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 to 247 01 Function code 1 Byte 0x82 02
22. 002 Response 01 Sets DOO 2 and 3 to off and DOI to on and the module returns a valid response Related Commands Section 2 32 AADI Note 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 tM DA1P1R1 User Manual Rev B2 0 91 tM DA1P1R1 2 34 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 O for tM DAIPIRI 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 92 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 03RECO Response 0300103 Reads data from channel 0 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 31 AACECN tM DA1P1R1 User Manual
23. 109 A 2 Dual Watchdog Operation Dual Watchdog Module Watchdog Host Watchdog The Module Watchdog is a hardware reset circuit that monitors the operating status of the module While 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 The tM 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 1 7000 Series Modules manual that can be downloaded from the ICP DAS website http www icpdas com 110 tM DAIPIR1 User Manual Rev B2 0 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 se
24. 9 for details of the switching protocol Calibration voltages current used by the tM DAIPIRI TypeCode 0 1 2 4 tM DA1P1R1 User Manual Rev B2 0 17 1 10 Configuration Tables Baud Rate Setting CC T 6 5 4 3 2 Data Baud Key Description Baud Baud Rate 03 1200 04 2400 05 4800 06 9600 07 19200 08 38400 09 57600 OA 115200 Data Data Format 0 N81 1 N82 2 E81 3 081 18 tM DA1P1R1 User Manual Rev B2 0 Data Format Setting FF 7 6 5 4 3 l 0 RS CS RS DF Key Description DF Data format 00 Engineering unit 01 of FSR full scale range 10 2 s complement hexadecimal CS Checksum setting 0 Disabled 1 Enabled RS Reserved Note The reserved bits should be zero Analog Output Type and Data Format Table for tM DAIPIRI 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 20mA of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 10 000 00 000 2 0 10V of FSR 100 00 000 00 2 s comp HEX FFFF 0000 Engineering unit 05 000 00 000 4 0 S5V of FSR 100 00 000 00 2 s comp HEX FFFF 0000 tM DA1P1R1 User Manual Rev B2 0 Slew Rate Setting
25. A1P1R1 Related Commands Section 2 20 Section 2 21 AAO Section 2 22 AA1 Section 2 24 AA3EVV Section 2 26 AA4N Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status tM DA1P1R1 User Manual Rev B2 0 79 tM DA1P1R1 2 28 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 80 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 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 20 Section 2 21 AAO Section 2 22 AA1 Section 2 24 AA3EVV Section 2 25 AA4 Related Topics S
26. Address 1 Byte 1 247 01 Function code 1 Byte 0x90 02 Exception code 1 Byte Refer to the Modbus standard for more details 102 tM DA1P1R1 User Manual Rev B2 0 3 9 tM DA1P1R1 Address Mappings Address Description Attribute 30065 Analog output read back of channel 0 R 40065 30129 Counter value of digital input channel R 40129 0 40033 Analog output value of channel 0 R W 40097 Safe analog output value of channel 0 R W 40193 Power on analog output value of R W channel 0 40289 Analog output slew rate of channel 0 R W 40417 Analog output type code of channel 0 R W 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 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 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 tM DA1P1R1 User Manual Rev B2 0 103
27. IN voi sleek fect sa incase E aa arian Wa uusbinddes 76 Did NNN cea satis tance ats ea aclstet a O deaetatiornaaes 78 DDB AAP SPO S n Mile oa eM eee ead 80 22O RAARD sas saraicnacale ra aaabaihs ecanh desea tauavodonehaanaiiaveanteoianaieen 82 DDO AIR VIN enea i e A tiliiiee Saaninet Ue heaalst 84 Dic VO PIC EC Naas aed er ds ee Ratt ok eho ante te Bs 86 PONORA DI oir aR n iia eames 88 2 33 ARADO DD RE EEE ATERSE 90 2A AAREC N mean NeT ET EA 92 3 Modb s RFU Protocol eni ee e a e O Ea Maal deates 94 SOR Oxi Read COl aaee a i 95 3 2 02 0x02 Read Discrete Inputs n nesesssssssseseeeeeesessss 96 3 3 03 0x03 Read Output Channels esssseenseneeeeeesessss 97 3 4 04 0x04 Read Input Channels neensesessesnsesesereesessss 98 3 5 05 0x05 Write Single COM essed ess receadvectcectensecennetecen 99 3 6 06 0x06 Write Single Register eeeeenneeeeees 100 3 7 15 OxOF Write Multiple Coils 2 0 0 eeeeceeeeeteeees 101 3 8 16 0x10 Write Multiple Registers ee eeeeeeeeees 102 3 9 tM DAIPIR1 Address Mappings ce eeeeeeneeeeees 103 4 Troubleshooting sssini eea von sae Wine vos Savane tao medaas tea aE R 106 4 1 Communicating with the module eeeeeeeeeeee 107 PRS PA EK oho are caterers cae ts E a value pau os E a a EEE 108 A INTE MOG sutton cccte S AA ee eess di 108 A 2 Dual Watchdog Operation 0 eeceeccceceeeesteeeeeeeeeeneees 110 A 3 Module Output Statuses winescelnitaurdewenacauen 111 A A
28. M DA1P1R1 2 18 AAPN Description Sets the communication protocol Syntax 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 3 Modbus ASCII protocol Before using this command the right slide switch must be in the INIT position 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 will be no response if the command syntax is incorrect there is a communication error or there is no module with the specified address tM DA1P1R1 User Manual Rev B2 0 61 tM DA1P1R1 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 17 AAP Related Topics Section A 1 INIT Mode 62 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 19 AAO Name Description Sets the name of a module Syntax AAO Name CHKSUM CR Delimiter character AA Address
29. R1 Examples Command 019021 Response 01 Sets the configuration of channel 0 for module 01 to 0 to 10V range and 0 625 V second slew rate and returns a valid response Related Commands Section 2 12 AA9N Related Topics Section 1 10 Configuration Tables 54 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 14 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 tM DA1P1R1 User Manual Rev B2 0 55 tM DA1P1R1 2 15 AAI Description Reads the INIT terminal status of a module Syntax AAI 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
30. and 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 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 70 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 012 Response 011FF Reads the host watchdog timeout value of module O1 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 20 Section 2 21 AAO Section 2 22 AA1 Section 2 24 AA3EVV Related Topics Section A 2 Dual Watchdog Operation tM DA1P1R1 User Manual Rev B2 0 71 tM DA1P1R1 2 24 AA3EVV 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 Respon
31. and Sets AANNTTCCFFY AA Sets the module configuration AATTCCFF Reads the module configuration N N N Nn N oo Reads the module reset status AA Data Reads the firmware version Reads the INIT terminal status AA Data Reads the module name AASC Reads the communication protocol AAI AAM N 1 N o O N AAPN IAA AAO Name IAA AA N o0 Sets the communication protocol Sets the module name Reads the response delay time gt gt gt gt n n N O AARD AARDVV gt gt lt lt ALTATATATaTaeT ays gt gt Ii gt irts gt Trl gt gr mafon A N O N w Sets the response delay time Command ction Performs span calibration of a channel Adjusts the analog output of a channel for MN N N AAON AAIN N 09 N P AA3NVV calibration Sets the current output value of a channel as AA4N power on value AA6N IAA Data Reads the last written analog output value of a channel AA AA7N Reads the power on value of a channel AA8N AA Data Reads the current analog output of a channel AA9N IAATS Reads the analog output configuration of a Sets the analog output configuration of a yo fee io fu oa N 1 1 N N N _ OO PF PTA ATA gt gt g Z A amp 26 tM DA1P1R1 User Manual Rev B2 0 Command AACECN AADODD AARECN
32. anges to the Baud Rate and checksum settings take effect on the next power on reset 30 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 2 AAN Data Description Writes the data to a specified analog output channel Syntax AAN Data CHKSUM CR Delimiter character AA Address of the module to be written 00 to FF N The analog output channel to be written O for tM DAIPIRI1 Data Data to be written to the analog output channel see Section 1 10 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 tM DA1P1R1 User Manual Rev B2 0 31 tM DA1P1R1 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
33. ate code of the module see Section 1 10 for details FF Data format and checksum settings of the module see Section 1 10 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 tM DA1P1R1 User Manual Rev B2 0 37 tM DA1P1R1 Examples Command 012 Response 01000600 Reads the configuration of module 01 Command 022 Response 02000602 Reads the configuration of module 02 Related Commands Section 2 1 7 AANNTTCCFEF Related Topics Section 1 10 Configuration Tables 38 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 6 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 O for tM DA1P1RI1 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 74AA CHKSUM CR Delimiter character for a valid command i 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 communica
34. atus 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 68 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 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 20 Section 2 21 AAO Section 2 23 AA2 Section 2 24 AA3EVV Related Topics Section A 2 Dual Watchdog Operation tM DA1P1R1 User Manual Rev B2 0 69 tM DA1P1R1 2 23 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 comm
35. ction 2 19 AAO Name 58 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 17 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 3 all of the DCON and Modbus RTU ASCII 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 3 the protocol set in the EEPROM is Modbus ASCII tM DA1P1R1 User Manual Rev B2 0 59 tM DA1P1R1 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 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 18 AAPN 60 tM DA1P1R1 User Manual Rev B2 0 t
36. decimal 0000h FFFFh 4 OV 5V Engineering 0 5000 Hexadecimal 0000h FFFFh tM DA1P1R1 User Manual Rev B2 0 105 4 Troubleshooting If you are having difficulty using the tM 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 12 106 tM DA1P1R1 User Manual Rev B2 0 4 1 Communicating with the module If you attempt to communicate with the module and receive no response first check the following oO 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 addr
37. e 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 14 for information regarding the command used to identify the firmware version Or read the Modbus registers 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 tM DA1P1R1 User Manual Rev B2 0 23 2 DCON Protocol All communication with tM modules consists of commands generated by the host and responses transmitted by the tM 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 com
38. ead 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 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 66 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 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 20 Section 2 22 AA1 Section 2 23 AA2 Sec 2 24 AA3EVV Related Topics Section A 2 Dual Watchdog Operation tM DA1P1R1 User Manual Rev B2 0 67 tM DA1P1R1 2 22 AA1 Description Resets the host watchdog timeout st
39. ection A 2 Dual Watchdog Operation Section A 3 Module Output Status tM DA1P1R1 User Manual Rev B2 0 81 tM DA1P1R1 2 29 AARD Description Reads the response delay time value of a module Syntax AARD CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF RD Command to read the response delay time value Response Valid Response AAVV 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 VV Two hexadecimal digits to represent the response delay time value in milli second for example 01 denotes Ims and 1E denotes 30ms The max allowable value is 30 1Eh 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 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 01RD Response 0102 Reads the response delay time value of module 01 and returns 02 which denotes that the response delay time value is 2ms Related Commands Section 2 30 AARDVV tM DA1P1R1 User Manual Rev B2 0 83 tM DA1P1R1 2 30 AARDVV Description Sets the response delay time value of a module Syntax AARDVV CHKSUM CR Delimiter character AA Address of the module to be read 00 to FF RD Command to set the communication protocol VV Two hexadecimal digits to
40. ess 00 Baud Rate 9600bps no checksum and DCON protocol See Section A 1 for details tM DAIPIR1 User Manual Rev B2 0 107 A Appendix A 1 INIT Mode Each tM 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 with the module when the configuration of the module is unknown To help avoid this problem the tM 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 1 Address 00 2 Baud Rate 9600 bps 3 No checksum 4 Protocol DCON The configuration information stored in the EEPROM is not changed and can be read by sending the 002 CR command at 9600bps There are commands that require the module to be in INIT mode They are 1 7 AANNTTCCFFE when changing Baud Rate and checksum settings See Section 2 1 for details 2 AAPN see Section 2 18 for details 108 tM DA1P1R1 User Manual Rev B2 0 The tM modules have the INIT switch located on the right 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 Run gt Init tM DA1P1R1 User Manual Rev B2 0
41. ifications Analog Output Channel Type Resolution Accuracy DA Output Response Time Voltage Output Capability Current Load Resistance Digital Input Counter Channel Type Dry Contact Wet Contact Wet On Voltage Level Contact Off Voltage Level Dry On Voltage Level Contact Off Voltage Level Max Counts Counters Max Input Frequency Min Pulse Width Input Impedance Channel to Channel Isolation Overvoltage Protection Relay Output Channel Relay Type Contact Rating From C Operate Time Relay Release Time Mechanical Endurance Electrical Endurance Power On and Safe Value Notes 1 0 10V 0 20mA 4 20mA 12 bit 0 1 of FSR 10 ms 20 mA 500 Q 1 Sink Sink Source 3 5 VDC 50VDC 1 VDC Max Close to GND Open 65536 16 bit 100 Hz 5 ms 10 KQ 70 VDC 1 From C Power Relay NO 10A 250 Vac 30 Voc NC 6A 250 Vac 30 Voc 15 ms max 5 ms max 1 X 10 OPS 5 X 10 OPS Yes Programmable 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 tM DA1P1R1 User Manual Rev B2 0 1 4 Block Diagrams 1 4 1 Block Diagram for the tU DA1P1R1 Vout0 Tout0 Tout0 i AGND DI COM tM DAIPI1R1 User Manual Rev B2 0 1 5 Dimensions m Bottom View Back View Right Side View tM DAIP1R1 User Manual Rev B2
42. mand 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 a communication error or there is no module with the specified address 74 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 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 20 Section 2 21 AAO Section 2 22 AA1 Section 2 24 AA3EVV Section 2 28 AASPPSS Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status tM DA1P1R1 User Manual Rev B2 0 75 tM DA1P1R1 2 26 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 O for tM DAIPIRI Response Valid command AA Data 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 Data The safe analog output value see Section 1 10 for details of the da
43. mands to the modules contain the ID address meaning that only the addressed module will respond The only exception to this is command Section 2 20 which is sent to all modules but in these cases the modules do not reply to the command Command Format Leading Module Character Address COMmand CHKSUM CR Response Format Leading Module Character Address Data CHKSUM CR CHKSUM A 2 character checksum which is present when the checksum setting is enabled See Sections 1 10 Data Format Setting and 2 1 for details CR End of command character carriage return OxOD 24 tM DA1P1R1 User Manual Rev B2 0 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 tM DA1P1R1 User Manual Rev B2 0 25 General Comm
44. nel to be read O for tW DAIPIR1 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 10 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 tM DAIP1R1 User Manual Rev B2 0 47 tM DA1P1R1 Examples Command 0170 Response 01 10 000 Reads the power on analog output value of channel 0 of the module 01 and the module returns 10 000 Related Commands Section 2 7 AA4N 48 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 11 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 O for tW DAIPIR1 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 10 for details of the data format There will be no response if
45. nt to go to normal mode to accept the output command tM DA1P1R1 User Manual Rev B2 0 111 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 is 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 112 tM DA1P1R1 User Manual Rev B2 0 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
46. 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 tM DA1P1R1 User Manual Rev B2 0 63 tM DA1P1R1 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 16 AAM 64 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 20 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 21 AAO Section 2 22 AA1 Section 2 23 AA2 Section 2 24 AA3EVV Related Topics Section A 2 Dual Watchdog Operation tM DA1P1R1 User Manual Rev B2 0 65 tM DA1P1R1 2 21 AAO Description Reads the host watchdog status of a module Syntax AA0 CHKSUM CR Delimiter character AA Address of the module to be r
47. ommand is received the analog output will change to the new value in the specified slew rate automatically The tM DAIPIRI1 modules update the analog output every 10 ms The analog output is updated smoothly until it reaches the specified output value tM DA1P1R1 User Manual Rev B2 0 115 A 7 Analog Output Read back The tM DA1P1R1 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 116 tM DA1P1R1 User Manual Rev B2 0 A 8 Frame Ground Electronic circuits are constantly vulnerable to ESD which become worse in a continental climate area The tM 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 Connect the frame ground terminal to a wire DIN rail and connect the wire DIN rail to the earth ground will provide a better protection for the module tM DA1P1R1 User Manual Rev B2 0 117
48. onding module 00 to FF T Analog output type see Section 1 10 for details S Analog output slew rate see Section 1 10 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 tM DA1P1R1 User Manual Rev B2 0 51 tM DA1P1R1 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 13 AAONTS Related Topics Section 1 10 Configuration Tables 52 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 13 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 O for tW DAIPIRI1 Analog output type see Section 1 10 for details Analog output slew rate see Section 1 10 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 there is no module with the specified address tM DA1P1R1 User Manual Rev B2 0 53 tM DA1P1
49. represent the response delay time value in milli second for example 01 denotes Ims and 1E denotes 30s The max allowable value is 30 1Eh 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 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 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 01RD06 Response 01 Sets the response delay time value to 6ms The module returns a valid response Command 01RD Response 0106 Reads the response delay time value of module 01 The module returns 06 which denotes that the response delay time value is 6ms Related Commands Section 2 29 AARD tM DA1P1R1 User Manual Rev B2 0 85 tM DA1P1R1 2 31 AACECN Description Clears the digital input counter of a specified channel Syntax AACECN 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 O for tM DAIPIRI 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
50. s 1 it denotes that the digital input port is on and O denotes that the digital input port is off 88 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 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 33 AADODD tM DA1P1R1 User Manual Rev B2 0 89 tM DA1P1R1 2 33 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 90 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 Examples Command 01DO
51. se 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 72 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 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 20 Section 2 21 AAO Section 2 22 AA1 Section 2 23 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 tM DA1P1R1 User Manual Rev B2 0 73 tM DA1P1R1 2 25 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 com
52. tM DA1P1R1 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 5 4 tM DA1P1R1 User Manual Rev B2 0 1 Table of Contents PSTN CEN OU og assets a noses ere a lemma ones vasa eke meee Sousa Aao EEEE ss ewan ae Sos 4 1 1 More Information ci scare ceush or svaeetlacisiioeeteee ae eal 6 1 2 Terminal ASsignMent ccccecssssssccececeeecesessesensaeeeeees 7 l3 SPC CIM cat ON Seini i a ice R R a aa 8 14 BOCK Dia Sr ania nerenin a stateaies 10 1 4 1 Block Diagram for the M DAIPIR1 ee 10 bS Dimens TOMS 8 sacs sadacs tee Rane N RA 11 FOWNIS o nenea a a N E 12 1 6 1 Wiring Recommendations soeeeneeeseeeeeesseeeeeesseee 13 Te OUES E E EE N 14 1 5 Default SettNtSissonsssvrsnnicsinin innia 15 TDG AUT
53. ta 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 0140 Response 0105 000 Reads the safe analog output value of channel 0 of module 01 and returns 05 000 76 tM DAIP1R1 User Manual Rev B2 0 tM DA1P1R1 Related Commands Section 2 20 Section 2 21 AAO Section 2 22 AA1 Section 2 24 AA3EVV Section 2 27 A ASN Related Topics Section A 2 Dual Watchdog Operation Section A 3 Module Output Status tM DA1P1R1 User Manual Rev B2 0 77 tM DA1P1R1 2 27 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 0 for tW DAIPIRI1 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 0150 Response 01 Sets the safe analog output value of channel 0 of module 01 and returns a valid response 78 tM DAIP1R1 User Manual Rev B2 0 tM D
54. 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 Response 00 Address 1 Byte 1 247 01 Function code 1 Byte OxOF 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 1 247 01 Function code 1 Byte Ox8F 02 Exception code 1 Byte Refer to the Modbus standard for more details tM DA1P1R1 User Manual Rev B2 0 101 tM DA1P1R1 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 for tM DAIP1R1 04 05 Number of 2 Bytes 0x0001 for tM DA1PIR1 output channels N 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
55. tion A 1 for details Used to set the data format and checksum To change the checksum setting the right slide switch must be set to the INIT position See Section A 1 for details tM DAIPI1R1 User Manual Rev B2 0 tM DA1P1R1 Response Valid Command AA CHKSUM CR Invalid Command AA CHKSUM CR Delimiter for a valid command Delimiter for an invalid command If changing the Baud Rate or checksum settings without switching the right slide switch to the INIT position 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 0102000600 Response 02 Changes the address of module 01 to 02 The module returns a valid response Command 0101000A00 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 0101000A00 Response 01 Changes the Baud Rate of module 01 to 115200bps and the module is in INIT mode The module returns a valid response tM DA1P1R1 User Manual Rev B2 0 29 tM DA1P1R1 Related Commands Section 2 5 AA2 Related Topics Section 1 10 Configuration Tables Section A 1 INIT Mode Note Changes to the address and data format settings take effect immediately after a valid command is received Ch
56. tion error or there is no module with the specified address tM DA1P1R1 User Manual Rev B2 0 39 tM DA1P1R1 Examples Command 01301F Response 01 Sets the analog output channel 0 of module 01 to be increased by 31 and returns a valid response Related Commands Section 2 3 AAON Section 2 4 AAIN 40 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 7 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 0 for tW DAIPIRI1 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 01000 000 Response gt Sets the output of channel 0 of module 01 to 0 0mA and returns a valid response tM DAIP1R1 User Manual Rev B2 0 41 tM DA1P1R1 Command 0140 Response 01 Sets the current output of channel 0 of module 01 as the power on value and returns a valid response Related Commands Section 2 2 HAAN data Section 2 10 AA7N 42 tM DA1P1R1 User Manual Rev B2 0 tM DA1P1R1 2 8 AA5 Description

Download Pdf Manuals

image

Related Search

Related Contents

Insecticide coragen?  Brenthaven Trek Sleeve  Nokia Bluetooth Headset BH-202  No. 部品コード 部 品 名 使用個数 規 格 ・ 材 質 単 価 備 考 1  Bomba de calor reversible Aire - Agua  Descarga el file en PDF Parsifal  Public Use Microdata File Documentation and User's Guide for the  Compact Dynamic Brushless Servo Motors - CD Series  Always there to help you  Midivox Quickstart  

Copyright © All rights reserved.
Failed to retrieve file