ONTRAK ADR2010 User Manual

Analog/digitalrs232/rs485 interface

Advertisement

Quick Links

ADR2010
ANALOG/DIGITALRS232/RS485
INTERFACE

USER MANUAL

V 3.0
Caution: The ADR2010 is a static sensitive device. Observe proper procedures
for handling static sensitive devices.
ONTRAK CONTROL SYSTEMS INC.
764 Notre Dame Avenue
Unit # 1
Sudbury Ontario
CANADA P3A 2T2
(705) 671-2652 ( VOICE )
(705) 671-6127 ( FAX )
www.ontrak.net ( WEB )

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADR2010 and is the answer not in the manual?

Questions and answers

Summary of Contents for ONTRAK ADR2010

  • Page 1: User Manual

    ADR2010 ANALOG/DIGITALRS232/RS485 INTERFACE USER MANUAL V 3.0 Caution: The ADR2010 is a static sensitive device. Observe proper procedures for handling static sensitive devices. ONTRAK CONTROL SYSTEMS INC. 764 Notre Dame Avenue Unit # 1 Sudbury Ontario CANADA P3A 2T2 (705) 671-2652 ( VOICE ) (705) 671-6127 ( FAX ) www.ontrak.net ( WEB )
  • Page 2 Ontrak Control Systems Inc. assumes no liability for inadvertent errors. W arranty: This ADR2010 is warranted from defects in workmanship and materials for a period of 90 days. Liability for defects is limited to the purchase price of the product. This warranty shall not apply to defects resulting from improper modifications or use outside published specifications.
  • Page 3: Table Of Contents

    4. Using BASIC with ADR Products 5. Using TURBO C with ADR Products 6. Daisy Chain Options for ADR2000 Series Products 7. Interfacing to the ADR2010 ( basic examples ) a) Reading Potentiometer Position b) Connecting Switches to Digital Ports...
  • Page 4: Read Me First

    READ ME FIRST Thank you for purchasing this ADR2010 serial data acquisition interface. There are three steps to using the ADR2010. 1.Connecting your computer or terminal to the ADR2010. 2.Providing power to the ADR2010. 3.Sending commands to the ADR2010. This manual will provide guidance for completing these steps along with BASIC and TURBO C programming tips.
  • Page 5: A) The Adr2010 Rs232 Interface

    RS232 ports use hardware handshaking (i.e. DTR, DSR, CTS, RTS) signals to control the flow of data on the port. For this reason the cable required to connect to the ADR2010 must have jumpers on the DB25 end to satisfy these handshaking requirements. IBM or compatible computers may be used as a host computer with the supplied cable.
  • Page 6: B) The Adr2010 Rs485 Interface

    ADR2010 via the main terminal block TB1. The supply must be able to provide a minimum of 60mA and up to 240mA if the ADR2010 is to source current from the digital outputs. Care must be taken to avoid improper pow er supply connection as perm anent damage to the ADR2010 may result if connected improperly.
  • Page 7 Sets I/O line specified by n in PORT A. ( n= 0 to 7 ) EVENT COUNTER COMMAND SUMMARY Clear Event Counter. Returns present count of counter. Returns present count of counter and clears event counter. ID COMMAND *IDN? Returns 4 digit product identifier code. ( 2010 ) ONTRAK CONTROL SYSTEMS INC. 6/23 www.ontrak.net...
  • Page 8: Adr2010 Commands

    3. ADR2010 COMMANDS a) ANALOG INPUT COMMANDS There are 8 analog inputs, with a resolution of 12-bits, on the ADR2010 labeled AN0 to AN7. The analog input range is 0-5 VDC , 0-10VDC, +/- 5VDC, or +/- 10VDC. The input range is automatically selected by the command used to read a specific port.
  • Page 9: B) Pwm Output Commands

    The ADR2010 has two PW M outputs on terminals V1 and V2. The PW M modules on the ADR2010 boards can operate at three fixed output frequencies. Both modules must operate at the same frequency and this frequency is set by the FH,FM and FL commands Sets frequency for PW M outputs to 9.76Khz...
  • Page 10: C) Digital Port Commands

    232/1024 = 22.65% c) DIGITAL PORT COMMANDS There is one, eight bit digital port on the ADR2010 labeled PORT A. The individual I/O lines are labeled PA0-PA7. The following commands allow the user to; -configure individual bits an input or output...
  • Page 11: D) Event Counter Commands

    ( PA3 is set ) d) EVENT COUNTER COMMANDS The ADR2010 is equipped with a 16-bit event counter that accepts TTL or contact input. There are three commands available to read, and clear the event counter. If the maximum count of 65535 is reached the counter will rollover to 00000 .
  • Page 12: Using Basic With Adr Products

    ADR2010. The command to open a serial file is shown below; 10 OPEN "COM1:9600,n,8,1,CS,DS,RS" AS#1 This line opens a serial file and labels it as serial file #1. This allows access to the ADR2010 using PRINT#1 and INPUT#1 commands. SENDING COMMANDS Sending commands in BASIC to the ADR2010 can be done using PRINT#1 commands.
  • Page 13: Using Turbo C With Adr Products

    #include <bios.h> CONFIGURING THE SERIAL PORT The first step in accessing the ADR2010 via the serial port is configuring the serial port to the proper communication parameters which are, 9600 baud, 8 bit words, no parity. This is done using the "bioscom"...
  • Page 14 AN0; fprintf (stdaux,"RD0 \xD"); fscanf (stdaux,"%D",&an0); rewind (stdaux); In this example, the command PA ( read port A )is sent to the ADR2010 and the retrieved data is stored in an integer variable named PORTA; fprintf (stdaux,"PA \xD"); fscanf (stdaux,"%D",&PORTA);...
  • Page 15 (0,settings,com1); /* send CPA00000000 command to ADR2010 on com1 */ fprintf (stdaux,"CPA00000000 \xD"); /* send MAddd (ddd=DOUT) command to ADR2010 on com1 */ fprintf (stdaux,MA %d \xD",DOUT ); /* send PA command to ADR2010 on com1 */ fprintf (stdaux,"PA \xD");...
  • Page 16: Daisy Chain Options For Adr2000 Series Products

    The connections for a powered daisy-chain cable are shown in Figure 5B) NOTE: Pow er sharing is available only if pow er is applied via J2 ( 7-15VDC ). ONTRAK CONTROL SYSTEMS INC. 15/23 www.ontrak.net...
  • Page 17: Interfacing To The Adr2010 ( Basic Examples )

    7. Interfacing to the ADR2010 ( Basic Examples ) The following interface examples show basic examples of interfacing various devices to the ADR2000A, ADR2000B and ADR2010. Sample programs are written in BASIC and demonstrate proper command syntax. A) Reading Potentiometer Position To monitor potentiometer position, the potentiometer must be biased with 5VDC.
  • Page 18: B) Connecting Switches To Digital Ports

    ;configures port as input 50 REM ;forces <CR> 60 PRINT#1, “RPA0" ;reads PA0 ( SW 1 ) 70 INPUT#1, SW1 ;saves status in variable SW1 80 PRINT#1, “RPA1" ;reads PA1 ( SW 2 ) ONTRAK CONTROL SYSTEMS INC. 17/23 www.ontrak.net...
  • Page 19: C) Connecting Led's To Digital Ports

    Note that the I/O line is RESET before the CPA command is used to configure the port as output to avoid the relay turning on unexpectedly when the port is configured. ONTRAK CONTROL SYSTEMS INC. 18/23 www.ontrak.net...
  • Page 20: E) Solid-State Temperature Measurement

    60 TEMPERATURE=((READING/4095)*5)-2.73)*100 ;convert data to Celsius* 70 PRINT “Temperature is”, TEMPERATURE ;display it 80 GOTO 30 ;repeat procedure * voltage is converted to Celsius by subtracting 2.73 ( 273K ) and multiplying by 100. ONTRAK CONTROL SYSTEMS INC. 19/23 www.ontrak.net...
  • Page 21: F) Event-Counter Connections

    8. Calibration Procedures for the ADR2010 Internal Reference Adjustment The ADR2010 internal reference must be set at 4.096V for maximum accuracy. R6 provides a +/- 1.5% adjustment range for the reference. This potentiometer is set at the factory and should not be adjusted without the use of a precision voltmeter ( 6.5 digits or better ).
  • Page 22: A-Connection Diagram

    APPENDIX A CONNECTION DIAGRAM ONTRAK CONTROL SYSTEMS INC. 21/23 www.ontrak.net...
  • Page 23: B-Electrical Specifications

    TTL or Contact Resolution 16 bits Communication Interface RS232 and RS485 9600 baud, 8 bit words, no parity, 1 start bit Daisy-chain via RS485 Visit our web site at http://www.ontrak.net/ for additional applications and programming examples. ONTRAK CONTROL SYSTEMS INC. 22/23 www.ontrak.net...
  • Page 24: C-Mounting Dimensions

    APPENDIX C MOUNTING DIMENSIONS ONTRAK CONTROL SYSTEMS INC. 23/23 www.ontrak.net...

Table of Contents