background image

1

Introduction

Summary of Contents for ADAM-5511

Page 1: ...1 Introduction ...

Page 2: ......

Page 3: ... or transmitted in any form or by any means without the prior written permission of Advantech Co Ltd Information provided in this manual is intended to be accurate and reliable However Advantech Co Ltd assumes no responsibility for its use nor for any infringements upon the rights of third parties which may result from its use Acknowledgments IBM and PC are trademarks of International Business Mac...

Page 4: ...questions that apply to your problem and with the product close at hand call your dealer Our dealers are well trained and ready to give you the support you need to get the most from your Advantech products In fact most problems reported are minor and are able to be easily solved over the phone In addition free technical support is available from Advantech engineers every business day We are always...

Page 5: ...als service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem encountered e g type of PC CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any on screen messages you get when the problem occurs 2 Call your dealer and describe t...

Page 6: ...Order Card and a photocopy of dated proof of purchase such as your sales receipt in a shippable container A product returned without dated proof of purchase is not eligible for warranty service 5 Write the RMA number visibly on the outside of the packageand ship it prepaid to your dealer ...

Page 7: ...by ADAM 4000 5000 Windows Utility 0 6 0 3 Windows Utility program 0 10 0 3 1 Hardware setup 0 10 0 3 2 Windows Environment Configuration 0 12 0 4 Conclusion 0 16 Chapter 1 Introduction 1 1 1 1 Standalone Data Acquisition and Control System 1 2 1 2 Features 1 2 1 2 1 Control flexibility with C programming 1 2 1 2 2 RS 232 485 communication ability 1 2 1 2 3 Complete set of I O modules for total sol...

Page 8: ...lock Diagram 2 6 Chapter 3 Installation Guidelines 3 1 3 1 Module Installation 3 2 3 2 I O Slots and I O Channel Numbering 3 3 3 3 Mounting 3 3 3 4 Jumper Settings and DIP Switch Settings 3 4 3 5 Wiring and Connections 3 8 3 6 LED Status of the ADAM 5511 Unit 3 12 3 7 I O Modules Configuration 3 12 Chapter 4 I O Modules 4 1 4 1 Analog Input Modules 4 2 ADAM 5013 3 channel RTD input module 4 2 ADAM...

Page 9: ...tput Modules 4 16 ADAM 5024 4 channel analog output module 4 16 Slew rate 4 17 ADAM 5024 4 17 Application wiring 4 18 Technical specifications of ADAM 5024 4 18 4 4 Analog I O Modules Calibration 4 19 Analog input module calibration 4 19 Calibration voltage ADAM 5017 5018 4 21 Calibration voltage ADAM 5017H 4 23 Analog output module calibration 4 24 4 5 Digital Input Output Modules 4 25 ADAM 5050 ...

Page 10: ... specifications of ADAM 5060 4 34 ADAM 5068 relay output module 4 34 ADAM 5068 4 34 Application wiring 4 35 Technical specifications of ADAM 5068 4 35 4 7 Counter Frequency Module 4 36 Overview 4 36 Compatible ADAM 5000 Series Main Units 4 36 ADAM 5080 4 channel Counter Frequency Module 4 36 ADAM 5080 Module Diagram 4 37 ADAM 5080 Application Wiring 4 37 ADAM 5080 Counter Frequency Mode Selection ...

Page 11: ... 51 Configure Your ADAM 5090 Module 4 51 Chapter 5 Programming and Downloading 5 1 5 1 Programming 5 2 5 1 1 Mini BIOS functions 5 2 5 1 2 Converting program codes 5 4 5 1 3 Other limitations 5 4 5 1 4 Programming the watchdog timer 5 5 5 2 System Configuration 5 5 5 2 1 ADAM 5000 Module Hardware configuration5 5 5 2 2 ADAM 4000 Module Hardware configuration5 6 5 2 3 Install utility software on ho...

Page 12: ...8 6 4 3 I O Module Access Functions Library IO LIB 6 62 6 4 4 Remote I O Module Access Functions Library RIO LIB 6 84 6 4 5 Serial I O Library SIO LIB 6 122 Appendix A COM Port Register Structure 1 Appendix B Data Formats and I O Ranges 1 B 1 Analog Input Formats 2 Engineering Units 2 B 2 Analog Input Ranges ADAM 5017 4 B 3 Analog Input Ranges ADAM 5018 5 B 4 Analog Input Ranges ADAM 5017H 7 B 5 A...

Page 13: ...ent RS 485 Control 8 Appendix E Grounding Reference 1 Overview 2 E 1 Grounding 3 1 1 The Earth for reference 3 1 2 The Frame Ground and Grounding Bar 4 1 3 Normal Mode and Common Mode 5 1 4 Wire impedance 7 1 5 Single Point Grounding 9 E 2 Shielding 11 2 1 Cable Shield 11 2 2 System Shielding 13 E 3 Noise Reduction Techniques 17 E 4 Check Point List 18 ...

Page 14: ...Select the specific file for download 0 15 Figure 0 16 Run the program downloaded in ADAM 5511 0 16 Figure 1 1 ADAM 5511 system configuration 1 4 Figure 2 1 ADAM 5511 system I O module dimensions 2 6 Figure 2 2 Function block diagram 2 6 Figure 3 1 Module alignment and installation 3 2 Figure 3 2 ADAM 5511 panel mounting screw placement 3 3 Figure 3 3 ADAM 5511 rail mounting 3 4 Figure 3 4 Jumper ...

Page 15: ...DAM 5050 module frontal view 4 26 Figure 4 22 Dry contact signal input ADAM 5050 4 26 Figure 4 23 Wet contact signal input ADAM 5050 4 27 Figure 4 24 Digital output used with SSR ADAM 5050 5056 4 27 Figure 4 25 ADAM 5051 module frontal view 4 28 Figure 4 26 TTL input ADAM 5051 4 29 Figure 4 27 Contact closure input ADAM 5051 4 29 Figure 4 28 ADAM 5052 module frontal view 4 30 Figure 4 29 Isolation...

Page 16: ...libration 5 9 Figure 5 7 Execute Span Calibration 5 10 Figure 5 8 CJC Calibration 5 10 Figure 5 9 Resistance Calibration 5 11 Figure 5 10 Analog Output Calibration 5 11 Figure 5 11 Auto detect COM port 5 13 Figure 5 12 Setting the parameter of COM port 5 14 Figure 5 13 Click search button 5 15 Figure 5 14 Double click left mouse button for search 5 15 Figure 5 15 Choose Scan device command 5 16 Fi...

Page 17: ... D 6 RS 485 data flow control with RTS D 8 Figure E 1 Think the EARTH as GROUND E 3 Figure E 2 Grounding Bar E 4 Figure E 3 Normal mode and Common mode E 5 Figure E 4 Normal mode and Common mode E 6 Figure E 5 The purpose of high voltage transmission E 7 Figure E 6 wire impedance E 9 Figure E 7 Single point grounding 1 E 9 Figure E 8 Single point grounding 2 E 10 Figure E 9 Single isolated cable E...

Page 18: ...on voltage of ADAM 5017 5018 4 22 Table 4 9 Calibration voltage of ADAM 5017H 4 23 Table 4 10 Technical specifications of ADAM 5050 4 28 Table 4 11 Technical specifications of ADAM 5051 4 29 Table 4 12 Technical specifications of ADAM 5052 4 31 Table 4 13 Technical specifications of ADAM 5056 4 32 Table 4 14 Technical specifications of ADAM 5060 4 34 Table 4 15 Technical specifications of ADAM 506...

Page 19: ...0 Quick Start Chapter ...

Page 20: ...equirements 0 1 1 Host computer 1 IBM PC compatible computer with 486 CPU Pentium is recommend ed 2 Microsoft 95 98 NT 4 0 SP3 or SP4 or higher versions 3 At least 32 MB RAM 4 20 MB of hard disk space available 5 VGA colormonitor 6 2x or higher speed CD ROM 7 Mouse or other pointing devices 8 At least one standard RS 232 port e g COM1 COM2 9 One RS 232 DB 9 straight through cable for downloading p...

Page 21: ...pecification Reference 1 Analog I O ADAM 5013 3 ch RTD input Isolated ADAM 5017 8 ch AI Isolated ADAM 5017H 8 ch high speed AI Isolated ADAM 5018 7 ch thermocouple input Isolated ADAM 5024 4 ch AO Isolated 2 Digital I O ADAM 5050 16 ch universal DI O Non isolated ADAM 5051 16 ch DI Non isolated ADAM 5052 8 ch DI Isolated ADAM 5056 16 ch DO Non isolated 3 Relay output ADAM 5060 6 ch relay output Is...

Page 22: ...nd make sure that the following items are present One ADAM 5511 main unit with two blank slot covers One ADAM 5511 user s manual One ADAM 5511 Windows Utility CD Module Name Specification Reference Analog I O ADAM 4011 Thermocouple input Isolated ADAM 4011D Thermocouple input Isolated ADAM 4012 Analog input Isolated ADAM 4013 RTD input Isolated ADAM 4017 8 ch AI Isolated ADAM 4018 8 ch Thermocoupl...

Page 23: ... switches off on ADAM 5511 back plant See Figure 0 1 Figure 0 1 ADAM 5511 network address baud rate DIP switch 3 Connect the ADAM 5511 power cable between the power supply and the ADAM 5511 screw terminals Vs and GND Please make sure that the power source is between 10 to 30 VDC 4 Connect the straight through cable between the host computer and the ADAM 5511 COM3 for I O modules configuration ...

Page 24: ...rive e g D of the host PC 2 Find out the installation program from this path D ADAM4K5K Windows Utility Setup then execute it When the installation is completed there will be an Advantech folder created automatically in drive C Program Files 3 Double click the ADAM 5511 exe in the Advantech folder and the Utility screen will pop up as below Figure 0 3 ADAM 4000 5000 Windows Utility RS 232 ...

Page 25: ...tus Figure 0 4 I O Module Configuration Note Baud rate and Checksum can only be changed in the INIT state Changed settings only take effect after a module is rebooted Address Represents the address of the module Range is from 0 to 255 Baudrate Represents the baud rate Checksum Represents the checksum status i e disabled enabled Firmware Ver Represents the module s firmware Input range Represents t...

Page 26: ...ision voltage source to apply a calibration voltage to the modules IN and IN terminals of the ADAM 4011 4011D and 4012 Use a precision voltage source to apply a calibration voltage to the modules Vin and Vin terminals or Iin and Iin of the ADAM 4014D and 4016 Use a precision voltage source to apply a calibration voltage to the modules Vin0 and Vin0 terminals for ADAM 4017 4018 and 4018M 4 Click th...

Page 27: ...0 to send a temperature signal to the ADAM module and then compare this signal with the reading from the ADAM module If the reading value is different from the signal adjust the CJC value to improve it Note CJC cold junction sensor calibration only applies to the ADAM 4011 4011D 4018 4018M 5018 Figure 0 7 CJC Calibration Analog Input Resistance Calibration Modules ADAM 4013 Figure 0 8 Resistance C...

Page 28: ...re 0 9 Analog Output Calibration 0 3 Windows Utility program After completing the I O modules configuration user can setup ADAM 5511 as a data acquisition control system or a programmable stand alone controller 0 3 1 Hardware setup Connect the download cable between the host computer and the ADAM 5511 ...

Page 29: ...ng Port Number Baud Rate TimeOut Selectable Cable Connection RS 232 Cross Over Cable RS 485 4520 Setting Baud Rate Data Length Figure 0 10 Installation wiring of the ADAM 5511 and host PC Note There are two kind of connecting methods for system linkage One is connected via RS 232 DB9 cross over cable to COM1 of ADAM 5511 and the other one is connected via ADAM 4520 to COM2 of ADAM 5511 5 Refer the...

Page 30: ...nd out the executive program from this path D ADAM 5511 Windows Utility ADAM5511 EXE then execute it ADAM 5511 EXE also can be saved in the specific path in your hard disk 3 Double click the adam5511 exe in the folder and the Utility screen will pop up Dip 6 ON Com1 Enable OFF Com1 Disable Dip 7 Dip 8 Baud Rate OFF OFF 9600 ON OFF 19200 OFF ON 38400 ON ON 115200 ...

Page 31: ...ADAM 5511 0 13 Chapter 0 Figure 0 11 Opening screen 4 Select the specific COM port then setting the baud rate and time out parameter Figure 0 12 Setting the parameter of Com port ...

Page 32: ...ck Start 5 Click the Search device icon on tool bar to detect all devices on network Figure 0 13 Click the Search device icon The current status on network will show on the display Figure 0 14 ADAM 5511 has been detected ...

Page 33: ...wnload icon on tool bar to select the pro gram you want to download Figure 0 15 Select the specific file for download Note When you download the program into ADAM 5511 you have to make sure that the memory capacity will not exceed 128K byte ...

Page 34: ...0 16 Run the program downloaded in ADAM 5511 0 4 Conclusion By carefully walking through all the installation and operating instruc tions described above you should have experienced most of the usual procedures for using ADAM 5511 For further sophisticated utilization or programming skills please refer to following chapters ...

Page 35: ...1 Introduction Chapter ...

Page 36: ...C in its own right and includes an 80188 CPU and a built in ROM DOS operating system It can be used in the say way one uses an x86 PC at the office The ADAM 5511 can be controlled by programs written in C language Given the prevalence of C language programming tools this is a distinct advantage for many users and can result in a very short learning curve and modest training expense requirements Se...

Page 37: ...11 s function library to reduce programming effort Users can easily call on these subroutines to execute the ADAM 5511 s I O functions while programming in Borland C 3 0 languages For a detailed description refer to Chapter 6 Function Library 1 2 4 Built in real time clock and watchdog timer The micro controller also includes a real time clock and watchdog timer The real time clock records events ...

Page 38: ...OWER SUPPLY 10 30 V ADAM 4520 DIP Switch 1 2 cross over cable COM2 RS 485 COM1 RS 232 COM3 RS 232 SPARE RS 485 RS 232 PC ADAM 5511 ADAM 4520 RS 485 232 Converter ADAM 5511 Setting ID Address Baud Rate Utility Setting Port Number Baud Rate TimeOut Selectable Cable Connection RS 232 Cross Over Cable RS 485 4520 Setting Baud Rate Data Length ...

Page 39: ...2 System Specifications Chapter ...

Page 40: ...rts and a programming port It has the following major features Built in 80188 CPU and ROM DOS operating system ADAM 5511 s CPU card includes an 80188 microprocessor Its ROM DOS operating system is an MS DOS compatible system It provides all the basic functions of MS DOS except the BIOS Users can run standard PC software or application programs written in high level languages under this ROM DOS env...

Page 41: ...oops and reduces the effect of electrical noise on the system It also offers better surge protection to prevent dangerous voltages or spikes from harming your system The system also has a watchdog timer to monitor the microprocessor The watchdog timer automatically resets the microprocessor in the ADAM 551 if the system fails 2 3 Technical Specifications of the ADAM 5511 System 2 3 1 System CPU 80...

Page 42: ... Up to 115 2 Kbps Max transmission distance 50 feet 15 2 m 2 3 3 RS 485 interface COM2 Signals DATA DATA Mode Half duplex multi drop Connector Screw terminal Transmission speed Up to 115 2 Kbps Max transmission distance 4000 feet 1220 m 2 3 4 RS 232 programming port COM3 Signals Tx Rx GND Mode Asynchronous point to point Connector DB 9 pin Transmission speed Up to 115 2 Kbps Max transmission dista...

Page 43: ...4 to 22 AWG wires 2 3 8 Environment Operating temperature 10 to 70 C 14 to 158 F Storage temperature 25 to 85 C 13 to 185 F Humidity 5 to 95 non condensing Atmosphere No corrosive gases NOTE Equipment will operate below 30 humidity Howev er static electricity problems occur much more frequently at lower humidity levels Make sure you take adequate precautions when you touch the equipment Consider u...

Page 44: ... Basic Function Block Diagram Figure 2 1 ADAM 5511 system I O module dimensions Figure 2 2 Function block diagram Battery Opto Coupled Isolation RS 485 COMM Transceiver COM2 UART RS 232 COMM Transceiver COM1 UART SRAM ROM RTC Power Isolation GND V Rectifier Filter WDT Reset P S GND 5V 80188 40 16 Bit µp Local Bus D A A D DI DO Counter 10 30 V DC Power Converter ...

Page 45: ...3 Installation Guidelines Chapter ...

Page 46: ...dule Installation When inserting modules into the system align the PC board of the module with the grooves on the top and bottom of the system Push the module straight into the system until it is firmly seated in the backplane connector Once the module is inserted into the system push in the retaining clips located at the top and bottom of the module to firmly secure the module to the system Figur...

Page 47: ...the ADAM 5017 is an 8 channel analog input module Its input channel numbering is 0 through 7 3 3 Mounting The ADAM 5511 system can be installed on a panel or on a DIN rail Panel mounting Mount the system on the panel horizontally to provide proper ventila tion You cannot mount the system vertically upside down or on a flat horizontal surface A standard 7 tating screw 4 mm diameter should be used F...

Page 48: ...e bottom of the system you will notice two small retaining clips To secure the system to a DIN rail place the system onto the rail and gently push up on the retaining clips The clips lock the system on the rail To remove the system pull down on the retaining clips lift up on the base slightly and pull it away from the rail Figure 3 3 ADAM 5511 rail mounting 3 4 Jumper Settings and DIP Switch Setti...

Page 49: ...85 control mode setting The COM2 port is dedicated as an RS 485 interface In an RS 485 network handshaking signals such as RTS Request to Send normally control the direction of the data flow A special I O circuit in the ADAM 5511 senses the data flow direction and automatically switches the transmission direction making handshaking signals unnecessary Jumper JP3 gives users the option of configuri...

Page 50: ...tting Jumper JP2 on the CPU card lets you configure the watchdog timer to disable mode reset mode or NMI Non maskable interrupt mode Jumper settings are shown below Figure 3 6 Watchdog timer setting JP3 JP3 AUTO RTS AUTO RTS Automatic Control Default RTS Control JP2 Reset Mode Disable WDT JP2 NMI Mode Default ...

Page 51: ...ress baud rate DIP switch There is a set of DIP switch terminals on the right side of the ADAM 5511 back plane Set the network address using DIP switches 1 5 Valid settings range from 0 to 255 Node ID Set DIP switch 6 on when you need to use COM1 Dip 1 2 3 4 5 ON 20 21 22 23 24 OFF 0 0 0 0 0 ...

Page 52: ...11 systems are designed for a standard industrial unregulated 24 VDC power supply they accept any power unit that supplies within the range of 10 to 30 V DC The power supply ripple must be limited to 200 mV peak to peak and the immedi ate ripple voltage should be maintained between 10 and 30 V DC Screw terminals Vs and GND are for power supply wiring Note The wires used should be at least 2 mm in ...

Page 53: ...nnecting electrical devices to I O mod ules 1 The terminal block accepts wires from 0 5 mm to 2 5 mm 2 Always use a continuous length of wire Do not combine wires to make them longer 3 Use the shortest possible wire length 4 Use wire trays for routing where possible 5 Avoid running wires near high energy wiring 6 Avoid running input wiring in close proximity to output wiring where possible 7 Avoid...

Page 54: ...232 SPARE CD RX TX DTR GND DSR RTS CTS RI 1 2 3 4 5 6 7 8 9 N A RX TX N A GND N A N A N A N A 1 2 3 4 5 6 7 8 9 PC COM port ADAM 5511 COM1 cross over cable RS 232 PC ADAM 5511 cross over cable Analog Input Analog Output Digital Input Digital Output COM2 RS 485 COM1 RS 232 Power Supply 10 30VDC COM3 RS 232 SPARE CD RX TX DTR GND DSR RTS CTS RI 1 2 3 4 5 6 7 8 9 N A RX TX N A GND N A N A N A N A 1 2...

Page 55: ...A 1 2 3 4 5 6 7 8 9 PC COM port ADAM 5511 COM3 straight through cable ADAM 4520 ADAM 4520 RS 232 RS 485 ADAM 4520 RS 485 232 Converter PC ADAM 5511 COM2 RS 485 COM1 RS 232 Power Supply 10 30VDC COM3 RS 232 SPARE DATA DATA COM2 The COM2 port is dedicated as an RS 485 interface Screw terminals DATA and DATA are used for making the COM2 RS 485 connections Users have to prepare an ADAM 4520 RS232 485 ...

Page 56: ...5511 are communicating Please notice if the host COM port is connected to the ADAM 5511 s RS 232 port this LED will normally be off On the other hand if the host COM port is connected to the ADAM 5511 s RS 485 port this LED will normally be on 4 BATT battery status indicator This LED will be on whenever the SRAM backup battery is low 3 7 I O Modules Configuration When the main unit installation is...

Page 57: ...4 I O Modules Chapter ...

Page 58: ...RTD input module The ADAM 5013 is a 16 bit 3 channel RTD input module that features programmable input ranges on all channels This module is an extreme ly cost effective solution for industrial measurement and monitoring applications Its opto isolated inputs provide 3 000 VDC of isolation between the analog input and the module protecting the module and peripherals from damage due to high input li...

Page 59: ...ADAM 5511 4 3 Chapter 4 EXC0 SEN0 SEN0 EXC0 A GND 3 Wire RTD EXC0 SEN0 SEN0 EXC0 A GND 4 Wire RTD Application wiring Figure 4 2 RTD inputs ...

Page 60: ...to 200 C a 0 00385 Pt 0 to 600 C a 0 00385 Pt 100 to 100 C a 0 00392 Pt 0 to 100 C a 0 00392 Pt 0 to 200 C a 0 00392 Pt 0 to 600 C a 0 00392 Ni 80 to 100 C Ni 0 to 100 C Isolation voltage 3000 VDC Sampling rate 10 samples sec total Input impedance 2 MΩ Bandwidth 13 1 Hz 50 Hz 15 72 Hz 60 Hz Input connections 2 3 or 4 wire Accuracy 0 1 or better Zero drift 0 015 C C Span drift 0 01 C C CMR 50 60 Hz...

Page 61: ...libration resistances to be connected Reference resistances used can be from a precision resistance decade box or from discrete resistors with the values 60 140 200 and 440 ohms Figure 4 3 Applying calibration resistance 4 First with the correct zero offset calibration resistance connected as shown above issue a Zero Calibration command to the module using the Calibrate option in the ADAM utility ...

Page 62: ...nge Code Hex Input Range Span Calibration Resistance Zero Calibration Resistance 20 Pt 100 to 100 C A 0 00385 140 Ohms 60 Ohms 21 Pt 0 to 100 C A 0 00385 140 Ohms 60 Ohms 22 Pt 0 to 200 C A 0 00385 200 Ohms 60 Ohms 23 Pt 0 to 600 C A 0 00385 440 Ohms 60 Ohms 24 Pt 100 to 100 C A 0 00392 140 Ohms 60 Ohms 25 Pt 0 to 100 C A 0 00392 140 Ohms 60 Ohms 26 Pt 0 to 200 C A 0 00392 200 Ohms 60 Ohms 27 Pt 0...

Page 63: ...surement and monitoring applications Its opto isolated inputs provide 3 000 VDC of isolation between the analog input and the module protecting the module and peripherals from damage due to high input line voltage Additionally the module uses analog multi plexers with active overvoltage protection The active protection circuitry assures that signal fidelity is maintained even under fault condition...

Page 64: ... 5 Millivolt and volt input Figure 4 6 Process current input Note To keep measurement accuracy please short the channels that are not in use Technical specifications of ADAM 5017 V1 V1 V0 V0 1 0 20 mA 0 1 125 Ω Iin 1 V0 V0 V1 V1 V mV V ...

Page 65: ...tion Voltage 3000 VDC Sampling Rate 10 samples sec total Analog Input Signal Limit 15 V max Max allowable voltage difference between two connectors in a module 15 V max Input Impedance 2 Mohms Bandwidth 13 1 Hz 50 Hz 15 72 Hz 60 Hz Accuracy 0 1 or better Zero Drift 1 5 µV C Span Drift 25 PPM C CMR 50 60 Hz 92 dB min Power Requirements 10 to 30 VDC non regulated Power Consumption 1 2 W ...

Page 66: ...rate depends on the data format received up to 1 000 Hz total in two s complement or 600 Hz total in engineering units Space is reserved for 125 ohm 0 1 10 ppm resistors See Figure 4 10 Each input channel has 3000 VDC of optical isolation between the outside analog input line and the module protecting the module and peripherals from high input line voltages Additionally the module uses analog mult...

Page 67: ...ADAM 5511 4 11 Chapter 4 Application wiring Figure 4 8 Millivolt and volt input V1 V1 V0 V0 1 0 20 mA Iin Figure 4 9 Process current input 1 V0 V0 V1 V1 V mV V ...

Page 68: ...4 12 ADAM 5511 I O Modules Figure 4 10 Locations of 125 ohm resistors Note To maintain measurement accuracy please short channels not in use ...

Page 69: ... Voltage 3000 VDC Sampling Rate 1 000 Hz module no total in two s complement data format 600 Hz module no total in engineering unit data format Input Impedance 20 Mohms voltage inputs 125 ohms current inputs Signal Input Bandwidth 1000 Hz for both voltage inputs and current inputs Analog Signal Range 15 V max Analog Signal Range for any two measured Pins 15 V max Power Requirements 10 to 30 VDC no...

Page 70: ...5 C Gain Error 10 to 70 C Offset Drift Gain Drift Display Resolution Voltage Inputs 0 10 V 0 11 V 1 LSB 2 LSB 1 LSB 2 LSB 17 µV C 50 ppm C 2 7 mV 0 5 V 0 5 5 V 1 LSB 2 LSB 1 5 LSB 2 LSB 16 µV C 50 ppm C 1 3 mV 0 2 5 V 0 2 75 V 1 LSB 2 LSB 1 5 LSB 2 LSB 20 µV C 55 ppm C 0 67 mV 0 1 V 0 1 375 V 1 LSB 2 5 LSB 2 LSB 2 5 LSB 20 µV C 60 ppm C 0 34 mV 0 500 mV 0 687 5 mV 5 LSB 3 LSB 3 5 LSB 20 µV C 67 pp...

Page 71: ...11 4 15 Chapter 4 ADAM 5018 Figure 4 11 ADAM 5018 module frontal view Application wiring Figure 4 12 Thermocouple input 16 1 ADAM 5018 7 T C V3 V3 V2 V2 V1 V1 V0 V0 V4 V4 V5 V5 V6 V6 CJC CJC V1 V1 V0 V0 1 T C ...

Page 72: ...s the D A converter controlled by the system module to convert the digital data into output signals Analog Input Channels Seven differential Input Type mV V mA Thermocouple Input Range 15 mV 50 mV 100 mV 500 mV 1 V 2 5 V and 20 mA T C Type and Temperature Range J 0 to 760 C K 0 to 1370 C T 100 to 400 C E 0 to 1400 C R 500 to 1750 C S 500 to 1750 C B 500 to 1800 C Isolation Voltage 3000 VDC Samplin...

Page 73: ...ts your equipment from ground loops and power surges by providing opto isolation of the D A output and transformer based isolation up to 500 VDC Slew rate The slew rate is defined as the slope indicated the ascending or descending rate per second of the analog output from the present to the required ADAM 5024 Figure 4 13 ADAM 5024 module frontal view 16 1 I0 ADAM 5024 4 AO I0 I1 I1 I2 I2 I3 I3 V0 ...

Page 74: ...mA 4 20mA 0 10V Isolation Voltage 3000 Vdc Output Impedance 0 5 Ohms Accuracy 0 1 of FSR for current output 0 2 of FSR for voltage output Zero Drift Voltage output 30 µV ºC Current output 0 2 µA ºC Resolution 0 015 of FSR Span Temperature Coefficient 25 PPM ºC Programmable Output Slope 0 125 128 0 mA sec 0 0625 64 0 V sec Current Load Resistor 0 500 Ohms source Power Consumption 2 5W Max I3 I3 V0 ...

Page 75: ...e modules incorpo rate automatic Zero Calibration and automatic Span Calibration at bootup or reset Analog input module calibration Modules ADAM 5017 5017H 5018 1 Apply power to the ADAM 5510 system that the analog input module is plugged into and let it warm up for about 30 minutes 2 Assure that the module is correctly installed and is properly configured for the input range you want to calibrate...

Page 76: ...M utility software See the Zero Calibration option in the Calibration sub menu of the ADAM utility software Figure 4 16 Zero calibration 5 Execute the Span Calibration command This can be done with the ADAM utility software See the Span Calibration option in the Calibration sub menu of the ADAM utility software Figure 4 17 Span calibration ...

Page 77: ...d junction calibration Note Zero calibration and span calibration must be com pleted before CJC calibration To calibrate CJC the thermocouple attached to ADAM 5018 and a stan dard thermometer should be used to measure a standard known temperature such as the freezing point of pure water The amount of offset between the ADAM 5018 and the standard thermometer is then used in the ADAM utility to comp...

Page 78: ... 1 mV 1 V 05h 2 5 V 2 5 V 06h 20 mV 20 mA 1 0Eh J thermocouple 0 to 1370 C 50 mV 0Fh K thermocouple 0 to 1370 C 50 mV 10h T thermocouple 100 to 400 C 22 mV 11h E thermocouple 0 to 1000 C 80 mV 12h R thermocouple 500 to 1750 C 22 mV 13h S thermocouple 500 to 1800 C 22 mV 14h B thermocouple 500 to 1800 C 152 mV 5017 07h Not used 08h 10 V 10 V 09h 5 V 5 V 0Ah 1 V 1 V 0Bh 500 mV 500 mV 0Ch 150 mV 150 ...

Page 79: ...ersion resistor for that channel Howev er the calibration accuracy will be limited to 0 1 due to the resistor s tolerance Module Input Range Code Hex Input Range Span Calibration Voltage 5017H 00h 10 V 10 V 01h 0 10 V 10 V 02h 5 V 5 V 03h 0 5 V 5 V 04h 2 5 V 2 5 V 05h 0 2 5 V 2 5 V 06h 1 V 1 V 07h 0 1 V 1 V 08h 500 mV 500 mV 09h 0 500 mV 500 mV 0ah 4 20 mA 1 0bh 0 20 mA 1 ...

Page 80: ...4 mA and 20 mA 1 Apply power to the ADAM 5510 system including the analog output module for about 30 minutes 2 Assure that the module is correctly installed and that its configuration is according to your specifications and that it matches the output range you want to calibrate You can do this by using the ADAM utility software Refer to Chapter 5 Utility Software 3 Connect either a 5 digit mA mete...

Page 81: ... output current is equal to exactly 20 mA 9 Execute the 20 mA Calibration command to indicate that the present output is exactly 20 mA The analog output module will store its calibration parameters in the unit s EEPROM 4 5 Digital Input Output Modules ADAM 5050 16 channel universal digital I O module The ADAM 5050 features sixteen digital input output channels Each channel can be independently con...

Page 82: ...0 CH15 Figure 4 20 Dip switch setting for digital I O channel ADAM 5050 Figure 4 21 ADAM 5050 module frontal view Application wiring Figure 4 22 Dry contact signal input ADAM 5050 Dip Switch Key ON Digital Output OFF Digital Input ...

Page 83: ...ADAM 5511 4 27 Chapter 4 limits current to 100 mA Power Ground Power Ground Vss Vss Figure 4 23 Wet contact signal input ADAM 5050 Figure 4 24 Digital output used with SSR ADAM 5050 5056 ...

Page 84: ...digital inputs to determine the state of limit or safety switches or to receive remote digital signals ADAM 5051 Figure 4 25 ADAM 5051 module frontal view Points 16 Channel Setting Bitwise selectable by DIP switch Digital Input Dry Contact Logic Level 0 close to GND Logic Level 1 open Wet Contact Logic Level 0 2 V max Logic Level 1 4 V to 30 V Digital Output Open collector to 30 V 100mA max load P...

Page 85: ...L input ADAM 5051 Figure 4 27 Contact closure input ADAM 5051 Technical specifications of ADAM 5051 Table 4 11 Technical specifications of ADAM 5051 Points 16 Digital input Logic level 0 1 V max Logic level 1 3 5 to 30 V Pull up current 0 5 mA 10 kΩ resistor to 5 V Power consumption 0 3 W ...

Page 86: ...52 provides eight fully independent isolated channels All have 5000 VRMS isolation to prevent ground loop effects and to prevent damage from power surges on the input lines ADAM 5052 Figure 4 28 ADAM 5052 module frontal view Application wiring Figure 4 29 Isolation digital input ADAM 5052 ...

Page 87: ...ital output channels The digital outputs are open collector transistor switches that you can control from the ADAM 5510 You also can use the switches to control solid state relays ADAM 5056 Figure 4 30 ADAM 5056 module frontal view Points 8 Differential Digital input Logic level 0 1 V max Logic level 1 3 5 to 30 V Isolation voltage 5000 V RMS Resistance 3 kΩ 0 5 W Power consumption 0 4 W ...

Page 88: ...tput modules in the ADAM 5000 series The addition of these solid state digital I O devices allows these modules to control or monitor the interfaces between high power DC or AC lines and TTL logic signals A com mand from the host converts these signals into logic levels suitable for the solid state I O devices Table 4 13 Technical specifications of ADAM 5056 Points 16 Digital output Open collector...

Page 89: ...t Modules ADAM 5060 relay output module The ADAM 5060 relay output module is a low cost alternative to SSR modules It provides 6 relay channels two of Form A and four of Form C ADAM 5060 Figure 4 32 ADAM 5060 module frontal view Application wiring Figure 4 33 Relay output ...

Page 90: ...ls of Form A Switches can be used to control the solid state relays ADAM 5068 Figure 4 34 ADAM 5068 module frontal view Points 6 two Form A and four Form C Contact rating AC 125 V 0 6A 250 V 0 3 A DC 30 V 2 A 110 V 0 6 A Breakdown voltage 500 VAC 50 60 Hz Relay on time typical 3 ms Relay off time typical 1 ms Total switching time 10 ms Insulation resistance 1000 MΩ min 500 VDC Power consumption 0 ...

Page 91: ...hnical specifications of ADAM 5068 Points 8 Form A Contact Rating AC 120 V 0 5 A DC 30 V 1 A Breakdown Voltage 500 VAC 50 60 Hz Relay On Time typical 7 msec Relay Off Time typical 3 msec Total Switching Time 10 msec Power Consumption 2 0 W Table 4 15 Technical specifications of ADAM 5068 ...

Page 92: ...number of input signals for totalizer function you may use counter mode to measure quantities such as movement and flow quantity Alternatively you can also select frequency mode to calculate the instantaneous differential of quanti ties such as rotating speed frequency or flow rate and present them in specific engineering formats Up Down or Bi direction Function When operating in counter mode you ...

Page 93: ...iggered state Users will have to issue a Clear Alarm Status command to return the latched alarm status back to normal Users can designate the high limit value and low limit value to regulate your alarm behavior through the utility program Digital Output Mapping Users can either run the utility program or issue a Set Alarm Connet ion command to designate a specific digital output module for the ala...

Page 94: ...t Bi direction Up Down Counter or Frequency option as shown in Figure 4 Figure 4 39 Counter Frequency Mode Note All four channels of ADAM 5080 will operate simulta neously in the mode you have selected i e If you switch the ADAM 5080 to Counter Mode all four channels will operate in Counter Mode Internal logic Vcc ...

Page 95: ...On receiving Up and Down signal simultaneously the counter will not perform each specific counting accordingly but will remain at the previous counting value since these simultaneous signals won t have any effect on counting values Figure 4 40 Wiring for Up Down Counting Note If you need only one type of counting connect C0A and C0A for Up Counting only or connect C0B and C0B for Down Counting onl...

Page 96: ...r value increases Down Counting when the input signal is within logic level 0 the counter value decreases Note If users select TTL mode and don t connect C0B C0B the counter value will increase If users select Isolated mode and don t connect C0B C0B the counter value will decrease Features Frequency Mode If users want to select frequency mode they can only utilize Up Counting type and can only con...

Page 97: ...set a high alarm limit value and or a low alarm limit value and a initial value to fulfill the requirements for a basic alarm setting Figure 4 43 Setting Alarm Limit Features Alarm Setting According to your application purposes you can run the utility program to set different limit values for High Low Alarm ...

Page 98: ...re 4 45 Sending Alarm Signal settings not recommended Max value High alarm limit value Initial value Low alarm limit value Min value Max value Initial value High alram Initial value Low alarm limit value Min value Sending High alarm Sending Low alarm Sending High alarm Sending low alarm ...

Page 99: ...er than the Max Min value they can run the aaSi7 command to gain a readout of the overflow value Getting the Totalizer Value If users want to get the actual counter value a formula such as follows can facilitate an easy calculation from the initial counter value overflow value and current counter value Vtol Vini Vmin or Vmax 1 x Vvf Vini Vcur Vtol totalizer value Vini initial counter value Vmin mi...

Page 100: ...Limt SetAlarmlimitfrom0to4 294 967 295 3 High Alarm Output Mode Enable or Disable D O Mapping 4 High Alarm Output Slot Users can select D O Modules such as ADAM 5050 ADAM 5056 ADAM 5060 ADAM 5068 for the alarm signal to be sent through 5 High Alarm Output Channel Select Alarm Output Channel 6 Clear Latch Alarm Users can Select Enable or Disable option When selecting Enable the latch will be reliev...

Page 101: ...ion for the jumpers Select the proper jumper settings for either TTL or Isolated Input according to Figure 4 47 Please note that you must configure all six jumpers to the correct configuration for proper function Figure 4 47 Jumper Location on the ADAM 5080 Module TTL Input Level Isolated Input Level Figure 4 48 TTL Isolated Input Level Selectting ...

Page 102: ...nput Level Isolated or TTL level Minimum Pulse Width 500 µ sec Frequency mode 100 µ sec Counter mode Minimum Input Current 2mA Isolated Isolated Input Level Logic Level 0 1 VMAX Logic Level 1 3 5 V to 30 V TTL Input Level Logic Level 0 0 V to 0 8 V Logic Level 1 2 3 to 5 V Isolated Voltage 1000 VRMS Mode Counter Up Down Bi direction Frequency Programmable Digital Noise Filter 8 65000 µ sec ...

Page 103: ...ices are equipped with a RS 232 interface Furthermore the ADAM 5090 can issue commands to control other devices It is fully integrated with the ADAM 5000 ADAM 5500 and ADAM 4000 series and transmits data to each other through the RS 232 port The whole integrated system is an intelligent stand alone system and can connect and issue commands to control devices such as printers and PLCs in remote fac...

Page 104: ...ill function through the alternative communication channel This dual communication channels can be implemented by application software ADAM 5090 Module Diagram ADAM 5090 4 RS232 Port1 Port2 Port3 Port4 TX RX TX RX TX RX TX RX Figure 4 49 ADAM 5090 Module ADAM 5090 Application Wiring Figure 4 50 ADAM 5090 Application Wiring ADAM 5090 4 RS232 Port1 Port2 Port3 Port4 TX RX TX RX TX RX TX RX RJ 48 DB9...

Page 105: ...e ADAM 5510 to integrate other devices with communication function into your system Electrical Interface 4 ports RS 232 Communication Rates 4800 9600 19200 38400 115200bps FIFO 128 bytes per UART Tx Rx Indicator Tx Orange Rx Green Power Required 100mA 5VDC Default in RI mode Table 4 19 ADAM 5090 technical specifications User can define the communication ports with 5VDC output by switching the jump...

Page 106: ...DAM 5090 in slot 1 is defined to port 12 refer to table 6 1 Jumper Settings This section tells you how to set the jumpers to configure your ADAM 5090 module There are four jumpers on the PC Board User can choose RI signal or 5V output for each port by setting these jumpers system default is RI signal The following figure shows the location of the jumpers Figure 4 51 Jumper locations on the CPU car...

Page 107: ...plementing it into your application Quick Start Step 1 Get your host PC ready and run the ADAM 5510 Utility Software Step 2 Install the ADAM 5090 Module and power on your ADAM 5510 main unit Step 3 Download the executable program to the main unit Step 4 Monitor the ADAM 5090 Module s current status from the PC through the utility software A basic example program for the ADAM 5090 main Install the ...

Page 108: ...e enabled you can apply any other function library to implement your program A receive and transmit example program for the ADAM 5090 main int err_value char character port_installed 1 port_enable_fifo 1 check whether error has been received or not err_value port_rx_error 1 if error detected print out the message if err_value printf n Rx Error The LSR Value 02X Err_value checkwhetherFIFOreceivesda...

Page 109: ...ADAM 5511 4 53 Chapter 4 character port_rx 1 check whether FIFO is empty or not if empty send a character if port_tx_empty 1 port_tx 1 character ...

Page 110: ...4 54 ADAM 5511 I O Modules This page inyrntionally left blank ...

Page 111: ...5 Programming and Downloading Chapter ...

Page 112: ...re are limitations when running application programs in the ADAM 5511 In order to build successful applications you should keep the following limitations and concerns in mind 5 1 1 Mini BIOS functions The ADAM 5511 provides only two serial communication ports for connecting peripherals so the mini BIOS of ADAM 5511 only provides 10 function calls Since the user s program cannot use other BIOS func...

Page 113: ...tput 11h Get equipment 12h Get memory size 15h 87h Extended memory read 88h Extended memory size c0h PS 2 or AT style A20 Gate table 16h 0 Read TTY char 1 Get TTY status 2 Get TTY flags 18h Print Failed to BOOT ROM DOS message 19h Reboot system 1ah 0 Get tick count 1 Set tick count 2 Get real time clock 3 Set real time clock 4 Get date 5 Set date 1ch Timer tick ...

Page 114: ...ication program in Borland C you would compile the program as indicated in the screen below Figure 5 1 Converting program codes 5 1 3 Other limitations 1 The ADAM 5511 does not support the standard PC function 8253 Therefore the C language function call delay cannot be used in ADAM 5511 applications 2 Certain critical files are always kept in flash ROM such as operat ing system BIOS and monitoring...

Page 115: ...rvals it will activate and reset the CPU or generate a NMI Non Maskable Interrupt You can use a function call in your application program to clear the watchdog timer At the end of your program you still need a function call to disable the watchdog timer 5 2 System Configuration This section explains how to configure I O module before applied into ADAM 5511 system 5 2 1 ADAM 5000 Module Hardware co...

Page 116: ...S 485 COM1 RS 232 Power Supply 10 30VDC COM3 RS 232 CD RX TX DTR GND DSR RTS CTS RI 1 2 3 4 5 6 7 8 9 N A TX RX N A GND N A N A N A N A 1 2 3 4 5 6 7 8 9 PC COM port ADAM 5511 COM3 straight through cable 3 Connect the ADAM 5511 power cable between the power supply and the ADAM 5511 screw terminals Vs and GND Please make sure that the power source is between 10 to 30 VDC 4 Connect the straight thro...

Page 117: ...e as follows 1 Insert ADAM 5511 Utility CD into the CD drive e g D of the host PC 2 Find out the installation program from this path D ADAM4K5K Windows Utility Setup then execute it When the installation is completed there will be an Advantech folder created automatically in drive C Program Files 3 Double click the ADAM exe in the Advantech folder and the Utility screen will pop up as Figure5 4 Fi...

Page 118: ...be changed in the INIT state Changed settings only take effect after a module is rebooted Address Represents the address of the module Range is from 0 to 255 Baudrate Represents the baud rate Checksum Represents the checksum status i e disabled enabled FirmwareVer Represents the module s firmware Input range Represents the type Please refer to the module user s manual Data format Represents the da...

Page 119: ... for the input range you want to calibrate 3 Use a precision voltage source to apply a calibration voltage to the modules IN and IN terminals of the ADAM 4011 4011D and 4012 Use a precision voltage source to apply a calibration voltage to the modules Vin and Vin terminals or Iin and Iin of the ADAM 4014D and 4016 Use a precision voltage source to apply a calibration voltage to the modules Vin0 and...

Page 120: ...calibration and span calibration function 3 Use a temperature emulation device such as Micro 10 to send a temperature signal to the ADAM module and then compare this signal with the reading from the ADAM module If the reading value is different from the signal adjust the CJC value to improve it Note CJC cold junction sensor calibration only applies to the ADAM 4011 4011D 4018 4018M 5018 Figure 5 8...

Page 121: ... 5 11 Chapter 5 Analog Input Resistance Calibration Modules ADAM 4013 Figure 5 9 Resistance Calibration Analog Output Calibration 4 20 mA ADAM 4021 ADAM 5024 0 10V ADAM4016 Figure 5 10 Analog Output Calibration ...

Page 122: ...ctions on how to use the utility Overview COM port settings Search connected modules Module configuration Data monitor Download procedure Remote I O Integrated with HMI 5 3 1 Overview Main Menu The window utility consists of a toolbar on the top and a display area that shows forth the relevant information about the connected modules The utility s main toolbar is as shown below The main toolbar but...

Page 123: ...t ADAM 5511 and re execute the original program Download Transfer the selected program from PC to ADAM 5511 Delete Delete the selected program from ADAM 5511 Refresh Refresh the directory of ADAM 5511 5 3 2 Com port settings ADAM 5511 Utility will auto detect the com port in your PC when you start it up Figure 5 11 Auto detect COM port ...

Page 124: ...e 5 12 Setting the parameter of COM port Baud rate The communication speed baud rate can be configured from 9600 bps to 115 2 Kbps Timeout Timeout means the time limit for waiting a response after the system has issued a command If no response has been received when timeout has passed we ll see the Timeout message on the screen ...

Page 125: ...Search command it will search for any connected modules on network and display their data There are three ways to search for 1 Click the Toolbar button Figure 5 13 Click search button 2 Double click the left mouse button Figure 5 14 Double click left mouse button for search ...

Page 126: ...ogramming and Downloading 3 Click the tool menu and choose the Scan device command Figure 5 15 Choose Scan device command The detected modules on network will show on the display Figure 5 16 ADAM 5511 has been detected ...

Page 127: ...vides user a friendly environment As you click the selected ADAM 5511 it will detect all module inserted on board Figure 5 17 Auto detect module on board Select the specific module the status will appeal without any configu ration Figure 5 18 Module current status ...

Page 128: ...r 16 bits resolution module it scaled as 0 65535 In addition Windows Utility provides a powerful tool for user to read easily in engineer unit Just double click the left mouse button on the data field the scaling tool will pop up Select the Enable item and setting the Min Max value as the range of your engineer unit See figure5 19 Figure 5 19 Data scaling tool ...

Page 129: ...ser to force both digital and analog output without any programming Digital output Force ON OFF Select a digital output module and double click the specific point Figure 5 20 Double Click the specific point Execute force on off command via write coil function block Figure 5 21 Write coil function block ...

Page 130: ...log output Force value Select an analog output module and double click the specific point Figure 5 22 Select a specific analog point Execute force output value command via write coil function block Figure 5 23 Preset single register function block ...

Page 131: ... ADAM 5511 please stop each program then follow these steps Step 1 Click the download icon and select the specific program in your PC Figure 5 24 Select the specific file for download Step 2 Wait for the file transfer from PC to ADAM 5511 Figure 5 25 File transfer from PC to ADAM 5511 ...

Page 132: ...er there are some steps you need to follow Step 1 Configure ADAM 4000 Module Refer to chapter 5 2 Step 2 Edit Program Please add the below section of program into your executive program Note The address setting of ADAM 4000 module must be the same with your configuration in ADAM 4000 5000 Utility For this example we defined address 2 for ADAM 4011 address 3 for ADAM 4012 address 4 for ADAM 4013 ad...

Page 133: ...unsigned int Data11 Data12 Data13 Data14 Data17 Data18 Data52 Data21 1000 Data50 1 Data50i Data53l Data53h Data60 1 unsigned long lData80 char i printf Demo program of Remote ADAM 4XXX serier n ADAM_BuadRate_Setup unsigned long 9600 detect whether ADAM 4011 module addressed 2 exist in the network or not if InitADAM4011 2 FALSE ex11 1 else ex11 0 detect whether ADAM 4012 module addressed 3 exist in...

Page 134: ...if InitADAM4053 11 FALSE ex53 1 else ex53 0 if InitADAM4060 12 FALSE ex60 1 else ex60 0 if InitADAM4080 13 FALSE ex80 1 else ex80 0 printf I Ocardspresent n11 12 13 14 17 18 21 50 52 53 60 80 n printf 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ex11 ex12 ex13 ex14 ex17 ex18 ex21 ex53 ex60 ex80 while 1 Get4017 1 0 Data void Set4060 int ID void pValue int Bit int Size Clear_Mem_Buffer if ex11 Get4011 2 Data...

Page 135: ...7 printf d Data17 printf nAdam 4018 if ex18 for i 0 i 8 i Get4018 7 i Data18 printf d Data18 if ex21 Set4021 8 Data21 if ex50 Get4050 9 Data50i 0 AByte Set4050 9 Data50 0 AByte Data50 Data50 1 if Data50 256 Data50 1 if ex52 Get4052 10 Data52 0 AByte if ex53 ...

Page 136: ...ing Get4053 11 Data53l 0 AByte Get4053 11 Data53h 8 AByte if ex60 Set4060 12 Data60 0 AByte printf nAdam4060 d Data60 Data60 Data60 1 if Data60 8 Data60 1 if ex80 for i 0 i 4 i Get4080 13 i lData80 ADAMDelay 100000 if check_prog_stop exit 1 ...

Page 137: ...on When remote I O function applied in the application there must be two ADAM 4520 in addition One for PC monitoring and one for remote I O network RS 232 RS 485 ADAM 5511 1 ADAM 4000 Remote I O ADAM 4520 RS 485 232 Converter RS 232 RS 485 ADAM 5511 2 ADAM 4000 Remote I O ADAM 4520 RS 485 232 Converter RS 232 RS 485 ADAM 4520 RS 485 232 Converter PC ...

Page 138: ...ows Utility and download the executive program with remote I O function Figure 5 28 Download new executive program Run the executive program then click the specific 5511 again for search ADAM 4000 module Figure 5 29 Executive the program for ADAM 4000 monitoring ...

Page 139: ...uld be integrated with HMI via simple method Here is an integration example for ADAM 5511 and Fix 6 0 HMI software Step 1 Configure the Communication Network Define the communication setting of HMI thus ADAM 5511 could be detected and recognized on the network Start System configuration and select configure SCADA then select MB1 and click configure When MB1 Driver Configurator pop up click setup F...

Page 140: ...is a ADAM 5024 4 channel AO Module in slot 2 the address of this module should be 40017 40020 Note ADAM 5080 is a special 4 channel counter module The data type is designed as unsigned long When you insert an ADAM 5080 in slot 0 the address should be 40001 40003 40005 and 40007 Digital type of ADAM 5000 I O module Slot Position Address 0 40001 40008 1 40009 40016 2 40017 40024 3 40025 40032 Slot P...

Page 141: ...ote There is a limitation when you apply ADAM 4000 as remote I O The maximum of any mixed ADAM 4000 module is 32 nodes Node Number Address 0 41001 41008 1 41009 41016 2 41017 41024 3 41025 41032 31 41249 41256 Node Number Address 0 01001 01016 1 01017 01032 2 01033 01048 3 01049 01060 31 01497 01512 ...

Page 142: ... HMI software Just fill the table to develop the database for ADAM 5511 Figure 5 31 Database Setup Table of Fix software HMI software will create a database table automatically Figure 5 32 Database Table of Fix software After completed the database development it can be applied to various applications as your will ...

Page 143: ...6 Function Library Chapter ...

Page 144: ...n the compiled executable The smaller the linked libraries the smaller the compiled executable will be Note 1 These function libraries support BorlandTurbo C 3 0 for DOS only Note 2 Please included all necessary ADAM 5511 function libraries in your project file 6 2 Library Classification ADAM 5511 has five function libraries categorized according to usage Category A System Functions UTILITY LIB Ca...

Page 145: ... WDT_clear Set_NVRAM_Size Get_NVRAM_Size read_backup_ram write_backup_ram GetRTCtime SetRTCtime Get_NodeID Get_BoardID check_prog_stop read_user_ram write_user_ram Category B Communication Functions COMM LIB com_232_set_format com_232_install com_232_deinstall com_232_set_speed com_232_tx com_232_tx_string ...

Page 146: ...se_dtr com_232_raise_rts com_232_lower_rts com_232_set_break com_232_clear_break com_232_set_local_loopback com_232_clear_local_loopback com_232_enable_fifo com_232_disable_fifo com_232_read_scratch_register com_232_write_scratch_register com_232_set_line_params com_232_get_line_status com_232_get_modem_status RS232CallBackRoutine modem_command modem_initial modem_handup ...

Page 147: ...l CRC16 checksum Category C I O Module Access Functions IO LIB Get5050 Get5051 Get5052 Set5050 Set5056 Set5060 Set5068 Get501718 Get5017H Get5013 Init5024 Set5024 float scale Init5080 Get5080 GetRange5080 Clear_Counter Start_Stop_Counter ReadOverflowFlag SetInitCounterVal ...

Page 148: ...B ADAM_Baudrate_Setup InitADAM4011 InitADAM4011D InitADAM4012 InitADAM4013 InitADAM4014 InitADAM4017 InitADAM4018 InitADAM4021 InitADAM4050 InitADAM4052 InitADAM4053 InitADAM4060 InitADAM4080 InitADAM4080D Get4011 Get4012 Get4013 Get4014 Get4017 Get4018 Set4021 Set4050 Set4060 Get4050 ...

Page 149: ...rt_install port_deinstalled port_select reset_slot port_reset which_has_been_installed port_set_speed port_set_format port_disable_fifo port_enable_fifo port_carrier port _clear_break port _set_break port _clear_local_loopback port _set_local loopback port_get_line_status port_set_line_params port_get_modem_status port_get_modem_control_status ...

Page 150: ...lower_dtr port_raise_dtr port_raise_rts port_lower_rts modem_initial_90 modem_command_90 modem_command_state_90 modem_autoanswer_90 modem_dial_90 modem_handup_90 port_flush_rx port_flush_tx port_rx_error port_rx_ready char port_rx port_tx_empty port_tx port_tx_string ...

Page 151: ... ADAMdelay Syntax void ADAMdelay unsigned short msec Description Delays program operation by a specified number of milliseconds Parameter Description msec From0to65535 Returnvalue None Example void main void codes placed here by user delay 1 sec ADAMdelay 1000 codes placed here by user Remarks None ...

Page 152: ...nable void Description Clear watchdog timer Disable watchdog timer Enable watchdog timer Note When the watchdog timer is enabled it will have to be cleared at least once every 1 5 seconds The watchdog timer default value is disable Parameter Description None Returnvalue None Example void main int I WDT_enable For I 0 I 10 I ...

Page 153: ...ADAM 5511 6 11 Chapter 6 ADAMdelay 1000 WDT_clear WDT_disable Remarks None ...

Page 154: ...The unit is sectors each sector is 4 Kbytes in size Maximum size is 60 KB theoretically Parameter Description sector NV RAM size in 4 KB sectors from 1 to 15 sectors Returnvalue None Example void main sets NVRAM size to 60KB Set_NVRAM_Size 15 Remarks Maximum size is 60 KB theoretically Actual size available depends on the user s programming ...

Page 155: ...on Gets the battery backup RAM size The unit is sectors each sector is 4 KB in size Maximum size is 60 KB theoretically Parameter Description None Returnvalue sector Number of sectors NV RAM size is set to from 1 to 15 Example void main unsigned char sector sector Get_NVRAM_Size Remarks None ...

Page 156: ... in backup RAM at index address 60 KB total backup RAM index 0 61439 absolute addresses from 0x30000 0x3EFFF Parameter Description index From 0 to 61439 60 KB in total Returnvalue The single byte value in backup RAM at address index Example void main void unsigned char data put your codes here data read_backup_ram 500 Remarks None ...

Page 157: ...rameter Description index An index for data in the battery backup RAM from 0 to 61439 60 KB battery backup SRAM in total data A byte of data that the programmer wants to write to battery protected SRAM Returnvalue None Example void main unsigned char data 0x55 Writes the data 0x55 into battery backup memory index 10 write_backup_RAM 10 data Remarks None ...

Page 158: ...r Description Time RTC_sec the second RTC_min the minute RTC_hour the hour RTC_day the day RTC_week day of the week RTC_month the month RTC_year the year RTC_century the century Returnvalue The value requested by the user Example void main void printf n Century d GetRTCtime RTC_century printf n Year d GetRTCtime RTC_year printf n month d GetRTCtime RTC_month printf n weekday d GetRTCtime RTC_week ...

Page 159: ...ADAM 5511 6 17 Chapter 6 printf n day d GetRTCtime RTC_day printf n hour d GetRTCtime RTC_hour printf n min d GetRTCtime RTC_min printf n sec d GetRTCtime RTC_sec Remarks None ...

Page 160: ...e clock Parameter Description Time RTC_sec the second RTC_min the minute RTC_hour the hour RTC_day the day RTC_week day of the week RTC_month the month RTC_year the year RTC_century the century data New contents Returnvalue None Example void main unsigned char sec 0 min 0 hour 12 set current time 12 00 00 SetRTCtime RTC_sec sec SetRTCtime RTC_min min ...

Page 161: ...ADAM 5511 6 19 Chapter 6 SetRTCtime RTC_hour hour Remarks None ...

Page 162: ...escription Gets the DIP switch number of the ADAM 5511 controller Parameter Description None Returnvalue The DIP switch number of the ADAM 5511 controller Example unsigned char SystemNodeNumber void main SystemNodeNumber Get_NodeID If SystemNodeNumber 0x15 put your code in Here else ...

Page 163: ...ADAM 5511 6 21 Chapter 6 printf nNode number Error Remarks None ...

Page 164: ...ontroller slot Parameter Description Int Board The slot number of an ADAM 5511 from 0 to 3 Returnvalue The return values are Example unsigned char IOModuleName unsigned char SlotNumber void main void Read IO module name in Slot 0 SlotNumber 0 IOModuleName Get_BoardID SlotNumber If IOModuleName ADAM5051_ID IO Board is current put your code in Here else ...

Page 165: ...ADAM 5511 6 23 Chapter 6 printf nThe IO Board is NOT ADAM5051 printf nPlease Check your system setup Remarks None ...

Page 166: ...am stop command 1 detect program stop command and stop the executive program Example void main check program stop command If the command is detected stop this executive program check_prog_stop Remarks The program stop command is come from the stop program function icon of ADAM 5511 Windows Utility User have to add this library in the end of each program thus the stop program function icon will tak...

Page 167: ...unsigned int index Description Read value from user RAM Parameter Description Index The index of Modbus memory address 0 511 mapping to Modbus address 42001 42512 Returnvalue The value in the specific address Example void main Read address 42002 read_user_ram 1 Remarks None ...

Page 168: ...ption Write value to user RAM Parameter Description Index The index of Modbus memory address 0 511 mapping to Modbus address 42001 42512 data The value you would like to write into the address Returnvalue None Example void main unsigned int Value Read address 42004 Vaule read_user_ram 3 Write value into address 42001 ...

Page 169: ...ADAM 5511 6 27 Chapter 6 write_user_ram 0 Remarks None ...

Page 170: ...tion Sets the parameters data length parity and stop bits of the RS 485 port Parameter Description data_length Valid range 5 to 8 bits for one character parity 0 no parity 1 odd parity 2 even parity stop_bit 1 1 stop bit 2 2 stop bits Returnvalue None Example void main Sets the data format of the RS 232 port to 8 bit data length no parity 1 stop bit com_232_set_format 8 0 1 ...

Page 171: ...ADAM 5511 6 29 Chapter 6 Remarks None ...

Page 172: ...rrupt vector to the interrupt service routine Parameter Description IsCustomerDefine Communication interrupt status Returnvalue 0 Installation success 1 Installation fail Example void main unsigned char status IsCustomDefine 0 rddata If you want to process communication interrupt pleases set IsCus tomDefine to 1 otherwise set to 0 status com_232_install IsCustomDefine if status 0 printf nRS232 por...

Page 173: ...ormat 8 0 1 printf nBR 9600 8 bit even stop bit 1 else printf nRS232 port install failed This is a very important library As you using RS 232 port please remember to add it in the end of your program RS232CallBackRoutine unsigned char rddata your interrupt program Remarks None ...

Page 174: ...ssor for use by the RS 232 port and sets the interrupt vector to the interrupt service routine Parameter Description None Returnvalue integer Installation status 0 Successful installation 1 Drivers are already installed Example void main int status status com_232_install if status 0 printf n The allocation of COM2 port RS 232 is OK else exit 0 ...

Page 175: ...ADAM 5511 6 33 Chapter 6 Remarks None ...

Page 176: ...sor for use by the RS 232 port without changing the baud rate or DTR Parameter Description None Returnvalue None Example void main Releases the interrupt register for use by the RS 232 port com_232_deinstall Remarks This function MUST be called before returning to DOS The interrupt vector will not be pointed to the interrupt service routine again ...

Page 177: ...com_232_set_speed unsigned long speed Description Sets the baud rate of the RS 232 port Parameter Description speed The baud rate value Returnvalue None Example void main Sets the baud rate of the RS 232 port to 9600bps com_232_set_speed 9600L Remarks None ...

Page 178: ...function sends a single character to the Tx pin of the RS 232 port waits until the last bit is sent to the remote terminal and then sets the RTS pin to OFF Parameter Description c The character you would like to send Returnvalue None Example void main com_232_tx 0x03 com_232_tx Remarks None ...

Page 179: ...oid com_232_tx_string char s Description com_232_tx_string sends a string by calling com_232_tx repeatedly Parameter Description s The string you would like to send Returnvalue None Example void main com_232_tx_string This is a string test Remarks None ...

Page 180: ...r com_232_rx void Description Returns the next character from the receiving buffer or a NULL character 0 if the buffer is empty Parameter Description None Returnvalue c The return character Example void main char C232data C232data com_232_rx Remarks None ...

Page 181: ...ADAM 5511 6 39 Chapter 6 com_232_tx_ready Syntax int com_232_tx_ready void Description Check data transmitted already Parameter Description None Return Value 0 data not ready 1 data ready Remarks None ...

Page 182: ...escription Returns the status of the COM2 RS 232 transmitting and receiving queues Parameter Description None Returnvalue Com_232_rx_empty returns TRUE if the receiving queue is empty Com_232_tx_empty returns TRUE if the transmitting queue is empty Example void main unsigned char data if com_232_rx_empty FALSE data com_232_rx ...

Page 183: ...ADAM 5511 6 41 Chapter 6 Remarks The COM2 RS 232 transmitter uses polling action not interrupt action Its queue is always empty ...

Page 184: ...tx void Description COM2 RS 232 buffer flusher Initializes the transmitting and receiving queues to their empty states Parameter Description None Returnvalue None Example void main com_232_flush_rx com_232_flush_tx Remarks The COM2 RS 232 transmitter uses polling action not interrupt action Its buffer is always flushed ...

Page 185: ... Description Detects the carrier signal of 232 port Parameter Description None Returnvalue TRUE If a carrier is present FALSE Nocarrier Example void main void if com_232_carrier TRUE Telephone carrier signal presented at 232 port put your associate program here Remarks None ...

Page 186: ...ntax void com_232_lower_dtr void void com_232_raise_dtr void Description Sets 232 port to DTR for low signal Sets 232 port to DTR for high signal Parameter Description None Returnvalue None Example None Remarks Please refer to the 16C550 UART register document Appendix B ...

Page 187: ...om_232_raise_rts void Description Sets 232 port to RTS for low signal Sets 232 port to RTS for high signal Parameter Description None Returnvalue None Example void main void handshaking with external serial device com_232_lower_rts generates a signal of 500 ms low trigger ADAMdelay 500 com_232_raise_rts ...

Page 188: ...6 46 ADAM 5511 Function Library Remarks Please refer to the 16C550 UART register document Appendix B ...

Page 189: ...ax void com_232_clear_break void void com_232_set_break void Description Sets 232 port to clear BREAK signal Sets 232 port to send BREAK signal Parameter Description None Returnvalue None Example None Remarks Please refer to the 16C550 UART register document Appendix B ...

Page 190: ...ar_local_loopback void void com_232_set_local_loopback void Description Sets 232 port to disable loopback function for diagnostic Sets 232 port to enable loopback function for diagnostic Parameter Description None Returnvalue None Example None Remarks Please refer to the 16C550 UART register document Appendix B ...

Page 191: ...le_fifo void Description Sets 232 port to disable fifo receiving trigger level 1 4 8 14 Sets 232 port to enable fifo receiving trigger level 1 4 8 14 Parameter Description None Returnvalue 0 success 1 fifo not available 10 failure to enable Example None Remarks Please refer to the 16C550 UART register document Appendix B ...

Page 192: ...alue Description Reads from COM port scratch register Writes to COM port scratch register Parameter Description value Integer value one byte in length as signed by user from the range 0 to FF Returnvalue Please refer to the 16C550 UART register document Appendix A Example None Remarks This byte is reserved for the user Please refer to the 16C550 UART register document Appendix A ...

Page 193: ...ms unsigned lineparams int com_232_get_modem_status void Description Reads from COM port line control register Writes to COM port line control register Reads from COM port modem status register Parameter Description lineparams Please refer to the UART specifications Returnvalue Please refer to the 16C550 UART register document Appendix A Example None Remarks None ...

Page 194: ...ine applied for RS 232 port Parameter Description rddata default character Returnvalue None Example void main unsigned char status IsCustomDefine 0 rddata status com_232_install IsCustomDefine if status 0 printf nRS232 port intall ok com_232_set_speed unsigned long 9600 com_232_set_format 8 0 1 printf nBR 9600 8 bit even stop bit 1 ...

Page 195: ...nterrupt program Remarks This is a very important library As you using RS 232 port please remember to add it in the end of your program modem_command Syntax void modem_command char cmdstr Description Sends an AT command string to the modem For details refer to the AT command document provided by the manufacturer ...

Page 196: ...6 54 ADAM 5511 Function Library Parameter Description cmdstr Specifies command string refer to AT command string Returnvalue None Example void main void initializemodem modem_command atz Remarks None ...

Page 197: ...511 system s con struction the modem can only be connected to COM1 This resets the modem to the initial state The command has the same effect as sending the ASCII command atz to the modem Parameter Description None Returnvalue None Example void main you need to initialize COM1 modem_initial put your modem function Remarks None ...

Page 198: ...void modem_handup void Description Sets the modem to hand up the telephone The command has the same effect as sending the ASCII command atho to the modem Parameter Description None Returnvalue None Example void main close phone modem_handup Remarks None ...

Page 199: ...utoanswer Syntax void modem_autoanswer void Description Sets up modem to auto answer phone calls Parameter Description None Returnvalue None Example void main set modem auto answer and waiting phone call modem_autoanswer Remarks None ...

Page 200: ... data mode to command mode The modem will delay at least 3 seconds before switching back to command mode This command has the same effect as sending the ASCII command to the modem Parameter Description None Returnvalue None Example void main receiving data from modem so modem is in transfer data mode modem_command_state now you can send an AT command string to modem Remarks None ...

Page 201: ...ects modem to connect to the specified telephone number Parameter Description telenum The phone number you would like to dial out Returnvalue None Example void main COM port and modem initial OK set the dial out number as 886222184567 modem_dial 886222184567 waiting for link Remarks None ...

Page 202: ...value of the string data_p Parameter Description data_p The string which you want to calculate CRC code length The length of string data_p Returnvalue The CRC16 code Example unsigned char String this is a test CRC16 void main unsigned int code code CRC16 String strlen String printf n The string s CRC16 code d String Code Remarks None ...

Page 203: ... Description buffer The string for which a user wants to calculate the checksum len The length of the data array in the buffer seed A seed value added into the checksum for the purpose of calculation or security Returnvalue The checksum of the data array buffer Example unsigned char String this is a test CheckSum void main void unsigned int code code checksum String strlen String 0 Remarks None ...

Page 204: ...oid Get5052 int Board int Bit int Size void pValue Description Reads the data value in an I O module Parameter Description Board ADAM 5511 slot number from 0 to 3 Bit See Size parameter below Size ABit AByte AWord IfSize ABit Bit 0 15 pin0 pin15 If Size AByte Bit 0 for Low Byte data Bit 8 for High Byte data If Size AWord Bit does not care Always word data pValue The value returned Returnvalue None...

Page 205: ...er 6 unsigned char Bdata unsigned int Wdata Slot0 pin13 data 0 or 1 Get5051 0 13 ABit Bdata Slot2 pin0 pin7 Bdata Low Byte data Get5051 2 0 AByte Bdata Slot3 pin0 pin15 Wdata Word data Get5051 3 0 AWord Wdata Remarks None ...

Page 206: ... Bit int Size Description Sets the digital output for ADAM 5050 ADAM 5056 ADAM 5060 and ADAM 5068 modules to the specified values Parameter Description pValue The digital value specified by the user to be output Board 0 to 3 Slot0 Slot3 Bit See Size parameter below Size ABit AByte AWord If Size ABit Bit 0 15 pin0 pin15 If Size AByte Bit 0 is Low Byte data Bit 8 is High Byte data If Size AWord Bit ...

Page 207: ...ADAM 5511 6 65 Chapter 6 unsigned char Bitdata 1 Output 1 to slot 0 pin 13 Set5056 Bitdata 0 13 ABit Remarks None ...

Page 208: ...Board 0 3 for Slot0 Slot3 Channel 0 6 for ADAM 5018 0 7 for ADAM 5017 pValue The value returned Note The pValue for ADAM 5017 and ADAM 5018 must be interpreted in reference to the range input that was set during module configuration Returnvalue None Example void main int value j One ADAM 5018 ADAM 5017 module on slot 3 of the ADAM 5511 printf Get ADAM5018 or ADAM5017 n ...

Page 209: ...ADAM 5511 6 67 Chapter 6 for j 0 j 7 j Get ADAM 5018 data and range from channel 0 to 6 on slot 3 of ADAM 5511 Get501718 3 j value Remarks None ...

Page 210: ... ADAM 5017H module Parameter Description Board 0 3 for Slot0 Slot3 Channel 0 7 for ADAM 5017 pValue The value returned Returnvalue None Example void main int value j One ADAM 5017H module on slot 3 of the ADAM 5511 printf Get ADAM5017H n for j 0 j 8 j Get ADAM 5017H data from channel 0 to 7 on slot 3 of ADAM 5511 Get5017H 3 j value ...

Page 211: ...ADAM 5511 6 69 Chapter 6 Remarks None ...

Page 212: ...eter Description Board 0 3 for Slot0 Slot3 Channel 0 2 for ADAM 5013 pValue The value returned Note The pValue for ADAM 5013 must be interpreted in reference to the input range that was set during module configuration Return Value None Example void main int value j One ADAM 5013 module on slot 0 of the ADAM 5511 printf Get ADAM 5013 Value n for j 0 j 3 j ...

Page 213: ...ADAM 5511 6 71 Chapter 6 Get ADAM 5013 data and range from channel 0 to 2 on slot 0 of ADAM 5511 Get5013 0 j value Remarks None ...

Page 214: ...output values into each of the modules four chan nels Parameter Description ch0_val The initial value output by channel 0 ch1_val The initial value output by channel 1 ch2_val The initial value output by channel 2 ch3_val The initial value output by channel 3 Return Value None Example void main initializes outputs of all channels of the ADAM 5024 in slot 0 to output a value of 0 Init5024 0 0 0 0 0...

Page 215: ...iption Auto scaling the value from source range to destination range Parameter Description val the original value SrcHi the high limit of original range SrcLow the low limit of original range DestHi the high limit of target range DestLow the low limit of target range Return Value The value after scaling Remarks None ...

Page 216: ...id Set5024 void pValue int Board int Channel Description Specifies the output of a channel of a selected ADAM 5024 Parameter Description pValue The value set for analog output Board Slot number 0 3 Channel AO channel 0 3 Return Value None Remarks None ...

Page 217: ...nit5080 int slotno Description Initial ADAM 5080 Module Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 Return Value None Example void main initializes the ADAM 5080 Module in slot 0 init5080 0 Remarks None ...

Page 218: ...n ADAM 5080 Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 channel The specific channel in ADAM 5080 0 3 pValue The Value returned Return Value The Value from the specific channel Example void main unsigned long int aiv 4 int i for i 0 i 4 i get each value from ADAM 5080 in slot 0 Get5080 0 i aiv i ...

Page 219: ...ADAM 5511 6 77 Chapter 6 Remarks None ...

Page 220: ...GetRange5080 Syntax void GetRange5080 int Board void pValue Description Reads the counter range of ADAM 5080 module Parameter Description Board 0 3 for Slot0 Slot3 pValue The counter range code returned Return Value None Remarks None ...

Page 221: ...t the current counter value to its initial value Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 channel The specific channel in ADAM 5080 0 3 Return Value None Example void main reset ADAM 5080 channel 0 counter value in slot 0 int Clear_Counter 0 0 Remarks None ...

Page 222: ...op the specific counter Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 channel The specific channel in ADAM 5080 0 3 Start 1 Stop 0 Return Value None Example void main int Start 1 Stop 0 Start counter ids Start_Stop_Counter 0 0 1 if the returned value is 0 print out the start fail message if ids 0 ...

Page 223: ...ADAM 5511 6 81 Chapter 6 printf start failed n Remarks None ...

Page 224: ...h max count limit Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 pValue The value returned Return Value The overflow value returned Example void main char overflag_value 4 int i ReadOverflowFlag 0 overflag_value 0 for i 0 i 4 i printf channel d over_flag_value d n i overflag_value i Remarks None ...

Page 225: ... Set initial counter value between 0 to 4 294 967 295 Parameter Description slotno The specific slot inserted with ADAM 5080 0 3 or slot0 slot3 channel The specific channel in ADAM 5080 0 3 Return Value None Example void main unsigned long int i i 1000 set 1000 to the initial counter value SetInitCounterVal 0 0 i Remarks None ...

Page 226: ...id ADAM_BaudRate_Setup unsigned long speed Description Set the baud rate of ADAM 4000 Remote I O Network Parameter Description speed Baud Rate Setting 1200 2400 4800 9600 19200 38400 57600 115200 Return Value None Example void main set the baud rate of ADAM 4000 I O as 9600bps ADAM_BaudRate_Setup 9600 Remarks None ...

Page 227: ...Description Initializes the network ID and check Sum for ADAM 4011 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4011 as ID 2 Check Sum False initADAM4011 2 False Remarks None ...

Page 228: ...En Description Initializes the network ID and check Sum for ADAM 4011D module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4011D as ID 2 Check Sum False initADAM4011D 2 False Remarks None ...

Page 229: ...Description Initializes the network ID and check Sum for ADAM 4012 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4012 as ID 3 Check Sum False initADAM4012 3 False Remarks None ...

Page 230: ...En Description Initializes the network ID and check Sum for ADAM 4013 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4013 as ID 4 Check Sum False initADAM4013 4 False Remarks None ...

Page 231: ...Description Initializes the network ID and check Sum for ADAM 4014 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4014 as ID 5 Check Sum False initADAM4014 5 False Remarks None ...

Page 232: ...En Description Initializes the network ID and check Sum for ADAM 4017 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4017 as ID 6 Check Sum False initADAM4017 6 False Remarks None ...

Page 233: ...Description Initializes the network ID and check Sum for ADAM 4018 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4018 as ID 7 Check Sum False initADAM4018 7 False Remarks None ...

Page 234: ...En Description Initializes the network ID and check Sum for ADAM 4021 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4021 as ID 8 Check Sum False initADAM4021 8 False Remarks None ...

Page 235: ...Description Initializes the network ID and check Sum for ADAM 4050 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4050 as ID 9 Check Sum False initADAM4050 9 False Remarks None ...

Page 236: ...n Description Initializes the network ID and check Sum for ADAM 4052 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4052 as ID 10 Check Sum False initADAM4052 10 False Remarks None ...

Page 237: ...escription Initializes the network ID and check Sum for ADAM 4053 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4053 as ID 11 Check Sum False initADAM4053 11 False Remarks None ...

Page 238: ...n Description Initializes the network ID and check Sum for ADAM 4060 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4060 as ID 12 Check Sum False initADAM4060 12 False Remarks None ...

Page 239: ...escription Initializes the network ID and check Sum for ADAM 4080 module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4080 as ID 13 Check Sum False initADAM4080 13 False Remarks None ...

Page 240: ...n Description Initializes the network ID and check Sum for ADAM 4080D module Parameter Description ID Node number on the network 1 32 ChkSumEn Check Sum Enable True False Return Value None Example void main initialize ADAM 4080D as ID 13 Check Sum False initADAM4080D 13 False Remarks None ...

Page 241: ...lue from ADAM 4011 Module Parameter Description ID Node number on the network 1 32 pValue The value returned Return Value None Example void main unsigned int data11 initialize ADAM 4011 as ID 2 Check Sum False initADAM4011 2 False get value from ADAM 4011 Get4011 2 data11 printf nAdam 4011 d data11 ...

Page 242: ...6 100 ADAM 5511 Function Library Remarks None ...

Page 243: ...alue from ADAM 4012 Module Parameter Description ID Node number on the network 1 32 pValue The value returned Return Value None Example void main unsigned int data12 initialize ADAM 4012 as ID 3 Check Sum False initADAM4012 3 False get value from ADAM 4012 Get4012 3 data12 printf nAdam 4012 d data12 ...

Page 244: ...6 102 ADAM 5511 Function Library Remarks None ...

Page 245: ...alue from ADAM 4013 Module Parameter Description ID Node number on the network 1 32 pValue The value returned Return Value None Example void main unsigned int data13 initialize ADAM 4013 as ID 4 Check Sum False initADAM4013 4 False get value from ADAM 4013 Get4013 4 data13 printf nAdam 4013 d data13 ...

Page 246: ...6 104 ADAM 5511 Function Library Remarks None ...

Page 247: ...alue from ADAM 4014 Module Parameter Description ID Node number on the network 1 32 pValue The value returned Return Value None Example void main unsigned int data14 initialize ADAM 4014 as ID 5 Check Sum False initADAM4014 5 False get value from ADAM 4014 Get4014 5 data14 printf nAdam 4014 d data14 ...

Page 248: ...6 106 ADAM 5511 Function Library Remarks None ...

Page 249: ...ADAM 4017 Module Parameter Description ID Node number on the network 1 32 Channel channel number of ADAM 4017 module 0 8 pValue The value returned Return Value None Example void main unsigned int data17 initialize ADAM 4017 as ID 6 Check Sum False initADAM4017 6 False get value from ADAM 4017 channel 3 Get4017 6 3 data17 ...

Page 250: ...6 108 ADAM 5511 Function Library printf nAdam 4017 channel3 d data17 Remarks None ...

Page 251: ...ADAM 4018 Module Parameter Description ID Node number on the network 1 32 Channel channel number of ADAM 4018 module 0 7 pValue The value returned Return Value None Example void main unsigned int data18 initialize ADAM 4018 as ID 7 Check Sum False initADAM4018 7 False get value from ADAM 4018 channel 3 Get4018 7 3 data18 ...

Page 252: ...6 110 ADAM 5511 Function Library printf nAdam 4018 channel3 d data18 Remarks None ...

Page 253: ...ription Set Value to ADAM 4021 Module Parameter Description ID Node number on the network 1 32 pValue The setting value Return Value None Example void main unsigned int data21 1000 initialize ADAM 4021 as ID 8 Check Sum False initADAM4021 8 False set value to ADAM 4021 Set4021 8 data21 ...

Page 254: ...6 112 ADAM 5511 Function Library Remarks None ...

Page 255: ...60 modules to the specified values Parameter Description ID Node number on the network 1 32 pValue The digital value specified by the user to be output Bit See Size parameter below Size ABit AByte AWord If Size ABit Bit 0 15 pin0 pin15 If Size AByte Bit 0 is Low Byte data Bit 8 is High Byte data If Size AWord Bit does not care always word data Return Value None Example void main unsigned char Bitd...

Page 256: ...6 114 ADAM 5511 Function Library initialize ADAM 4050 as ID 9 Check Sum False initADAM4050 9 False Output 1 to slot 0 pin 13 Set4050 9 Bitdata 13 ABit Remarks None ...

Page 257: ...it int Size Description Reads the data value in an I O module Parameter Description ID Node number on the network 1 32 Bit See Size parameter below Size ABit AByte AWord IfSize ABit Bit 0 15 pin0 pin15 If Size AByte Bit 0 for Low Byte data Bit 8 for High Byte data If Size AWord Bit does not care Always word data pValue The value returned Returnvalue None Example void main unsigned char Bdata ...

Page 258: ...6 116 ADAM 5511 Function Library initialize ADAM 4050 as ID 9 Check Sum False initADAM4050 9 False Get value from ADAM 5050 pin13 data 0 or 1 Get5050 9 Bdata 13 ABit Remarks None ...

Page 259: ...M 4080 Module Parameter Description ID Node number on the network 1 32 Channel channel number of ADAM 4017 module 0 8 pValue The value returned Return Value None Example void main unsigned long Idata80 initialize ADAM 4080 as ID 13 Check Sum False initADAM4080 13 False get value from ADAM 4080 channel 2 Get4080 13 2 Idata80 ...

Page 260: ...6 118 ADAM 5511 Function Library printf nAdam 4080 channel2 d Idata80 Remarks None ...

Page 261: ...he current counter value to its initial value Parameter Description ID Node number on the network 1 32 channel The specific channel in ADAM 4080 0 3 Return Value None Example void main initialize ADAM 4080 as ID 13 Check Sum False initADAM4080 13 False reset ADAM 4080 channel 0 Clear_4080_Counter 13 0 Remarks None ...

Page 262: ...OrStop Description Start or stop the specific counter Parameter Description ID Node number on the network 1 32 channel The specific channel in ADAM 5080 0 3 Start 1 Stop 0 Return Value None Example void main int Start 1 Stop 0 initialize ADAM 4080 as ID 13 Check Sum False initADAM4080 13 False Start channel 0 counter ...

Page 263: ...ADAM 5511 6 121 Chapter 6 ids Start_Stop_4080_Counter 13 0 1 if the returned value is 0 print out the start fail message if ids 0 printf start failed n Remarks None ...

Page 264: ...6 122 ADAM 5511 Function Library This page is blank ...

Page 265: ... drivers Syntax int port_install int portno Parameter Description portno The specified port number Return Value 0 first time install and install completely 4 not first time install but install completely 5 portno error 6 no ADAM5090 Module in this slot Port Slot Slot 0 Slot 1 Slot 2 Slot 3 Port 1 1 11 21 31 Port 2 2 12 22 32 Port 3 3 13 23 33 Port 4 4 14 24 34 ...

Page 266: ... Name Deinstalled Port Description Uninstalled the communication drivers completely Syntax int port_deinstalled int portno Parameter Description portno The specified port number Return Value 0 deinstall success 1 deinstall fail ...

Page 267: ...4 ADAM 5511 Function Library Name Select Working Port Description Select a specified port for work Syntax void port_select int portno Parameter Description portno The specified port number Return Value None ...

Page 268: ... Name Reset Slot Description Reset specified slot Syntax int reset_slot int slotno Parameter Description slotno The slot you would like to reset 0 3 Return Value None Example void main reset all port in the slot 0 reset_slot 0 ...

Page 269: ...6 126 ADAM 5511 Function Library Name Reset Port Description Reset specified port Syntax void port_reset int portno Parameter Description portno The specified port number Return Value None ...

Page 270: ...port number Return Value Port mask which has been installed EX 0x2353 0010 0011 0101 0011B The port01 02 11 13 21 22 32 have been installed 0x0082 0000 0000 1000 0010B The port02 14 have been installed Example void main int Flag here we install port1 12 23 port_install 1 port_install 12 port_install 23 set flat as the return value Flag which_has_been_install Flagmustbe0000 0100 0010 0001B ...

Page 271: ...ription portno The specified port number long speed 4800L 9600L 19200L 38400L 115200L Return Value None Example void main here we install port1 2 port_install 1 port_install 2 select working port1 and set the communication rate to 38400bps port_select 1 port_speed 1 38400L select working port2 and set the communication rate to 9600bps port_select 2 port_speed 2 9600L ...

Page 272: ...ortno int data_length int parity int stop_bit Parameter Description portno The specified port number data length 5 8 parity 0x00 no parity 0x01 odd parity 0x02 even parity stop bit 0x01 1 stop bit 0x02 2 stop bits Return Value None Example void main port_install 1 port_select 1 port_speed 1 9600L set data format Data Length 8 Parity None Stop Bit 1 port_set_format 1 8 0 1 ...

Page 273: ...et specified port to enable FIFO Syntax void port_disable_fifo int portno int port_enable_fifo int portno Parameter Description portno The specified port number Return Value Disable FIFO None Enable FIFO 0x00 FIFO enable success 0x01 FIFO not available 0x04 portno error Example void main port_install 1 port_set_format 1 8 0 1 enable port1 FIFO to 128 byte port_enable_fifo 1 ...

Page 274: ...int port_carrier int portno Parameter Description portno The specified port number Return Value 0 no carrier been detected or bad command or parameter 1 detect carrier Example void main port_install 1 port_enable_fifo 1 if port1 detected carrier print out the message if port_carrier 1 printf n port1 detect carrier ...

Page 275: ...K signal Set specified port to send BREAK signal Syntax void port_clear_break int portno void port_set_break int portno Parameter Description portno The specified port number Return Value None Example void main port_install 1 port_enable_fifo 1 set port1 to clear break signal port_clear_break 1 or port_set_break 1 ...

Page 276: ...to enable loopback function for diagnostic Syntax void port_clear_local_loopback int portno void port_set_local_loopback int portno Parameter Description portno The specified port number Return Value None Example void main port_install 1 port_enable_fifo 1 set port1 to enable loopback function for diagnostic port_set_local_loopback 1 or port_clear_local_loopback 1 ...

Page 277: ...t portno int port_set_line_params int portno int lineparams Parameter Description portno The specified port number lineparams Line control register parameter see UART Register Description Table Return Value port_get_line_status 0x00XX LSR value 0xFF00 bad command or parameter port_set_line_params 0x00 write success 0x01 LCR read back error 0xFE00 LCR write not able 0xFF00 bad command or parameter ...

Page 278: ...3 port_set_line_status 1 LCR_Params UART Register Description Table Register Name Description Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LSR Line Status Register Data Error Tx Empty THR Empty Rx Break Framing Error Parity Error Overrun Error RxRDY LCR Line Control Register divisor latch access Tx Break Force parity odd even parity Parity enable Number of stop bit data length bits 1 0 ...

Page 279: ...o The specified port number Return Value 0x00XX modem status 0xFF00 bad command or parameter Example void main int MSR_Value port_install 1 port_enable_fifo 1 get MSR value MSR_Value port_get_modem_status 1 UART Register Description Table Register Name Description Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 MSR Modem Status Register DCD RI DSR CTS Delta DCD Trailing RI edge Delta DSR Delta CTS ...

Page 280: ...ntax int port_get_modem_control_status int portno int port_set_modem_control_params int portno int MCRparams Parameter Description portno The specified port number MCRparams Modem control register parameter see UART Register Description Table Return Value ReadMCR 0x00XX modem status 0xFF00 bad command or parameter WriteMCR 0x0000 write MCR success 0x0001 read back error 0xFF00 bad command or param...

Page 281: ...MCR_Value port_get_modem_control_status 1 MCR value must be 3 UART Register Description Table Register Name Description Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LSR Line Status Register Data Error Tx Empty THR Empty Rx Break Framing Error Parity Error Overrun Error RxRDY LCR Line Control Register divisor latch access Tx Break Force parity odd even parity Parity enable Number of stop bit data length...

Page 282: ...ort DTR low Set specified port DTR high Syntax void port_lower_dtr int portno void port_raise_dtr int portno Parameter Description portno The specified port number Return Value None Example void main port_install 1 set port1 DTR low port_lower_dtr 1 set port1 DTR high port_raise_dtr 1 ...

Page 283: ...d port RTS high Set specified port RTS low Syntax void port_raise_rts int portno void port_lower_rts int portno Parameter Description portno The specified port number Return Value None Example void main port_install 1 set port1 RTS low port_lower_rts 1 set port1 RTS high port_raise_rts 1 ...

Page 284: ...ADAM 5511 6 141 Chapter 6 Name Modem Initial Description Set modem to initial status Syntax modem_initial_90 int portno parameter Description portno The specified port number Return Value None ...

Page 285: ...Library Name Send Modem AT Command Description Send AT command string to the modem Syntax modem_command_90 int portno char cmdstr parameter Description portno The specified port number cmdstr AT command string Return Value None ...

Page 286: ... 5511 6 143 Chapter 6 Name Set Modem Command Mode Description Set modem to command mode Syntax void modem_command_state_90 int portno parameter Description portno The specified port number Return Value None ...

Page 287: ...511 Function Library Name Set Modem Autoanswer Description Set up modem to auto answer phone calls Syntax void modem_autoanswer_90 int portno parameter Description portno The specified port number Return Value None ...

Page 288: ...ax void modem_dial_90 int portno char telnumber parameter Description portno The specified port number telnumber The telephone number you would like to dial out Return Value None Example void main port_install 1 initial modem for port1 modem_initial_90 1 set the dial out number as 1234 5678 modem_dial_90 1 12345678 ...

Page 289: ...6 ADAM 5511 Function Library Name Han up Modem Description Set modem to hand up the telephone Syntax void modem_handup_90 int portno parameter Description portno The specified port number Return Value None ...

Page 290: ... 6 147 Chapter 6 Name Rx Flush Tx Flush Description Flush Rx or Tx FIFO Syntax void port_flush_rx int portno void port_flush_tx int portno parameter Description portno The specified port number Return Value None ...

Page 291: ...rx_error int portno Parameter Description portno The specified port number Return Value 0 no error 0x00XX receive error and return LSR value Example void main int Err_Value port_install 1 get error check value if error print out the message Err_Value port_rx_error 1 If Err_Value printf n Rx Error The LSR value X Err_Value ...

Page 292: ...9 Chapter 6 Name Ready Check Description Check received data in port FIFO already Syntax int port_rx_ready int portno Parameter Description portno The specified port number Return Value 0 data not ready 1 data ready ...

Page 293: ...haracter from specific port Syntax char port_rx int portno Parameter Description portno The specified port number Return Value Character Example void main char C port_install 1 if port1 FIFO receive data read a character and print it out If port_rx_ready 1 C port_rx 1 printf n C C ...

Page 294: ...ty Check Description Return the status of the specified port transmit queues Syntax int port_tx_empty int portno Parameter Description portno The specified port number Return Value 0 not empty 1 FIFO empty 2 FIFO and Transmitting empty ...

Page 295: ...ified port Syntax void port_tx int portno char c Parameter Description portno The specified port number c The character you would like to send Return Value None main char character port_installed 1 check whether FIFO empty or not if empty send a character if port_tx_empty 1 character a port_tx 1 character ...

Page 296: ...y Syntax void port_tx_string int portno char s Parameter Description portno The specified port number s the string you would like to send Return Value None main char string port_installed 1 check whether FIFO empty or not if empty send a string if port_tx_empty 1 string abcde port_tx_string 1 string ...

Page 297: ...A COM Port Register Structure Appendix ...

Page 298: ... is the Divisor Latch Access Bit bit 7 of BASE 3 BASE 0 Receiver buffer register when DLAB 0 and the operation is a read BASE 0 Transmitter holding register when DLAB 0 and the operation is write BASE 0 Divisor latch bits 0 7 when DLAB 1 BASE 1 Divisor latch bits 8 15 when DLAB 1 Bytes BASE 0 and BASE 1 together form a 16 bit number the divisor which determines the baud rate Set the divisor as fol...

Page 299: ... transmit and receive FIFOs bit 1 Clear contents of receive FIFO bit 2 Clear contents of transmit FIFO bits 6 7 Set trigger level for receiver FIFO interrupt BASE 3 Line Control Register LCR bit 0 Word length select bit 0 bit 1 Word length select bit 1 bit 2 Number of stop bits bit 3 Parity enable bit 4 Even parity select bit 5 Stick parity bit 6 Set break bit 7 Divisor Latch Access Bit DLAB Bit 7...

Page 300: ...4 Break interrupt bit 5 Transmitter holding register empty bit 6 Transmitter shift register empty bit 7 At least one parity error framing error or break indication in the FIFO BASE 6 Modem Status Register MSR bit 0 Delta CTS bit 1 Delta DSR bit 2 Trailing edge ring indicator bit 3 Delta received line signal detect bit 4 CTS bit 5 DSR bit 6 RI bit 7 Received line signal detect BASE 7 Temporary data...

Page 301: ...B Data Formats and I O Ranges Appendix ...

Page 302: ...puter languages because the total data string length including sign digits and decimal point does not exceed seven characters The data format is a plus or minus sign followed by five decimal digits and a decimal point The input range which is em ployed determines the resolution or the number of decimal places used as illustrated in the following table Input Range Resolution 15 mV 50 mV 1 µV three ...

Page 303: ...ule is configured for a Type J thermocouple whose range is 0ºC to 760ºC The re sponse to the Analog Data In command is 305 50 cr Example 3 The input value is 5 653 V The analog input module is configured for a range of 5 V range When the engineering units format is used the ADAM Series analog input modules are configured so that they automatically provide an over range capability The response to t...

Page 304: ...00 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 0Ah 1 V Engineering Units 1 0000 0 0000 1 0000 100 00 µV Reading 10000 of FSR 100 00 000 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 0Bh 500 mV Engineering Units 500 00 000 00 500 00 10 µV Reading 10 of FSR 100 00 000 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 0Ch 150 mV Engineering Units 150 00 000 00 150 00 10 µV Reading ...

Page 305: ...00 00 000 00 100 00 10 µV Reading 100 of FSR 100 00 000 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 03h 500 mV Engineering Units 500 00 000 00 500 00 10 µV Reading 10 of FSR 100 00 000 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 04h 1 V Engineering Units 1 0000 0 0000 1 0000 100 µV Reading 10000 of FSR 100 00 000 00 100 00 0 01 Two s Complement 7FFF 0000 8000 1 LSB 05h 2 5 V Engi...

Page 306: ... C to 400 C Engineering Units 400 00 100 00 0 1 C Reading 10 of FSR 100 00 025 00 0 01 Two s Complement 7FFF E000 1 LSB 11h Type E Thermocouple 0 C to 1000 C Engineering Units 1000 00 0000 0 0 1 C Reading 10 of FSR 100 00 000 00 0 01 Two s Complement 7FFF 0000 1 LSB 12h Type R Thermocouple 500 C to 1750 C Engineering Units 1750 0 0500 0 0 1 C Reading 10 of FSR 100 00 028 57 0 01 Two s Complement 7...

Page 307: ...ering 5 5 0 Don t care 1 3 mV Two s Comp 0FFF 0 Don t care 1 04h 2 5 V Engineering 2 75 0 2 75 0 67 mV Two s Comp 0FFF 0 EFFF 1 05h 0 2 5 V Engineering 2 75 0 Don t care 0 67 mV Two s Comp 0FFF 0 Don t care 1 06h 1 V Engineering 1 375 0 1 375 0 34 mV Two s Comp 0FFF 0 EFFF 1 07h 0 1 V Engineering 1 375 0 Don t care 0 34 mV Two s Comp 0FFF 0 Don t care 1 08h 500 mV Engineering 687 5 0 687 5 0 16 mV...

Page 308: ...three decimal digits The resolution is 5 µA Example An analog output module on channel 1 of slot 0 in an ADAM 5000 system at address 01h is configured for a 0 to 20 mA range If the output value is 4 762 mA the format of the Analog Data Out command would be 01S0C14 762 cr B 6 Analog Output Ranges Range Code Output Range Description Data Formats Maximum Specified Signal Minimum Specified Signal Disp...

Page 309: ... 0 1 C 21 100 Ohms Platinum RTD 0 to 100 C a 0 00385 Engineering Units 100 00 000 00 0 1 C 22 100 Ohms Platinum RTD 0 to 200 C a 0 00385 Engineering Units 200 00 000 00 0 2 C 23 100 Ohms Platinum RTD 0 to 600 C a 0 00385 Engineering Units 600 00 000 00 0 6 C 24 100 Ohms Platinum RTD 100 to 100 C a 0 00392 Engineering Units 100 00 100 00 0 1 C 25 100 Ohms Platinum RTD 0 to 100 C a 0 00392 Engineeri...

Page 310: ...e continued from previous page 27 100 Ohms Platinum RTD 0 to 600 C a 0 00392 Engineering Units 600 00 000 00 0 6 C 28 120 Ohms Nickel RTD 80 to 100 C Engineering Units 100 00 80 00 0 1 C 29 120 Ohms Nickel RTD 0 to 100 C Engineering Units 100 00 000 00 0 1 C ...

Page 311: ... U16B 5017H AI mV 500 500 0 4095 U12B mV 0 500 0 4095 U12B V 10 10 0 4095 U12B V 0 10 0 4095 U12B V 5 5 0 4095 U12B V 0 5 0 4095 U12B V 2 5 2 5 0 4095 U12B V 0 2 5 0 4095 U12B V 1 1 0 4095 U12B V 0 1 0 4095 U12B mA 4 20 0 4095 U12B mA 0 20 0 4095 U12B 5018 AI mV 15 15 0 65535 U16B mV 50 50 0 65535 U16B mV 100 100 0 65535 U16B mV 500 500 0 65535 U16B V 1 1 0 65535 U16B V 2 5 2 5 0 65535 U16B mA 20 ...

Page 312: ...B 12 ADAM 5511 Data Formats and I O Ranges This page is blank ...

Page 313: ...C Examples on CD Appendix ...

Page 314: ...mples Example1 Ex1 prj This example scans all slots in an ADAM 5511 and then shows the status of any I O modules include AI O DI O Counter and Series Communication Module located in the slots Example2 Ex2 prj This is a modem test example which includes dial hang up auto answer and set break Example3 Ex3 prj Using ADAM 5511 COM port and ADAM 4520 RS 232 to RS 422 485 converter to scan ADAM 4000 ser...

Page 315: ...D RS 485 Network Appendix ...

Page 316: ... receive Since the nodes are connected in parallel they can be freely disconnected from the host without affecting the functioning of the remaining nodes An industry stan dard shielded twisted pair is preferable due to the high noise ratio of the environment When nodes communicate through the network no sending conflicts can occur since a simple command response sequence is used There is always on...

Page 317: ...ent is a repeater It is directly connected to the main wires thereby ending the first segment and starting the next segment Up to 32 addressable systems can be daisychained This limitation is a physical one When using more systems per segment the IC driver current rapidly decreases causing communication errors In total the network can hold up to 64 addressable systems The limita tion on this numbe...

Page 318: ...ted to drop down cables from the main wires of the first segment A tree structure is the result This scheme is not recommended when using long lines since it will cause a serious amount of signal distortion due to signal reflections in several line endings Figure D 2 Star structure ...

Page 319: ...ADAM 5511 D 5 Appendix D Random This is a combination of daisychain and hierarchical structure Figure D 3 Random structure ADAM 5510 P31 SYSTEM ...

Page 320: ...he resistor should be a close as possible to the charac teristic impedance of the line Although receiver devices add some resistance to the whole of the transmission line normally it is sufficient to the resistor impedance should equal the characteristic impedance of the line Example Each input of the receivers has a nominal input impedance of 18 kΩ feeding into a diode transistor resistor biasing...

Page 321: ...the end of the transmission line they will tend to react as thirty 36kΩ resistors in parallel with the termination resistor The overall effective resistance will need to be close to the characteristics of the line The effective parallel receiver resistance RP will therefore be equal to RP 36x103 30 1200Ω While the termination receptor RT will equal RT RO 1 RO RP Thus for a line with a characterist...

Page 322: ...he RS 485 standard uses a single pair of wires to send and receive data This line sharing requires some method to control the direction of the data flow RTS Request To Send and CTS Clear To Send are the most commonly used methods Figure D 6 RS 485 data flow control with RTS Intelligent RS 485 Control ADAM 4510 and ADAM 4520 are both equipped with an I O circuit which can automatically sense the di...

Page 323: ...E Grounding Reference Appendix ...

Page 324: ...e for the last 20 of the work So is it with system integration we pay 20 for Wire Cable and 0 for Equipment However 80 of reliability depends on Grounding and Shielding In other words we need to invest more in that 20 and work on these two issues to make a highly reliable system This application note brings you some concepts about field grounding and shielding These topics will be illustrated in t...

Page 325: ... As you know the EARTH cannot be conductive However all build ings lie on or in the EARTH Steel concrete and associated cables such as lighting arresters and power system were connected to EARTH Think of them as resistors All of those infinite parallel resistors make the EARTH as a single reference point ...

Page 326: ... be connected to make a reference point of each other s electronic circuit Generally speaking it is necessary to install an individual grounding bar for each system such as computer networks power systems telecommunication networks etc Those individual grounding bars not only provide the individual reference point but also make the earth a our ground Neutral is the physical cable from Generator Gr...

Page 327: ...the voltage between neutral and a concrete floor You will get nonsense values Hot and Neutral are just relational signals you will get 110VAC or 220VAC by measuring these signals Normal mode and common mode just show you that the Frame Ground is the most important reference signal for all the systems and equipments Figure E 3 Normal mode and Common mode ...

Page 328: ...1 Grounding Reference Figure E 4 Normal mode and Common mode Ground pin is longer than others for first contact to power system and noise bypass Neutral pin is broader than Live pin for reducing contact imped ance ...

Page 329: ...r then a local power station steps down the voltage What is the purpose of high voltage transmission wires According to the energy formula P V I the current is reduced when the voltage is raised As you know each cable has impedance because of the metal it is made of Referring to Ohm s Law V I R this decreased current means lower power losses in the wire So high voltage lines are for reducing the c...

Page 330: ...E 8 ADAM 5511 Grounding Reference Figure E 6 wire impedance ...

Page 331: ...bottom diagram above shows an example of how devices will influence each other with swift load change For example normally we turn on all the four hydrants for testing When you close the hydrant 3 and hydrant 4 the other two hydrants will get more flow In other words the hydrant cannot keep a constant flow rate Single Point Grounding Those devices will influence each other with swiftly load change...

Page 332: ... stable system If you use thin cable for powering these devices the end device will actually get lower power The thin cable will consume the energy Single Point Grounding More cable but more stable system ADAM 4014 ADAM 4017 ADAM 4021 ADAM 4013 Power Supply 16V 18V 20V 22V 24V ADAM 4014 ADAM 4017 ADAM 4021 ADAM 4013 Power Supply 22V 22V 22V 22V 24 V ...

Page 333: ... Shielding 2 1 Cable Shield Single isolated cable The diagram shows the structure of an isolated cable You see the isolated layer which is spiraled Aluminum foil to cover the wires This spiraled structure makes a layer for shielding the cables from external noise ...

Page 334: ...ng external noise Additionally follow these tips just for your reference The shield of a cable cannot be used for signal ground The shield is designed for carrying noise so the environment noise will couple and interfere with your system when you use the shield as signal ground The higher the density of the shield the better especially for communication network Use double isolated cable for commun...

Page 335: ...ing Please refer to follow ing page for further detailed explanation Connect the shield to Frame Ground of DC power supply to force the conducted noise to flow to the frame ground of the DC power supply The frame ground of the DC power supply should be connected to the system ground ADAM 4013 ADAM 4017 ADAM 4021 ADAM 4520 Power Supply 24V Terminal Block RS 232 Connect the shield to Frame Ground of...

Page 336: ...gure E 12 The characteristic of the cable The characteristic of the cable Don t strip off too much insulation for soldering This could change the effectiveness of the Shielded Twisted Pair cable and open a path to introduce unwanted noise ...

Page 337: ...ak into a cable you might get in a hurry to achieve your goal As in all electronic circuits a signal will use the path of least resis tance If we make a poor connection between these two cables we will make a poor path for the signal The noise will try to find another path for easier flow ...

Page 338: ...E 16 ADAM 5511 Grounding Reference Figure E 14 System Shielding 2 Shield connection 2 The previous diagram shows you that the fill soldering just makes an easier way for the signal ...

Page 339: ...one end ONLY while the reference grounds are not the same Check for stability in communication lines Add another Grounding Bar if necessary The diameter of power cable must be over 2 0 mm2 Independent grounding is needed for A I A O and communication network while using a jumper box Use noise reduction filters if necessary TVS etc You can also refer to FIPS 94 Standard FIPS 94 recommends that the ...

Page 340: ...nt List Follow the single point grounding rule Normal mode and common mode voltage Separate the DC and AC ground Reject the noise factor The shield is connected correctly Wire size is correct Soldered connections are good The terminal screw are tight ...

Reviews: