Automotive Energy & Power Analysis Field Service Enviromental Research & Development DEWE-Modules Programmers Reference Manual ISO9001 ... the precision signal conditioning company w w w. d e w e t r o n . c o m DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 Technical Reference Manual Contents General Information, Safety Instructions 1-1 Notice ………………………………………………………………………………………………………… 1-1 Safety Instructions …………………………………………………………………………………………… 1-3 General System Information ………………………………………………………………………………… 1-4 Support ………………………………………………………………………………………………………… 1-5 DEWETRON Systems and Modules Overview 2-1 DEWE-Systems Overview …………………………………………………………………………………… 2-1 DEWE-Modules Overview …………………………………………………………………………………… 2-2 General Module Information 3-1 Calibration information ……………………………………………………………………………………… 3-1 General module specifications ……………………………………………………………………………… 3-1 Module connectors …………………………………………………………………………………………… 3-1 RS-232/485 interface ………………………………………………………………………………………… 3-2 DAQP module configuration ………………………………………………………………………………… 3-2 DAQP programming commands …………………………………………………………………………… 3-3 PAD module programming …………………………………………………………………………………… 3-3 Conversion table: decimal to hexadezimal and binary …………………………………………………… 3-4 DAQN and DAQP Modules Series 4-1 DAQP-DMM Module ………………………………………………………………………………………… 4-1 DAQP-V Module ……………………………………………………………………………………………… 4-5 DAQP-µV Module …………………………………………………………………………………………… 4-9 DAQP-BRIDGE Module ……………………………………………………………………………………… 4-13 DAQP-BRIDGE-A Module …………………………………………………………………………………… 4-17 DAQP-BRIDGE-B Module …………………………………………………………………………………… 4-23 DAQP-TRQ Module …………………………………………………………………………………………… 4-29 DAQP-ACC-A Module ……………………………………………………………………………………… 4-31 DAQP-CHARGE Module …………………………………………………………………………………… 4-33 DAQP-CHARGE-A Module ………………………………………………………………………………… 4-37 DAQP-CHARGE-B Module ………………………………………………………………………………… 4-41 MDAQ Modules Series 5-1 MDAQ-V Module ……………………………………………………………………………………………… 5-1 PAD Modules Series 6-1 PAD-V8-P Module …………………………………………………………………………………………… 6-1 PAD-TH8-P Module …………………………………………………………………………………………… 6-11 PAD-RTD3 Module …………………………………………………………………………………………… 6-23 PAD-AO1 Module …………………………………………………………………………………………… 6-29 PAD-CNT2 Module …………………………………………………………………………………………… 6-35 PAD-DI8 Module ……………………………………………………………………………………………… 6-45 PAD-DO7 Module …………………………………………………………………………………………… 6-51 DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 Technical Reference Manual General Information, Safety Instructions Notice The information contained in this document is subject to change without notice. DEWETRON elektronische Messgeraete Ges.m.b.H. (DEWETRON) shall not be liable for any errors contained in this document. DEWETRON MAKES NO WARRANTIES OF ANY KIND WITH REGARD TO THIS DOCUMENT, WHETHER EXPRESS OR IMPLIED. DEWETRON SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. DEWETRON shall not be liable for any direct, indirect, special, incidental, or consequential damages, whether based on contract, tort, or any other legal theory, in connection with the furnishing of this document or the use of the information in this document. Warranty Information: A copy of the specific warranty terms applicable to your DEWETRON product and replacement parts can be obtained from your local sales and service office. Restricted Rights Legend: Use austrian law for duplication or disclosure. DEWETRON GesmbH Parkring 4 A-8074 Graz-Grambach / Austria Printing History: Version 2.0.7 Released November 3, 2004 Copyright © 1998 - 2002 DEWETRON GesmbH This document contains information which is protected by copyright. All rights are reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except as allowed under the copyright laws. All trademarks and registered trademarks are acknowledged to be the property of their owners. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 1-1 Notice Safety symbols in the manual: Indicates hazardous voltages. WARNING Calls attention to a procedure, practice, or condition that could cause bodily injury or death. CAUTION Calls attention to a procedure, practice, or condition that could possibly cause damage to equipment or permanent loss of data. WARNINGS The following general safety precautions must be observed during all phases of operation, service, and repair of this product. Failure to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design, manufacture, and intended use of the product. DEWETRON Elektronische Messgeraete Ges.m.b.H. assumes no liability for the customer’s failure to comply with these requirements. All accessories shown in this document are available as option and will not be shipped as standard parts. 1-2 Safety Instructions Safety instructions for all DEWETRON systems The DEWETRON data acquisition systems may only be installed by experts. Read your manual before operating the system. Observe local laws when using the instrument. Ground the equipment: For Safety Class 1 equipment (equipment having a protective earth terminal), a non interruptible safety earth ground must be provided from the mains power source to the product input wiring terminals or supplied power cable. DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes. DO NOT operate damaged equipment: Whenever it is possible that the safety protection features built into this product have been impaired, either through physical damage, excessive moisture, or any other reason, REMOVE POWER and do not use the product until safe operation can be verified by service-trained personnel. If necessary, return the product to a DEWETRON sales and service office for service and repair to ensure that safety features are maintained. Keep away from live circuits: Operating personnel must not remove equipment covers or shields. Procedures involving the removal of covers or shields are for use by service-trained personnel only. Under certain conditions, dangerous voltages may exist even with the equipment switched off. To avoid dangerous electrical shock, DO NOT perform procedures involving cover or shield removal unless you are qualified to do so. No modifications are allowed at the instrument. The fuse in the power module has to be replaced by the same type. For continued protection against fire, replace the line fuse(s) only with fuse(s) of the same voltage and current rating and type. DO NOT use repaired fuses or short-circuited fuse holder labels and print on the power module may not be removed. DO NOT service or adjust alone. Do not attempt internal service or adjustment unless another person, capable of rendering first aid and resuscitation, is present. DO NOT substitute parts or modify equipment: Because of the danger of introducing additional hazards, do not install substitute parts or perform any unauthorized modification to the product. Return the product to a DEWETRON sales and service office for service and repair to ensure that safety features are maintained. Before opening the instrument (experts only) or exchanging the fuse in the power module disconnect power! Don’t touch internal wiring! Don’t use higher supply voltage than specified! Use only original plugs and cables for harnessing. The power-cable and -connector serve as Power-Breaker. The cable must not exceed 10 feet, disconnect function must be possible without tools. Safety of the operator and the unit depend on following these rules. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 1-3 General System Information DEWE-2010 and DEWE-3010 systems CAUTION The system BIOS is protected by password. Any change in the BIOS may cause a system crash. When the system is booting, do not press ESC-button on keyboard. This may clear the BIOS settings and cause system faults. Any change in the file structure as deleting or adding files or directories might cause a system crash. Before installing software updates contact DEWETRON or your local distributor. Use only software packages which are released by DEWETRON. Further informations are also available in the internet (http://www.dewetron.com). After power off the system wait at least 10 seconds before switching the system on again. Otherwise the system may not boot correct. This prolongs also the life of all system components. 1-4 Support For any support please contact your local distributor or DEWETRON directly. For Asia and Europe, please contact: DEWETRON Ges.m.b.H. Parkring 4 A-8074 Graz-Grambach AUSTRIA Tel.: +43 316 3070 Fax: +43 316 307090 Email: support@dewetron.com Web: http://www.dewetron.com The telephone hotline is available Monday to Friday between 08:00 and 17:00 CET (GMT -1:00) For the Americas, please contact: DEWETRON, Inc. PO Box 1460 Charlestown, RI 02813 U.S.A. Tel.: +1 401 364 9464 Toll-free: +1 877 431 5166 Fax: +1 401 364 8565 Email: support@dewamerica.com Web: http://www.dewamerica.com The telephone hotline is available Monday to Friday between 08:00 and 17:00 GST (GMT +5:00) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 1-5 Support Notes 1-6 DEWETRON Systems and Modules Overview DEWE-Systems Overview For detailed system information see chapter 6. All in one solutions DEWE-5000 DEWE-3010 The DEWE-2010, DEWE-4010 and DEWE5000 offers 16 slots, the DEWE-3010 8 slots for DEWE modules. All systems are expandable up to several hundred channels. DEWE-4010 DEWE-2010 Signal conditioning solutions With internal A/D converter The DEWE-BOOK series with integrated A/D converter offers 8 or 16 slots for DEWE modules and, in parallel, a ±5 V output from each module to an external device. DEWE-BOOK-8 DEWE-BOOK-16 Signal conditioning solutions With external A/D converter DEWE-RACK-64 The DEWE-RACK family offers 4, 8, 16, 32, 48 or 64 slots for DEWE modules and except of the 48 channel version, in parallel, a ±5 V output from each module to an external device. DEWE-RACK-32 DEWE-RACK-8 DEWE-RACK-16 DEWE-RACK-4 DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 2-1 2-2 Input connector 9 pin SUB-D or 8 pin LEMO DAQP-BRIDGE-B 1 1 1 1 ü ü ü ü ü ü ü ü Input connector BNC Module MDAQ-V BNC BNC DAQP-CHARGE-B MDAQ-V BNC DAQP-CHARGE-A ü 0.5 Hz to 300 kHz 16 16 opt. opt. Gain: 1, 10 Gain: 0.1, 1 Filters optional optional Analog multichannel amplifiers (MDAQ series) up to 250 kHz up to 250 kHz Bandwidth DC to 100 kHz 0.1 Hz to 50 kHz 1, 10, 100, 300 kHz Gain: 1, 3, 10, 30, 100 1 kHz, 5 kHz, 10 kHz, 20 kHz 0.1, 1, 10, 100 and 1000 mV/pC or 0, 20, 40 and 60 dB ±100, ±500, ±2 000, ±10 000, ±40 000, ±200 10, 30, 100, 300 Hz, 1, 3, 10, 30, 100 kHz 000, ±1 000 000 pC 0 to 1 kHz 20 kHz 20 kHz 20 kHz 20 kHz 50 kHz 50 kHz 50 kHz 50 kHz 20 / 30 kHz Bandwidth 10, 30, 100, 300 Hz, 1 kHz 10 Hz, 100 Hz, 1 kHz, 5 kHz 10 Hz, 100 Hz, 1 kHz, 5 kHz 10 Hz, 100 Hz, 1 kHz, 5 kHz 10 Hz, 100 Hz, 1 kHz 10 Hz, 100 Hz, 1 kHz, 10 kHz 10 Hz, 100 Hz, 1 kHz, 10 kHz 10 Hz, 100 Hz, 1 kHz, 10 kHz 10 Hz, 100 Hz, 1 kHz, 10 kHz 10 Hz, 100 Hz, 1 kHz, 3 kHz Filters ±1 to ±640 mV/V (7 .. 10 mH or > 300 Ohm) 1, 2, 5, 10, 20 and 50 mV/V 1, 2, 5, 10, 20 and 50 mV/V 0.1, 0.2, 0.5, 1, 2 and 5 mV/V ±0.5, ±1, ±2.5, ±5, ±10 and ±25 mV ±0.01, ±0.1, ±1, ±5, ±10 and ±50 V ±0.01, ±0.1, ±1, ±5, ±10 and ±50 V ±0.01, ±0.1, ±1, ±5, ±10 and ±50 V ±0.01, ±0.1, ±1, ±5, ±10 and ±50 V ±10, ±40, ±100, ±200, ±400 and ±1000 V Prog. # CH Ranges Ranges & Filter 1 ü ü DAQP-TRQ 9 pin SUB-D 1 Charge / ICP amplifier for vibration measurement ü DAQP-ACC-A BNC 1 Carrier frequency amplifier 9 pin SUB-D 9 pin SUB-D DAQP-BRIDGE-A DAQP-BRIDGE 1 1 6 pin LEMO DAQP-V-LEMO DAQP-µV 9 pin SUB-D Bridge / strain gage amplifier 1 1 1 1 Banana plugs BNC Banana plugs Prog. # CH Ranges Ranges & Filter 9 pin SUB-D DAQP-V-DSUB DAQP-V-BNC DAQP-V-B DAQP-DMM Voltage amplifier High voltage amplifier Module Analog amplifiers (DAQx series) n/a n/a Isolation 350 VDC n/a n/a n/a 350 VDC n/a 350 VDC n/a 350 VDC 350 VDC ±10 V ±10 V Output ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V ±5 V 1 kVRMS 1 kVRMS ±5 V Output 1.5 kVRMS Isolation 5-1 5-1 Details on page 4-41 4-37 4-31 4-29 4-23 4-13 4-17 4-9 4-5 4-5 4-5 4-5 4-1 Details on page DEWE-Modules Overview PAD-DO7 PAD-DI8 25 pin SUB-D 25 pin SUB-D 7 2 25 pin SUB-D 8 1 25 pin SUB-D Digital input / output module PAD-AO1 Counter module PAD-CNT2 PAD-RTD3 25 pin SUB-D Analog output module 3 ü ü ü ü ü ü High accuracy thermocouple amplifier PAD-TH8-P 25 pin SUB-D 8 RTD amplifier ü Relay outputs (dry contacts) n/a n/a n/a 32 bit counter; low: 0 to 1 V, high: 3.5 to 30 V Opto input low: 0 to 1 V, high: 3.5 to 30 V n/a n/a 1 / 4 / 8 values averaging 1 / 4 / 8 values averaging 0 to 20 mA, 4 to 20 mA, 0 to 10 V Pt100, max. -100 °C to 600 °C ±15, ±50, ±100, ±150 mV, -150 mV to +1.5 V, Thermocouple type J, K and T ±100, ±150, ±500 mV, -150 mV to +1.5 V, ±1, ±2.5, ±5, ±10, ±50 V 1 Hz to 100 kHz 4 Hz 3 Hz 3 Hz Amplifiers with integrated A/D converter and DIO modules (PAD series) 8 Voltage / current amplifier PAD-V8-P 25 pin SUB-D 300 VDC 300 VDC RS232/485 RS232/485 RS232/485 RS232/485 300 VDC 300 VDC RS232/485 RS232/485 RS232/485 n/a 350 VDC 350 VDC 6-51 6-45 6-35 6-29 6-23 6-11 6-1 DEWE-Modules Overview DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 2-3 Notes 2-4 General Module Information Calibration information All DEWETRON modules are calibrated at 25 °C and meet their specifications when leaving the factory. The time interval for recalibration depends on environmental conditions. Typically, the calibration should be checked once a year. Calibration certificates are available from DEWETRON as an option. DEWETRON offers two types: ISO traceable DEWETRON certificate Calibration certificate according to ÖKD (equivalent to DKD) This manual contains no calibration information. For self calibration, there is a seperate calibration kit for the DAQ series modules available. The CAL-KIT contains the required cables, software and instructions. Adjustment information are only mentioned if they are required for operation (e.g. DAQP-TRQ). General module specifications Module dimensions: 20 x 65 x 105 mm (0.79 x 2.56 x 4.13 in.) (W x H x D without front cover and connectors) Frontcover: 20 x 87 x 2 mm (0.79 x 3.43 x 0.08 in.) (W x H x D without connector) Environmental: Temp. range storage: Temp. range operating: -30 °C to +85 °C -5 °C to +60 °C (-30 °F to 185 °F) (-4 °F to 140 °F) Relative humidity (MIL202): 0 to 95 % at 60 °C, non-condensing RFI susceptibility: ±0.5 % span error at 400 MHz, 5 W, 3 m All modules are produced according ISO9001 and ISO14001. Module connectors Frontpanel connector: Accessable to the user. The connector type and pin assignment varies from module to module. Detailed pin assignment of each module is shown in the appropriate module description. Rear connector: 9-pin male SUB-D, interface to the DEWE-System, not accessable to the user. 1 2 3 4 5 6 7 8 9 9-pin male SUB-D connector DAQx and PAD module rear view Interface pin assignment: 1 Module output (±5 V) 2 RS-485 (A) 3 RS-485 (B) 4 GND 5 +9 V power supply 6 +12 V power / sensor supply 7 Module input (from A/D board) 8 reserved 9 -9 V power supply DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 3-1 General Module Information RS-232/485 interface DAQP modules can be configured via RS-485 interface, PAD modules require this interface for all data transfers. For all DEWETRON systems, an internal RS-232/485 converter is available (standard with DEWE2010, DEWE-3010, DEWE-4000 and DEWE-5000 systems). This converter allows communication with DAQP DEWETRON data acquisition system RS-232 interface RS-232/485 conversion on DEWETRONmotherboard RS-485 businterface DAQx or PAD module and PAD modules. To communicate with the modules, the RS-232 interface has to be set to the following parameters: baud rate: 9600 bps data bits: 8 parity: no parity stop bits: 1 handshake: not required DAQP module configuration The DAQP modules offer two possibilities to change the measurement range and the input filters: 1. Push button selection All ranges and filters can be selected directly by pressing the push buttons on the module. Approx. 15 sec. after changing range and / or filter, the range and filter information is stored in an EEPROM. This procedure increases the livetime of the EEPROM. The current input range setting is shown all the time by LED. To change the range just press RANGE button a few times until the required range is displayed. To see the current filter setting just press the FILTER button once. The corresponding LED is flashing for approx. 3 seconds. Within this time, the filter can be selected by pressing the FILTER button again. 10 to 15 seconds after the last key activity, the information will be stored, the LED stops flashing and shows the input range again. CAUTION: Power loss during this time leaves the module in the former settings. 2. RS-232/485 programming All ranges and filters can also be selected via RS-232/485 interface. All DEWE-2010, DEWE-3010, DEWE4000 and DEWE-5000 systems are prepared as a standard to work with DAQP modules. The easiest way to change the configuration is to use the DEWE-CONFIG software, which comes as a standard with the DEWETRON data acquisition system. Detailed information about DAQP modules programming for customer applications is available in the corresponding module section. CAUTION: All range and filter changes which are done via RS-232/485 interface are not stored in the EEPROM of the DAQP modules! You have to store this information in a separate initialisation file to keep settings information for next system start! 3-2 General Module Information DAQP programming commands The following commands are available for all DAQP modules. Detailed command description is available in the corresponding module section. 1. Set module address Change the current module address to a new address. To change address send the ‘set module address’command while the filter button on the module gets pressed. After that, the module sends back an acknowledge response, which contains the current module settings. The module address always has to be a 2 digit hex value! We recommend addresses between 00 and FE hex. Some commands uses FF hex to act all modules in a rack. 2. Read module configuration The response contains the current module settings. 3. Set module configuration This command allows the change of the current module setting. 4. Set remote control on / off Lock or unlock the push botton access to range and filter selection. PAD module programming Due to different commands, detailed information about module programming is available for each module in the corresponding section. Be aware that the module address always has to be a 2 digit hex value! We recommend addresses between 00 and FE hex. Some commands uses FF hex to act all modules in a rack. CAUTION: DO NOT MIX UP ‘#’ AND ‘$’ COMMAND SIGNS! TO GET DATA FROM A MODULE, USE ONLY THE ‘#’ COMMAND SIGN, OTHERWISE A MODULE-RECALIBRATION IS POSSIBLE. THIS REQUIRES A NEW MODULE CALIBRATION! Setting communication speed A temporary short circuit between pin 21 and 22 (GND) offers the possibility to change the baud rate. When changing the baud rate of TH8 and V8 modules, additional press the ID button on the module front. After sending the mentioned command turn power off and remove the short circuit from pin 21. At next powering on the baud rate changes become effective. Communication speed can be up to 115200 bps for PAD modules. You have to set all modules in a rack to the same speed. Also the rack have to be jumpered ot the same speed (DEWE-RACK-4 have no jumper to change the communication speed of 9600 bps). When using PAD and DAQ modules in one rack, you have to set the communication speed to 9600 bps. Be aware that the module address always has to be a 2 digit hex value! Module reset A short circuit between pin 21 and 22 (GND) during power on the module effect a reset of the module to default settings (9600 baud, 8 data bits, 1 stop bit, no parity, module address 00 hex). To reset TH8 and V8 modules, additional press the ID button on the module front during power on the module. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 3-3 General Module Information Conversion table: decimal to hexadezimal and binary Dec 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 3-4 Hex 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F Bin 00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000 00001001 00001010 00001011 00001100 00001101 00001110 00001111 00010000 00010001 00010010 00010011 00010100 00010101 00010110 00010111 00011000 00011001 00011010 00011011 00011100 00011101 00011110 00011111 00100000 00100001 00100010 00100011 00100100 00100101 00100110 00100111 00101000 00101001 00101010 00101011 00101100 00101101 00101110 00101111 00110000 00110001 00110010 00110011 00110100 00110101 00110110 00110111 00111000 00111001 00111010 00111011 00111100 00111101 00111110 00111111 Dec 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 Hex 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F Bin 01000000 01000001 01000010 01000011 01000100 01000101 01000110 01000111 01001000 01001001 01001010 01001011 01001100 01001101 01001110 01001111 01010000 01010001 01010010 01010011 01010100 01010101 01010110 01010111 01011000 01011001 01011010 01011011 01011100 01011101 01011110 01011111 01100000 01100001 01100010 01100011 01100100 01100101 01100110 01100111 01101000 01101001 01101010 01101011 01101100 01101101 01101110 01101111 01110000 01110001 01110010 01110011 01110100 01110101 01110110 01110111 01111000 01111001 01111010 01111011 01111100 01111101 01111110 01111111 Dec 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 Hex 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF Bin 10000000 10000001 10000010 10000011 10000100 10000101 10000110 10000111 10001000 10001001 10001010 10001011 10001100 10001101 10001110 10001111 10010000 10010001 10010010 10010011 10010100 10010101 10010110 10010111 10011000 10011001 10011010 10011011 10011100 10011101 10011110 10011111 10100000 10100001 10100010 10100011 10100100 10100101 10100110 10100111 10101000 10101001 10101010 10101011 10101100 10101101 10101110 10101111 10110000 10110001 10110010 10110011 10110100 10110101 10110110 10110111 10111000 10111001 10111010 10111011 10111100 10111101 10111110 10111111 Dec 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 Hex C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF Bin 11000000 11000001 11000010 11000011 11000100 11000101 11000110 11000111 11001000 11001001 11001010 11001011 11001100 11001101 11001110 11001111 11010000 11010001 11010010 11010011 11010100 11010101 11010110 11010111 11011000 11011001 11011010 11011011 11011100 11011101 11011110 11011111 11100000 11100001 11100010 11100011 11100100 11100101 11100110 11100111 11101000 11101001 11101010 11101011 11101100 11101101 11101110 11101111 11110000 11110001 11110010 11110011 11110100 11110101 11110110 11110111 11111000 11111001 11111010 11111011 11111100 11111101 11111110 11111111 General Module Information Module types Code Module type 00 DAQP-V 01 DAQN-POT 02 DAQP-BRIDGE 03 DAQN-RTD 04 DAQP-DMM 05 DAQP-CHARGE 06 DAQP-µV 07 DAQP-TRQ 08 DAQP-FREQ 09 DAQP-ACC 0A 0B 0C 0D 0E 0F 10 PAD-TH8-P 11 PAD-V8-P 12 13 14 15 16 DAQ-AAF 17 DAQP-CHARGE-A 18 DAQP-BRIDGE-A 19 DAQN-OHM 1A DAQP-FREQ-A 1B DAQP-ACC-A 1C 1D CAL-SCAN 1E DAQP-CHARGE-B 1F DAQP-BRIDGE-B 20 CAL-BRIDGE 21 22 23 24 25 26 27 28 29 30 31 Remote control status Code Function 0 1 Local mode (range and filter button active) Remote control (range and filter button not active) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 3-5 General Module Information Notes 3-6 DAQN and DAQP Modules Series DAQP-DMM Module Programming commands DAQP-DMM Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Activate Power on default (1) Deactivate Power on default (1) Read serial number (1) (1) Commands applied in 08 - 2003 Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Remote)\r ##(Addr)Rx\r ##(Addr)P(Range)(Filter)(Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent while the filter button gets pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 04 hex = DAQP-DMM) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010401020\r (Address 01, DAQP-DMM, 400 V, 1 kHz, local mode) Range and filter selection table Range 1000 V 400 V 200 V 100 V 40 V 10 V Code 00 01 02 03 04 05 Filter 20 kHz 3 kHz 1 kHz 100 Hz 10 Hz - Code 00 01 02 03 04 - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-1 DAQP-DMM Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)(ModuleType)(Range)(Filter)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010401020\r (Address 01, DAQP-DMM, 400 V, 1 kHz, local mode) Set module configuration Command: ##(Addr)(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: !ACK\r (Notice: an incorrect command gets no response from module!) !: Response leading code ACK: Acknowledge \r: Carriage return (0D hex) Example: Command: ##0101020\r (Address 01, 400 V, 1 kHz, local mode) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: 4-2 Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command R0: local mode R1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Command: ##FFR1\r (All modules, remote mode) DAQP-DMM Module Activate power on default Not available for modules produced before 08 - 2003 Command: ##(Addr)P(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: !ACK\r Valid command Example: Command: ##01P01020\r Response: !ACK\r Deactivate power on default Not available for modules produced before 08 - 2003 Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: ##(Addr)P\r ##: Addr: P: \r: command leading code Acknowledged new module address Command Carriage return (0D hex) Response: !ACK\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P\r Response: !ACK\r Read serial number Not available for modules produced before 08 - 2003 Command: ##(Addr)SETB\r Command details see also ‘Set module address’ Response: !(Serial)xx(Revision)xxx\r (Serial): x: (Revision): \r: Module Serial Number (6 digits) space Revision Number (e.g. V200) Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-3 4-4 ## ?? ## ## ## ## ## RR Range 00 1000 V 01 400 V 02 200 V 03 100 V 04 40 V 05 10 V 1 2 3 4 5 6 7 Nr: Command AA AA AA AA+ AA+ AA AA RRFFk FF 00 01 02 03 04 Filter 20 kHz 3 kHz 1 kHz 100 Hz 10 Hz R1 R0 SETB RRFFk P SETD CR !AA04RRFFk CR !AA04RRFFk CR !ACK CR CR CR !{16*ASCII} CR !ACK Response CR Program address CR Read configuration CR Set configuration Lock buttons Unlock buttons CR Read serial number CR Write power on default to module DAQP-DMM Function MM RR FF k AA AA+ Address Address FF = all modules Module type Range Filter code Button lock DAQP-DMM Module DAQP-V Module Programming commands DAQP-V Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Activate Power on default (1) Deactivate Power on default (1) Read serial number (1) (1) Commands applied in 08 - 2003 Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Remote)\r ##(Addr)Rx\r ##(Addr)P(Range)(Filter)(Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent while the filter button gets pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 00 hex for DAQP-V according general prog. info) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010001020\r (Address 01, DAQP-V, 10 V, 1 kHz, local mode) Range and filter selection table Range 50 V 10 V 5V 1V 0.1 V 0.01 V Code 00 01 02 03 04 05 Filter 50 kHz 10 kHz 1 kHz 100 Hz 10 Hz - Code 00 01 02 03 04 - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-5 DAQP-V Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)(ModuleType)(Range)(Filter)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010001020\r (Address 01, DAQP-V, 10 V, 1 kHz, local mode) Set module configuration Command: ##(Addr)(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: Example: !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Command: ##0101020\r (Address 01, 10 V, 1 kHz, local mode) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command R0: local mode R1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Activate power on default Not available for modules produced before 08 - 2003 Command: ##(Addr)P(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ 4-6 Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P01020\r Response: !ACK\r DAQP-V Module Deactivate power on default Not available for modules produced before 08 - 2003 Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: Response: Example: ##(Addr)P\r ##: Addr: P: \r: command leading code Acknowledged new module address Command Carriage return (0D hex) !ACK\r Command: Valid command ##01P\r Response: !ACK\r Read serial number Not available for modules produced before 08 - 2003 Command: ##(Addr)SETB\r Command details see also ‘Set module address’ Response: !(Serial)xx(Revision)xxx\r (Serial): x: (Revision): \r: Module Serial Number (6 digits) space Revision Number (e.g. V200) Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-7 4-8 ## ?? ## ## ## ## ## RR Range 00 50 V 01 10 V 02 5V 03 1V 04 0.1 V 05 0.01 V 1 2 3 4 5 6 7 Nr: Command AA AA AA AA+ AA+ AA AA RRFFk R1 R0 SETB RRFFk P SETD FF Filter 50 kHz 00 10 kHz 01 1 kHz 02 100 Hz 03 10 Hz 04 CR !AA00RRFFk CR !AA00RRFFk CR !ACK CR CR CR !{16*ASCII} CR !ACK Response CR Program address CR Read configuration CR Set configuration Lock buttons Unlock buttons CR Read serial number CR Write power on default to module DAQP-V Function MM RR FF k AA AA+ Address Address FF = all modules Module type Range Filter code Button lock DAQP-V Module DAQP-µV Module Programming commands DAQP-µV Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Remote)\r ##(Addr)Rx\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 06 hex according general prog. info) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010605020\r (Address 01, DAQP-µV, 500 µV, 1 kHz, local mode) Range and filter selection table Range 25 mV 10 mV 5 mV 2.5 mV 1 mV 500 µV Code 00 01 02 03 04 05 Filter 20 kHz 5 kHz 1 kHz 100 Hz 10 Hz - Code 00 01 02 03 04 - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-9 DAQP-µV Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010605020\r (Address 01, DAQP-µV, 500 µV, 1 kHz, local mode) Set module configuration Command: ##(Addr)(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: Example: !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Command: ##0105020\r (Address 01, 500 µV, 1 kHz, local mode) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: 4-10 Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) DAQP-µV Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-11 4-12 RR Range 00 25 mV 01 10 mV 02 5 mV 03 2.5 mV 04 1 mV 05 500 µV Nr: Command 1 ## 2 ?? 3 ## 4 ## 5 ## AA AA AA AA+ AA+ R1 R0 SETD RRFFk FF Filter 20 kHz 00 5 kHz 01 1 kHz 02 100 Hz 03 10 Hz 04 Response CR !AA06RRFFk CR !AA06RRFFk CR !ACK CR CR DAQP-µV Function CR Program address CR Read configuration CR Set configuration Lock buttons Unlock buttons MM RR FF k AA AA+ Address Address FF = all modules Module type Range Filter code Button lock DAQP-µV Module DAQP-BRIDGE Module Programming commands DAQP-BRIDGE Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Read serial (1) (1) Commands applied in 08-2003 Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Remote)\r ##(Addr)Rx\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters, 02 hex according general prog. info) Range: Current measuring range position (2 characters hex, according table) Filter: Current filter position (2 characters hex, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010204010\r (Address 01, DAQP-BRIDGE, 1 mV/V, 5 kHz, local mode) Range and filter selection table Code Range (1) 5 mV/V 00 2 mV/V 01 1 mV/V 02 0.5 mV/V 03 0.2 mV/V 04 0.1 mV/V 05 (1) @ 5V Excitation Filter 20 kHz 5 kHz 1 kHz 100 Hz 10 Hz - Code 00 01 02 03 04 - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-13 DAQP-BRIDGE Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)(ModuleType)(Range)(Filter)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010204010\r (Address 01, DAQP-BRIDGE, 1 mV/V, 5 kHz, local mode) Set module configuration Command: ##(Addr)(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: Example: !ACK\r (Notice: an incorrect command get no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Command: ##0104010\r (Address 01, 1 mV/V, 5 kHz, local mode) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command R0: local mode R1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Read serial number Command: ##(Addr)SETB\r Command details see also ‘Set module address’ Response: !(Serial)xx(Revision)xxx\r (Serial): x: (Revision): \r: 4-14 Module Serial Number (6 digits) space Revision Number (i.e. V200) Carriage return (0D hex) DAQP-BRIDGE Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-15 4-16 RR Range 00 5 mV/V 01 2 mV/V 02 1 mV/V 03 0.5 mV/V 04 0.2 mV/V 05 0.1 mV/V Nr: Command 1 ## 2 ?? 3 ## 4 ## 5 ## 6 ## AA AA AA AA+ AA+ AA R1 R0 SETB SETD RRFFk FF Filter 20 kHz 00 5 kHz 01 1 kHz 02 100 Hz 03 10 Hz 04 Response CR !AA02RRFFk CR !AA02RRFFk CR !ACK CR CR CR !{16*ASCII} DAQP-BRIDGE Function CR Program address CR Read configuration CR Set configuration Lock buttons Unlock buttons CR Read serial number MM RR FF k AA AA+ Address Address FF = all modules Module type Range Filter code Button lock DAQP-BRIDGE Module DAQP-BRIDGE-A Module Programming commands DAQP-BRIDGE-A Instruction set Command Set module address Read module configuration Set module configuration Automatic sensor offset adjustment Internal amplifier zero Set remote control on/off Input short circuit Input activate Activate shunt resistor Deactivate shunt resistor Activate Power on default Deactivate Power on default Read serial number Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Excitation)(ShortCircuit)(Shunt)(Mode)(FilterType)(Remote)\r ##(Addr)R7\r ##(Addr)R8\r ##(Addr)R(Remote)\r ##(Addr)R2\r ##(Addr)R3\r ##(Addr)R4\r ##(Addr)R5\r ##(Addr)P(InputRange)(Filter)(Excitation)(Mode)(FilterType)(Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(Addr)SETD\r ##: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)18(InputRange)(Filter)(Excitation)(ShortCircuit)(Shunt)(Mode)(FilterType)(Remote)(Special)\r !: Response leading code Addr: Acknowledged new module address 18: Module type (DAQP-BRIDGE-A) InputRange: Measuring range (2 characters hex, according to table) Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation voltage (2 characters hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit Shunt: 0 Shunt deactivated 1 Shunt activated Mode: Bridge type (1 character hex, according to table) FilterType: 0 Bessel characteristic 1 Butterworth characteristic Remote: 0 Module button activated 1 Module button locked Special: 0 Standard module 1 Special module Example: Command: ##01SETD\r Response: !0118000103001000\r (DAQP-BRIDGE-A; 50 mV/V; 5kHz; 5V; no short circuit; no shunt; half bridge; Bessel filter; key’s on; standard module) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-17 DAQP-BRIDGE-A Module Range and filter selection table Code Range (1) 00 50 mV/V 01 20 mV/V 02 10 mV/V 03 5 mV/V 2 mV/V 04 1 mV/V 05 (1) @ 5 V Excitation Filter 20 kHz 5 kHz 1 kHz 1 00Hz 10 Hz - Code 00 01 02 03 04 - Bridge type Code Mode 0 Full Bridge 1 Half Bridge 2 Quarter Bridge 120 Ohm 3 Quarter Bridge 350 Ohm 4 Half Bridge 5 Full Bridge Excitation Shunt 59.88 kOhm 59.88 kOhm 175 kOhm 175 kOhm Read module configuration Command: ??(Addr)\r ??: Addr: \r: Response: Code Excitation 0 0V 1 1V 2 2.5 V 3 5V 4 10 V 5 0.25 V (2) 6 0.5 V (2) (2) Rev. 2.00 or higher Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)18(InputRange)(Filter)(Excitation)(ShortCirc)(Shunt)(Mode)(FilterType)(Remote)(Special(2))\r !: Response leading code Addr: Module address 18: Module Type (DAQP-BRIDGE-A) InputRange: Measuring range (2 characters hex, according to table) Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation Voltage (2 characters hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit Shunt: 0 Shunt deactivated 1 Shunt activated Mode: Bridge type (1 character hex, according to table) FilterType: 0 Bessel characteristic 1 Butterworth characteristic Remote: 0 Module button activated 1 Module button locked 0 Standard module Special (2): 1 Special module Example: Command: ??01\r Response: !0118000103001000\r (DAQP-BRIDGE-A; 50 mV/V; 5 kHz; 5 V; no short circuit; no shunt; half bridge; Bessel filter; key’s (2) Rev. 2.00 or higher on; standard module (2)) Set module configuration Command: ##(Addr)(InputRange)(Filter)(Excitation)(ShortCircuit)(Shunt)(Mode)(FilterType)(Remote)\r !: Response leading code Addr: Module address InputRange: Measuring range (2 characters hex, according to table) Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation voltage (2 characters hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit Shunt: 0 Shunt deactivated 1 Shunt activated Mode: Bridge type (1 character hex, according to table) Filter Type: 0 Bessel Characteristic 1 Butterworth Characteristic Remote: 0 Module button activated 1 Module button locked 4-18 DAQP-BRIDGE-A Module Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Automatic sensor offset adjustment Sets the actual sensor offset to zero. The maximum adjustment range is +/-200% of the input range. Command: ##(Addr)R7\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes affect on all connected bridge modules. R7 Command \r: Carriage return (0D hex) Response: Warning: There is no response on this command. The module is approximately 2 seconds off-line after sending this command. That means it cant receive any command. Internal amplifier zero This function short circuit the module input, and measures the offset values from the different input ranges. The module automatically corrects the output voltage with this offset values. Also the values are permanently stored in to the modules memory. Command: ##(Addr)R8\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes affect on all connected bridge modules. R8 Command \r: Carriage return (0D hex) Response: Warning: There is no response on this command. The Module is approximately 15 seconds off-line after sending this command. That means it cant receive any command. If there is no sensor connected, activate the half bridge mode before sending this command. Otherwise you will get an output overflow. Set remote control on/off Command: ##(Addr)R(Remote)\r ##: Addr: R: Remote: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Sending the Address FF takes affect on all connected bridge modules. Command 0 local mode (buttons are activated) 1 remote (buttons are locked) Carriage return (0D hex) There is no response on this command. Input short circuit This function short circuit the module input. Command: ##(Addr)R2\r ##: Addr: R2 \r: Command leading code Module address (2 characters hex from 00 to FE) Sending the Address FF takes effect on all connected bridge modules. Command Carriage return (0D hex) Response: There is no response on this command. Warning: The Module is approximately 0.25 seconds off-line after sending this command. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-19 DAQP-BRIDGE-A Module Input activate This function is the inverse function of previous. Command: ##(Addr)R3\r ##: Addr: R3 \r: Command leading code Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. Command Carriage return (0D hex) Response: There is no response on this command. Warning: The module is approximately 0.25 seconds off-line after sending this command. Activate shunt resistor Activates the shunt resistor, depending on the selected bridge completion type. Standard shunts: 350 Ohm bridge completion : 175 kOhm 120 Ohm bridge completion : 59.88 kOhm Command: ##(Addr)R4\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. R4: Command \r: Carriage return (0D hex) Response: There is no response on this command. Warning: The module is approximately 0.25 seconds off-line after sending this command. Deactivate shunt resistor Deactivates the shunt resistor. Command: ##(Addr)R5\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. R5 Command \r: Carriage return (0D hex) Response: There is no response on this command. Warning: The Module is approximately 0.25 seconds off-line after sending this command. Activate power on default Command: ##(Addr)P(InputRange)(Filter)(Excitation)(Mode)(FilterType)(Remote)\r ##: Addr: InputRange: Filter: Excitation: Mode: FilterType: Remote: \r: 4-20 Command leading code Acknowledged new module address Current measuring range (2 characters hex, according to table) Current low pass filter (2 characters hex, according to table) Current Excitation Voltage (2 characters hex, according to table) Current bridge type (1 character hex, according to table) 0 Bessel characteristic 1 Butterworth characteristic 0 Module button activated 1 Module button locked Carriage return (0D hex) DAQP-BRIDGE-A Module Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P000103010\r Response: !ACK\r (Set the module to 50 mV/V; 5 kHz; 5 V; full bridge; Butterworth; local buttons on; at power on) Deactivate power on default Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: ##(Addr)P\r ##: Addr: P: \r: Command leading code Acknowledged new module address Command Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P\r Response: !ACK\r Read Serial Number Command: ##(Addr)SETB\r ##: Addr: SETB: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. Command Carriage return (0D hex) !(SERAL)xx(REVISION)xxx\r (SERIAL): (Revision): \r: Module serial number (6 digits) Revision number (i.e. V200) Carriage return (0D hex) x: space DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-21 Command ## AA ?? AA ## AA+ ## AA+ ## AA ## AA+ ## AA+ ## AA+ ## AA+ ## AA+ ## AA+ ## AA ## AA Filter 20 kHz 5 kHz 1 kHz 100 Hz 10 Hz Nr 1 2 3 4 5 6 7 8 9 10 11 12 13 4-22 FF 00 01 02 03 04 Filter Type Butterworth characteristic Bessel characteristic T 0 1 Shunt 59.88 kOhm 59.88 kOhm 175 kOhm 175 kOhm Mode Full bridge Half bridge Quarter bridge 120 Quarter bridge 350 Half bridge Full bridge M 0 1 2 3 4 5 RRFFESCMTR R2 R3 R4 R5 R1 R0 SETB P RRFFESCMTR R7 R8 SETD E 0 1 2 3 4 5 6 Excitation 0V 1V 2.5 V 5V 10 V 0.25 V (2) 0.5 V (2) DAQP-BRIDGE-A Function Response CR !AA18RRFFESCMTRZ CR Program address CR !AA18RRFFESCMTRZ CR Read configuration CR Auto balance CR Internal amplifier calibration CR !ACK CR SET configuration CR Short circuit input on CR Short circuit input off CR Shunt on CR Shunt off CR Lock buttons CR Unlock buttons CR !{16*ASCII} CR Read serial number CR !ACK CR Write power on default to module Range (1) 50 mV/V 20 mV/V 10 mV/V 5 mV/V 2 mV/V 1 mV/V RR 00 01 02 03 04 05 (2) (1) @ 5 V Excitation Vers. 2.00 or higher MM S C Z Address Address FF = all modules Module type (18 hex) Short circuit 0/1 Shunt resistor 0/1 Special module (2) AA AA+ DAQP-BRIDGE-A Module DAQP-BRIDGE-B Module Programming commands DAQP-BRIDGE-B Instruction set Command Set module address Read module configuration Set module configuration Automatic sensor offset adjustment Internal amplifier zero Set remote control on/off Input short circuit Input activate Activate shunt resistor Deactivate shunt resistor Activate Power on default Deactivate Power on default Read serial number Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(InputRange)(Filter)(Excitation)(ShortCircuit)(ShuntFunction) (Shunt)(Mode)(FilterType)(Remote)\r ##(Addr)R7\r ##(Addr)R8\r ##(Addr)R(Remote)\r ##(Addr)R2\r ##(Addr)R3\r ##(Addr)R4\r ##(Addr)R5\r ##(Addr)P(InputRange)(Filter)(Excitation)(ShortCircuit)(ShuntFunction) (Shunt)(Mode)(FilterType)(Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(Addr)SETD\r ##: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)1F(InputRange)(Filter)(Excitation)(ShortCircuit)(ShuntFunction)(Shunt)(Mode)(FilterType) (Remote)(Special)\r !: Response leading code Addr: Acknowledged new module address 1F: Module type (DAQP-BRIDGE-B) InputRange: Measuring range (2 characters hex, according to table) Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation voltage (1 character hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit ShuntFunct.: Shunt function (1 character, according to table) Shunt: 0 Shunt activated 1 Shunt deactivated Mode: Bridge type (1 character hex, according to table) Filter Type: 0 Butterworth characteristic 1 Bessel characteristic Remote: 0 Module button activated 1 Module button locked Special: 0 Standard module 1 Special module Example: Command: ##01SETD\r Response: !011F000130211100\r (DAQP-BRIDGE-B; 100 mV/V; 100 kHz; 1V; no short circuit; shunt 2; shunt activated; half bridge; Bessel filter; key’s on; standard module) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-23 DAQP-BRIDGE-B Module Range and filter selection table Range 100 mV/V 50 mV/V 20 mV/V 10 mV/V 5 mV/V 2 mV/V 1 mV/V 0.5 mV/V 0.2 mV/V 0.1 mV/V Code 00 01 02 03 04 05 06 07 08 09 Filter Off 100 kHz 30 kHz 10 kHz 3 kHz 1 kHz 300 Hz 100 Hz 30 Hz 10 Hz Code 00 01 02 03 04 05 06 07 08 09 Bridge type Code Mode 0 Full Bridge 1 Half Bridge 2 Quarter Bridge 120 Ohm (3-wire) 3 Quarter Bridge 350 Ohm (3-wire) 4 Quarter Bridge 120 Ohm (4-wire) 5 Quarter Bridge 350 Ohm (4-wire) Excitation Code Excitation 0 1 2 3 4 5 6 0V 0.25 V 0.5 V 1V 2.5 V 5V 10 V Shunt function Code Shunt function 0 No shunt 1 Shunt 1 2 Shunt 2 3 External shunt 4 + 9 V output Read module configuration Command: ??(Addr)\r ??: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)1F(InputRange)(Filter)(Excitation)(ShortCircuit)(Shunt)(ShuntSelect)(Mode)(FilterType) (Remote)(Special)\r !: Response leading code Addr: Module address 1F: Module type (DAQP-BRIDGE-B) InputRange: Measuring range (2 characters hex, according to table) Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation voltage (1 character hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit Shunt: 0 Shunt deactivated 1 Shunt activated ShuntSelect: Current shunt (1 character, according to table) Mode: Bridge type (1 character hex, according to table) Filter Type: 0 Butterworth characteristic 1 Bessel characteristic Remote: 0 Module button activated 1 Module button locked Special: 0 Standard module 1 Special module Example: Command: ??01\r Response: !011F000130021000\r (DAQP-BRIDGE-B; 100 mV/V; 100 kHz; 1V; no short circuit; shunt activated; shunt 2; half bridge; Bessel filter; key’s on; standard module) Set module configuration Command: ##(Addr)(InputRange)(Filter)(Excitation)(ShortCircuit)(Shunt)(ShuntSelect)(Mode)(Filter type) (Remote)\r !: Response leading code Addr: Module address Input Range: Measuring range (2 characters hex, according to table) 4-24 DAQP-BRIDGE-B Module Filter: Low pass filter (2 characters hex, according to table) Excitation: Excitation voltage (1 character hex, according to table) ShortCircuit: 0 Input activated 1 Input short circuit Shunt: 0 Shunt deactivated 1 Shunt activated ShuntSelect: Current shunt (1 character, according to table) Mode: Bridge type (1 character hex, according to table) FilterType: 0 Bessel Characteristic 1 Butterworth Characteristic Remote: 0 Module button activated 1 Module button locked Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Automatic sensor offset adjustment Sets the actual Sensor offset to Zero. The maximum adjustment range is +/-200% of the input Range. Command: ##(Addr)R7\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the Address FF takes affect on all connected Bridge modules. R7 Command \r: Carriage return (0D hex) Response: Warning: There is no response on this command. The Module is approximately 2 seconds off-line after sending this command. That means it cant receive any command. Internal amplifier zero This function short circuit the Module input, and measures the offset values from the different input ranges. The module automatically corrects the output voltage with this offset values. Also the values are permanently stored in to the modules Memory. Command: ##(Addr)R8\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the Address FF takes affect on all connected Bridge modules. R8 Command \r: Carriage return (0D hex) Response: Warning: There is no response on this command. The Module is approximately 15 seconds off-line after sending this command. That means it cant receive any command. If there is no sensor connected, activate the half bridge mode before sending this command. Otherwise you will get an output overflow. Set remote control on/off Command: ##(Addr)R(Remote)\r ##: Addr: R: Remote: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Sending the Address FF takes affect on all connected Bridge modules. Command 0 local mode (buttons are activated) 1 remote (buttons are locked) Carriage return (0D hex) There is no response on this command. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-25 DAQP-BRIDGE-B Module Input short circuit on This function short circuit the Module input. Command: ##(Addr)R2\r ##: Addr: R2 \r: Command leading code Module address (2 characters hex from 00 to FE) Sending the Address FF takes effect on all connected Bridge modules. Command Carriage return (0D hex) Response: There is no response on this command. Warning: The Module is approximately 0.25 seconds off-line after sending this command. Input short circuit off This function is the inverse function of previous. Command: ##(Addr)R3\r ##: Addr: R3 \r: Command leading code Module address (2 characters hex from 00 to FE) Sending the Address FF takes effect on all connected Bridge modules. Command Carriage return (0D hex) Response: There is no response on this command. Warning: The module is approximately 0.25 seconds off-line after sending this command. Activate shunt resistor Activates the selected shunt function refered to shunt function table. Command: Shunt 1: 175 kOhm Shunt 2: 59.88 kOhm ##(Addr)R4\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. R4: Command \r: Carriage return (0D hex) Response: There is no response on this command. Warning: The module is approximately 0.25 seconds off-line after sending this command. Deactivate shunt resistor Deactivates the shunt resistor. 4-26 Command: ##(Addr)R5\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. R5 Command \r: Carriage return (0D hex) Response: There is no response on this command. Warning: The Module is approximately 0.25 seconds off-line after sending this command. DAQP-BRIDGE-B Module Activate power on default Command: ##(Addr)P(InputRange)(Filter)(Excitation)(ShuntSelect)(Mode)(FilterType)(Remote)\r ##: Command leading code Addr: Acknowledged new module address InputRange: Current measuring range (2 characters hex, according to table) Filter: Current low pass filter (2 characters hex, according to table) Excitation: Current Excitation Voltage (1 character hex, according to table) ShuntSelect: Current shunt (1 character, according to table) Mode: Current bridge type (1 character hex, according to table) FilterType: 0 Butterworth characteristic 1 Bessel characteristic Remote: 0 Module button activated 1 Module button locked \r: Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P000103010\r Response: !ACK\r (Set the module to 50 mV/V; 5 kHz; 5 V; full bridge; Butterworth; local buttons on; at power on) Deactivate power on default Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: ##(Addr)P\r ##: Addr: P: \r: Command leading code Acknowledged new module address Command Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: ##01P\r Response: !ACK\r Read Serial Number Command: ##(Addr)SETB\r ##: Addr: SETB: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. Command Carriage return (0D hex) !(SERAL)xx(REVISION)xxx\r (SERIAL): x: (Revision): \r: Module serial number (6 digits) space Revision number (i.e. V200) Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-27 4-28 Cs 0 1 2 3 4 Shunt function No shunt Shunt I Shunt II External shunt + 9 V output Nr: Command 1 ## 2 ?? 3 ## 4 ## 5 ## 6 ## 7 ## 8 ## 9 ## 10 ## 11 ## 12 ## 13 ## 14 ## 15 ?? 16 AA AA AA+ AA+ AA AA AA+ AA+ AA+ AA+ AA+ AA+ AA AA AA AA RRFFESCsCMTR RRFFESCsCMTR Mode Full bridge Half bridge Quarter bridge 120 (3-Wire) Quarter bridge 350 (3-Wire) Quarter bridge 120 (4-Wire) Quarter bridge 350 (4-Wire) Filter type Butterworth characteristic Bessel characteristic T 0 1 CR CR CR CR CR CR CR CR CR CR CR CR CR CR CR CR M 0 1 2 3 4 5 R2 R3 R4 R5 R1 R0 SETB RRFFESCsCMTR P SETD R7 R8 SETD E 0 1 2 3 4 5 6 Excitation 0V 0.25 V 0.5 V 1V 2.5 V 5V 10 V FF 00 01 02 03 04 05 06 07 08 09 Filter OFF 100 kHz 30 kHz 10 kHz 3 kHz 1 kHz 300 Hz 100 Hz 30 Hz 10 Hz DAQP-BRIDGE-B Response Function !AA1FRRFFESCsCMTRZ CR Program address !AA1FRRFFESCsCMTRZ CR Read configuration Auto balance Internal amplifier calibration CR Set configuration !ACK CR Set configuration !NoACK Short circuit input on Short circuit input off Shunt on Shunt off Lock buttons Unlock buttons CR Read serial number !{16*ASCII} CR Write power on default !ACK !AA1FRRFFESCsCMTR CR Program address !AA1FRRFFESCsCMTR CR Read configuration REV 2+ 2+ 0 0 0 0 0 0 0 0 0 0 0 0 1 1 RR 00 01 02 03 04 05 06 07 08 09 MM S C Z AA AA+ Range 100 mV/V 50 mV/V 20 mV/V 10 mV/V 5 mV/V 2 mV/V 1 mV/V 0.5 mV/V 0.2 mV/V 0.1 mV/V Address Address FF = all modules Module type Short circuit 0/1 Shunt resistor 0/1 Special module DAQP-BRIDGE-B Module DAQP-TRQ Module Programming commands DAQP-TRQ Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Read serial (1) (1) Commands applied in 08-2003 Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Remote)\r ##(Addr)Rx\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button is pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 07 according general prog. info) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010704020\r (Address 01, DAQP-TRQ, range E, 100 Hz, local mode) Range and filter selection table Range A B C D E F Code 00 01 02 03 04 05 Filter 1 kHz 300 Hz 100 Hz 30 Hz 10 Hz - Code 00 01 02 03 04 - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-29 DAQP-TRQ Module Read module configuration Command: ??(Addr)\r ??: \r: Command leading code Addr: Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)(ModuleType)(Range)(Filter)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010704020\r (Address 01, DAQP-TRQ, range E, 100 Hz, local mode) Set module configuration Command: ##(Addr)(Range)(Filter)(Remote)\r Command details see also ‘Set module address’ Response: !ACK\r (Notice: an incorrect command get no response from module!) !: Response leading code ACK: Acknowledge Carriage return (0D hex) \r: Example: Command: ##0104020\r (Address 01, range E, 100 Hz, local mode) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Read serial number Command: ##(Addr)SETB\r Command details see also ‘Set module address’ Response: !(Serial)xx(Revision)xxx\r (Serial): x: (Revision): \r: 4-30 Module Serial Number (6 digits) space Revision Number (i.e. V200) Carriage return (0D hex) DAQP-ACC-A Module Programming commands DAQP-ACC-A Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Read serial (1) (1) Commands applied in 08-2003 Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(Current)(Highpass)(Remote)\r ##(Addr)Rx\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Gain)(Filter)(Current)(Highpass)(Error)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 1B according general prog. info) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) Current: Selection between 4 mA and 8 mA (1 character, according table) Highpassf.: Selection between 5 Hz and 0.5 Hz (1 character, according table) Error: Error on module input (1 character, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !010902010000\r (Address 01, DAQP-ACC, x10, 100 kHz, 4 mA, 5Hzs, no error, local) Sensor supply Code Sensor supply 0 1 4 mA sensor supply 8 mA sensor supply Error codes Code Error code 0 1 2 No input error No sensor connected Input short circuit Highpass filter Code Highpass filter 0 5 Hz 1 0.5 Hz Range and filter selection table Range 1 3 10 30 100 Code 00 01 02 03 04 Filter 300 kHz 100 kHz 10 kHz 1 kHz - DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 Code 00 01 02 03 - 4-31 DAQP-ACC-A Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)(ModuleType)(Gain)(Filter)(Current)(Highpassfilter)(Error)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !010902010000\r (Address 01, DAQP-ACC, x10, 100 kHz, 4 mA, 5 Hz, no error, local) Set module configuration Command: ##(Addr)(Gain)(Filter)(Current)(Highpassfilter)(Remote)\r Command details see also ‘Set module address’ Response: Example: !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Command: ##010002110\r (Address 01, 1, 10 kHz, 8 mA, 0.5 Hz, local) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Read serial number Command: ##(Addr)SETB\r Command details see also ‘Set module address’ Response: !(Serial)xx(Revision)xxx\r (Serial): x: (Revision): \r: 4-32 Module Serial Number (6 digits) space Revision Number (i.e. V200) Carriage return (0D hex) DAQP-CHARGE Module Programming commands DAQP-CHARGE Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(Filter)(InputType)(FineTuning)(Remote)\r ##(Addr)R(Remote)\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(Filter)(InputType)(FineTuning)(Overflow)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 05 according general prog. info) Range: Measuring range position (2 characters hex, according table) Filter: Filter position (2 characters hex, according table) InputType: Selection between ‘charge’ and ‘ICP’ input (1 character, according table) FineTuning: Input amplifier fine tuning (3 characters hex) Detailed fine tuning information on next page Overflow: Overflow indicator (correspond with ‘Overflow’-LED) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##01SETD\r Response: !0105007F019900\r (Address 01, DAQP-CHARGE, 0 dB, 20 kHz, ICP, 1:10, no overflow, local) Input types Code Function 0 1 ICP input active Charge input active Overflow status Code Function 0 1 No input overflow Input overflow Range and filter selection table Range 0 dB 20 dB 40 dB 60 dB Code 00 01 02 03 Filter 20 kHz 10 kHz 5 kHz 1 kHz Code 7F 74 63 0F Notice: Detailed filter selection table on next page. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-33 DAQP-CHARGE Module Fine tuning As standard, the input divider is set to 1:10. In this case, the input ranges 0, 20, 40 and 60 dB are valid. The module allows to varying the input division from 1:10 to 1:1 in 3686 steps. This feature can be used to do a sensor calibration directly in the module. Division 1:10 199 hex (standard range, e.g. 0 dB) Division 1:1 FFF hex (next range, e.g. 20 dB) All values between 199 and FFF hex are valid for module programming. As soon as the division is above 1:10 (199 hex), the input range LED’s are not active. Detailed filter selection table Filter No. Code 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F [dec] 4-34 [hex] Range [kHz] 0,82 0,83 0,84 0,85 0,86 0,87 0,88 0,89 0,90 0,91 0,93 0,94 0,95 0,96 0,98 0,99 1,00 1,02 1,03 1,05 1,06 1,08 1,09 1,11 1,13 1,15 1,17 1,19 1,21 1,23 1,25 1,27 Filter No. Code 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F [dec] [hex] Range [kHz] 1,29 1,32 1,34 1,37 1,39 1,42 1,45 1,48 1,51 1,54 1,58 1,61 1,65 1,69 1,73 1,77 1,82 1,86 1,91 1,97 2,02 2,08 2,14 2,16 2,28 2,35 2,43 2,52 2,61 2,71 2,81 2,93 Filter No. Code 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F [dec] [hex] Range [kHz] 2,93 2,97 3,01 3,05 3,09 3,13 3,18 3,23 3,28 3,32 3,38 3,43 3,49 3,54 3,60 3,66 3,73 3,79 3,85 3,93 4,00 4,07 4,15 4,23 4,31 4,40 4,49 4,58 4,68 4,79 4,89 5,00 Filter No. Code 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F [dec] [hex] Range [kHz] 5,12 5,24 5,36 5,50 5,65 5,80 5,96 6,12 6,31 6,49 6,69 6,90 7,12 7,35 7,61 7,88 8,18 8,51 8,86 9,24 9,66 10,12 10,61 11,10 11,66 12,33 13,09 13,90 14,82 15,92 17,19 18,75 DAQP-CHARGE Module Read module configuration Command: ??(Addr)\r ??: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)(ModuleType)(Range)(Filter)(InputType)(FineTuning)(Overflow)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??01\r Response: !0105007F019900\r (Address 01, DAQP-CHARGE, 0 dB, 20 kHz, ICP, 1:10, no overflow, local) Set module configuration Command: ##(Addr)(Range)(Filter)(InputType)(FineTuning)(Remote)\r Command details see also ‘Set module address’ Response: Example: !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Command: ##01007F01990\r (Address 01, 0 dB, 20 kHz, ICP, 1:10, local) Response: !ACK\r Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-35 4-36 AA AA AA AA+ AA+ R1 R0 SETD 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [dec] Filter No. 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F [hex] Code 0,82 0,83 0,84 0,85 0,86 0,87 0,88 0,89 0,90 0,91 0,93 0,94 0,95 0,96 0,98 0,99 1,00 1,02 1,03 1,05 1,06 1,08 1,09 1,11 1,13 1,15 1,17 1,19 1,21 1,23 1,25 1,27 [kHz] Range 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 [dec] Filter No. 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F [hex] Code RRFFitttk FF Detailed filter selection table Nr: Command 1 ## 2 ?? 3 ## 4 ## 5 ## 1,29 1,32 1,34 1,37 1,39 1,42 1,45 1,48 1,51 1,54 1,58 1,61 1,65 1,69 1,73 1,77 1,82 1,86 1,91 1,97 2,02 2,08 2,14 2,16 2,28 2,35 2,43 2,52 2,61 2,71 2,81 2,93 [kHz] Range 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 [dec] Filter No. 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F [hex] Code Response CR !AA05RRFFitttOk CR !AA05RRFFitttOk CR !ACK CR CR 2,93 2,97 3,01 3,05 3,09 3,13 3,18 3,23 3,28 3,32 3,38 3,43 3,49 3,54 3,60 3,66 3,73 3,79 3,85 3,93 4,00 4,07 4,15 4,23 4,31 4,40 4,49 4,58 4,68 4,79 4,89 5,00 [kHz] Range 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 [dec] Filter No. 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F [hex] Code 5,12 5,24 5,36 5,50 5,65 5,80 5,96 6,12 6,31 6,49 6,69 6,90 7,12 7,35 7,61 7,88 8,18 8,51 8,86 9,24 9,66 10,12 10,61 11,10 11,66 12,33 13,09 13,90 14,82 15,92 17,19 18,75 [kHz] Range DAQP-CHARGE Function CR Program address CR Read configuration CR SET configuration Lock buttons Unlock buttons Input type ICP input active Charge input active Overflow status No input overflow Input overflow O 0 1 Range 0 dB 20 dB 40 dB 60 dB i 0 1 RR 00 01 02 03 AA Address {adr+} Address FF = all modules MM Module type (05) ttt Fine tuning k Button lock DAQP-CHARGE Module DAQP-CHARGE-A Module Programming commands DAQP-CHARGE-A Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Activate power on default Deactivate power on default Read serial number Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType) (FineTuning)(Remote)\r ##(Addr)R(Remote)\r ##(Addr)P(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType)(FineTuning) (Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent as long as the filter button has been pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType) (FineTuning)(Overflow)(ICP-Voltage)(Remote)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 17 according general prog. info) Range: Amplifier range position (2 characters hex, according table) LowpassFil.: Output lowpass filter position (2 characters hex, according table) Integration: Integration mode (1 character, according table) HighpassFil.: Input highpass filter position (2 characters hex, according table) InputType: Selection between ‘charge’ and ‘ICP’ input (1 character, according table) FineTuning: Input amplifier fine tuning (3 characters hex 199 to FFF) Overflow: Overflow indicator (correspond with ‘Overflow’-LED) ICP-Voltage: Current ICP-Voltage State (1 character, according table) Remote: Remote or local access to module (1 character, according general prog. info) Example: Command: ##05SETD\r Response: !051703020020FFF000 New address 05; DAQP-CHARGE-A module; 100 mV/pC (40db); lowpass 3 kHz; integration off; highpass 10 Hz; charge input active; 1:10; no overflow; no ICP sensor; local mode DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-37 DAQP-CHARGE-A Module Input types Integration mode Code Function 0 Integration off 1 Single integration 2 Double integration Code Function 0 Charge input active 1 ICP input active Overflow status ICP-Voltage state Code Function 0 1 Code Function 0 Sensor is inside range 1 ICP input short 2 ICP in idle No input overflow Input overflow Low- highpass Filter Code Lowpass 00 50 kHz 01 10 kHz 02 3 kHz 03 1 kHz 04 0,1 kHz Code Highpass 00 0.1 Hz 01 1 Hz 02 10 Hz - Amplifier range selection tables Code Charge 00 0.1 mV/pC 01 1 mV/pC 02 10 mV/pC 03 100 mV/pC 04 1000 mV/pC dB -20 0 20 40 60 Code ICP 00 5000 mV 01 500 mV 02 50 mV 03 5 mV dB 0 20 40 60 Fine tuning As standard, the input divider is set to 1:10. In this case, the input ranges 0, 20, 40 and 60 dB are valid. The module allows to varying the input division from 1:10 to 1:1 in 3686 steps. This feature can be used to do a sensor calibration directly in the module. Division 1:1 199 hex Division 1:5 8CC hex Division 1:10 FFF hex All values between 199 and FFF hex are valid for module programming. As soon as the division is above 1:10 (FFF hex), the input range LED’s are not active. Read module configuration Command: ??(Addr)\r ??: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)(ModuleType)(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType) (FineTuning)(Overflow)(ICP-Voltage)(Remote)\r Response details see also ‘Set module address’ Example: Command: ??04\r Response: !041703020021FFF000 New address 04; DAQP-CHARGE-A module; 5 mV (60 db); lowpass 3 kHz; integration off; highpass 10 Hz; ICP input active; 1:10; no overflow; sensor is inside range; local mode Set module configuration Command: ##(Addr)(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType)(FineTuning)(Remote)\r Command details see also ‘Set module address’ Response: 4-38 !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) DAQP-CHARGE-A Module Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: no response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Activate power on default Command: ##(Addr)P(Range)(LowpassFilter)(Integration)(HighpassFilter)(InputType)(FineTuning) (Remote)\r Command details see also ‘Set module address’ Response: !ACK\r Valid command Deactivate power on default Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: ##(Addr)P\r ##: Addr: P: \r: Command leading code Module address Command Carriage return (0D hex) Response: !ACK\r Valid command Example: Command: ##01P\r Response: !ACK\r Read Serial Number Command: ##(Addr)SETB\r ##: Addr: SETB: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Command Carriage return (0D hex) !(SERAL)xx(REVISION)xxx\r (SERIAL): x: (Revision): \r: Module serial number (6 digits) space Revision number (i.e. V200) Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-39 4-40 Address Address FF = all modules MM Module type (17) RR Range FF Filter code k Button lock Z Special module {gain} Gain value 3 byte hex 199 = *1 8CC = *5 FFF = *10 Highpass filter 0.1 Hz 1 Hz 10 Hz Hp 00 01 02 AA AA+ Lowpass filter Full bandwith (50 kHz) 10 kHz 3 kHz 1 kHz 0.1 kHz FF 00 01 02 03 04 AA AA AA AA+ AA+ AA AA Command ## ?? ## ## ## ## ## Nr: 1 2 3 4 5 6 7 RRFFI{Hp}{icp}{gain}k R1 R0 SETB P RRFFI{Hp}{icp}{gain}k SETD CR CR CR CR CR CR CR Overflow status No input Input overflow O 0 1 dB 0 20 40 60 dB -20 0 20 40 60 Integration mode Integration off Single Double integration ICP 5000 mV 500 mV 50 mV 5 mV Charge 0.1 mV/pC 1 mV/pC 10 mV/pC 100 mV/pC 1000 mV/pC I 0 1 2 RR 00 01 02 03 RR 00 01 02 03 04 !{16*ASCII} !ACK CR CR DAQP-CHARGE-A Response !AAMMRRFFI{Hp}{icp}{gain}Ok CR !AAMMRRFFI{Hp}{icp}{gain}Ok CR CR !ACK Function Set module address Read configuration SET configuration Lock buttons Unlock buttons Read serial number Write power on default to module DAQP-CHARGE-A Module DAQP-CHARGE-B Module Programming commands DAQP-CHARGE-B Instruction set Command Set module address Read module configuration Set module configuration Set remote control on/off Module Reset Activate highpass filter Deactivate highass filter Activate power on default Deactivate power on default Read serial number Syntax ##(NewAddr)SETD\r ??(Addr)\r ##(Addr)(Range)(LowpassFilter)(InputShort)(HighpassFilter)(FilterType)(Remote)\r ##(Addr)R(Remote)\r ##(Addr)R6\r ##(Addr)R9\r ##(Addr)RA\r ##(Addr)P(Range)(LowpassFilter)(InputShort)(HighpassFilter)(FilterType)(Remote)\r ##(Addr)P\r ##(Addr)SETB\r Commands in detail Set module address This command has to be sent while the filter button gets pressed on the module. After that, the new address is stored in an EEPROM and the module sends a response string to the system. Command: ##(NewAddr)SETD\r ##: NewAddr: SETD: \r: Response: Command leading code New module address (2 characters hex from 00 to FE) Set address command Carriage return (0D hex) !(NewAddr)(ModuleType)(Range)(LowpassFilter)(InputShort)(HighpassFilter)(FilterType) (Remote)(Special)(Isolation)\r !: Response leading code NewAddr: Confirmed new module address (2 characters hex) ModuleType: Type of module (2 characters hex, 1E according general prog. info) Range: Amplifier range position (2 characters hex, according table) LowpassFil.: Filter position (2 characters hex, according table) InputShort.: Input short circuit (390 kOhm resistor) HighpassFil.: Activate/deactivate highpass filter (1 character, according table) FilterType: Filter characteristic selection (1 character, according table) Remote: Remote or local access to module (1 character, according general prog. info) Special: 0 Standard module 1 Special module InputIsolation:0 Galvanic isolation 1 No galvanic isolation DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-41 DAQP-CHARGE-B Module Lowpass filter type Input short circuit Attention: Activating the input short circuit causes a permanent reset. For discharging the command “reset module” is recommended. Code Function 0 Bessel filter activated 1 Butterworth filter activated Amplifier range and filter selection table Range 1000 k pC 200 k pC 40 k pC 10 k pC 2000 pC 500 pC 100 pC - Code 00 01 02 03 04 05 06 - Lowpass 100 kHz 30 kHz 10 kHz 3 kHz 1 kHz 300 Hz 100 Hz 30 Hz 10 Hz Code 00 01 02 03 04 05 06 07 08 Code Function 0 Input short circuit deactivated 1 Input short circuit activated Highpass filter Code Function 0 Highpass filter deactivated (DC) 1 Highpass filter activated (AC) Read module configuration Command: ??(Addr)\r ??: Addr: \r: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) Response: !(Addr)(ModuleType)(Range)(LowpassFilter)(InputShortCircuit)(HighpassFilter)(FilterType) (Remote)(Special)(Isolation)\r Response details see also ‘Set module address’ Example: Command: ??(00)\r Response: !001E010600100 Module address 00; CHARGE-B module; 200 k pC; 100 Hz; no short circuit; highpass filter activated; bessel filter activated; remote mode; standard module; no galvanic isolation Set module configuration Command: ##(Addr)(Range)(LowpassFilter)(InputShortCircuit)(HighpassFilter)(FilterType)(Remote)\r Command details see also ‘Set module address’ Response: 4-42 !ACK\r (Notice: an incorrect command gets no response from module!) !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) DAQP-CHARGE-B Module Set remote control on/off Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Remote on/off command 0: local mode 1: remote control Carriage return (0D hex) Response: No response Example: Command: ##01R0\r (Module address 01, local mode) Command: ##01R1\r (Module address 01, remote mode) Reset module Command: ##(Addr)R6\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command R6: Reset the module for 0.5 sec. \r: Carriage return (0D hex) Response: !ACK\r Activate / deactivate highpassfiter Command: ##(Addr)Rx\r ##: Addr: Rx: \r: Command leading code Module address (2 characters hex from 00 to FE) Address FF sets all modules with one command Hihgpassfilter activate / deactivate command 9: Activate highpassfilter A: Deactivate highpassfilter Carriage return (0D hex) Response: No response Example: Command: ##01R9\r (Module address 01, highpassfilter active) Command: ##01RA\r (Module address 01, highpassfilter inactive) Read Serial Number Command: ##(Addr)SETB\r ##: Addr: SETB: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Sending the address FF takes effect on all connected bridge modules. Command Carriage return (0D hex) !(SERAL)xx(REVISION)xxx\r (SERIAL): x: (Revision): \r: Module serial number (6 digits) space Revision number (i.e. V200) Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-43 DAQP-CHARGE-B Module Activate power on default Command: ##(Addr)P(Range)(LowpassFilter)(InputShortCircuit)(HighpassFilter)(FilterType)(Remote)\r Command details see also ‘Set module address’ Response: !ACK\r Valid command Deactivate power on default Deactivates the power on default mode. The last pushbutton selected range and filter is adjusted at power on time. Command: 4-44 ##(Addr)P\r ##: Addr: P: \r: Command leading code Module address Command Carriage return (0D hex) Response: !ACK\r Valid command Example: Command: ##01P\r Response: !ACK\r DAQP-CHARGE-B Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 4-45 Response SETD CR !AAMMRRFFECTKZG CR !AAMMRRFFECTKZG RRFFECTR CR !ACK R6 CR R9 CR RA CR R1 CR R0 CR SETB CR !{16*ASCII} P RRFFECTR CR !ACK FF Filter 00 100 kHz 01 30 kHz 02 10 kHz 03 3 kHz 04 1 kHz 05 300 Hz 06 100 Hz 07 30 Hz 08 10 Hz Nr: Command 1 ## AA 2 ?? AA 3 ## AA 4 ## AA+ 5 ## AA+ 6 ## AA+ 7 ## AA+ 8 ## AA+ 9 ## AA 10 ## AA RR Range 00 1000000 pC 01 200000 pC 02 40000 pC 03 10000 pC 04 2000 pC 05 500 pC 06 100 pC DAQP-CHARGE-B Function CR Program address CR Read configuration CR SET configuration Module reset Highpass on Highpass off Lock buttons Unlock buttons CR Read serial number CR Write power on default to module 4-46 C T G k Z MM RR FF E AA AA+ Address Address FF = all modules Module type (1E) Range Filter code Input short circuit on/off (390kOHM resistor) Highpass Filter type (Bessl/Buth.) Galvanic isolation deactivate Button lock Special module DAQP-CHARGE-B Module MDAQ Modules Series MDAQ-V Module Programming commands MDAQ-V Instruction set Command General commands Read module configuration Read serial number Read module type and firmware version Functional commands Read gain for channel x Set gain for channel x Read gain calibration values Read offset calibration values Syntax ??M(Addr)\r ??M(Addr)GETN\r ??M(Addr)VER\r ??K(ChannelNo)\r ##K(ChannelNo)FF(GainLevel)TMM\r ??M(Addr)K(GainLevel)\r ??M(Addr)Z(GainLevel)\r Commands in detail Read module configuration Command: ??M(Addr)\r ??M: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to 0F) Carriage return (0D hex) !M(Addr)(ModuleType)(ChannelNoOffset)(ChannelNo)(OutputRange)(FilterBoard)(SVersion)\r !M: Response leading code Addr: Module address ModuleType: ’21’ hex for DEWE-MDAQ-V ChNoOffset: ‘00’ hex default ChannelNo: ‘10’ hex default OutpRange: ‘0’ if output voltage is +- 5V ‘1’ if output voltage is +-10V FilterBoard: ‘0’ if no filter board is connected ‘1’ if filter board type 1 is connected ‘2’ if filter board type 2 is connected SVersion: ‘0’ for standard MDAQ-V version ‘1’ for special MDAQ-V version Example: Command: Response: ??M01\r !M00210010001\r (Address=00, 21 -> MDAQ-V-Module, ChannelNoOffset=00, ChannelNo=10, OutputRange = +-5V, 0 -> No Filter Board connected, 1-> MDAQ-V special version) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 5-1 MDAQ-V Module Read serial number Command: ??M(Addr)GETN\r ??M: Addr: GETN: \r: Response: Example: Command leading code Module address (2 characters hex from 00 to 0F) Command leading code Carriage return (0D hex) !(SNR)\r !: SNR: \r: Response leading code 16 bytes serial number (ASCII), blanks will be placed with 20 hex Carriage return (0D hex) Command: ??M00GETN\r (Address = 00 hex) Response: !220643 V100 Read module type and firmware version Command: ??M(Addr)VER\r ??M: Addr: VER: \r: Response: Command leading code Module address (2 characters hex from 00 to 0F) Command leading code Carriage return (0D hex) !DAQM-DIFF Ver.1.00\r !: \r: Response leading code with Module type and firmware version x.xx Carriage return (0D hex) Read gain for channel x Command: ??K(ChannelNo)\r ??K: Command leading code ChannelNo: 2 characters hex from 00 to FF \r: Carriage return (0D hex) Response: !M(Addr)00(GainLevel)000)\r !M: Addr: GainLevel: \r: Example: 5-2 Response leading code Module address (2 characters hex from 00 to 0F) ‘0’ for gain-level 1 (e.g. 0.1 or 1) ‘1’ for gain-level 2 (e.g. 1 or 10) Carriage return (0D hex) Command: ??K10\r (ChannelNo = 10 hex) Response: !M00000000\r (Address=00, 00 -> 2 characters reserved, 0 -> Gain 0.1 or 1, 000 -> 3 characters reserved) MDAQ-V Module Set gain for channel x Command: ##K(ChannelNo)FF(GainLevel)TMM\r ##K: ChannelNo: FF: GainLevel: TMM: \r: Command leading code 2 characters hex from 00 to FF Command leading code ‘0’ for gain-level 1 (e.g. 0.1 or 1) ‘1’ for gain-level 2 (e.g. 1 or 10) Command leading code Carriage return (0D hex) !ACK\r Notice: an incorrect command gets no response from module! !: ACK: \r: Response leading code Acknowledge Carriage return (0D hex) Example: Command: ??K0AFF0TMM\r (ChannelNo = 0A hex, 0 -> Gain 0.1 or 1) Response: !ACK\r Response: Read gain calibration values Command: ??M(Addr)K(GainLevel)\r ??M: Addr: K: GainLevel: \r: Response: Command leading code Module address (2 characters hex from 00 to 0F) Command leading code ‘0’ for gain-level 1 (e.g. 0.1 or 1) ‘1’ for gain-level 2 (e.g. 1 or 10) Carriage return (0D hex) !(GainFault-ch0) – ..... – (GainFault-ch15)\r !: Response leading code GainFault-chx:‘0000’ no fault ‘0001’ 0.001 % fault (the gain is to high) ‘0002’ 0.002 % fault ‘000A’ 0.01 % fault ‘0012’ 0.018 % fault ‘7FFF’ 32.767 % fault ‘8000’ –32.768 % fault ‘FFFF’ –0.001 % fault (the gain is to less) Notice: the GainFault-chx values are specified in two’s complement! Example: Command: ??M00K0\r Response: !0001 – 000A – 0011 – ….. – FFFF\r (GainFault-ch0 = 0.001%, GainFault-ch1 = 0.01%, GainFault-ch2 = 0.017% ..... GainFault -ch15= –0,001%) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 5-3 MDAQ-V Module Read offset calibration values Command: ??M(Addr)Z(GainLevel)\r ??M: Addr: Z: GainLevel: \r: Response: Command leading code Module address (2 characters hex from 00 to 0F) Command leading code ‘0’ for gain-level 1 (e.g. 0.1 or 1) ‘1’ for gain-level 2 (e.g. 1 or 10) Carriage return (0D hex) !(OffsetFault-ch0) – ..... – (OffsetFault-ch15)\r !: Response leading code OffsetFault-chx: ‘0000’ no fault ‘0001’ 0.01 mV (the offset is positiv) ‘0002’ 0.02 mV ‘000A’ 0.1 mV ‘7FFF’ 327.67 mV ‘8000’ –327.68 mV (the offset is negativ) ‘FFFF’ –0.01 mV Notice: the OffsetFault-chx values are specified in two’s complement! Example: Command: ??M00Z0\r Response: !0000 – 0001 – 0004 – ..... – FFFF\r (OffsetFault-ch0 = 0 mV, OffsetFault-ch1 = 0.01 mV, OffsetFault-ch2 = 0.04 mV ..... OffsetFault-ch15 = –0.01 mV) 5-4 MDAQ-V Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 5-5 5-6 AA AA AA cc cc AA AA G Gain level 0 Gain level 1 1 Gain level 2 R Output range 0 ±5 V 1 ±10 V Nr: Command 1 ?? M 2 ?? M 3 ?? M 4 ?? K 5 ## K 6 ?? M 7 ?? M FFGTMM KG ZG GETN VER Filter No filter board connected Filter board type 1 Filter board type 2 Z MDAQ-V version 0 Standard 1 Special F 0 1 2 L ‘0000’ ‘0001’ ‘0002’ ‘000A’ ‘0012’ ‘7FFF’ ‘8000’ ‘FFFF’ Gain fault ch x no fault 0.001 % fault (gain is to high) 0.002 % fault 0.01 % fault 0.018 % fault 32.767 % fault –32.768 % fault –0.001 % fault (gain is to less) MDAQ-V Function Response CR !MAAtyooccRFS CR Read module configuration CR !{SNR} CR Read serial number CR !DAQM-DIFFVer.{VER} CR Read module type and firmware version CR !MAA00G000 CR Read gain for channel x CR !ACK CR Set gain for channel x CR !L-L-.....-L-L CR Read gain calibration values CR !C-C-.....-C-C CR Read offset calibration values C ‘0000’ ‘0001’ ‘0002’ ‘000A’ ‘7FFF’ ‘8000’ ‘FFFF’ Offset fault ch x no fault 0.01 mV (offset is positiv) 0.02 mV 0.1 mV 327.67 mV –327.68 mV (offset is negativ) –0.01 mV AA Address ty Module type (21) oo Channel number offset cc Channel number S Special module {SNR} Serial number (16 bytes) {VER} Firmware version MDAQ-V Module PAD Modules Series PAD-V8-P Module Module commands Command summary for PAD-V8-P module Command GENERAL COMMANDS Set module configuration Set module address Read module channel configuration Read module type and firmware version Read firmware version number Read module name Read serial number FUNCTIONAL COMMANDS Set input range for channel x Read analog input from channel x Read all 8 channel data values Synchronized sampling Read all internally stored values Read output range of channel x Duration of averaging Set LED state Read LED and digital input state Read module configuration Read channel multiplex state Set channel multiplex state Zero calibration for channel x Zero calibration for all channels Span calibration for channel x Span calibration for all channels Open memory area for custom linearisation Set custom linearisation point Close memory area for custom linearisation Syntax %(OldAddr)(NewAddr)(InputRange)(BaudRate)(Format)\r ##(Addr)SETP\r ??(Addr)\r ??(Addr)VER\r $(Addr)F\r $(Addr)M\r ??(Addr)SNR\r %(Addr)T(ChannelNo)(InputRange)\r #(Addr)(ChannelNo)\r $(Addr)A\r #**\r $(Addr)S\r $(Addr)W(ChannelNo)\r %(Addr)M(AverageLength)\r $(Addr)L(State)\r $(Addr)I\r $(Addr)2\r $(Addr)6\r $(Addr)5(Channels)\r %(Addr)Z(ChannelNo)\r $(Addr)1\r (only modules older rev. 1.14) %(Addr)S(ChannelNo)\r $(Addr)0\r (only modules older rev. 1.14) ##(Addr)OK(Number)\r ##(Addr)T(PointNo)(Sign)(Voltage)(Sign)(Value)\r ##(Addr)C(InputRangeCode)\r DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-1 PAD-V8-P Module Set module configuration Command: %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat)\r % (OldAddr) Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr) The new module address (00 to FE hex - be careful to get no conflict with existing module addresses). (InputRange) Define the analog input range, refered to the table input ranges. (BaudRate) Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataFormat) Define checksum and output data format, refered to the table data format Response: !(Addr)<CR> The command to this address is valid. ?(Addr)<CR> The command is invalid, parameter values are invalid or change settings not possible. Example: Command: %0130080600<CR> %: command leading code 01: old module address 30: new module address (30 hex = 48 dez) 08: voltage input ±10 V 06: baud rate (9600) 00: data format (engineering units, checksum disabled) <CR>: carriage return Response !30<CR> Address successfully changed from 01 to 30. Input ranges: Code (hex) 02 03 04 05 08 09 0A 0B 0C 30 32 48 49 50 51 Input range ±100 mV ±500 mV ±1 V ±2.5 V ±10 V ±5 V ±1 V ±500 mV ±150 mV -150 mV to +1.5 V ±50 V DEWETRON defined linearization (area 4) DEWETRON defined linearization (area 5) Custom defined linearization (area 6) Custom defined linearization (area 7) Code Baud rate 03 1200 bps 04 2400 bps 05 4800 bps 06 9600 bps 07 1920 bps 08 38400 bps 09 57600 bps 0A 115200 bps 6-2 Resolution 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV Precision mode 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV Digits 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 PAD-V8-P Module Reserved all bits have to be 0 Data format: 7 6 5 4 Checksum 0: disable 1: enable 3 2 1 Precision 0: 8 digits 1: 9 digits 0 Analog input data format 00: engineering units 01: 2 byte signed, binary, scaled to full scale range, MSB first 10: 3 byte signed, binary, scaled to full scale range, MSB first 11: 4 byte signed, binary, scaled to full scale range, MSB first Set module address The command has to be sent to the module until the push button on the module gets pressed. Then the module sends the answer. Command: ##(Addr)SETP\r ##: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)(ModuleType)\r !: Response leading code Addr: Acknowledged new module address ModuleType: 11 for PAD-V8-P module Example: Command: ##01SETP\r Response: !0111\r (Address 01, PAD-V8-P) Read module configuration (first channel) Command: $(Addr)2\r Response: !(Addr)(InputRange)(BaudRate)(DataFormat)\r !: Response leading code Addr: Module address InputRange: 2 bytes hex, values 00 to FF hex, MSB first BaudRate: Communication baud rate DataFormat: Define checksum and output data format \r: Carriage return (0D hex) Read module channel configuration Command: ??(Addr)\r Response: !(Addr)(ModuleType)(Averaging)(S)(InputRanges)*8\r !: Response leading code Addr: Module address ModuleType: ‘11’ hex for PAD-V8-P Averaging: ‘01’, ‘04’ or ‘08’ for number of averaged values S: Reserve InputRange: 8*2 bytes hex, values 00 to FF hex, MSB first \r: Carriage return (0D hex) Example: Command: ??01\r Response: !011101S0809053202030432\r (Address 01, PAD-V8-P, no averaging: channel 0: ±10 V, channel 1: ±5 V, channel 2: ±2.5 V, channel 3: ±50 V, channel 4: ±0.1 V, channel 5: ±0.5 V, channel 6: ±1 V, channel 7: ±50 V) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-3 PAD-V8-P Module Read module type and firmware verison Command: ??(Addr)VER\r Response: !PAD-V8-P Ver. x.xx\r !: \r Response leading code Module type and software version x.xx Carriage return (0D hex) Read firmware verison number Command: $(Addr)F\r Response: !(Addr)(Version)\r !: Addr: Version: \r Response leading code Module address Firmware version (e.g., V1.14) Carriage return (0D hex) Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r !: Addr: Name: \r Response leading code Module address Module name (e.g., PAD-V8-P) Carriage return (0D hex) Read serial number Command: ??(Addr)SNR\r Response: !(Addr)(SNR)\r !: SNR: \r: Response leading code 6 ot 8 bytes serial number (ASCII) Carriage return (0D hex) Set input range for channel x The input range can be set different for each channel. Command: %(Addr)T(ChannelNo)(InputRange)\r %: Addr: ChannelNo: InputRange: \r: Command leading code Module address (2 characters hex from 00 to FE) Channel number from 0 to 7 2 bytes, MSB first, values according table above Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r Command ok Command failure (e.g. sensor identification used) Example: Command: %01T00C\r Response: !01\r (Module set to ±150 mV input at channel 0) Read analog input from channel x Command: #(Addr)(ChannelNo)\r #: Addr: ChannelNo: \r: 6-4 Command leading code Module address (2 characters hex from 00 to FE) Channel number from 0 to 7 Carriage return (0D hex) PAD-V8-P Module Response: Example: >(Data)\r > Data: \r: Resonse leading code Input value Carriage return (0D hex) Command: #010\r Response: +00025.7\r (input value 25.7 at channel 0 with 8 digit precision) Read all 8 channels data values Command: Response: Example: $(Addr)A\r Valid: >(Data)(Data)(Data)(Data)(Data)(Data)(Data)(Data)\r Invalid: ?AA\r >: ?: Addr: Data: Response leading code for valid command Response leading code for invalid command Module address (2 characters hex from 00 to FE) 8 or 9 character ASCII value (depending on precision) Command: $01A\r Response: >+01.1001+00.2573-47.0047+00.2370+08.0292+00.0974-00.0023+05.1195\r channel 0: +1.1001 V channel 4: +8.0292 V channel 1: +0.2573 V channel 5: +0.0974 V channel 2: -47.0047 V channel 6: -0.0023 V channel 3: +0.237 V channel 7: +5.1195 V Synchronized sampling This command will store the current analog values for all channels. As this command uses no module address, it has an effect on all PAD modules within the system. The values are stored within each module in a temporary register. Command: #**\r Response: no response; to read out the values, use the following command. Read all internally stored values This command will read out the internally stored values. Command: $(Addr)S\r Response: !(S)(Data)(Data)(Data)(Data)(Data)(Data)(Data)(Data)\r !: S: Data: Command leading code Readout state (1 = first read out; 0 = already read out) Stored analog values for channel 0 to 7 Read all internally stored values This command will read out the internally stored values. Command: $(Addr)S\r Response: !(S)(Data)(Data)(Data)(Data)(Data)(Data)(Data)(Data)\r !: S: Data: Command leading code Readout state (1 = first read out; 0 = already read out) Stored analog values for channel 0 to 7 DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-5 PAD-V8-P Module Read output range of channel x Command: $(Addr)W(ChannelNo)\r Response: !(Addr)(MinSign)(MinValue)(MaxSign)(MaxValue)\r Example: !: Addr: MinSign: MinValue: MinSign: MaxValue: Response leading code Module address (2 characters hex from 00 to FE) Sign for minimum (‘-’ or ‘+’) Minimum value of input range, 8 bytes ASCII Sign for minimum (‘-’ or ‘+’) Maximum value of input range, 8 bytes ASCII Command: $01W0\r Response: !01-173.7500+275.2450\r (Module address 01, min. range -173.7500 N, max. range +275.2450 N) Set duration of averaging Command: %(Addr)M(Duration)\r %: Addr: Duration: Command leading code Module address (2 characters hex from 00 to FE) ‘01’, ‘04’ or ‘08’ allowed 01: no averaging 04: average over 4 values 08: average over 8 values Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: $01M04\r Response: !01\r (Module at address 01 set to 4 values averaging) Set LED state Command: Response: $(Addr)L(State)\r $: Addr: State: Command leading code Module address (2 characters hex from 00 to FE) ‘E’, ‘A’ or ‘B’ allowed E: LED on A: LED off B: LED flashing with 1 Hz !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Read LED and digital input state This command shows the state of the LED and the digital inputs. 6-6 Command: $(Addr)I\r Response: Valid: Invalid: !: Addr: LEDState: DIState: !(Addr)(LEDState)(DIState)\r ?(Addr)\r Response leading code Module address (2 characters hex from 00 to FE) ’E’ = LED on, ’A’ = LED off, ’B’ = LED flashing with 1 Hz Digital input state, 4 bytes ’A’ = high or no signal, ’E’ = low PAD-V8-P Module Set channel multiplex state Used to reduce data transfered with $(Addr)A and $(Addr)S command. Data of disabled channels will not be transfered. Command: $(Addr)5(Channels)\r $: Addr: Channels: Command leading code Module address (2 characters hex from 00 to FE) 2 character value from 00 to FF hex, 8 bits refer to channels 7 to 0 1 = enable, 0 = disable Response: !(Addr)\r Valid command ?(Addr)\r Invalid command No response Syntax error Example: Command: $015AA\r Response: !01\r (channel 1, 3, 5, 7 enabled, channel 0, 2, 4, 6 disabled) Read channel multiplex state Command: $(Addr)6\r Response: Valid: Invalid: Syntax error: !: Addr: Channels: !(Addr)(Channels)\r ?(Addr)\r No response Command leading code Module address (2 characters hex from 00 to FE) 2 character value from 00 to FF hex, 8 bits refer to channels 7 to 0 1 = enable, 0 = disable Example: Command: $016\r Response: !01AA\r (channel 1, 3, 5, 7 enabled, channel 0, 2, 4, 6 disabled) Zero calibration for channel x (1) Connect 0.000 mV signal to input channel x and wait at least 5 sec. before calibration. Command: %(Addr)Z(ChannelNo)\r %: Command leading code Addr: Module address (2 characters hex from 00 to FE) ChannelNo: Input channel number from 0 to 7, where signal is connected Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Zero calibration for all channels (1) Connect 0.000 mV signal to ALL input channels and wait at least 5 sec. before calibration. Command: Response: %(Addr)ZA\r %: Addr: Command leading code Module address (2 characters hex from 00 to FE) !(Addr)\r ?(Addr)\r Valid command Invalid command Note: This command is valid for mudules after rev. 1.14 only (older versions used $(Addr)2\r) (1) Sending this commands without connecting the appropriate signals causes wrong measurement values! DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-7 PAD-V8-P Module Span calibration for channel x (1) Connect +10 V signal to input channel and wait at least 5 sec. before calibration. Command: %(Addr)S(ChannelNo)\r %: Command leading code Addr: Module address (2 characters hex from 00 to FE) ChannelNo: Input channel number from 0 to 7, where signal is connected Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Span calibration for all channels (1) Connect +10 V signal to ALL input channels and wait at least 5 sec. before calibration. Command: Response: %(Addr)SA\r %: Addr: Command leading code Module address (2 characters hex from 00 to FE) !(Addr)\r ?(Addr)\r Valid command Invalid command Note: This command is valid for mudules after rev. 1.14 only (older versions used $(Addr)0\r) Open memory area for custom linearisation As the PAD-V8-P module allows different sensor linearisations directly within the module, the following three commands are necessary to write the data. Command: ##(Addr)OK(Number)\r ##: Addr: Number: Command leading code Module address (2 characters hex from 00 to FE) Customer defined linearisation can be stored into area ‘6’ (range code 50) and ‘7’ (range code 51), see also table on page 5-2 Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: ##01OK6\r Response: !01\r (open linearisation area 6 for writing data) Set custom linearisation point Command: (1) ##(Addr)T(PointNo)(Sign)(Voltage)(Sign)(Value)\r ##: Addr: PointNo: Sign: Voltage: Value: Command leading code Module address (2 characters hex from 00 to FE) 2 bytes ASCII from 00 to 47; number of the value; 48 values can be stored ‘-’ or ‘+’ sign 6 bytes ASCII, MSB first, values from 0 to 999999 in 100 µV 5 bytes ASCII, MSB first, physical values from 0 to 29999, one or two dezimals (depending on precision mode) Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: ##01T01+012300+01230\r Response: !01\r (Module address 01, point 1, +1.23 V = +123.0 mm) Sending this commands without connecting the appropriate signals causes wrong measurement values! 6-8 PAD-V8-P Module Close memory area for custom linearisation Close memory area to avoid unintentional writing to module. Command: ##(Addr)C(InputRange)\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) InputRange: 2 bytes hex input range code, area 6 = 50 hex, area 7 = 51 hex Response: !(Addr)\r ?(Addr)\r Valid command Invalid command DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-9 6-10 Code (hex) 02 03 04 05 08 09 0A 0B 0C 30 32 48 49 50 51 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV 100 uV Resolution PAD-V8-P Response CR !AAMM CR !PAD-V8-P VER. X.xx CR !{AAMMoSFF}*8 CR !AAxxxxxxxx CR !AA CR !AA CR !AA CR !AA CR !S{xxxxxxxx}*8 CR !AA CR CR !AA CR !AA CR !AA CR !AA CR >sxxxxxxxx CR >{sxxxxxxxx}*8 CR !AA old command CR !AA old command CR !AAFFBBDD CR CR hh CR >{sxxxxxxxx}*8 CR !AAVx.xx CR !AAPAD-V8-P Input range ±100 mV ±500 mV ±1 V ±2.5 V ±10 V ±5 V ±1 V ±500 mV ±150 mV -150 mV to +1.5 V ±50 V DEWETRON defined linearization (area 4) DEWETRON defined linearization (area 5) Custom defined linearization (area 6) Custom defined linearization (area 7) Nr: Command 1 ## AA SETP 2 ?? AA VER 3 ?? AA 4 ?? AA SNR 5 % AA T nFF 6 % AA M o 7 % AA Z n (1) 8 % AA S n (1) 9 $ AA S 10 $ AA L b 11 # ** 12 ## AA OK k 13 ## AA T NNsxxxxxxsxxxxx 14 ## AA C KK 15 % AA {adr.new} FFBBDD 16 # AA n 17 # AA 18 $ AA 0 19 $ AA 1 20 $ AA 2 21 $ AA 5 hh 22 $ AA 6 23 $ AA A 24 $ AA F 25 $ AA M 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV 10 uV Precision mode Digits 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 8 or 9 Set module address Read module type and firmware version Read module channel configuration Read serial number Set input range for channel n Duration of averaging Zero calibration for channel n Span calibration for channel n @ 10.00000 V Read all internally stored values Set LED state Synchronized sampling Open memory area for custom linearisation Set custom linearisation point Close memory area for custom linearisation Set module configuration Read analog input from channel n Read all channels Span calibration for all channels @ 10.00000 V Zero calibration for all channels Read module configuration (first channel) Set channel multiplex state Read channel multiplex state Read all 8 channel data values Read module firmware Read module name BB 3 4 5 6 7 8 9 0A FF o s k KK w hh BB DD S AA MM b xxx n n (1) Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 57600 bps 115200 bps Address Module type (11) E/A/B ASCII Channel number 0 to 7 channel A = all channels after rev. 1.14 Input range 01, 04, 08 "+" "-" sign 6/7 custom lin. lin. type (FE) "M" "I" HEX wert Baud rate Data format Flag 0/1 PAD-V8-P Module PAD-TH8-P Module Module commands Command summary for PAD-TH8-P module Command GENERAL COMMANDS Set module configuration Set module address Read module configuration Read module type and firmware version Read firmware version number Read module name Read serial number FUNCTIONAL COMMANDS Set input range for channel x Read analog input from channel x Read all 8 channel data values Synchronized sampling Read all internally stored values Read output range of channel x Set duration of averaging Set LED state Read LED and TC-type state Read channel multiplex state Set channel multiplex state Read CJC value Set CJC offset value Zero calibration for channel x Zero calibration for all channels Span calibration for channel x Span calibration for all channels Open memory area for custom linearisation Set custom linearisation point Close memory area for custom linearisation Syntax %(OldAddr)(NewAddr)(InputRange)(BaudRate)(Format)\r ##(Addr)SETP\r ??(Addr)\r ??(Addr)VER\r $(Addr)F\r $(Addr)M\r ??(Addr)SNR\r %(Addr)T(ChannelNo)(InputRange)\r #(Addr)(ChannelNo)\r $(Addr)A\r #**\r $(Addr)S\r $(Addr)W(ChannelNo)\r %(Addr)M(AverageLength)\r $(Addr)L(State)\r $(Addr)I\r $(Addr)6\r $(Addr)5(Channels)\r $(Addr)3\r $(Addr)9(Sign)(Value)\r %(Addr)Z(ChannelNo)\r $(Addr)1\r (only modules older rev. 1.14) %(Addr)S(ChannelNo)\r $(Addr)0\r (only modules older rev. 1.14) ##(Addr)OK(Number)\r ##(Addr)T(PointNo)(Sign)(Voltage)(Sign)(Value)\r ##(Addr)C(InputRangeCode)(CJC)\r DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-11 PAD-TH8-P Module Set module configuration Command: %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat)\r % (OldAddr) Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr) The new module address (00 to FE hex - be careful to get no conflict with existing module addresses). (InputRange) Define the analog input range, refered to the table input range. (BaudRate) Communication baud rate; recommended ‘06’ hex (= 9600 bps). (DataFormat) Define checksum and output data format, refered to the table data format Response: !(Addr)<CR> The command to this address is valid. ?(Addr)<CR> The command is invalid, parameter values are invalid or change settings not possible. Example: Command %01300F 0600<CR> %: command leading code 01: old module address 30: new module address 0F: thermocouple type K input (-270 °C to +1372 °C) 06: baud rate (9600) 00: data format (engineering units, checksum disabled) <CR>: carriage return Response !30<CR> Description: Address successfully changed from 01 to 30. Input ranges: Code (hex) 00 01 02 0C 0E 0F 10 30 31 48 49 50 51 Input range ±15 mV ±50 mV ±100 mV ±150 mV Thermocouple type 'J' -210 °C .. 1200 °C Thermocouple type 'K' -270 °C .. 1372 °C Thermocouple type 'T' -270 °C .. 400 °C -150 mV to +1.5 V -1.5 V to +1.5 V DEWETRON defined linearization (area 4) DEWETRON defined linearization (area 5) Custom defined linearization (area 6) Custom defined linearization (area 7) Data format: Reserved all bits have to be 0 7 6 5 Checksum 0: disable 1: enable 6-12 4 3 2 Precision 0: 8 digits 1: 9 digits 1 0 Resolution 10 uV 10 uV 10 uV 10 uV 0.1 °C 0.1 °C 0.1 °C 10 uV 10 uV Precision mode 1 uV 1 uV 1 uV 1 uV 0.01 °C 0.01 °C 0.01 °C 1 uV 1 uV Code Baud rate 03 1200 bps 04 2400 bps 05 4800 bps 06 9600 bps 07 1920 bps 08 38400 bps 09 57600 bps 0A 115200 bps Analog input data format 00: engineering units 01: 2 byte signed, binary, scaled to full scale range, MSB first 10: 3 byte signed, binary, scaled to full scale range, MSB first 11: 4 byte signed, binary, scaled to full scale range, MSB first PAD-TH8-P Module Set module address The command has to be sent to the module until the push button on the module gets pressed. Then the module sends the answer. Command: ##(Addr)SETP\r ##: Addr: \r: Response: Command leading code Module address (2 characters hex from 00 to FE) Carriage return (0D hex) !(Addr)(ModuleType)\r !: Response leading code Addr: Acknowledged new module address ModuleType: 10 for PAD-TH8-P module Example: Command: Response: ##01SETP\r !0110\r (Address 01, PAD-TH8-P) Read module configuration (first channel) Command: $(Addr)2\r Response: !(Addr)(InputRange)(BaudRate)(DataFormat)\r !: Response leading code Addr: Module address InputRange: 2 bytes hex, values 00 to FF hex, MSB first BaudRate: Communication baud rate DataFormat: Define checksum and output data format \r: Carriage return (0D hex) Read module channel configuration Command: ??(Addr)\r Response: !(Addr)(ModuleType)(Averaging)(RangeSel)(InputRanges)*8\r !: Response leading code Addr: Module address ModuleType: ‘10’ hex for PAD-TH8-P Averaging: ‘01’, ‘04’ or ‘08’ for number of averaged values RangeSel: ‘E’ if external CB8-x-P connector block is connected ‘S’ if input range is defined by software ‘I’ if intelligent connector block is connected InputRange: 8*2 bytes hex, values 00 to FF hex, MSB first (refer ot input range table) \r: Carriage return (0D hex) Example: Command: ??01\r Response: !011001E0F0F0F0F0F0F0F0F\r (Address 01, PAD-TH8-P, no averaging, ext. sensor, 8 thermocouples ‘K’) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-13 PAD-TH8-P Module Read module type and firmware verison Command: ??(Addr)VER\r Response: !PAD-TH8-P Ver. x.xx\r !: Response leading code Module type and software version Carriage return (0D hex) \r Read firmware version number Command: $(Addr)F\r Response: !(Addr)(Version)\r !: Addr: Version: \r Response leading code Module address Firmware version Carriage return (0D hex) Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r !: Addr: Name: \r Response leading code Module address Module name Carriage return (0D hex) Read serial number Command: ??(Addr)SNR\r Response: !(Addr)(SNR)\r !: SNR: \r: Response leading code 6 to 8 bytes serial number (ASCII) Carriage return (0D hex) Set input range for channel x The input range can be set different for each channel. Dont send this command if CB8-x-P is connected. Sending this command will also reconfigure the connector block settings! Reconfiguring connector block is NOT RECOMMENDED! Command: %(Addr)T(ChannelNo)(InputRange)\r %: Addr: ChannelNo: InputRange: \r: Command leading code Module address (2 characters hex from 00 to FE) Channel number from 0 to 7 2 bytes, MBS first, values according table above Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r Command ok Command failure (e.g. CB8-x-P connected) Example: Command: %01T00C\r Response: !01\r (Module set to ±150 mV input at channel 0) Read analog input from channel x Command: #(Addr)(ChannelNo)\r #: Command leading code Addr: Module address (2 characters hex from 00 to FE) ChannelNo: Channel number from 0 to 7 6-14 PAD-TH8-P Module \r: Response: Carriage return (0D hex) >(Data)\r > Data: \r: Resonse leading code Input value Carriage return (0D hex) Example: Command: #010\r Response: >+00025.7\r (input value 25.7 at channel 0 with 8 digit precision) Read all 8 channels data values Command: $(Addr)A\r Response: Valid: >(Data)(Data)(Data)(Data)(Data)(Data)(Data)(Data)\r Invalid: ?AA\r >: ?: Addr: Data: Response leading code for valid command Response leading code for invalid command Module address (2 characters hex from 00 to FE) 8 or 9 character ASCII value (depending on precision) Command: $01A\r Response: >+01100.1+00257.3-00004.7+00023.7+00029.2+00097.4-00002.3+00119.5\r channel 0: +1100.1 °C channel 4: +29.2 °C channel 1: +257.3 °C channel 5: +97.4 °C channel 2: -4.7 °C channel 6: -2.3 °C channel 3: +23.7 °C channel 7: +119.5 °C Example: Synchronized sampling This command will store the current analog values for all channels. As this command uses no module address, it has an effect on all PAD modules within the system. The values are stored within each module in a temporary register. Command: #**\r Response: no response; to read out the values, use the following command. Read all internally stored values This command will read out the internally stored values. Command: $(Addr)S\r Response: !(S)(Data)(Data)(Data)(Data)(Data)(Data)(Data)(Data)\r !: S: Data: Command leading code Readout state (1 = first read out; 0 = re-read of old values) Stored analog values for channel 0 to 7 Read output range of channel x Command: $(Addr)W(ChannelNo)\r Response: !(Addr)(MinSign)(MinValue)(MaxSign)(MaxValue)\r Example: !: Addr: MinSign: MinValue: MaxSign: MaxValue: Response leading code Module address (2 characters hex from 00 to FE) Sign for minimum (‘-’ or ‘+’) Minimum value of input range, 8 bytes ASCII Sign for maximum (‘-’ or ‘+’) Maximum value of input range, 8 bytes ASCII Command: $01W0\r Response: !01-000270.0+001372.0\r (Module address 01, min. range -270.0 °C, max. range +1372.0 °C) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-15 PAD-TH8-P Module Read serial number of connectorblock Command: ??(Addr)ISNR\r Response: !(Addr)(Serial)\r !: (Addr): (Serial): \r: Response leading code Module address (2 characters hex from 00 to FE) Serial of connectorblock Carriage return (0D hex) Set duration of averaging Command: %(Addr)M(AverageLength)\r %: Addr: Average: Command leading code Module address (2 characters hex from 00 to FE) ‘01’, ‘04’ or ‘08’ allowed 01: no averaging 04: average over 4 values 08: average over 8 values Response: !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Example: Command: $01M04\r Response: !01\r (Module at address 01 set to 4 values averaging) Set LED state Command: Response: $(Addr)L(State)\r $: Addr: State: Command leading code Module address (2 characters hex from 00 to FE) ‘E’, ‘A’ or ‘B’ allowed E: LED on A: LED off B: LED flashing with 1 Hz !(Addr)\r ?(Addr)\r Valid command Invalid command, syntax error Read LED and thermocouple type state This command shows the state of the LED and the connected sensor according the following table. If the input connector pin 17, 18, 19 (SI1, SI2, SI3) are not connected to GND, the module is set to software selected range with or without linearisation. Typestate of sensors with Rev. < 5.0 are not recognized by this command. Input range code (hex) 00 01 02 0C 30 31 0E 0F 10 48 49 50 51 6-16 Connected sensor Voltages, ±15 mV range Voltages, ±50 mV range Voltages, ±100 mV range Voltages, ±150 mV range Voltages, -150 mV to +1.5 V range Voltages, -1.5 V to +1.5 V range Thermocouple type 'J' -210 °C .. 1200 °C Thermocouple type 'K' -270 °C .. 1372 °C Thermocouple type 'T' -270 °C .. 400 °C DEWETRON defined linearization (area 4) DEWETRON defined linearization (area 5) Custom defined linearization (area 6) Custom defined linearization (area 7) SI1 A A A A A A E A E A E A E Input connector state SI2 SI3 A A A A A A A A A A A A A E E A A E E A A A E E E E SI4 A A A A A A A A A A A A A PAD-TH8-P Module Command: $(Addr)I\r Response: Valid: Invalid: !(Addr)(LEDState)(TCState)\r ?(Addr)\r !: Addr: LEDState: TCState: Response leading code Module address (2 characters hex from 00 to FE) ’E’ = LED on, ’A’ = LED off, ’B’ = LED flashing with 1 Hz Input line state for sensor type recognition, 4 bytes ’A’ = no sensor - pin open, ’E’ = sensor connected - pin grounded Set channel multiplex state Used to reduce data transfered with $(Addr)A (read all channels data values) and $(Addr)S (read all internally stored values) command. Data of disabled channels will not be transfered. Command: $(Addr)5(Channels)\r $: Addr: Channels: Command leading code Module address (2 characters hex from 00 to FE) 2 character value from 00 to FF hex, 8 bits refer to channels 7 to 0 1 = enable, 0 = disable Response: !(Addr)\r Valid command ?(Addr)\r Invalid command No response Syntax error Example: Command: $015AA\r Response: !01\r (channel 1, 3, 5, 7 enabled, channel 0, 2, 4, 6 disabled) Read channel multiplex state Command: $(Addr)6\r Response: Valid: Invalid: Syntax error: !: Addr: Channels: !(Addr)(Channels)\r ?(Addr)\r No response Command leading code Module address (2 characters hex from 00 to FE) 2 character value from 00 to FF hex, 8 bits refer to channels 7 to 0 1 = enable, 0 = disable Example: Command: $016\r Response: !01AA\r (channel 1, 3, 5, 7 enabled, channel 0, 2, 4, 6 disabled) Read CJC value Command: $(Addr)3\r Response: Valid: Invalid: !: Sign: Value: !(Sign)(Value)\r ?(Addr)\r Response leading code ‘-’ or ‘+’ sign CJC temperature value (ASCII) Example: Command: $013\r Response: !+0023.8\r (CJC temperature +23.8 °C) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-17 PAD-TH8-P Module Read type and firmware version of connectorblock Command: $(Addr)IVER\r Response: !PAD-CB-x-P Ver.5.025 !: \r: Response leading code Connectorblock type and software version Carriage return (0D hex) Set CJC offset value Used to calibrate the CJC temperature according to a reference sensor. Command: $(Addr)9(Sign)(Value)\r $: Addr: Sign: Value: Command leading code Module address (2 characters hex from 00 to FE) ‘-’ or ‘+’ sign 4 character hex value, 1 count = 0.01 °C Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: $019+000A\r Response: !01\r (CJC offset set to 000A hex = 10 dec = 10 * 0.01 °C = 0.1 °C) Zero calibration for channel x (1) Connect 0.000 mV signal to input channel and wait at least 5 sec. before calibration. Command: %(Addr)Z(ChannelNo)\r %: Command leading code Addr: Module address (2 characters hex from 00 to FE) ChannelNo: Input channel number from 0 to 7, where signal is connected Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Zero calibration for all channels (1) Connect 0.000 mV signal to ALL input channels and wait at least 5 sec. before calibration. Command: Response: %(Addr)ZA\r %: Addr: Command leading code Module address (2 characters hex from 00 to FE) !(Addr)\r ?(Addr)\r Valid command Invalid command Note: This command is valid for mudules after rev. 5.04 only (older versions used $(Addr)1\r) Span calibration for channel x (1) Connect +1 V signal to input channel and wait at least 5 sec. before calibration. Command: %(Addr)S(ChannelNo)\r %: Addr: Command leading code Module address (2 characters hex from 00 to FE) ChannelNo: Input channel number from 0 to 7, where signal is connected Response: !(Addr)\r Valid command ?(Addr)\r Invalid command(1) Sending this commands without connecting the appropriate signals causes wrong measurement values! (1) Sending this commands without connecting the appropriate signals causes wrong measurement values! 6-18 PAD-TH8-P Module Span calibration for all channels (1) Connect +1 V signal to ALL input channels and wait at least 5 sec. before calibration. Command: Response: %(Addr)\r %: Addr: Command leading code Module address (2 characters hex from 00 to FE) !(Addr)\r ?(Addr)\r Valid command Invalid command Note: This command is valid for mudules after rev. 5.04 only (older versions used $(Addr)0\r) Open memory area for custom linearisation As the PAD-TH8-P module allows different sensor linearisations directly within the module, the following three commands are necessary to write the data. Command: ##(Addr)OK(Number)\r ##: Addr: Number: Command leading code Module address (2 characters hex from 00 to FE) Customer defined linearisation can be stored into area ‘6’ and ‘7’ Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: ##01OK6\r Response: !01\r (open linearisation area 6 for writing data) Open memory area for custom linearisation As the PAD-TH8-P module allows different sensor linearisations directly within the module, the following three commands are necessary to write the data. Command: (1) ##(Addr)OK(Number)\r ##: Addr: Number: Command leading code Module address (2 characters hex from 00 to FE) Customer defined linearisation can be stored into area ‘6’ and ‘7’ Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: ##01OK6\r Response: !01\r (open linearisation area 6 for writing data) Sending this commands without connecting the appropriate signals causes wrong measurement values! DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-19 PAD-TH8-P Module Set custom linearisation point Command: ##(Addr)T(PointNo)(Sign)(Voltage)(Sign)(Value)\r ##: Addr: PointNo: Sign: Voltage: Value: Command leading code Module address (2 characters hex from 00 to FE) 2 bytes ASCII from 00 to 47; number of the value; 48 values can be stored ‘-’ or ‘+’ sign 6 bytes ASCII, MSB first, values from 0 to 999999 in µV 5 bytes ASCII, MSB first, values from 0 to 29999 in 0.1 °C Response: !(Addr)\r ?(Addr)\r Valid command Invalid command Example: Command: ##01T01+012300+01230\r Response: !01\r (Module address 01, point 1, +12.3 mV = +123.0 °C) Close memory area for custom linearisation Close memory area to avoid unintentional writing to module. Command: ##(Addr)C(InputRange)(CJC)\r ##: Command leading code Addr: Module address (2 characters hex from 00 to FE) InputRange: 2 bytes hex input range code, values above 50 hex recommended (for details see ‘set module configuration’ command) (CJC): CJC temperature use / ignore (Y / N) Response: 6-20 !(Addr)\r ?(Addr)\r Valid command Invalid command PAD-TH8-P Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-21 6-22 Code (hex) 00 01 02 0C 0E 0F 10 30 31 48 49 50 51 10 uV 10 uV 10 uV 10 uV 0.1 °C 0.1 °C 0.1 °C 10 uV 10 uV Resolution PAD-TH8-P Response CR !AAMM CR !PAD-TH8-P VER. X.xx CR !{AAMMoSFF}*8 CR !PAD-CB-x-P VER. 5.025 CR !AAxxxxxxxx CR !AAxxxxxxxx CR !AA CR CR !AAsiiiiiiiismmmmmmmm CR !AA CR !AA CR !AA CR !S{xxxxxxxx}*8 CR !AA CR !AA CR !AA CR !AA CR !AA CR !AA CR >sxxxxxxxx CR >{sxxxxxxxx}*8 CR !AA old command CR !AA old command CR !AAFFBBDD CR !sxxxx.x CR !AA CR !AAhh CR !AA CR >{sxxxxxxxx}*8 CR !AAVx.xx CR !AAPAD-TH8-P Input range ±15 mV ±50 mV ±100 mV ±150 mV Thermocouple type 'J' -210 °C .. 1200 °C Thermocouple type 'K' -270 °C .. 1372 °C Thermocouple type 'T' -270 °C .. 400 °C -150 mV to +1.5 V -1.5 V to +1.5 V DEWETRON defined linearization (area 4) DEWETRON defined linearization (area 5) Custom defined linearization (area 6) Custom defined linearization (area 7) Nr: Command 1 ## AA SETP 2 ?? AA VER 3 ?? AA 4 ?? AA IVER 5 ?? AA SNR 6 ?? AA ISNR 7 % AA T nFF 8 % AA I nFF 9 $ AA W n 10 % AA M o 11 % AA Z n (1) 12 % AA S n (1) 13 $ AA S 14 $ AA L b 15 # ** 16 ## AA OK k 18 ## AA T NNsxxxxxxsxxxxx 19 ## AA C KK{CJC} 20 % AA {adr.new} FFBBDD 21 # AA n 22 # AA 23 $ AA 0 24 $ AA 1 25 $ AA 2 26 $ AA 3 27 $ AA 5 hh 28 $ AA 6 29 $ AA 9 sHHHH 30 $ AA A 31 $ AA F 32 $ AA M 1 uV 1 uV 1 uV 1 uV 0.01 °C 0.01 °C 0.01 °C 1 uV 1 uV Precision mode Set module address Read module type and firmware version Read module channel configuration Read type and firmware version of the connectorblock Read serial number Read serial number of the connectorblock Set input range for channel n Set input range for channel n of the connectorblock Read output range of channel n Duration of averaging Zero calibration for channel n Span calibration for channel n @ 1.00000 V Read all internally stored values Set LED state Synchronized sampling Open memory area for custom linearisation Set custom linearisation point Close memory area for custom linearisation Set module configuration Read analog input from channel n Read all channels Span calibration for all channels @ 1.00000 V Zero calibration for all channels Read module configuration (first channel) Read CJC value Set channel multiplex state Read channel multiplex state Set CJC offset value Read all 8 channel data values Read module firmware Read module name BB 03 04 05 06 07 08 09 0A Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 57600 bps 115200 bps Address Module type (10) Lin. point number E, A, B ASCII Channel number 0 to 7 channel A = all channels after rev. 5.04 FF Input range ii..i Range min. mm..m Range max. o 01, 04, 08 s "+" "-" sign k 0 to 7 custom lin. KK lin. type (FE) {CJC} "Y" "N" w "M" "I" hh HEX value HHHH Hex CJC Temp BB Baud rate DD Data format S Flag 0/1 AA MM NN b xxx n n (1) PAD-TH8-P Module PAD-RTD3 Module Module commands Command summary for PAD-RTD3 module Command Syntax GENERAL COMMANDS Set configuration Read configuration Read module name Read firmware version FUNCTIONAL COMMANDS Read analog data from channel 0 Read analog data from channel N Read analog data from all channels Span calibration Offset calibration Enable / disable channel for multiplexing Read channel multiplexing status %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat) $(Addr)2 $(Addr)M $(Addr)F #(Addr) #(Addr)(ChannelNo) #(Addr)A $(Addr)0(ChannelNo) $(Addr)1(ChannelNo) $(Addr)5(ChannelVal) $(Addr)6 Set configuration: Command: %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat)\r %: (OldAddr): Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FF hex. (NewAddr): The new module address (be careful to get no conflict with existing module addresses). (InputRange):Define the analog input range, refered to the table input range on next page. (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm.): Define checksum and output data format, refered to the table data format on next page. Response: !(Addr)\r: ?(Addr)\r: The command to this address is valid. The command is invalid, parameter values are invalid or attempt to change settings without short circuit on the default pins 21 and 22. Example: Command: %0130210600\r %: 01: 30: 21: 06: 00: <\r: Response: command leading code old module address new module address input range Pt100 0 °C to 100 °C a = 0.00385 baud rate (9600) data format (engineering units, checksum disabled) carriage return !30\r Description: Address successfully changed from 01 to 30. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-23 PAD-RTD3 Module Module commands - configuration tables Input ranges: Code (hex) Input range 20 21 22 23 24 25 26 27 28 29 Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Ni100 Ni120 -100 °C to 100 °C 0 °C to 100 °C 0 °C to 200 °C 0 °C to 600 °C -100 °C to 100 °C 0 °C to 100 °C 0 °C to 200 °C 0 °C to 600 °C 0 °C to 100 °C 0 °C to 100 °C a = 0.00385 a = 0.00385 a = 0.00385 a = 0.00385 a = 0.003916 a = 0.003916 a = 0.003916 a = 0.003916 Data format: Reserved all bits have to be 0 7 6 5 4 3 2 Checksum 0: disable 1: enable 1 0 Analog input data format 00: engineering units 01: reserved 10: reserved 11: ohms Read module configuration Command: $(Addr)2\r Response: !(Addr)(InputRange)(BaudRate)(DataFormat)\r !: Response leading code Addr: Module address (InputRange):Define the input range, refered to the table Input range above. (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm): Define checksum and output data format \r: Carriage return (0D hex) Example: 6-24 Command: $012\r Response: !01210600\r 01: module address 21: input range Pt100 0 °C to 100 °C a = 0.00385 06: baud rate (9600) 00: data format (engineering units, checksum disabled) <\r: carriage return PAD-RTD3 Module Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r Example: !: Addr: (Name): \r: Response leading code Module address Module name Carriage return (0D hex) Command: $01M\r Response: !01PAD-RTD3\r 01: module address PAD-RTD3: module name is PAD-RTD3 \r: carriage return Read firmware version Command: $(Addr)F\r Response: !(Addr)(Firmware)\r Example: !: Addr: (Firmware): \r: Response leading code Module address Module firmware version (5 characters) Carriage return (0D hex) Command: $01F\r Response: !01E1.2\r 01: module address 01 E1.2: current firmware version is E1.2 \r: carriage return Read analog data from channel 0 Command: #(Addr)\r Response: >(InputData)\r >: Response leading code (InputData): Analog input data from channel 0. The Data format is a + or - sign with five decimal digits and fixed decimal point. The unit depends on the used data format. \r: Carriage return (0D hex) Example: Command: #01\r Response: >+1.6888\r >: +1.6888: \r: response leading code analog input module response (channel 0) is +1.6888 units carriage return Read analog data from channel n Command: #(Addr)(ChannelNo)\r Response: >(InputData)\r >: Response leading code (InputData): Analog input data from channel n. The Data format is a + or - sign with five decimal digits and fixed decimal point. The unit depends on the used data format. \r: Carriage return (0D hex) Example: Command: #031\r Response: >+1.6888\r >: +1.6888: \r: response leading code module (addr. 03) response channel 1 is +1.6888 units carriage return DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-25 PAD-RTD3 Module Read analog data from all channels Command: #(Addr)A\r Response: >(InputData)(InputData)(InputData)\r >: Response leading code (InputData): Analog input data of Channel 0, 1 and 2. The Data format is a + or - sign with five decimal digits and fixed decimal point. The unit depends on the used data format. \r: Carriage return (0D hex) Example: Command: #04A\r Response: >+102.67+030.45+007.89\r >: response leading code +102.67: input value channel 0 of analog input module (addr. 04) +030.45: input value channel 1 of analog input module (addr. 04) +007.89: input value channel 2 of analog input module (addr. 04) \r: carriage return Span calibration See also module calibration on next page Command: $(Addr)0(ChannelNo)\r $: Command leading code (Addr): Module address 0: Span calibration command (ChannelNo): Channel for calibration (1 character) 0 to 2 \r: Carriage return (0D hex) Response: !(Addr)\r Example: Command: $0501\r: Perform the span calibration for module 05, channel 1 Response: !05\r: Valid command Offset calibration See also module calibration on next page Command: $(Addr)1(ChannelNo)\r $: Command leading code (Addr): Module address 1: Offset calibration command (ChannelNo): Channel for calibration (1 character) 0 to 2 \r: Carriage return (0D hex) Response: !(Addr)\r Example: Command: $0511\r: Perform the offset calibration for module 05, channel 1 Response: !05\r: Valid command Enable / Disable channels for multiplexing Command: $(Addr)50(ChValue)\r $: (Addr): 5: 0: (ChValue): \r: Response: 6-26 !(Addr)\r Command leading code Module address Enable / disable channel Fixed Bit 2 to 0 of character control channel 2 to 0 bit value 0: Disable channel bit value 1: Enable channel Carriage return (0D hex) PAD-RTD3 Module Example: Command: $01506\r $: 01: 5: 0: 6: \r: Response: command leading code module address enable / disable command fixed binary 110 - Channel 1 and 2 enabled, channel 0 disabled Carriage return !01\r Read channel multiplexing status Command: $(Addr)6\r Response: !(Addr)(ChValue)\r Example: Command: $016\r Response: !014\r !: 01: 5: 0: 4: \r: response leading code module address enable / disable command fixed binary 100 - Channel 1 and 2 enabled, channel 0 disabled Carriage return Module calibration All PAD-RTD3 modules are within specifications when leaving the factory. The time interval for recalibration depends on environmental conditions. Typically, the calibration should be checked once a year. For recalibration, perform following steps: 1. Select the correct input range on the module. 2. Enable module channel 0 (disable channel 1 and 2 with command ‘$(Addr)501’). 3. Apply the correct offset calibration resistance (see table) for the selected range to module channel 0. 4. Send ‘Offset calibration $(Addr)1(ChannelNo)’ to the module. 5. Apply the correct span resistance (see table) for the selected range to the module. 6. Send ‘Span calibration $(Addr)0(ChannelNo)’ to the module. 7. Repeat steps 2 to 5 three to five times for channels 1 and 2. 8. Set all channels active with command ‘$(Addr)507’. Sending this commands without connecting the appropriate signals causes wrong measurement values! Calibration commands are only possible at default settings (pin-21/22 short circuit, address 00, baud rate 9600) Code (hex) 20 21 22 23 24 25 26 27 28 29 Input range Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Pt100 Ni100 Ni120 -100 °C .. 100 °C 0 °C .. 100 °C 0 °C .. 200 °C 0 °C .. 600 °C -100 °C .. 100 °C 0 °C .. 100 °C 0 °C .. 200 °C 0 °C .. 600 °C 0 °C .. 100 °C 0 °C .. 100 °C a = 0.00385 a = 0.00385 a = 0.00385 a = 0.00385 a = 0.003916 a = 0.003916 a = 0.003916 a = 0.003916 Offset calibration resistance 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm 50 Ohm Span calibration resistance 200 Ohm 200 Ohm 200 Ohm 350 Ohm 200 Ohm 200 Ohm 200 Ohm 350 Ohm 350 Ohm 200 Ohm DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-27 Nr: Command 1 % AA AA(new) 2 $ AA 2 3 $ AA M 4 $ AA F 5 # AA 6 # AA N 7 # AA A 8 $ AA 0 9 $ AA 1 10 $ AA 5 11 $ AA 6 6-28 N N 0v FFBBDD PAD-RTD3 Response CR !AA CR !AAFFBBDD CR !AAM CR !AAV CR >L CR >L CR >LLL CR !AA CR !AA CR !AA CR !AA0v 7 5 4 3 Checksum 0: disable (recomm.) 1: enable 6 a = 0.00385 a = 0.00385 a = 0.00385 a = 0.00385 a = 0.003916 a = 0.003916 a = 0.003916 a = 0.003916 2 Reserved all bits have to be 0 DD Configuration code table FF Input range 20 Pt100 -100 °C to 100 °C 21 Pt100 0 °C to 100 °C 22 Pt100 0 °C to 200 °C 23 Pt100 0 °C to 600 °C 24 Pt100 -100 °C to 100 °C 25 Pt100 0 °C to 100 °C 26 Pt100 0 °C to 200 °C 27 Pt100 0 °C to 600 °C 28 Ni100 0 °C to 100 °C 29 Ni120 0 °C to 100 °C CR Set module configuration CR Read configuration CR Read module name CR Read firmware version CR Read analog data from channel 0 CR Read analog data from channel N CR Read analog data from all channels CR Span calibration CR Offset calibration CR Enable / disable channel for multiplexing CR Read channel multiplexing status 1 Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 115200 bps 57600 bps BB 03 04 05 06 07 08 09 0A v Channel value 1 Channel 0 2 Channel 1 4 Channel 2 v = sum of activated Address Module name Channel number Firmware version Analog input data AA Analog input data format 00: engineering units 11: ohms 0 M N V L PAD-RTD3 Module PAD-AO1 Module Module commands Command summary for PAD-AO1 module Command Syntax GENERAL COMMANDS Set configuration Read configuration Read module name Read firmware version FUNCTIONAL COMMANDS Send data to analog output Save current output as startup value Read back reset status Read back last value %(OldAddr)(NewAddr)(OutputRange)(BaudRate)(DataFormat) $(Addr)2 $(Addr)M $(Addr)F #(Addr)(data) $(Addr)4 $(Addr)5 $(Addr)6 Set configuration: Command: %(OldAddr)(NewAddr)(OutputRange)(BaudRate)(DataFormat)\r %: (OldAddr): Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr): The new module address (be careful to get no conflict with existing module addresses). (Outp.Range):Define the analog output range, refered to the table output range on next page. (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataFormat):Define checksum and output data format, refered to the table data format on next page. Response: !(Addr)\r ?(Addr)\r The command to this address is valid. The command is invalid, parameter values are invalid or attempt to change settings without short circuit on the default pins 21 and 22. Example: Command: %0102300600\r %: 01: 02: 30: 06: 00: \r: Response: command leading code old module address new module address output range (0 to 20 mA) baud rate (9600 bps) data format (engineering units, checksum disabled, immediate change) carriage return !02\r Address successfully changed from 01 to 02. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-29 PAD-AO1 Module Module commands - configuration tables Output ranges: Code (hex) Input range 30 31 32 0 .. 20 mA (max. load 500 Ohm!) 4 .. 20 mA (max. load 500 Ohm!) 0 .. 10 V Data format: 7 6 5 4 3 Checksum 0: disable (recom.) 1: enable Reserved has to be 0 Code 5 4 3 2 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 2 1 Slew rate control (see table) 0 Analog input data format 00: engineering units 01: % of full scale range 10: two’s complement of hexadecimal 11: reserved Slew rate control Voltage immediate change 0.0625 V/sec 0.125 V/sec 0.250 V/sec 0.500 V/sec 1 V/sec 2 V/sec 4 V/sec Current immediate change 0.125 mA/sec 0.250 mA/sec 0.500 mA/sec 1 mA/sec 2 mA/sec 4 mA/sec 8 mA/sec Code 5 4 3 2 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 Voltage 8 V/sec 16 V/sec 32 V/sec 64 V/sec 128 V/sec 256 V/sec 512 V/sec Slew rate control Current 16 mA/sec 32 mA/sec 64 mA/sec 128 mA/sec 256 mA/sec 512 mA/sec 1024 mA/sec Module calibration All PAD-AO1 modules are within specifications when leaving the factory. The time interval for recalibration depends on environmental conditions. Typically, the calibration should be checked once a year. Calibration performance: to be implemented Read module configuration Command: $(Addr)2\r Response: !(Addr)(OutputRange)(BaudRate)(DataFormat)\r !: Response leading code Addr: Module address (OutpRange): Define the analog output range, refered to the table output range on next page. (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm): Define checksum and output data format \r: Carriage return (0D hex) 6-30 PAD-AO1 Module Example: Command: $012\r Response: !01300600\r 01: module address 30: output range (0 to 20 mA) 06: baud rate (9600 bps) 00: data format (engineering units, checksum disabled, immediate change) \r: carriage return Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r Example: !: Addr: (Name): \r: Response leading code Module address Module name Carriage return (0D hex) Command: $01M\r Response: !01PAD-A01\r 01: module address PAD-A01: module name is PAD-A01 \r: carriage return Read firmware version Command: $(Addr)F\r Response: !(Addr)(Firmware)\r Example: !: Addr: (Firmware): \r: Response leading code Module address Module firmware version (5 characters) Carriage return (0D hex) Command: $01F\r Response: !01B1.0\r 01: module address 01 B1.0: current firmware version is B1.0 \r: carriage return Send data to analog output Command: #(Addr)(data)\r #: (Addr): (data): \r: Command leading code Module address Output value (6 characters, refer to data format table) Carriage return (0D hex) Response: >\r: Valid command ?(Addr)\r: Out of range (output will go to the most close value) !\r: Command ignore no response: Syntax error, communication error or address error Example: Command: #0110.654\r #: command leading code 01: module address 10.654: current output = 10.654 mA \r: carriage return Response: >\r: valid command DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-31 PAD-AO1 Module Save current output as startup value Command: $(Addr)4\r Response: !(Addr)\r: Valid command ?(Addr)\r: Out of range (output will go to the most close value) !\r: Command ignore no response: Syntax error, communication error or address error Example: Command: #0110.654\r (set output as 10.654 mA for module 01) Response: >\r: Command: $014\r (set the start-up analog output for module 01 as 10.654 mA) Response: !01\r valid command valid command Read back reset status Command: $(Addr)5\r Read back the reset status to detect the module watchdog failure. Response: !(Addr)0\r: Module has not been reset since the last reset status read !(Addr)1\r: Module has been reset since the last reset status read ?(Addr)\r: Invalid command no response: Syntax error, communication error or address error Example: Command: $015\r Response: !010\r valid command !: response leading code 01: module address 0: module has not been reset since the last reset status read (value 1 at first time power on) \r: carriage return Read back last value Command: $(Addr)6\r Read back the latest analog output value (no measurement) Response: Example: 6-32 !(Addr)(Data)\r: ?(Addr)\r: no response: Module has not been reset since the last reset status read Invalid command Syntax error, communication error or address error Command: #0110.654\r (set output as 10.654 mA for module 01) Response: >\r: Command: $016\r Response: !0110.654\r !: response leading code 01: module address 10.654:last output value was 10.654 mA for module 01 \r: carriage return valid command PAD-AO1 Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-33 6-34 5 0 0 0 0 0 0 0 0 Code 4 3 2 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 5 4 Checksum 0: disable (recom.) 1: enable 6 1 Slew rate control (see table) 2 CR Set configuration CR Read configuration CR Read module name CR Read firmware version CR Send data to analog output CR Save current output as startup value CR Read back reset status CR Read back last value 5 1 1 1 1 1 1 1 Code 4 3 2 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 Voltage 8 V/sec 16 V/sec 32 V/sec 64 V/sec 128 V/sec 256 V/sec 512 V/sec Slew rate control Current 16 mA/sec 32 mA/sec 64 mA/sec 128 mA/sec 256 mA/sec 512 mA/sec 1024 mA/sec Analog input data format 00: engineering units 01: % of full scale range 10: two’s complement of hexadecimal 11: reserved 0 PAD-AO1 Response CR !AA CR !AAFFBBDD CR !AAM CR !AAV CR > CR !AA CR !AAS CR !AAzz.zzz Slew rate control Voltage Current immediate change immediate change 0.0625 V/sec 0.125 mA/sec 0.125 V/sec 0.250 mA/sec 0.250 V/sec 0.500 mA/sec 0.500 V/sec 1 mA/sec 1 V/sec 2 mA/sec 2 V/sec 4 mA/sec 4 V/sec 8 mA/sec 3 Configuration code table Reserved has to be 0 7 DD Nr: Command 1 % AA AA(new) FFBBDD 2 $ AA 2 3 $ AA M 4 $ AA F 5 # AA zz.zzz 6 $ AA 4 7 $ AA 5 8 $ AA 6 z M V S Address Digit Module name Firmware version Reset status Output range 0 to 20 mA 4 to 20 mA 0 to 10 V Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 57600 bps 115200 bps AA FF 30 31 32 BB 03 04 05 06 07 08 09 0A PAD-AO1 Module PAD-CNT2 Module Module commands Command summary for PAD-CNT2 module Command Syntax GENERAL COMMANDS Set configuration Read configuration Read module name Read firmware version FUNCTIONAL COMMANDS Read counter or frequency x Set input mode Read input mode Set high trigger level Read high trigger level Set low trigger level Read low trigger level Set maximum counter value Read maximum counter value Set digital filter status Read digital filter status Set the counter status Read the counter status Reset counter Read overflow status Set gate control mode Read gate control mode %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat) $(Addr)2 $(Addr)M $(Addr)F #(Addr)(Counter/FrequencyNo) $(Addr)B(Status) $(Addr)B $(Addr)1H(TriggerHighLevel) $(Addr)1H $(Addr)1L(TriggerLowLevel) $(Addr)1L $(Addr)3(CounterNumber)(MaxValue) $(Addr)3 $(Addr)4(CounterNumber)(DigitalFilter) $(Addr) $(Addr)5(Start/Stop) $(Addr)5 $(Addr)6(CounterNumber) $(Addr)7(CounterNumber) $(Addr)A(Status) $(Addr)A Set configuration: Command: %(OldAddr)(NewAddr)(InputType)(BaudRate)(DataFormat)\r %: (OldAddr): Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr): The new module address (be careful to get no conflict with existing module addresses). (InputType): Define the input type (counter, frequency) refered to table input type on next page. (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm.): Define checksum and frequency gate time, refered to the table data format on next page. \r: Carriage return (0D hex) Response: !(Addr)\r ?(Addr)\r The command to this address is valid. The command is invalid, parameter values are invalid or attempt to change settings without short circuit on the default pins 21 and 22. Example: Command: %0102500600\r %: 01: 02: 50: 06: 00: \r: Response: command leading code old module address new module address input type (counter) baud rate (9600) data format (0.1 second frequency gate time, checksum disabled) carriage return !02\r Description: Address successfully changed from 01 to 02. DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-35 PAD-CNT2 Module Module commands - configuration tables Input type: Code (hex) 50 51 Counter Frequency Reserved all bits have to be 0 Data format: 7 6 Valid for entire module - both channels in frequency or counter mode. Input type 5 4 3 Checksum 0: disable (recomm.) 1: enable 2 1 0 Frequency gate time 0: 0.1 second gate time 1: 1 second gate time Read module configuration Command: $(Addr)2\r Response: !(Addr)(InputType)(BaudRate)(DataFormat)\r !: Response leading code (Addr): Module address (InputType): Define the input type (counter, frequency) (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps) (DataForm.): Define checksum and frequency gate time \r: Carriage return (0D hex) Example: 6-36 Command: $012\r Response: !01500600\r !: Response leading code 01: module address 50: input type (counter) 06: baud rate (9600) 00: data format (0.1 second frequency gate time, checksum disabled) \r: carriage return PAD-CNT2 Module Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r Example: !: (Addr): (Name): \r: Response leading code Module address Module name Carriage return (0D hex) Command: $01M\r Response: !01CNT-2\r 01: CNT-2: \r: module address module name is CNT-2 carriage return Read firmware version Command: $(Addr)F\r Response: !(Addr)(Firmware)\r Example: !: (Addr): (Firmware): \r: Response leading code Module address Module firmware version (5 characters) Carriage return (0D hex) Command: $01F\r Response: !01A1.2\r 01: module address 01 A1.2: current firmware version is A1.2 \r: carriage return Read counter or frequency Command: #(Addr)(Channel)\r #: (Addr): (Channel): \r: Response: Example: Example: Command leading code Module address Channel of counter or frequency (0 or 1) Carriage return (0D hex) >(Addr)(Cnt/Frq)\r >: (Cnt/Frq): \r: Response leading code 8 characters counter or frequency value (hex) Carriage return (0D hex) Command: $012\r Response: !01500600 Command: #010\r Response: >0000001D\r >: Response leading code 0000001D: Counter 0 = 1D = 29 (dec) \r: Carriage return (0D hex) Command: $072\r Response: !07510600 Command: #071\r Response: >0000001D\r >: Response leading code 0000001D: Frequency 1 = 1D Hz = 29 Hz (dec) \r: Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-37 PAD-CNT2 Module Set input mode Command: $(Addr)B(Status)\r $: (Addr): (Status): \r: Command leading code Module address Input mode (isolated / non isolated) refered to table set input mode Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $01B2\r Response: Input mode $: 01: B2: \r: Command leading code Module address Set channel 0 non isolated and channel 1 isolated Carriage return (0D hex) !01\r Valid command Command Input mode 0 Input mode 1 Input mode 2 Input mode 3 $(Addr)B0 $(Addr)B1 $(Addr)B2 $(Addr)B3 Channel 0 Non isolated (Pin 9 .. 11) Isolated (Pin 1 .. 4) Non isolated (Pin 9 .. 11) Isolated (Pin 1 .. 4) Channel 1 Non isolated (Pin 11 .. 13) Isolated (Pin 5 .. 8) Isolated (Pin 5 .. 8) Non isolated (Pin 11 .. 13) Read input mode Command: $(Addr)B\r Response: !(Addr)(Status)\r Example: !: (Addr): (Status): \r: Response leading code Module address Input mode (isolated / non isolated) refered to table set input mode Carriage return (0D hex) Command: $01B\r Response: !012\r (Channel 0 non isolated and channel 1 isolated) Set high trigger level of non-isolated input Command: $(Addr)1H(TrigLevel)\r $: (Addr): (TrigLevel): \r: Command leading code Module address 2 characters decimal value for high trigger level. The unit is 0.1 V and the range can be from 0.0 to 5.0 V. Default setting is 2.4 V. Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $011H2.3\r $: Command leading code 01: Module address 1H2.3: Set the high trigger level to 2.3 V \r: Carriage return (0D hex) Response: 6-38 !01\r Valid command PAD-CNT2 Module Read high trigger level of non-isolated input Command: $(Addr)1H\r Response: !(Addr)(TrigLevel)\r Example: !: (Addr): (TrigLevel): \r: Response leading code Module address 2 characters decimal value for high trigger level Carriage return (0D hex) Command: $011H\r Response: !0123\r !: 01: 2.3: \r: Response leading code Module address The high trigger is 2.3 V Carriage return (0D hex) Set low trigger level of non-isolated input Command: $(Addr)1L(TrigLevel)\r $: (Addr): (TrigLevel): \r: Command leading code Module address 2 characters decimal value for low trigger level. The unit is 0.1 V and the range can be from 0.0 to 5.0 V. Default setting is 0.8 V. Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $011L0.9\r $: Command leading code 01: Module address 1L0.9: Set the high trigger level to 0.9 V \r: Carriage return (0D hex) Response: !01\r Valid command Read low trigger level of non-isolated input Command: $(Addr)1L\r Response: !(Addr)(TrigLevel)\r Example: !: (Addr): (TrigLevel): \r: Response leading code Module address 2 characters decimal value for high trigger level Carriage return (0D hex) Command: $011L\r Response: !0109\r !: 01: 0.9: \r: Response leading code Module address The high trigger is 0.9 V Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-39 PAD-CNT2 Module Attention! The CNT module has no automatic overflow. You have to reset the counter at value FF FF FF FF! Reset counter Reset the counter to preset value and clear the overflow flag. Command: $(Addr)6(Channel)\r $: (Addr): (Channel): \r: Command leading code Module address Number of counter (0 or 1) Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $0160\r Reset counter 0 of module 01 Response: !01\r Valid command Set preset counter value This is the counter value after “reset” or “power on” the module. Preset value will be ignored in frequency mode. Command: @(Addr)P(Channel)(PreValue)\r @: (Addr): (Channel): (PreValue): \r: Command leading code Module address Number of counter (0 or 1) 8-character value (hex) Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: @01P0FFFF0000\r set preset value of counter 0 to FFFF0000 Response: !01\r Valid command Read preset counter value Command: @(Addr)G(Channel)\r Response: !(Addr)(PreValue)\r Example: @: (Addr): (PreValue): \r: Response leading code Module address 8-character value (hex) Carriage return (0D hex) Command: @01G0\r Response: !01FFFF0000\r The preset value of counter 0 is FFFF0000 Set maximum counter value Command: 6-40 $(Addr)3(Channel)(MaxValue)\r $: (Addr): (Channel): (MaxValue): \r: Command leading code Module address Number of counter (0 or 1) 8-character value (hex) Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $0130FFFF0000\r set maximum value of counter 0 to FFFF0000 Response: !01\r Valid command PAD-CNT2 Module Read maximum counter value Command: $(Addr)3(Channel)\r Response: !(Addr)(MaxValue)\r Example: $: (Addr): (MaxValue): \r: Response leading code Module address 8-character value (hex) Carriage return (0D hex) Command: $01G0\r Response: !01FFFF0000\r The maximum value of counter 0 is FFFF0000 Set digital filter status The digital filter is disable in frequency mode. Valid for both none-isolated & isolated inputs. Command: $(Addr)4(DigFilter)\r $: (Addr): (DigFilter): \r: Command leading code Module address 0 Digital filter disabled 1 Digital filter enabled Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $0141\r Digital filter enabled Response: !01\r Valid command Read digital filter status Command: $(Addr)4\r Response: !(Addr)(DigFilter)\r $: (Addr): (DigFilter): Example: \r: Response leading code Module address 0 Digital filter disabled 1 Digital filter enabled Carriage return (0D hex) Command: $014\r Response: !010\r Digital filter is disabled Set the counter status Command: $(Addr)5(Start/Stop)\r $: (Addr): (Start/Stop): \r: Command leading code Module address 0 Stop counter 1 Start counter Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $0150\r Stop counter Response: !01\r Valid command DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-41 Read the counter status Command: $(Addr)5\r Response: !(Addr)(Start/Stop)\r $: (Addr): (Start/Stop): Example: \r: Response leading code Module address 0 Stop counter 1 Start counter Carriage return (0D hex) Command: $015\r Response: !010\r Counter stopped Read overflow status Command: $(Addr)7(Channel)\r $: Command leading code (Addr): Module address (Channel): Channel (0 or 1) \r: Carriage return (0D hex) Response: !(Addr)(Status)\r Example: !: (Addr): (Status): \r: Command leading code Module address 0 for no overflow; 1 for overflow Carriage return (0D hex) Command: $0170\r Response: !011\r !: 01: 1: \r: Response leading code Module address Counter 0 is overflow Carriage return (0D hex) Set gate control mode This command will be ignored in frequency mode. Command: $(Addr)A(GateContr)\r $: (Addr): (GateContr): \r: Command leading code Module address Gate control mode (1 character refered to gate control table) Carriage return (0D hex) Response: !(Addr)\r Valid command Example: Command: $01A0 Response: Command $(Addr)A0 $(Addr)A1 $(Addr)A2 6-42 Gate status $: 01: A0: \r: Command leading code Module address Gate is low active Carriage return (0D hex) !01\r Valid command low active high active disabled (= always active) Read gate control mode Command: $(Addr)A\r Response: !(Addr)(GateContr)\r Example: !: (Addr): (GateContr): \r: Command leading code Module address Gate control mode (1 character refered to gate control table) Carriage return (0D hex) Command: $01A\r Response: !010\r !: 01: 0: \r: Response leading code Module address Gate is low active Carriage return (0D hex) DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-43 Nr: Command 1 % AA AA(new) 2 $ AA 2 3 $ AA M 4 $ AA F 5 # AA N 6 $ AA BS 7 $ AA B 8 $ AA 1H 9 $ AA 1H 10 $ AA 1L 11 $ AA 1L 12 $ AA 3 13 $ AA 3 14 $ AA 4 15 $ AA 4 16 $ AA 5 17 $ AA 5 18 $ AA 6 19 $ AA 7 20 $ AA A 21 $ AA A 22 @ AA P 23 @ AA G 6-44 Overflow No counter overflow Counter overflow Gate control Low active High active Disabled G 0 1 2 Input mode S Channel 1 0 Non isolated 1 Isolated 2 Isolated 3 Non isolated O 0 1 Input mode Channel 0 Non isolated Isolated Non Isolated Isolated Nhhhhhhhh N N G z Nz Nhhhhhhhh zz zz TTBBDD PAD-CNT2 Response CR !AA CR !AATTBBDD CR !AAM CR !AAV CR >hhhhhhhh CR !AA CR !AAS CR !AA CR !AAzz CR !AA CR !AAzz CR !AA CR !AAhhhhhhhh CR !AA CR !AAz CR !AA CR !AAz CR !AA CR !AAO CR !AA CR !AAG CR !AA CR !AAhhhhhhhh DD 7 5 4 3 Checksum 0: disable (recomm.) 1: enable 6 Configuration code table CR Set configuration CR Read configuration CR Read module name CR Read firmware version CR Read counter or frequency CR Set input mode CR Read input mode CR Set high trigger level CR Read high trigger level CR Set low trigger level CR Read low trigger level CR Set maximum counter value CR Read maximum counter value CR Set digital filter status CR Read digital filter status CR Set the counter status CR Read the counter status CR Reset counter CR Read overflow status CR Set gate control mode CR Read gate control mode CR Set preset counter value CR Read preset counter value 1 0 Channel Channel 0 of module Channel 1 of module Frequency gate time 0: 0.1 second gate time 1: 1 second gate time 2 N 0 1 Input type Counter Frequency Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 57600 bps 115200 bps BB 03 04 05 06 07 08 09 0A TT 50 51 Address Module name Firmware version Digit HEX value AA M V z h PAD-CNT2 Module PAD-DI8 Module Module commands Command summary for PAD-DI8 module Command Syntax GENERAL COMMANDS Set configuration Read configuration Read module name Read firmware version FUNCTIONAL COMMANDS Read digital input data Read latch value of digital input Clear latch input Synchronized sampling Read synchronized data %(OldAddr)(NewAddr)40(BaudRate)(DataFormat) $(Addr)2 $(Addr)M $(Addr)F $(Addr)6 $(Addr)L(LatchStatus) $(Addr)C #** $(Addr)4 Set configuration: Command: %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat)\r %: (OldAddr): Command leading code The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr): The new module address (be careful to get no conflict with existing module addresses). (InputRange):Type 40 for DI module (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm.): Define dataformat (checksum) refered to the table data format on next page. Response: !(Addr)\r ?(Addr)\r The command to this address is valid. The command is invalid, parameter values are invalid or attempt to change settings without short circuit on the default pins 21 and 22. Example: Command: %0102400600\r %: 01: 02: 40: 06: 00: \r: Response: command leading code old module address new module address DI module baud rate (9600) data format (checksum disabled) carriage return !02\r Description: Address successfully changed from 01 to 02 DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-45 PAD-DI8 Module Module commands - configuration tables Reserved all bits have to be 0 Data format: 7 6 5 4 3 2 1 Checksum 0: disable (recomm.) 1: enable 0 Input First data DI (0 to 7) 00 to FF first byte Second data 00 00 second byte third byte Set to 1 Read module configuration Command: $(Addr)2\r Response: !(Addr)(InputRange)(BaudRate)(DataFormat)\r !: Response leading code (Addr): Module address (InputRange):Type 40 for DI module (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps) (DataForm.): Define dataformat (checksum) \r: Carriage return (0D hex) Example: Command: $012\r Response: !01400602\r !: response leading code 01: module address 40: DI module 06: baud rate (9600) 02: data format (checksum disabled) \r: carriage return Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r Example: 6-46 !: (Addr): (Name): \r: Response leading code Module address Module name Carriage return (0D hex) Command: $01M\r Response: !01PAD-DI8\r 01: module address PAD-DI8: module name is PAD-DI8 \r: carriage return PAD-DI8 Module Read firmware version Command: $(Addr)F\r Response: !(Addr)(Firmware)\r Example: !: (Addr): (Firmware): \r: Response leading code Module address Module firmware version (5 characters) Carriage return (0D hex) Command: $01F\r Response: !01B1.3\r !: response leading code 01: module address 01 B1.3: current firmware version is B1.3 \r: carriage return Read digital input data Command: $(Addr)6\r Response: !(InputData)\r !: Response leading code (InputData): Input data refered to the table Input data format 3 bytes - information only in the first byte \r: Carriage return (0D hex) Example: Command: $016\r Response: !0F0000\r !: 0F0000: \r: response leading code Input 0 to 3 are high (first byte = 0F = 00001111) carriage return Read latch value of digital input Triggering at rising/falling edge and storing them. Command: $(Addr)L(Latch)\r $: (Addr): L: (Latch): \r: Response: Command leading code Module address Command for read latched digital input Select latch at rising edge (1) or falling edge (0) Carriage return (0D hex) !(LatchData)\r !: Response leading code (LatchData): Input channel is latched (1) or input channel is not latched (0) \r: Carriage return (0D hex) Example: Read: !000000 !010000 !000000 Command: $01L1\r Response: !010000\r !: 010000: \r: Latch: !000000 !010000 !010000 Rising edge stays stored until “clear latch” command response leading code Input 0 is high carriage return DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-47 PAD-DI8 Module Clear latch input Command: $(Addr)C\r $: (Addr): C: \r: Response: Command leading code Module address Command for clear latched digital input Carriage return (0D hex) !(Addr)\r Synchronized sampling This command will store the current input values for all channels. As this command uses no module address, it has an effect on all PAD modules within the system. The values are stored within each module in a temporary register. Command: #**\r Response: no response; to read out the values, use the following command. Read synchronized data Command: $(Addr)4\r Response: !(S)(Data)\r Example: 6-48 !: S: Data: Command leading code Readout state (1 = first read out; 0 = re-read of old values) Stored input values for channel 0 to 7 Command: $014\r Response: !1000000\r !: 000000: \r: response leading code readed data carriage return PAD-DI8 Module Notes DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-49 6-50 7 5 4 3 Checksum 0: disable (recomm.) 1: enable 6 2 Reserved all bits have to be 0 DD Configuration code table Nr: Command 1 % AA AA(new) 40BBDD 2 $ AA 2 3 $ AA M 4 $ AA F 5 # AA 6 6 $ AA L S 7 $ AA C 8 # ** 9 $ AA 4 0 Set to 1 1 PAD-DI8 Response CR !AA CR !AA40BBDD CR !AAM CR !AAV CR !{Input} CR !{Input} CR !AA CR CR !zRhhhhhh Input First data DI (0 to 7) 00 to FF Second data 00 00 CR Set module configuration CR Read configuration CR Read module name CR Read firmware version CR Read digital input data CR Read latch value of digital input CR Clear latch value Synchronized sampling CR Read synchronized data R Readout state 0 Re-read out of old value 1 First read out S Latch status 0 Latch is low 1 Latch is high BB Baud rate 03 1200 bps 04 2400 bps 05 4800 bps 06 9600 bps 07 1920 bps 08 38400 bps 09 57600 bps 0A 115200 bps AA Address M Module name V Firmware version z Digit h HEX value PAD-DI8 Module PAD-DO7 Module Module commands Command summary for PAD-DO7 module Command Syntax GENERAL COMMANDS Set configuration Read configuration Read module name Read firmware version FUNCTIONAL COMMANDS Set value of digital output Set digital output %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat) $(Addr)2 $(Addr)M $(Addr)F #(Addr)(MultichannelOn/Off)(Value) @(Addr)(Outputdata) Set configuration: Syntax: %(OldAddr)(NewAddr)(InputRange)(BaudRate)(DataFormat) Description: % Command leading code (OldAddr): The original / old module address. The factory default address of a module is 00. The address range is 00 to FE hex. (NewAddr): The new module address (be careful to get no conflict with existing module addresses). (Range): Type 40 for DO module (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps). (DataForm.): Define checksum and output data format, refered to the table data format on next page. Response: !(Addr)\r ?(Addr)\r The command to this address is valid. The command is invalid, parameter values are invalid or attempt to change settings without short circuit on the default pins 21 and 22. Example: Command: %0102400600\r %: 01: 02: 40: 06: 00: \r: Response: command leading code old module address new module address DO module baud rate (9600) data format (checksum disabled) carriage return !02\r Description: Address successfully changed from 01 to 02 DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-51 PAD-DO7 Module Module commands - configuration tables Data format: Reserved all bits have to be 0 7 4 6 5 3 2 1 0 Checksum 0: disable 1: enable Read module configuration Command: $(Addr)2\r Response: !(Addr)(InputRange)(BaudRate)(DataFormat)\r !: Response leading code (Addr): Module address (InputRange):Type 40 for DO module (BaudRate): Define communication baud rate, recommended ‘06’ hex (= 9600 bps) (DataForm.): Define dataformat (checksum) \r: Carriage return (0D hex) Example: Command: $012\r Response: !01400600\r !: response leading code 01: module address 40: DO module 06: baud rate (9600) 00: data format (checksum disabled) \r: carriage return Read module name Command: $(Addr)M\r Response: !(Addr)(Name)\r Example: 6-52 !: (Addr): (Name): \r: Response leading code Module address Module name Carriage return (0D hex) Command: $01M\r Response: !01PAD-DO7\r 01: module address PAD-DO7: module name is 0815 \r: carriage return PAD-DO7 Module Read firmware version Command: $(Addr)F\r Response: !(Addr)(Firmware)\r Example: !: (Addr): (Firmware): \r: Response leading code Module address Module firmware version (4 characters) Carriage return (0D hex) Command: $01F\r Response: !01B1.2\r !: response leading code 01: module address 01 B1.2: current firmware version is B1.2 \r: carriage return Set value of digital output: Command: #(Addr)(MultichannelOn/Off)(Value)\r # (Addr) (Multichannel) Command leading code Current module address (00 to FE hex). 00: setting value for all channels (Multichannel) 1x: setting value for channel x (x = 0 to 6)(Singlechannel) (Value) Multichannel: 00 to 7F hex Singlechannel (1x): 00 turn channel x off 01 turn channel x on carriage return \r: Response: >\r Example: Command: #021001\r Module 02; channel 0 on Response: >\r Command: #021601\r Module 02; channel 6 on Response: >\r Set digital output: Command: @(Addr)(Data)\r @ (Addr) (Data) \r: Command leading code Current module address (00 to FE hex). Output data from 00 to 7F (7 bit) carriage return Response: >\r Example: Command: #027F\r Set module 02; output data 7F Response: >\r DE-M0382E • DEWE-Modules Programmers Reference Manual • Printing version 2.0.7 • Nov 3, 2004 6-53 6-54 7 5 4 3 Checksum 0: disable (recomm.) 1: enable 6 2 Reserved all bits have to be 0 DD Configuration code table 1 0 PAD-DO7 Nr: Command Response 1 % AA AA(new) 40BBFF CR !AA 2 $ AA 2 CR !AA40BBFF 3 $ AA M CR !AAM 4 $ AA F CR !AAV 5 # AA {Output} CR > 6 @ AA hh CR > Output Multi channel 00 00 to 7F Flag Data Single channel 00 =ch 0 off 10 10 01 =ch 0 on 16 00 =ch 6 off 16 01 =ch 6 on CR Set module configuration CR Read configuration CR Read module name CR Read firmware version CR Set value of digital output CR Set digital output Address Module name HEX value Firmware version Baud rate 1200 bps 2400 bps 4800 bps 9600 bps 1920 bps 38400 bps 57600 bps 115200 bps AA M h V BB 03 04 05 06 07 08 09 0A PAD-DO7 Module