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 into directory ALLFILE. Execute the utility software to download the contents of ALLFILE into the ADAM-4500 flash ROM.

Step 4: Power on ADAM-4500 to complete the application

After all the files in directory ALLFILE have been completely transferred to the flash ROM, re- power on the ADAM-4500.

Chapter 4 Function Library

The ADAM-4500 is packaged with a utility disk that contains a directory called LIBRARY. This directory contains a number of function calls that enable a user to efficiently write applications for ADAM-4500. The library supports both Turbo C 2.0 and Microsoft C 6.0 version programming languages.

The "LIBRARY" directory contains the following two sub-directories:

. TC20

Library for Turbo C 2.0 version

. MSC60

Library for Microsoft C 6.0 version

Function Library for Turbo C

The TC20 directory contains the following files:

ADAM4500.H

Declaration file

4500L.LIB

Library file for compiling large mode

4500S.LIB

Library file for compiling small mode

Function Library for Microsoft C

The MSC60 directory contains the following files:

ADAM4500.H

Declaration file

4500L.LIB

Library file for compiler large mode

4500C.LIB

Library file for compiler compact mode

4500M.LIB

Library file for compiler medium mode

4500S.LIB

Library file for compiler small mode

The function calls included in the directory LIBRARY are described in the following pages.

comm_init

Page 18
Image 18
Advantech ADAM-4500 user manual Comminit, Function Library for Turbo C, Function Library for Microsoft C

ADAM-4500 specifications

The Advantech ADAM-4500 series represents a critical advancement in the field of industrial automation and remote monitoring with its versatile and robust features. Designed for a wide range of applications across industries, from manufacturing to environmental monitoring, the ADAM-4500 series bridges the gap between traditional data acquisition systems and modern IoT solutions.

One of the main features of the ADAM-4500 series is its ability to support both Ethernet and RS-485 communication, providing flexibility for various network setups. This dual communication capability allows users to connect the devices seamlessly into existing infrastructures while ensuring reliable data transmission over extended distances.

Another key characteristic of the ADAM-4500 series is its modular design. Users can easily configure and expand their systems according to specific project requirements by adding different I/O modules. The series supports a variety of analog and digital I/O modules, catering to diverse input and output needs. This modularity ensures that the system can evolve as technology advances or project demands change.

In terms of technology, the ADAM-4500 incorporates various protocols, including Modbus TCP and RTU, making it compatible with a wide range of SCADA and industrial automation software. Such compatibility simplifies integration and enhances communication across devices, allowing for centralized monitoring and control systems that improve operational efficiency.

The ADAM-4500 series also boasts embedded web servers, enabling users to access real-time data and configure the device through any web browser. This remote access capability is pivotal for monitoring critical parameters without the need for local presence, which is especially useful in extensive or hazardous environments.

In summary, the Advantech ADAM-4500 series combines robust hardware with advanced software features, providing a flexible, scalable, and efficient solution for data acquisition and remote monitoring in industrial applications. With its modular design, comprehensive communication protocols, and remote access capabilities, the ADAM-4500 series stands out as a reliable choice for organizations aiming to enhance their automation and monitoring systems while preparing for the future of IoT integration.