public class DataHolder extends Object
| Constructor and Description |
|---|
DataHolder() |
public int readHoldingRegister(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic int[] readHoldingRegisterRange(int offset,
int quantity)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic void writeHoldingRegister(int offset,
int value)
throws IllegalDataAddressException,
IllegalDataValueException
public void writeHoldingRegisterRange(int offset,
int[] range)
throws IllegalDataAddressException,
IllegalDataValueException
public int[] readInputRegisterRange(int offset,
int quantity)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic int[] readFifoQueue(int fifoPointerAddress)
throws IllegalDataValueException,
IllegalDataAddressException
public boolean[] readCoilRange(int offset,
int quantity)
throws IllegalDataAddressException,
IllegalDataValueException
public void writeCoil(int offset,
boolean value)
throws IllegalDataAddressException,
IllegalDataValueException
public void writeCoilRange(int offset,
boolean[] range)
throws IllegalDataAddressException,
IllegalDataValueException
public byte[] readSlaveId()
throws IllegalFunctionException
IllegalFunctionExceptionpublic int readExceptionStatus()
throws IllegalFunctionException
IllegalFunctionExceptionpublic boolean[] readDiscreteInputRange(int offset,
int quantity)
throws IllegalDataAddressException,
IllegalDataValueException
public void readFileRecord(ModbusFileRecord fileRecord) throws IllegalDataAddressException, IllegalDataValueException
public void writeFileRecord(ModbusFileRecord fileRecord) throws IllegalDataAddressException, IllegalDataValueException
public ModbusCoils getCoils()
public void setCoils(ModbusCoils coils)
public ModbusCoils getDiscreteInputs()
public void setDiscreteInputs(ModbusCoils discreteInputs)
public ModbusHoldingRegisters getHoldingRegisters()
public void setHoldingRegisters(ModbusHoldingRegisters holdingRegisters)
public ModbusHoldingRegisters getInputRegisters()
public void setInputRegisters(ModbusHoldingRegisters inputRegisters)
public CommStatus getCommStatus()
public SlaveId getSlaveId()
public void setSlaveId(SlaveId slaveId)
public ExceptionStatus getExceptionStatus()
public void setExceptionStatus(ExceptionStatus exceptionStatus)
public FifoQueue getFifoQueue(int fifoPointerAddress) throws IllegalDataAddressException
IllegalDataAddressExceptionpublic void addFifoQueue(FifoQueue fifoQueue, int fifoPointerAddress) throws IllegalDataAddressException
IllegalDataAddressExceptionpublic void addFile(ModbusFile file) throws IllegalDataAddressException
IllegalDataAddressExceptionpublic ModbusFile getFile(int number) throws IllegalDataAddressException
IllegalDataAddressExceptionpublic ReadDeviceIdentificationInterface getReadDeviceIdentificationInterface()
public void setReadDeviceIdentificationInterface(ReadDeviceIdentificationInterface readDeviceIdentificationInterface)
Copyright © 2018. All rights reserved.