background image

Sampling Current (4-20 ma) Inputs 

Many devices output a current value instead of a voltage value. The secret to obtaining 

current readings is a 250 ohm resistor. Placing a 250 ohm resistor to ground on a 4-20 

ma. current input will create a voltage potential of 1V to 5V.  

 

If we remember Ohm’s law:     E = I * R    

 

                 R = 250 ohms 

                 I = .004 to .020 amps (4-20 ma.) 
                 E = 1.0V to 5.0V 
 
 

Obtaining current readings is a three step process: 

1.

Perform analog Unipolar sample 

2.

Convert unipolar sample to volts 

3.

Convert voltage to amps 

 

The following formula will convert the raw analog sample reading to a current value. 

 

                 Current = (ADC_Sample * (5.000/4096)) / 250 

 

 

 

Obtaining accurate Analog samples 

Please keep the following points in mind when attempting to obtain accurate samples. 

 

Avoid high impedance analog signal sources! 

Watch out for UPS systems! They create loads of EMI/EMF noise. 

Keep the analog signal source as close to the ADC-x module as possible. 

 Keep transformers far away from the 

ADC-1R2

 Series 

module. 

Use good wiring practices, especially in regards to ground connections. 

RS-232 interface can generate approx. 2 mv noise. 

 

Resistors for Analog and Digital I/O 

 
The digital I/O points have a 100K 

 resistor to ground to prevent floating inputs. 

 
The analog inputs have a 560 

 resistor in series to afford some protection to the A to D 

converter. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

From input 

To cpu input 

From analog input 

To a/d input 

Содержание ADC-1R2

Страница 1: ...ADC 1R2 I O Module Digital I O Analog I O SuperLogics SuperLogics Inc Phone 781 893 1600 300 Third Avenue Fax 781 893 0600 Waltham MA 02451 Tech E Mail support superlogics com http www superlogics com...

Страница 2: ...Information Digital I O Characteristics 16 Digital I O Port Configuration Example 16 PWM Characteristics 17 PWM Commands 17 Analog I O Technical Information Analog I O Characteristics 18 Voltage Refe...

Страница 3: ...A D conversion ADC 1R2 AOT 16 digital I O and 8 channels A D conversion and 2 channels D A conversion I O Module features MPU Microchip PIC16C65B EEPROM Microchip 25C040 MPU Clock 14 7456 Mhz Interfac...

Страница 4: ...page 21 Launch the EZTerminal program 1 Double click the icon in whatever area you have put the program 2 Under Settings then choose Comport and select your RS 232 port 115 200 Baud Rate 8 Data Bits N...

Страница 5: ...g you are ready to provide your first command RS 232 Firmware Version 3 1 Command Typethe letter V and the Enter Key You should see V30 on the screen NOTE Make sure to type CAPITAL V not lowercase v A...

Страница 6: ...lso enter Continuous Stream Mode whereby the module is configured via EEPROM settings to continuously send data to output its current Digital Counter or Analog readings RS 232 Command Format NOTE All...

Страница 7: ...clear 0 Output N Nxxxxxxxx Get Pulse Counter xxxxxxxx 32 bit counter value M M Clear Pulse Counter Qy Qyxxx Bipolar sample analog y control nibble xxx analog value Uy Uyxxx Unipolar sample analog y co...

Страница 8: ...t 7 INPUT bits 0 6 OUTPUT N N0000000F Get pulse counter Current count 15 M M Clear pusle counter Current count 0 Q1 Q100F Bipolar analog control nibble 0x1 Analog reading 0x00F U8 U840F Unipolar analo...

Страница 9: ...integers The symbol equates to a carriage return decimal 13 hex 0x0D See Analog I O Technical Information section for sample to volts conversion Control Nibble Analog Sample 0 Differential CH0 CH1 1...

Страница 10: ...FF Expander board attached invert digital signals factory default 0x00 0x09 0x0A D A Channel 0 Power on Default output 12 bits upper nibble in 0x09 lower byte in 0x0A factory default 0x000 0x0B 0x0C D...

Страница 11: ...yte analog control nibble 0x14 Analog Query 4 control byte analog control nibble 0x15 Analog Query 5 control byte analog control nibble 0x16 Analog Query 6 control byte analog control nibble 0x17 Anal...

Страница 12: ...the most common usage of the ADC 1R2 Series I O modules In this mode the Host computer sends a command to the I O Modules which in turn sends an associated response back to the Host computer 2 Asynch...

Страница 13: ...antly sends or streams data to the host until the host halts the mode In brief the I O Module can send 0 thru 8 analog samples digital input status and the counter capture status The I O module uses p...

Страница 14: ...bble Unipolar Analog y analog control nibble 0x12 Sample 2 0x0y 0x0y 0x8y 0x8y Bipolar Analog y analog control nibble Unipolar Analog y analog control nibble 0x13 Sample 3 0x0y 0x0y 0x8y 0x8y Bipolar...

Страница 15: ...to a carriage return decimal 13 hex 0x0D The HOST may send any command during the Continuous Stream mode and it will be accepted and processed by the I O Module as in normal operation NOTE Engaging th...

Страница 16: ...esent as ASCII Hexadecimal integers The symbol equates to a carriage return decimal 13 hex 0x0D Characteristic Value Digital I O Current I O line source sink 25 ma Total current PORT1 200 ma Total cur...

Страница 17: ...Duty Period PWM Period if PWM Duty Period PWM Period then PWM Duty Cycle 100 Note Pwm_Divisor 0xFF cannot achieve complete 100 duty cycle Use Pwm_Divisor 0xFE if 100 duty cycle is required Example PWM...

Страница 18: ...verted to integer digital values using the Linear Technologies LTC1296 A D Analog Digital chip The input voltage range is determined by the reference voltage There are two analog sample types 1 Unipol...

Страница 19: ...age Conversion The Analog conversion value obtained from the ADC 1R2 Series module is represented as an integer value either signed for Bipolar samples or unsigned for Unipolar sample and is normally...

Страница 20: ...e Current ADC_Sample 5 000 4096 250 Obtaining accurate Analog samples Please keep the following points in mind when attempting to obtain accurate samples Avoid high impedance analog signal sources Wat...

Страница 21: ...Analog I O 15 ANALOG OUT A PORT 1 PORT 2 X X Y Y H E X V A L U E BIT VALUE H E X V A L U E BIT VALUE H E X V A L U E BIT VALUE H E X V A L U E BIT VALUE 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0...

Страница 22: ...3 LED TB1 SW1 SW2 Baud Rate OFF OFF 9600 baud ON OFF 19200 baud OFF ON 57600 baud ON ON 115200 baud factory default Baud Rate Switch Settings DTR RD DSR RTS TD DB9F 5 9 4 8 3 7 2 6 1 CTS GND COMMUNICA...

Страница 23: ...and Shield terminals are connected on the ADC 1R2 Series boards and are therefore electrically equivalent RS 232 Cabling The RS 232 interface uses a 3 wire RS 232 connection That is to say only three...

Страница 24: ...p for all analog connections and voltages Models ADC 1R2 TB and DB25TSM DB Terminal Strip Terminal strip boards to conveniently connect to DB15 and DB25 connectors Models EXP x Digital Interface Board...

Отзывы: