Advantech ADAM-4500 Comminit, Function Library for Turbo C, Function Library for Microsoft C

Page 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 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

Image 18
Contents ADAM-4500 Installation Guidelines Introduction Features Specifications System DiagramProgramming and Downloading Emulating Open PC environments Built-in Real-time Clock and Watchdog TimerIntroduction Built-in RS-232/RS-485 Communication PortsRS-232 Interface PowerSystem RS-485 InterfaceMechanical EnvironmentADAM-4500 System Requirements to Setup ADAM-4500 Function Block DiagramHost computer Utility software Power supplyWiring the power cables and download cable Download cableSetup COM port Run utility software in host computerPower on ADAM-4500 Select Communication PortWatchdog Timer Setting JP2 Jumper SettingCOM1 Port Setting JP1 Reset Function Setting JP3Pin No. Description Mini Bios FunctionsProgramming RS-485 ConnectionConverting Program Codes Example Programming the Watchdog TimerOther Limitations Interrupt TypesInstall Utility Software on Host PC Program downloading Transferring files to Sram ADAM-4500s D-drive Write and simulate control logic on a PCConnect the cables Comminit Function Library for Turbo CFunction Library for Microsoft C Commexit CommopenCommsend CommgetrecdatasCommgetrecstr LedinitLed Wdtenable WdtdisableWdtclear Baud rate Divisor Bit Fifo trigger levelBit Word length bits BASE+4 Wichtige Sicherheishinweise

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.