public class FinsDeviceServer extends PLCDeviceServer
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.util.Vector<FinsDeviceServer> |
finsDeviceServers
We maintain a list of all instances of FINSDeviceServers which can
be readily accessed when creating a list for the editor.
|
static int |
sid
The SID.
|
cvsRev, sharedPLCSimulation
CANNOT_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_ERROR
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, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
FinsDeviceServer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
_initializePortPool()
If the port and host are set, this creates the factory for this object.
|
PLCDataBlock |
_readDevice(PLCDataBlock msgOut)
Read from the device.
|
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
availableServers()
The list of possible sub-servers of this device.
|
static java.lang.String |
forceLoad(java.lang.String value)
This is generated by the property editor to force a reference
to the DeviceServer for genjar.
|
int |
getDestinationNetworkAddress() |
int |
getDestinationNodeNumber() |
int |
getDestinationUnitNumber() |
static java.util.Vector<FinsDeviceServer> |
getFinsDeviceServers() |
java.lang.String |
getHostname()
Returns the hostname/ip address of the PLC.
|
int |
getPortNumber()
Returns the PLC port number.
|
int |
getRetryCount() |
int |
getSourceNetworkAddress() |
int |
getSourceNodeNumber() |
int |
getSourcePort() |
boolean |
isVersion2OrHigher() |
PLCDataBlock |
readDevice(PLCDataBlock msgOut)
Read from the device.
|
void |
setDestinationNetworkAddress(int destinationNetworkAddress) |
void |
setDestinationNodeNumber(int destinationNodeNumber) |
void |
setDestinationUnitNumber(int destinationUnitNumber) |
void |
setHostname(java.lang.String hostname)
Sets the hostname/ip address of the PLC.
|
void |
setPortNumber(int portNumber)
Sets the port number of the PLC.
|
void |
setRetryCount(int retryCount) |
void |
setSourceNetworkAddress(int sourceNetworkAddress) |
void |
setSourceNodeNumber(int sourceNodeNumber) |
void |
setSourcePort(int sourcePort) |
void |
setVersion2OrHigher(boolean version2OrHigher) |
void |
simulatedWrite(java.lang.String blockType,
int startAddress,
PLCDataBlock values,
int bit)
This method is used to simulate a write to the device.
|
void |
start()
This method controls communication to the device.
|
void |
stop()
Overridden to remove the instance from the modbusDeviceServers
Vector.
|
PLCDataBlock |
writeDevice(PLCDataBlock msgOut)
Write to the device.
|
addServer, aggregateBlocks, destroy, getBlocksForType, getMaximumBlockOffset, getRegisterBlock, getRegisterBlockLocal, getRegisterBlockShared, hasServers, printException, readAllLongTimebaseServers, removeServer, setMaximumBlockOffset, simulatedWrite, simulateRead, simulationStateChanged, toString
canConnect, clearMessageLog, configurePort, equals, getLinkTimeout, getLinkTimeoutMilliseconds, getResponseTimeout, incrementErrorCount, init, initializePortPool, isSimulating, isSimulationFlag, messageLog, releasePortPool, resetErrorCount, setLinkTimeout, setName, setResponseTimeout, setSimulationFlag, setTimebase
clientRequest, createServer, deleteDevice, deleteServer, earlyStart, getEditableServers, getPersistentServers, getServerContainer, getServers, getServersInternal, getViewServers, preparingServer, setContainer, setServers
getDefaultQualityForLocation
getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueChanged, valueInput
addConnector, 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, 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, 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 java.util.Vector<FinsDeviceServer> finsDeviceServers
public static int sid
public void _initializePortPool()
factoryName
- public PLCDataBlock _readDevice(PLCDataBlock msgOut) throws PLCException
msgOut
- the msg to sendPLCException
public java.util.LinkedHashMap<java.lang.String,java.lang.String> availableServers()
availableServers
in class DeviceManagerManipulator
public static java.lang.String forceLoad(java.lang.String value)
public int getDestinationNetworkAddress()
public int getDestinationNodeNumber()
public int getDestinationUnitNumber()
public static java.util.Vector<FinsDeviceServer> getFinsDeviceServers()
public java.lang.String getHostname()
public int getPortNumber()
public int getRetryCount()
public int getSourceNetworkAddress()
public int getSourceNodeNumber()
public int getSourcePort()
public boolean isVersion2OrHigher()
public PLCDataBlock readDevice(PLCDataBlock msgOut) throws PLCException
readDevice
in class PLCDeviceServer
msgOut
- the msg to sendPLCException
public void setDestinationNetworkAddress(int destinationNetworkAddress)
destinationNetworkAddress
- the destinationNetworkAddress to setpublic void setDestinationNodeNumber(int destinationNodeNumber)
destinationNodeNumber
- the destinationNodeNumber to setpublic void setDestinationUnitNumber(int destinationUnitNumber)
destinationUnitNumber
- the destinationUnitNumber to setpublic void setHostname(java.lang.String hostname)
hostname
- The hostname to set.public void setPortNumber(int portNumber)
portNumber
- The portNumber to set.public void setRetryCount(int retryCount)
retryCount
- The retryCount to set.public void setSourceNetworkAddress(int sourceNetworkAddress)
sourceNetworkAddress
- the sourceNetworkAddress to setpublic void setSourceNodeNumber(int sourceNodeNumber)
sourceNodeNumber
- the sourceNodeNumber to setpublic void setSourcePort(int sourcePort)
sourcePort
- the sourcePort to setpublic void setVersion2OrHigher(boolean version2OrHigher)
version2OrHigher
- the version2OrHigher to setpublic void simulatedWrite(java.lang.String blockType, int startAddress, PLCDataBlock values, int bit) throws PLCException
simulatedWrite
in class PLCDeviceServer
PLCException
public void start() throws BadParameterException, VIBUpdateFailedException
PLCDeviceServer
start
in class PLCDeviceServer
BadParameterException
VIBUpdateFailedException
PLCDeviceServer.start()
public void stop() throws BadParameterException
stop
in class PLCDeviceServer
BadParameterException
DataSource.stop()
public PLCDataBlock writeDevice(PLCDataBlock msgOut) throws PLCException
writeDevice
in class PLCDeviceServer
msgOut
- the PDU to sendmsgIn
- the response PDUPLCException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.