Advantech ADAM-4500 user manual Commgetrecstr, Ledinit

Page 21

 

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. Returns a 0 if it fails.

comm_get_rec_str

Syntax:

int comm_get_rec_str(unsigned char **data, unsigned char port)

Function Description:

This function call is employed to received string data. The function call returns a success flag if the communication port receives string data ( terminal character is 0x0d) . The function call returns a fail flag if the buffer of the communication port is empty.

Parameter

Description

 

unsigned char **data

Returns the received string contents. User must first allocate a

 

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. Returns a 0 if it fails.

led_init

Syntax:

void led_init()

Function Description:

This function must be called to initialize the ADAM-4500's LED before a user's program can control the LED.

led

Syntax:

void led(int type)

Image 21
Contents ADAM-4500 Introduction Features Specifications System Diagram Installation GuidelinesProgramming and Downloading Introduction Built-in Real-time Clock and Watchdog TimerEmulating Open PC environments Built-in RS-232/RS-485 Communication PortsSystem PowerRS-232 Interface RS-485 InterfaceMechanical EnvironmentADAM-4500 System Requirements to Setup ADAM-4500 Function Block DiagramHost computer Wiring the power cables and download cable Power supplyUtility software Download cableRun utility software in host computer Setup COM portSelect Communication Port Power on ADAM-4500COM1 Port Setting JP1 Jumper SettingWatchdog Timer Setting JP2 Reset Function Setting JP3Programming Mini Bios FunctionsPin No. Description RS-485 ConnectionConverting Program Codes Other Limitations Programming the Watchdog TimerExample 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 Commopen CommexitCommgetrecdatas CommsendCommgetrecstr 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.