Manuel d'utilisation / d'entretien du produit ADAM-4500 du fabricant Advantech
Aller à la 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.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Advantech ADAM-4500 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Advantech ADAM-4500 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Advantech ADAM-4500, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Advantech ADAM-4500 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Advantech ADAM-4500, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Advantech ADAM-4500.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Advantech ADAM-4500. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Advantech ADAM-4500 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.