public class ControlLogixEthernetDeviceServer extends PLCDeviceServer
Modifier and Type | Class and Description |
---|---|
static class |
ControlLogixEthernetDeviceServer.EIPPort
This wraps the EtherNetIP instances.
|
static class |
ControlLogixEthernetDeviceServer.EIPPortFactory
EIP implementation of a port factory.
|
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static byte |
BIT_ARRAY |
static byte |
BOOL |
static int |
debugLevel
The debug level.
|
static byte |
DINT |
static byte |
INT |
static byte |
LINT |
static java.util.Vector<ControlLogixEthernetDeviceServer> |
logixDeviceServers
We maintain a list of all instances of Device Servers which can
be readily accessed when creating a list for the editor.
|
static byte |
LREAL |
static java.lang.String |
PORT_FACTORY_NAME
The name of the port factory.
|
static byte |
REAL |
static byte |
SINT |
static byte |
STRUCT |
static byte |
STRUCT_COUNTER |
static byte |
STRUCT_STRING |
static byte |
UDINT |
static byte |
UINT |
static byte |
ULINT |
static byte |
USINT |
cvsRev, sharedPLCSimulation
CANNOT_OPEN_PORT, currentErrorCount, 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 |
---|
ControlLogixEthernetDeviceServer()
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.util.LinkedHashMap<java.lang.String,java.lang.String> |
availableServers()
No servers are available currently.
|
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.
|
static java.util.Vector<ControlLogixEthernetDeviceServer> |
getControlLogixEthernetDeviceServers() |
java.lang.String |
getHostname()
Returns the hostname/ip address of the PLC.
|
int |
getMaximumSocketConnections() |
java.lang.String |
getPLCPrivateAddress()
The PLC private IP address or hostname.
|
int |
getPortNumber()
Returns the PLC port number.
|
int |
getStaticLocationFor(java.lang.String method)
Returns 3 for hostname and 4 for portnumber.
|
static long |
getTransactionNumber()
Returns a unique transaction number.
|
void |
initializePortPool()
Overridden to set the maximum number of connections.
|
PLCDataBlock |
readDevice(PLCDataBlock msgOut)
Read the packet from the PLC.
|
void |
setHostname(java.lang.String hostname)
Sets the hostname/ip address of the PLC.
|
void |
setMaximumSocketConnections(int maximumSocketConnection) |
void |
setPLCPrivateAddress(java.lang.String plcPrivateAddress)
The PLC private IP address or hostname.
|
void |
setPortNumber(int portNumber)
Sets the port number of the PLC.
|
void |
start()
initialize the port pool once the container has been set.
|
void |
stop()
Overridden to remove the instance from the DeviceServers
Vector.
|
static void |
toByteArray(long value,
byte[] buffer,
int offset,
int length)
Returns the variable as a byte[].
|
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".
|
PLCDataBlock |
writeDevice(PLCDataBlock msgOut)
Writes the packet to the PLC.
|
PLCDataBlock |
writeDeviceInternal(ControlLogixDataBlock controlLogixDataBlock)
Read the packet from the PLC.
|
addServer, aggregateBlocks, destroy, getBlocksForType, getMaximumBlockOffset, getRegisterBlock, getRegisterBlockLocal, getRegisterBlockShared, hasServers, printException, readAllLongTimebaseServers, removeServer, setMaximumBlockOffset, simulatedWrite, simulatedWrite, simulateRead, simulationStateChanged, toString
canConnect, clearMessageLog, configurePort, equals, getLinkTimeout, getLinkTimeoutMilliseconds, getResponseTimeout, incrementErrorCount, init, 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, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, 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
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 final byte BIT_ARRAY
public static final byte BOOL
public static int debugLevel
public static final byte DINT
public static final byte INT
public static final byte LINT
public static java.util.Vector<ControlLogixEthernetDeviceServer> logixDeviceServers
public static final byte LREAL
public static final java.lang.String PORT_FACTORY_NAME
public static final byte REAL
public static final byte SINT
public static final byte STRUCT
public static final byte STRUCT_COUNTER
public static final byte STRUCT_STRING
public static final byte UDINT
public static final byte UINT
public static final byte ULINT
public static final byte USINT
public ControlLogixEthernetDeviceServer()
public void _initializePortPool()
factoryName
- 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 static java.util.Vector<ControlLogixEthernetDeviceServer> getControlLogixEthernetDeviceServers()
public java.lang.String getHostname()
public int getMaximumSocketConnections()
public java.lang.String getPLCPrivateAddress()
public int getPortNumber()
public int getStaticLocationFor(java.lang.String method) throws BadParameterException
getStaticLocationFor
in class Manipulator
BadParameterException
public static long getTransactionNumber()
public void initializePortPool()
initializePortPool
in class PortDeviceServer
PortDeviceServer.initializePortPool()
public PLCDataBlock readDevice(PLCDataBlock msgOut) throws PLCException
readDevice
in class PLCDeviceServer
msgOut
- the message to sendPLCException
public void setHostname(java.lang.String hostname)
hostname
- The hostname to set.public void setMaximumSocketConnections(int maximumSocketConnection)
maximumSocketConnection
- The maximumSocketConnection to set.public void setPLCPrivateAddress(java.lang.String plcPrivateAddress)
public void setPortNumber(int portNumber)
portNumber
- The portNumber to set.public void start() throws BadParameterException, VIBUpdateFailedException
start
in class PLCDeviceServer
BadParameterException
VIBUpdateFailedException
PLCDeviceServer.start()
public void stop() throws BadParameterException
stop
in class PLCDeviceServer
BadParameterException
DataSource.stop()
public static void toByteArray(long value, byte[] buffer, int offset, int length)
value
- the value to add to the byte array - low bytes firstthe
- buffer to which to write the valueoffset
- the starting point in the buffer to add the byteslength
- the number of bytes to add.public void valueChanged(int loc, ValueChangedEvent e) throws VIBUpdateFailedException, BadParameterException
valueChanged
in class Manipulator
VIBUpdateFailedException
BadParameterException
public void VIBEvent(VIBEvent vibEvent) throws BadParameterException
VIBEvent
in class SimpleDataSource
BadParameterException
com.ergotech.vib.servers.SimpleDataSource#VIBEvent(com.ergotech.vib.utils.VIBEvent)
public PLCDataBlock writeDevice(PLCDataBlock msgOut) throws PLCException
writeDevice
in class PLCDeviceServer
PLCException
public PLCDataBlock writeDeviceInternal(ControlLogixDataBlock controlLogixDataBlock) throws PLCException
PLCException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.