0401-02 Advantech ADAM4024

Example Projects > 0401 Modbus RTU > 0401-02 Advantech ADAM4024

Advantech ADAM 4024 Modbus RTU Example

This folder contains the source files for the demonstration project on data exchange between two devices over the Modbus RTU protocol.

The example is meant to communicate with Advantech ADAM 4024 4-channel Analog Output Module, which serves as a slave station. Therefore the master station is implemented in REXYGEN. For testing purposes there is also Advantech ADAM 4024 simulator available in the separate folder.

Prerequisites

  • REXYGEN Runtime Core and MbDrv modules must be installed and running on the device(s) to run the example(s).
  • Advantech ADAM 4024 configuration using Advantech ADAM 4000 5000 Utility. Make sure to set the module communication to Modbus RTU with following parameters: Baudrate: 9600; Parity: none; Data bits: 8; Stop bits: 1.
  • The example presumes that the Analog Outputs are configured as Current Outputs with range 0~20 mA.
  • Doublecheck the module wiring!

Running the examples

  • The *exec.mdl file is the project main file.
  • Open it with REXYGEN Studio, compile and download it to the target device.

Modbus registers##

  • For Modbus Mapping table see Advantech ADAM 4000 Series User Manual (see the link below)

Adding signals and changing Modbus register mapping and settings###

Go to Modbus driver configuration (MBM block in the master, MBS block in the slave) and press "Configure" for Modbus registers configuration. Make sure to read the Modbus driver documentation (see below).

Documentation

Additional information

  • Visit the REXYGEN webpage for more information about the example projects and developing advanced automation and control solutions using REXYGEN.

Links