public abstract class PLCArray extends SimpleManipulator
SimpleDataSource.NameEditorDataDataSource.Writable| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_SEPARATOR |
cvsRevUPDATE_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, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo| Constructor and Description |
|---|
PLCArray()
Create the Servers.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDeviceName()
Gets the id of the server.
|
java.lang.String |
getReg()
Returns the starting register.
|
int |
getRegisterCount()
Returns the register count.
|
java.lang.String |
getStartReg()
Returns the starting register (an integer, or -1 if it has not been set).
|
int |
getStaticLocationFor(java.lang.String loc)
This is used by the StaticMethodEvent to determine which valueChanged method to call.
|
int |
getStationAddress()
Returns the station address.
|
boolean |
isTriggerOnThread()
Returns whether or not to trigger on thread.
|
void |
setDeviceName(java.lang.String deviceName)
Sets the name of the device server
|
void |
setReg(java.lang.String reg)
Set the starting register for this array.
|
void |
setRegisterCount(int registerCount)
Set the number of registers to use.
|
void |
setStartReg(java.lang.String startReg)
Set the starting register for this array.
|
void |
setStationAddress(int stationAddress)
Sets the station address for the target.
|
void |
setTimebase(double timebase)
Override this since we do not have a timebase, but need to pass it to our
servers.
|
void |
setTriggerOnThread(boolean triggerOnThread)
Set whether or not to trigger each register on a thread.
|
void |
start()
Starts this server and all the servers we created.
|
void |
stop()
Stops this server and all the servers we created.
|
void |
triggerValueChanged(ValueChangedEvent event)
This allows a server without a timebase to be triggered for a read
|
void |
valueChanged(int loc,
ValueChangedEvent e)
This calls the proper valueChanged method based on
the return from the getStaticLocationFor method.
|
void |
valueInput(ValueChangedEvent newEvent)
This method assumes that it receives an array value object.
|
getDefaultQualityForLocationgetInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toStringaddConnector, 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, setTrace, setValueObject, tick, VIBEventaddVIBEventListener, 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, whoAmIpublic static final java.lang.String ELEMENT_SEPARATOR
public java.lang.String getDeviceName()
public java.lang.String getReg()
public int getRegisterCount()
public java.lang.String getStartReg()
public int getStaticLocationFor(java.lang.String loc)
throws BadParameterException
getStaticLocationFor in class ManipulatorBadParameterException - thrown if the location is unknownpublic int getStationAddress()
public boolean isTriggerOnThread()
public void setDeviceName(java.lang.String deviceName)
deviceName - the name of the devicepublic void setReg(java.lang.String reg)
throws PLCException
PLCExceptionpublic void setRegisterCount(int registerCount)
public void setStartReg(java.lang.String startReg)
throws PLCException
PLCExceptionpublic void setStationAddress(int stationAddress)
public void setTimebase(double timebase)
setTimebase in class SimpleDataSourcetimebase - the timebase of the serverSimpleDataSource.getTimebase()public void setTriggerOnThread(boolean triggerOnThread)
triggerOnThread - The triggerOnThread to set.public void start()
throws BadParameterException,
VIBUpdateFailedException
start in class SimpleDataSourceBadParameterExceptionVIBUpdateFailedExceptionSimpleDataSource.start()public void stop()
throws BadParameterException
stop in class SimpleDataSourceBadParameterExceptionSimpleDataSource.stop()public void triggerValueChanged(ValueChangedEvent event) throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic void valueChanged(int loc,
ValueChangedEvent e)
throws VIBUpdateFailedException,
BadParameterException
valueChanged in class ManipulatorVIBUpdateFailedExceptionBadParameterExceptionpublic void valueInput(ValueChangedEvent newEvent) throws VIBUpdateFailedException
valueInput in class ManipulatornewEvent - The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.