public interface ProcessImage
Modifier and Type | Method and Description |
---|---|
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
- IllegalDataAddressException
void setCoil(int offset, boolean value)
offset
- value
- void writeCoil(int offset, boolean value) throws IllegalDataAddressException
offset
- value
- IllegalDataAddressException
boolean getInput(int offset) throws IllegalDataAddressException
offset
- IllegalDataAddressException
void setInput(int offset, boolean value)
offset
- value
- short getHoldingRegister(int offset) throws IllegalDataAddressException
offset
- IllegalDataAddressException
void setHoldingRegister(int offset, short value)
offset
- value
- void writeHoldingRegister(int offset, short value) throws IllegalDataAddressException
offset
- value
- IllegalDataAddressException
short getInputRegister(int offset) throws IllegalDataAddressException
offset
- IllegalDataAddressException
void setInputRegister(int offset, short value)
offset
- value
- byte getExceptionStatus()
byte[] getReportSlaveIdData()
Copyright © 2014 Infinite Automation Systems. All Rights Reserved.