public class ModbusTCPDeviceServer extends ModbusTCPDeviceServerBase
ModbusDeviceServerBase.TimingMetricsSimpleDataSource.NameEditorDataDataSource.Writable| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
static java.lang.String |
PORT_FACTORY_NAME
The name of the port factory.
|
metricPrintFrequency, modbusDeviceServerssharedPLCSimulationCANNOT_OPEN_PORT, currentErrorCount, debugLevel, DEFAULT_NAME, globalDebugLevel, globalSimulation, MISSING_PARAMETER, NO_ERROR, NO_PORT, NO_RESOURCES, PORT_ERROR, READ_ERROR, TOO_MANY_ERRORS_STRING, UNKNOWN_ERROR, WRITE_ERRORUPDATE_DISPLAYED_VALUE, VALUE_INPUTcustomTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebaseautoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo| Constructor and Description |
|---|
ModbusTCPDeviceServer()
This sets the factory name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_initializePortPool()
If the port and host are set, this creates the factory for this object.
|
java.lang.String |
getHostname()
Returns the hostname/ip address of the PLC.
|
int |
getMaximumSocketConnections() |
int |
getPortNumber()
Returns the PLC port number.
|
int |
getStaticLocationFor(java.lang.String method)
Returns 3 for hostname and 4 for portnumber.
|
void |
initializePortPool()
Overridden to set the maximum number of connections.
|
void |
setHostname(java.lang.String hostname)
Sets the hostname/ip address of the PLC.
|
void |
setMaximumSocketConnections(int maximumSocketConnection) |
void |
setPortNumber(int portNumber)
Sets the port number of the PLC.
|
void |
start()
initialize the port pool once the container has been set.
|
void |
valueChanged(int loc,
ValueChangedEvent e)
This is the default valuechanged with a location used by the staticmethodevent
to find a specific entry value object.
|
void |
VIBEvent(VIBEvent vibEvent)
Resets "applethost".
|
getUseTransactionIds, setUseTransactionIds, toStringavailableServers, deviceType, forceLoad, getModbusDeviceServers, isBlockReads, readDevice, setBlockReads, setName, setTimebase, stop, writeDeviceaddServer, aggregateBlocks, destroy, getBlocksForType, getMaximumBlockOffset, getRegisterBlock, getRegisterBlockLocal, getRegisterBlockShared, hasServers, printException, readAllLongTimebaseServers, removeServer, setMaximumBlockOffset, simulatedWrite, simulatedWrite, simulateRead, simulationStateChangedcanConnect, clearMessageLog, configurePort, equals, getLinkTimeout, getLinkTimeoutMilliseconds, getResponseTimeout, incrementErrorCount, init, isSimulating, isSimulationFlag, messageLog, releasePortPool, resetErrorCount, setLinkTimeout, setResponseTimeout, setSimulationFlagclientRequest, createServer, deleteDevice, deleteServer, earlyStart, getEditableServers, getPersistentServers, getServerContainer, getServers, getServersInternal, getViewServers, preparingServer, setContainer, setServersgetDefaultQualityForLocationgetInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueInputaddConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientResponse, 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, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTrace, setValueObject, tickaddVIBEventListener, 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, 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, whoAmIpublic static final java.lang.String cvsRev
public static final java.lang.String PORT_FACTORY_NAME
public void _initializePortPool()
_initializePortPool in class ModbusDeviceServerBasefactoryName - public java.lang.String getHostname()
public int getMaximumSocketConnections()
public int getPortNumber()
public int getStaticLocationFor(java.lang.String method)
throws BadParameterException
getStaticLocationFor in class ManipulatorBadParameterExceptionpublic void initializePortPool()
initializePortPool in class PortDeviceServerPortDeviceServer.initializePortPool()public void setHostname(java.lang.String hostname)
hostname - The hostname to set.public void setMaximumSocketConnections(int maximumSocketConnection)
maximumSocketConnection - The maximumSocketConnection to set.public void setPortNumber(int portNumber)
portNumber - The portNumber to set.public void start()
throws BadParameterException,
VIBUpdateFailedException
start in class ModbusTCPDeviceServerBaseBadParameterExceptionVIBUpdateFailedExceptionPLCDeviceServer.start()public void valueChanged(int loc,
ValueChangedEvent e)
throws VIBUpdateFailedException,
BadParameterException
valueChanged in class ManipulatorVIBUpdateFailedExceptionBadParameterExceptionpublic void VIBEvent(VIBEvent vibEvent)
throws BadParameterException
VIBEvent in class SimpleDataSourceBadParameterExceptioncom.ergotech.vib.servers.SimpleDataSource#VIBEvent(com.ergotech.vib.utils.VIBEvent)Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.