com.eurotech.framework.protocol.modbus
Class ModbusDataMap
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 datacount
- number of data points in this fielddataOrder
- from modbusFieldDeviceDataOrder
and
only valid for TYPE_UNSIGNED_SHORT, TYPE_UNSIGNED_INT and
TYPE_FLOATdataFormation
- from modbusFieldDeviceDataFormation
, not valid for BOOLEANmodbusDataOffset
- offset to first physical data for this fieldmodbusReadCommand
- effects the Modbus data type for the field
- Throws:
ModbusProtocolException
Copyright © 2013. All Rights Reserved.