public abstract class PPIServer extends PLCServer
SimpleDataSource.NameEditorDataDataSource.Writable| Modifier and Type | Field and Description |
|---|---|
int |
headerOffset
The header offset in and SD2 message (7).
|
static int |
PDU_HEADER_OFFSET
The header offset in a PDU response message.
|
static byte |
PROTO_ID
The protocol ID.
|
static byte |
RED_ID
The redundancy ID.
|
static byte |
ROSCTR_ACK
The Remote Operating Services Control (ROSCTR) - Acknowledge Request.
|
static byte |
ROSCTR_ACKNOWLEDGEMENT_EMPTY
The Remote Operating Services Control (ROSCTR) - Acknowledgement
without the parameter and data fields.
|
static byte |
ROSCTR_ACKNOWLEDGEMENT_EXTRA
The Remote Operating Services Control (ROSCTR) - Acknowledgement
with extended header information in the parameter fields.
|
static byte |
ROSCTR_ACKNOWLEDGEMENT_FULL
The Remote Operating Services Control (ROSCTR) - Acknowledgement
with either or both the parameter and data fields.
|
BINARY_VALUE, BOOLEAN_VALUE, BOTHSWAP, BYTESWAP, cvsRev, DOUBLE_WORD_VALUE, FLOAT_VALUE, NOSWAP, STRING_VALUE, WORD_VALUE, WORDSWAPUPDATE_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 |
|---|
PPIServer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
Returns the PLC address.
|
int |
getByteOffset()
Returns the offset of the register of this server.
|
static java.lang.String |
getErrorString(int errorCode)
Maps error codes to error strings.
|
int |
getHeaderOffset() |
byte |
getMemoryAreaCode()
Returns the memory area code.
|
int |
getPDURef()
The synchronized accessor for the PDF REF.
|
java.lang.String |
getReg()
Returns the register address in the PLC.
|
boolean |
isConfigured()
Returns true if the configuration of this server is complete.
|
void |
setAddress(java.lang.String address)
Sets the PLC address.
|
void |
setByteOffset(int offset)
Sets the offset of the register of this server.
|
void |
setHeaderOffset(int headerOffset) |
void |
setReg(java.lang.String address)
Sets the register address in the PLC.
|
java.lang.String |
toString()
returns a string representation of this server.
|
PLCDataBlock |
validateResponse(PLCDataBlock msgOut,
PLCDataBlock msgIn)
Returns true if the response to a message is correct.
|
configure, destroy, fromBCD, fromBCD, getAddressType, getBit, getBitCount, getDefaultQualityForLocation, getDeviceName, getDeviceServer, getDirty, getLength, getOptimizeReads, getOutputBytes, getPLCAddressBlock, getSigned, getStaticLocationFor, getStationAddress, getSwapStyle, inByteSwap, isBCD, isDirty, isSimilar, isTriggerOnThread, outByteSwap, propertyChange, setAddressType, setBCD, setBit, setBitCount, setDeviceName, setDirty, setLength, setOptimizeReads, setOutputBytes, setSigned, setStationAddress, setSwapStyle, setTimebase, setTriggerOnThread, setValueFrom, setValueObject, shouldBeAdded, start, stop, toBCD, toBCD, triggerRead, triggerValueChanged, valueChanged, VIBEventgetInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueInputaddConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, 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, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTrace, 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, 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 int headerOffset
public static int PDU_HEADER_OFFSET
public static byte PROTO_ID
public static byte RED_ID
public static byte ROSCTR_ACK
public static byte ROSCTR_ACKNOWLEDGEMENT_EMPTY
public static byte ROSCTR_ACKNOWLEDGEMENT_EXTRA
public static byte ROSCTR_ACKNOWLEDGEMENT_FULL
public java.lang.String getAddress()
public int getByteOffset()
getByteOffset in class PLCServerpublic static java.lang.String getErrorString(int errorCode)
the - error codepublic int getHeaderOffset()
public byte getMemoryAreaCode()
public int getPDURef()
public java.lang.String getReg()
getAddress()public boolean isConfigured()
PLCServerisConfigured in class PLCServerpublic void setAddress(java.lang.String address)
throws PLCException
address - The new value.PLCExceptionpublic void setByteOffset(int offset)
public void setHeaderOffset(int headerOffset)
headerOffset - The headerOffset to set.public void setReg(java.lang.String address)
throws PLCException
address - The register address valuePLCExceptionsetAddress(java.lang.String)public java.lang.String toString()
public PLCDataBlock validateResponse(PLCDataBlock msgOut, PLCDataBlock msgIn) throws PLCException
validateResponse in class PLCServerPLCExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.