ページ1に含まれる内容の要旨
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.
No part of this manual may be reproduced, copied, translated or transmitted in any form or by any
means without the prior written permission of
ページ2に含まれる内容の要旨
st Part No. 2050500110 1 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.2 Steps to Successfully Setup the System 5 Step 1: Review the requirements 5 Step 2: Wiring the power cables and download cable 5 Step 3: Run utility software in hos
ページ3に含まれる内容の要旨
Chapter 3 Programming and Downloading 1 1 3.1 Programming 1 1 Mini BIOS functions 1 1 Converting Program Codes 1 1 Other limitations 1 2 Programming the Watchdog timer 1 2 Interrupt types 1 3 Memory Mapping 1 3 3.2 Downloading and transferring 1 4 Install Utility Software on Host PC 1 4 Preparing the ALLFILE directory 1 4 Downloading into flash ROM 1 4 Transferring files to SRAM 1 6 3.3 Steps to Building a Successful Application 1 6 Step 1:Write and simulate contro
ページ4に含まれる内容の要旨
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.1 Introduction The ADAM-4500 is a fully functional standalone controller, designed for industrial automation and control, enclosed in a small package. It provides an ideal means of produci
ページ5に含まれる内容の要旨
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. This feature greatly reduces the level of maintenance required and makes the ADAM-4500 ideal for use in applications that require a high level of system stability. 1.2 Features ?? Built-in boot ROM-DOS to run PC programs ?? Free ROM/RAM memory for user
ページ6に含まれる内容の要旨
Mechanical ?? Case: ABS with captive mounting hardware ?? Plug-in screw terminal block: 2 2 Accepts 0.5 mm to 2.5 mm , 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.4 System Diagram ADAM-4500 Figure 1-1: ADAM-4500 Diagram
ページ7に含まれる内容の要旨
Function Block Diagram SRAM RS232/485 COM#1 Tranceiver UART 16 Bit FLASH ROM up RS-485 COM#2 Tranceiver UART RTC Programming Port Tranceiver WDT&Reset Power +10V to 30Vdc Converter Figure 1-2: ADAM-4500 Function Block Diagram Chapter 2 Installation Guidelines This chapter provides guidelines to set up and install the ADAM-4500 communication controller. A simplified hookup scheme is provided that lets you configure a successful system off-line before implemen
ページ8に含まれる内容の要旨
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 . Power ripples must be limited to 5 V peak to peak while the voltage in DC all cases must be maintained between +10 and +30 V . DC Utility software A disk containing menu-driven utility software is provided
ページ9に含まれる内容の要旨
(RS-232 PC) HOST PC DOWNLOAD CABLE and ADAM-4500 RS-232 RS-232 Red White Black Host PC Female Male DB-9 DB-9 Figure 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.EXE file. This file is a menu-driven software utility provided for downloading user's programs. It uses a screen simulating operation of the ADAM-4500 communication controller. When the file is
ページ10に含まれる内容の要旨
PC, then press . The Baudrate is set to a default value of 57600 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 . Power on the ADAM-4500. After 5 seconds, the screen shown in figure 2.5 will appear. The ADAM-4500 system is successfully started up.
ページ11に含まれる内容の要旨
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 following diagram shows the locations of the jumpers: Figure 2-6:Jumper Layout COM1 Port Setting (JP1) Jumper JP1 lets you configure the COM1(3F8) port as an RS-232 or as an RS-485 int
ページ12に含まれる内容の要旨
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 connection in different ways. If you are having problems with a serial device, be sure to check the pin assignments for the connector. The following table shows the pin assignments for the ADAM- 4500's RS-232 port. Pin No. Description 1 DCD 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9 RI Table 2-
ページ13に含まれる内容の要旨
mini BIOS of ADAM-4500 only 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-4500. The ADAM-4500 mini BIOS function calls are listed in the following table. Function Subfunction Task 07h 186 or greater co-processor esc instruct 10h 0eh TTY Clear output 11h Get equipment 12h
ページ14に含まれる内容の要旨
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. 2. Certain critical files are always kept in flash ROM, such as the operating system files, BIOS, and monitoring files. Aside from the storage space needed for these critical files, the ADAM-4500 has an additional 170 KB of free ROM space for downloading user applicati
ページ15に含まれる内容の要旨
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 Start of ROM-DOS (about 48 K) 0x40000 -- 0xBFFFF No Use 0x00400 -- 0x3FFFF SRAM area 0x00000 -- 0x003FF System area 0x003F8 -- 0x003FF COM1 0x002F8 -- 0x002FF COM2 0x00070 -- 0x00071 Real time clock 3.2 Downloading and Transferring This section explains h
ページ16に含まれる内容の要旨
executing, select the COMport of the host PC that has been connected to ADAM-4500. Then select "Program" from the bar menu and press to begin downloading. The screen shown in figure 3-2 will appear. Figure 3-2: Program downloading Follow the instructions shown on the screen. Power off the ADAM-4500 and then re-power on. Then press any key within 7 seconds to burn the files contained in ALLFILE into the ADAM- 4500's flash ROM. After the files are successfully burned into
ページ17に含まれる内容の要旨
Figure 3-3: Download Complete Transferring files to SRAM (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 the flash ROM. You can transfer files from a host-PC to the ADAM-4500's SRAM (D drive). Execute the utility software, select terminal mode, and press Alt-T. File transfer will b
ページ18に含まれる内容の要旨
Step 3: Convert and 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.BAT file. Also create COMMAND.COM and CONFIG.SYS files for the application program. Load the ADAM-4500 utility software into the host-PC. Load the converted application program and the files AUTOEXEC.BAT, COMMAND.COM, and CONFIG.SYS
ページ19に含まれる内容の要旨
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. The unit of size is bytes. Return: Returns a 1 if command succeeds. Returns a 0 if it fails. comm_exit Syntax: int comm_exit() Function Description: If a user calls the comm_in
ページ20に含まれる内容の要旨
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. User can use comm_get_rec_datas to receive single byte data. 1: command mode. The data format is a string. User can use comm_get_rec_str to receive string data. Return: