public class PPIDeviceServer extends PPIDeviceServerBase implements java.lang.Runnable
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static byte |
END
Header for an SC PDU.
|
static byte |
FCB1
Frame Control Bit.
|
static byte |
FCB2
Frame Control Bit.
|
static byte |
FDL_STATUS
Frame Control Bit.
|
int |
guf
The Gap Update Factor.
|
byte |
hsa
The highest station address.
|
int[] |
las
The array of active addresses.
|
static byte |
MASTER_STATION_AREADY_IN_RING
Frame Control Bit.
|
static byte |
MASTER_STATION_NOT_READY
Frame Control Bit.
|
static byte |
MASTER_STATION_READY
Frame Control Bit.
|
static byte |
NAK_RR
Frame Control Bit.
|
static byte |
NAK_RS
Frame Control Bit.
|
static java.lang.String |
PORT_FACTORY_NAME
The name of the port factory.
|
static byte |
SC
Header for an SC PDU.
|
static byte |
SD1
Header for an SD1 PDU.
|
static byte |
SD2
Header for an SD2 PDU.
|
static byte |
SD4
Header for an SD4 PDU.
|
static byte |
SLAVE_STATION
Frame Control Bit.
|
ppiDeviceServers
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 |
---|
PPIDeviceServer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
_initializePortPool()
If the port and host are set, this creates the factory for this object.
|
int |
getBaudRate() |
int |
getFlowControl() |
int |
getGUF()
The gap update factor.
|
byte |
getHighestStationAddress()
The highest station address.
|
int |
getParity() |
int |
getPortNumber()
Returns the serial port number.
|
int |
getStopBits() |
void |
incrementErrorCount()
This routine will limit retry attempts.
|
void |
initializePortPool()
Sets the SerialPort parameters after creating the port.
|
PLCDataBlock |
readDevice(PLCDataBlock msgOut)
Read from the device.
|
void |
run()
Watch the serial port for incoming packets.
|
void |
setBaudRate(int baudRate) |
void |
setFlowControl(int flowControl) |
void |
setGUF(int guf)
The gap update factor.
|
void |
setHighestStationAddress(byte hsa)
The address of this node.
|
void |
setNodeAddress(byte nodeAddress)
The address of this node.
|
void |
setParity(int parity) |
void |
setPortNumber(int portNumber)
Sets the serial port number of the PLC.
|
void |
setSerialPortParameters()
Sets the SerialPort parameters.
|
void |
setStopBits(int stopBits) |
PLCDataBlock |
writeDevice(PLCDataBlock msgOut)
Write to the device.
|
availableServers, forceLoad, getNodeAddress, getPPIDeviceServers, getRetryCount, printArray, setRetryCount, setTimebase, start, stop
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, init, isSimulating, isSimulationFlag, messageLog, releasePortPool, resetErrorCount, setLinkTimeout, setName, setResponseTimeout, setSimulationFlag
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 final java.lang.String cvsRev
public static final byte END
public static final byte FCB1
public static final byte FCB2
public static final byte FDL_STATUS
public int guf
public byte hsa
public int[] las
public static final byte MASTER_STATION_AREADY_IN_RING
public static final byte MASTER_STATION_NOT_READY
public static final byte MASTER_STATION_READY
public static final byte NAK_RR
public static final byte NAK_RS
public static final java.lang.String PORT_FACTORY_NAME
public static final byte SC
public static final byte SD1
public static final byte SD2
public static final byte SD4
public static final byte SLAVE_STATION
public void _initializePortPool()
factoryName
- public int getBaudRate()
public int getFlowControl()
public int getGUF()
public byte getHighestStationAddress()
public int getParity()
public int getPortNumber()
public int getStopBits()
public void incrementErrorCount()
incrementErrorCount
in class PortDeviceServer
public void initializePortPool()
initializePortPool
in class PortDeviceServer
PortDeviceServer.initializePortPool()
public PLCDataBlock readDevice(PLCDataBlock msgOut) throws PLCException
readDevice
in class PLCDeviceServer
msgOut
- the PDU to sendmsgIn
- the response PDUPLCException
public void run()
run
in interface java.lang.Runnable
public void setBaudRate(int baudRate)
baudRate
- The baudRate to set.public void setFlowControl(int flowControl)
flowControl
- The flowControl to set.public void setGUF(int guf)
public void setHighestStationAddress(byte hsa)
public void setNodeAddress(byte nodeAddress)
setNodeAddress
in class PPIDeviceServerBase
public void setParity(int parity)
parity
- The parity to set.public void setPortNumber(int portNumber)
portNumber
- The portNumber to set.public void setSerialPortParameters()
public void setStopBits(int stopBits)
stopBits
- The stopBits to set.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.