Instruction/ maintenance manual of the product ADAM-4500 Advantech
Go to page of 25
ADAM - 4500 PC - based Communication Controller User's Manual Copyright Notice This document is copyrighted, 1997, by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements to the products described in this manual at any time without notice.
Part No. 2050500110 1 st Edition Printed in Taiwan July 1997 Table of Contents Chapter 1 General Information 1 1.1 Introduction 1 1.2 Features 1 1.3 Specifications 2 1.4 System Diagram 3 Chapter 2 Installation Guidelines 5 2.1 System Requirements to Setup ADAM - 4500 5 2.
Chapter 3 Programming and Downloading 1 1 3.1 Programming 1 1 Mini BIOS functions 1 1 Converting P rogram Codes 1 1 Other limitations 1 2 Programming the Watchdog timer 1 2 Interrupt types 1 3 Memory Mapping 1 3 3.
Step 2:Connect the cables 1 6 Step 3:Convert and download codes to flash ROM 1 7 Step 4:Power on ADAM - 4500 to complete the application 1 7 Chapter 4 Function Library 1 8 Appendix A Register Structure 3 0 Appendix B Safety Instructions 32 Chapter 1 General Information 1.
The controller also includes a real - time clock and a watchdog timer function. The real - time clock ensures time recording while events occur. The watchdog timer is designed to automatically reset the microprocessor when the system fails.
Mechanical ?? Case: ABS with captive mounting hardware ?? Plug - in screw terminal block: Accepts 0.5 mm 2 to 2.5 mm 2 , 1 - #12 or 2 - #14 to #22 AWG Environment ?? Operating temperature: - 10 to 70°C (14 to 158°F) ?? Storage temperature: - 25 to 70°C ( - 13 to 158°F) ?? Humidity: 5 to 95 %, non - condensing 1.
Function Block Diagram SRAM FLASH ROM RTC WDT&Reset 16 Bit up Power Converter COM#1 UART COM#2 UART RS-485 Tranceiver RS232/485 Tranceiver Programming Port Tranceiver GND +5V +5V GND +10V to 30Vdc.
into the ADAM - 4500, can function as the host computer. Power supply For ease of use in industrial environments, the ADAM - 4500 will accept industry standard +24 V DC unregulated power. The ADAM - 4500 was designed to operate using any power supply voltage between +10 and +30 V DC .
RS-232 Red White Black Female DB-9 Host PC (RS-232 PC) RS-232 Male DB-9 HOST PC DOWNLOAD CABLE and ADAM-4500 Figur e 2 - 2: Download Cable Connections Step 3: Run utility software in host computer Together with the ADAM - 4500 you will find a utility disk containing an ADAM4500.
PC, then press <enter>. The Baudrate is set to a default value of 5 7600 bps and cannot be changed. The screen is as shown in figure 2.4. Figure 2 - 4: Select Communication Port Step 4: Power on ADAM - 4500 Highlight the "Terminal" option, then press <enter>.
Figure 2 - 5: Emulating Screen of ADAM - 4500 2.3 Jumper Setting We designed the ADAM - 4500 with ease - of - use in mind. It has three jumper settings. The following sections explain how to configure the module. You may want to refer to the figure below for help in identifying card components.
The ADAM - 4500 has a DB - 9 pin connector as its RS - 232 port connector. Since the connection for an RS - 232 interface is not standardized, different devices implement the RS - 232 con nection in different ways. If you are having problems with a serial device, be sure to check the pin assignments for the connector.
mini BIOS of ADAM - 4500 o nly provides 10 function calls. Since the user's program can not use other BIOS function calls, the ADAM - 4500 may not work as intended. Additionally, certain language compilers such as QBASIC directly call BIOS functions that are not executable in ADAM - 450 0.
Figure 3 - 1: Converting Program Codes Other Limitations 1. The ADAM - 4500 does not support the standard PC function "8253". Therefore, the C language function call "delay ( )" cannot be used in ADAM - 4500 applications.
The following table shows the memory mapping of the ADAM - 4500 controller. 0xF8000 -- 0xFFFFF Monitor program 0xF6C00 -- 0xF7FFF Mini BIOS 0xCC000 Start of Application ROM Disk (about 171 K) 0xC0000 .
executing, select the COMport of the host PC that has been connected to ADAM - 4500. Then select "Program" from the bar menu and press <enter> to begin downloading. The screen shown in figure 3 - 2 will appear. Figu re 3 - 2: Program downloading Follow the instructions shown on the screen.
Figure 3 - 3: Download Complete Transferring files to SR AM (ADAM - 4500's D - drive) The ADAM - 4500 provides 234 KB of free SRAM for use in program operation, and as working memory space in the event you want to test your system control logic or simulate system performance before downloading the execution code to t he flash ROM.
Step 3: Convert a nd download codes to flash ROM Within the host computer, convert the application program into 80186 or 80188 compatible code. Create an AUTOEXEC.BAT file for the application program and write the application program's name in the AUTOEXEC.
Syntax: int comm_init(int buf_size) Function description: Initializes the communication port and interrupt routine before other function calls use the communication port. Parameter Description int buf_size Sets the buffer size of every communication port for storage of received data.
int stop Stop bits setting 1, 2 (stop bit = 1 is for data bits = 5,6,7, or 8) (stop bit = 2 is for data bits = 6,7, or 8) For details, refer to RS - 232 chip set data book int cmd_type Received data format setting. 0: single byte mode. The data format is a single byte character.
data buffer ( Use comm_int function call ). Before exiting program, user must free this buffer ( Use comm_exit function call ). unsigned char port Specifies communication port (COM1 or COM2) 1: COM1 port 2: COM2 port Return: Returns a 1 if command succeeds.
Function Description: LED ON/OFF control Parameter Description int type 0: LED OFF 1: LED ON wdt_enable Syntax: wdt_enable() Function Description: This function enables the watchdog timer function.
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 a write. BASE+0 Divisor latch bits 0 - 7 when DLAB=1 BASE+1 Divisor latc h bits 8 - 15 when DLAB=1.
BASE+4 Modem Control Register (MCR) bit 0 DTR bit 1 RTS BASE+5 Line Status Register (LSR) bit 0 Receiver data ready bit 1 Overrun error bit 2 Parity error bit 3 Framing error bit 4 Break in terrupt bi.
e. The equipment has dropped and damaged. f. If the equipment has obvious sign of breakage. 15.DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT UNCONDITIONED, STORAGE TEMPERATURE BELOW - 20° C ( - 4° F) OR ABOVE 60° C (140°F), IT MAY DAMAGE THE EQUIPMENT.
An important point after buying a device Advantech ADAM-4500 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Advantech ADAM-4500 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Advantech ADAM-4500 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Advantech ADAM-4500 you will learn all the available features of the product, as well as information on its operation. The information that you get Advantech ADAM-4500 will certainly help you make a decision on the purchase.
If you already are a holder of Advantech ADAM-4500, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Advantech ADAM-4500.
However, one of the most important roles played by the user manual is to help in solving problems with Advantech ADAM-4500. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Advantech ADAM-4500 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center