public abstract class ModbusSlaveBase extends Manipulator implements SimulationListener
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
ModbusSlaveBase() |
Modifier and Type | Method and Description |
---|---|
abstract void |
createListener() |
void |
createProcessImage()
Create the process image..
|
int |
getCoilNotifyMax() |
int |
getCoilNotifyMin() |
int |
getMaximumCoilAddress()
Returns the maximum coil address.
|
int |
getMaximumRegisterAddress()
Returns the maximum register address.
|
int |
getMaxUnitId() |
int |
getPort()
Returns the current port.
|
int |
getRegNotifyMax() |
int |
getRegNotifyMin() |
int |
getValueAt(int offset)
Returns the value at a particular register offset.
|
boolean |
isListening()
This method will return true if the server is running.
|
boolean |
isSimulating() |
void |
modifiedCoils(BlockProcessImage image) |
void |
modifiedRegisters(BlockProcessImage image) |
void |
setCoilNotifyMax(int coilNotifyMax) |
void |
setCoilNotifyMin(int coilNotifyMin) |
void |
setMaximumCoilAddress(int maximumCoilAddress)
Sets the maximum coil address that this simulator will respond to.
|
void |
setMaximumRegisterAddress(int maximumRegisterAddress)
Sets the maximum register address that this simulator will respond to.
|
void |
setMaxUnitId(int maxUnitId) |
void |
setPort(int port)
Sets the port to listen on.
|
void |
setRegNotifyMax(int regNotifyMax) |
void |
setRegNotifyMin(int regNotifyMin) |
void |
setSimulationFlag(boolean simulationFlag)
Force the listener to understand this method.
|
void |
setValueAt(int offset,
int value)
Sets the value at a particular offset into the block.
|
void |
simulationStateChanged(SimulationChangedEvent simulationChangedEvent)
Sets/resets the global simulation flag.
|
void |
start()
Create the listener.
|
void |
stop()
Stop the server permanently.
|
void |
stopThread()
Requests the that listening thread be stopped.
|
void |
valueInput(ValueChangedEvent newEvent)
The trigger input.
|
getDefaultQualityForLocation, getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, valueChanged
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public static final java.lang.String cvsRev
public abstract void createListener()
public void createProcessImage()
public int getCoilNotifyMax()
public int getCoilNotifyMin()
public int getMaximumCoilAddress()
public int getMaximumRegisterAddress()
public int getMaxUnitId()
public int getPort()
public int getRegNotifyMax()
public int getRegNotifyMin()
public int getValueAt(int offset)
public boolean isListening()
public boolean isSimulating()
public void modifiedCoils(BlockProcessImage image) throws VIBUpdateFailedException
image
- VIBUpdateFailedException
public void modifiedRegisters(BlockProcessImage image) throws VIBUpdateFailedException
image
- VIBUpdateFailedException
public void setCoilNotifyMax(int coilNotifyMax)
coilNotifyMax
- The coilNotifyMax to set.public void setCoilNotifyMin(int coilNotifyMin)
coilNotifyMin
- The coilNotifyMin to set.public void setMaximumCoilAddress(int maximumCoilAddress)
public void setMaximumRegisterAddress(int maximumRegisterAddress)
public void setMaxUnitId(int maxUnitId)
maxUnitId
- The maxUnitId to set.public void setPort(int port)
public void setRegNotifyMax(int regNotifyMax)
regNotifyMax
- The regNotifyMax to set.public void setRegNotifyMin(int regNotifyMin)
regNotifyMin
- The regNotifyMin to set.public void setSimulationFlag(boolean simulationFlag)
SimulationListener
setSimulationFlag
in interface SimulationListener
simulationFlag
- will be written as "false" when code is generated.public void setValueAt(int offset, int value) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public void simulationStateChanged(SimulationChangedEvent simulationChangedEvent)
simulationStateChanged
in interface SimulationListener
SimulationListener.simulationStateChanged(com.ergotech.util.SimulationChangedEvent)
public void start() throws BadParameterException, VIBUpdateFailedException
start
in class SimpleDataSource
BadParameterException
VIBUpdateFailedException
SimpleDataSource.start()
public void stop() throws BadParameterException
stopThread
and
then the superclass method.stop
in class SimpleDataSource
BadParameterException
vib.servers.DataSourceInterface#stop()
public void stopThread()
public void valueInput(ValueChangedEvent newEvent) throws VIBUpdateFailedException
valueInput
in class Manipulator
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
Manipulator.valueInput(com.ergotech.vib.valueobjects.ValueChangedEvent)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.