public interface ProcessImage
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getCoil(int offset)
Returns the current value of the coil for the given offset.
|
byte |
getExceptionStatus()
Returns the current value of the exception status.
|
short |
getHoldingRegister(int offset)
Returns the current value of the holding register for the given offset.
|
boolean |
getInput(int offset)
Returns the current value of the input for the given offset.
|
short |
getInputRegister(int offset)
Returns the current value of the input register for the given offset.
|
byte[] |
getReportSlaveIdData()
Returns the data for the report slave id command.
|
int |
getSlaveId() |
void |
setCoil(int offset,
boolean value)
Used internally for setting the value of the coil.
|
void |
setHoldingRegister(int offset,
short value)
Used internally for setting the value of the holding register.
|
void |
setInput(int offset,
boolean value)
Used internally for setting the value of the input.
|
void |
setInputRegister(int offset,
short value)
Used internally for setting the value of the input register.
|
void |
writeCoil(int offset,
boolean value)
Used to set the coil as a result of a write command from the master.
|
void |
writeHoldingRegister(int offset,
short value)
Used to set the holding register as a result of a write command from the master.
|
int getSlaveId()
boolean getCoil(int offset)
throws IllegalDataAddressException
offset - IllegalDataAddressExceptionvoid setCoil(int offset,
boolean value)
offset - value - void writeCoil(int offset,
boolean value)
throws IllegalDataAddressException
offset - value - IllegalDataAddressExceptionboolean getInput(int offset)
throws IllegalDataAddressException
offset - IllegalDataAddressExceptionvoid setInput(int offset,
boolean value)
offset - value - short getHoldingRegister(int offset)
throws IllegalDataAddressException
offset - IllegalDataAddressExceptionvoid setHoldingRegister(int offset,
short value)
offset - value - void writeHoldingRegister(int offset,
short value)
throws IllegalDataAddressException
offset - value - IllegalDataAddressExceptionshort getInputRegister(int offset)
throws IllegalDataAddressException
offset - IllegalDataAddressExceptionvoid setInputRegister(int offset,
short value)
offset - value - byte getExceptionStatus()
byte[] getReportSlaveIdData()
Copyright © 2018. All rights reserved.