com.eurotech.framework.protocol.modbus
Class ModbusDataMap

java.lang.Object
  extended by com.eurotech.framework.protocol.modbus.ModbusDataMap

public class ModbusDataMap
extends Object

This class defines a single field mapping for a Modbus protocol implementation. Field mappings can range from 1 point to 65535 points (maximum allowed offset for any single data element is 65535). Field definitions should never be allowed to overlap.

Author:
matt.demaree

Constructor Summary
ModbusDataMap(int startAddress, int count, String dataOrder, String dataFormation, int modbusDataOffset, int modbusReadCommand)
          this class must be constructed with all parameters.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModbusDataMap

public ModbusDataMap(int startAddress,
                     int count,
                     String dataOrder,
                     String dataFormation,
                     int modbusDataOffset,
                     int modbusReadCommand)
              throws ModbusProtocolException
this class must be constructed with all parameters.

Parameters:
startAddress - address used by client to reference the data
count - number of data points in this field
dataOrder - from modbusFieldDeviceDataOrder and only valid for TYPE_UNSIGNED_SHORT, TYPE_UNSIGNED_INT and TYPE_FLOAT
dataFormation - from modbusFieldDeviceDataFormation, not valid for BOOLEAN
modbusDataOffset - offset to first physical data for this field
modbusReadCommand - effects the Modbus data type for the field
Throws:
ModbusProtocolException


Copyright © 2013. All Rights Reserved.