User Tools

Site Tools


terra4d:moxa

This is an old revision of the document!


Moxa IO device through Modbus

TERRA 4D comes with a Modbus plugin which allows integration of different types of Modbus devices. Here we focus on Moxa devices.

Supported features:

  • Switch outputs on/off
  • Get events when an input is triggerd
  • Show status of inputs and outputs

Installation instructions:

Webbrowser:

  • Connect the Moxa device to Ethernet and open the browser
  • Connect to address 192.168.127.254 which is normally the default IP address of the Moxa devices
  • Main things to configure: Password, Security/Service Setting/Modbus!!!, Network/LAN, IO/Channel Mode (especially for DIOs)
  • alternatively you can use IOxpress software

Moxa IOxpress software:

  • Connect the Moxa device to Ethernet and install the Moxa IOxpress software (download from Moxa website)
  • Start the Moxa IOxpress and select Device/Search to find your device
  • Main things to configure: Password, Security/Service Setting/Modbus!!!, Network/LAN, IO/Channel Mode (especially for DIOs)
  • on the Device Library page you find in the Deployment combobox the device actions, like up- and download of configuration files
  • on the Configuration Library page you can change all settings and store it to a local file

TERRA 4D Configurator:

  • create a subsystem plugin device Modbus with default settings
  • Input:
    • create a IO device of type Modbus and select SubType “Input”
    • IP port: 502, Server address: 0, Start address: 0, Input number: 0…N
  • Output:
    • create a IO device of type Modbus and select SubType “Output”
    • IP port: 502, Server address: 0, Start address: 0, Output number: 0…N
  • Input register (e.g. for PWM counter):
    • create a IO device of type Modbus and select SubType “Input register”
    • IP port: 502, Server address: 0, Start address: 17, Input number: 0…N
  • Analog Input:
    • create a IO device of type Modbus and select SubType “Analog Input”
    • IP port: 502, Server address: 0, Start address: 520, Input number: 0…N
    • Configure low/high threshold depending on application to generate events when reading goes outside the expected range.

Other hints

- Login to the browser page of the Moxa device to see the status of inputs and outputs and also other information. - Within the device web page, in the main menu, within User-Defined Modbus Addressing, select Analog Inputs, Digital Input/Outputs (or similar):

  1. Make sure “Enable Modbus/TCP Slave Protocol” is enabled
  2. Within the table all the addresses of the available data points are listed. E.g. “AI Value (Raw Data)” at “0512” as Input Register (read-only), Reference Address “30513”
  3. Within Terra4D use “Analog Input” with the address 513 (the 30000 is automatically added by selecting Analog Input).
terra4d/moxa.1658995830.txt.gz · Last modified: 2022/07/28 08:10 by editor