Advantech ADAM-4500 user manual Commexit, Commopen

Page 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_init function, the user must call this function to release the communication port before the user's program terminates.

Return:

Returns a 1 if command succeeds. Return a 0 if it fails.

comm_open

Syntax:

int comm_open(unsigned char port, unsigned long baud, int parity, int data, int stop, int cmd_type)

Function Description:

To open a communication port for user to send and receive data.

Parameter

Description

unsigned char port

Specifies communication port.

 

1: COM1 port

 

2: COM2 port

unsigned long baud

Baud rate setting. The eight allowable baud rates are: 1200,

 

2400, 4800, 9600, 19200, 38400, 57600, and 115200. Sized in bps

 

(bits per second).

int parity

Parity setting.

 

0: no parity, 1: odd, 2: even

int data

Data bits setting. There are four allowable data lengths: 8, 7, 6,

 

and 5.

Sized in bit units.

Image 19
Contents ADAM-4500 Introduction Features Specifications System Diagram Installation GuidelinesProgramming and Downloading Built-in RS-232/RS-485 Communication Ports Built-in Real-time Clock and Watchdog TimerIntroduction Emulating Open PC environmentsRS-485 Interface PowerSystem RS-232 InterfaceEnvironment MechanicalADAM-4500 Function Block Diagram System Requirements to Setup ADAM-4500Host computer Download cable Power supplyWiring the power cables and download cable Utility softwareRun utility software in host computer Setup COM portSelect Communication Port Power on ADAM-4500Reset Function Setting JP3 Jumper SettingCOM1 Port Setting JP1 Watchdog Timer Setting JP2RS-485 Connection Mini Bios FunctionsProgramming Pin No. DescriptionConverting Program Codes Interrupt Types Programming the Watchdog TimerOther Limitations ExampleInstall Utility Software on Host PC Program downloading Write and simulate control logic on a PC Transferring files to Sram ADAM-4500s D-driveConnect the cables Function Library for Turbo C ComminitFunction Library for Microsoft C Commopen CommexitCommgetrecdatas CommsendLedinit CommgetrecstrLed Wdtdisable WdtenableWdtclear Bit Fifo trigger level Baud rate DivisorBit 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.