public class S7 extends PPIServer
SimpleDataSource.NameEditorData
DataSource.Writable
headerOffset, PDU_HEADER_OFFSET, PROTO_ID, RED_ID, ROSCTR_ACK, ROSCTR_ACKNOWLEDGEMENT_EMPTY, ROSCTR_ACKNOWLEDGEMENT_EXTRA, ROSCTR_ACKNOWLEDGEMENT_FULL
BINARY_VALUE, BOOLEAN_VALUE, BOTHSWAP, BYTESWAP, cvsRev, DOUBLE_WORD_VALUE, FLOAT_VALUE, NOSWAP, STRING_VALUE, WORD_VALUE, WORDSWAP
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, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
S7()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNullTerminated()
For Siemens string the first two bytes of the string indicate respectively:
- First Byte: Max Length of the string (In our case 48)
- Second Byte: Actual length of the string (In our case 5)
Set this variable to true to use Null Terminated strings rather than Siemens Strings.
|
void |
setNullTerminated(boolean nullTerminated)
For Siemens string the first two bytes of the string indicate respectively:
- First Byte: Max Length of the string (In our case 48)
- Second Byte: Actual length of the string (In our case 5)
Set this variable to true to use Null Terminated strings rather than Siemens Strings.
|
void |
setValueFrom(byte[] image,
int offset,
int quality)
Update the value of the server from an address block
|
void |
setValueObject(ValueObjectInterface newValue)
This is here to allow outside development systems to change the value
of the broadcast server.
|
getAddress, getByteOffset, getErrorString, getHeaderOffset, getMemoryAreaCode, getPDURef, getReg, isConfigured, setAddress, setByteOffset, setHeaderOffset, setReg, toString, validateResponse
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, shouldBeAdded, start, stop, toBCD, toBCD, triggerRead, triggerValueChanged, valueChanged, VIBEvent
getInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueInput
addConnector, 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, 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, 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, whoAmI
public boolean isNullTerminated()
public void setNullTerminated(boolean nullTerminated)
nullTerminated
- true for null terminated strings, false for Siemens stringspublic void setValueFrom(byte[] image, int offset, int quality) throws java.lang.ArrayIndexOutOfBoundsException
setValueFrom
in class PLCServer
java.lang.ArrayIndexOutOfBoundsException
public void setValueObject(ValueObjectInterface newValue) throws VIBUpdateFailedException
setValueObject
in class PLCServer
newValue
- the new ValueObject value for the serverVIBUpdateFailedException
PLCServer.setValueObject(com.ergotech.vib.valueobjects.ValueObjectInterface)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.