public class ModbusRequestBlock extends AbstractRequestBlock
AbstractRequestBlock.Statistics| Constructor and Description |
|---|
ModbusRequestBlock(java.util.concurrent.Executor executor,
java.lang.String id,
java.lang.String name,
java.lang.String mainTypeName,
ModbusSlave slave,
BundleContext context,
Request request,
java.util.concurrent.atomic.AtomicInteger transactionId,
boolean enableStatistics) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createPollRequest()
Create poll request
|
long |
getPollRequestTimeout()
Get the requested timeout in milliseconds
|
Request |
getRequest()
The the configured request
|
int |
getStartAddress() |
void |
handleFailure(java.lang.Throwable e) |
boolean |
handleMessage(java.lang.Object message)
Handle an incoming message while the job was active
|
java.lang.String |
toString() |
void |
writeBit(int blockAddress,
int subIndex,
boolean value)
Write a bit
|
void |
writeData(int blockAddress,
byte[] data) |
calculatePriority, dispose, handleData, handleDisconnect, handleError, handleTimeout, initialize, recordChecksumError, recordUpdate, requestUpdate, setVariables, updatePrioritypublic ModbusRequestBlock(java.util.concurrent.Executor executor,
java.lang.String id,
java.lang.String name,
java.lang.String mainTypeName,
ModbusSlave slave,
BundleContext context,
Request request,
java.util.concurrent.atomic.AtomicInteger transactionId,
boolean enableStatistics)
public long getPollRequestTimeout()
PollRequestpublic Request getRequest()
public java.lang.String toString()
toString in class java.lang.Objectpublic void handleFailure(java.lang.Throwable e)
handleFailure in interface PollRequesthandleFailure in class AbstractRequestBlockpublic boolean handleMessage(java.lang.Object message)
PollRequestmessage - the incoming messagepublic java.lang.Object createPollRequest()
PollRequestpublic int getStartAddress()
public void writeBit(int blockAddress,
int subIndex,
boolean value)
MemoryRequestBlockblockAddress - the address relative to the block start addresssubIndex - the bit index at the block address (normally 0..8)value - the value to writepublic void writeData(int blockAddress,
byte[] data)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0