public class FCOCIPDevice extends FCOCDevice
| Modifier and Type | Field and Description |
|---|---|
static int |
nUPGRADEPORT
Misc static definitions
|
m_aInterfacesInfo| Constructor and Description |
|---|
FCOCIPDevice(FCOIPort CommunicationPort,
int nNumberOfRegisters)
Create a FiveCo device based on legacy TCP communication protocol
|
FCOCIPDevice(FCOIPort CommunicationPort,
int nNumberOfRegisters,
int nBufferSize,
long lThreadSleep)
Create a FiveCo device based on legacy TCP communication protocol
|
| Modifier and Type | Method and Description |
|---|---|
FCOCDevice |
addSubDevice(java.lang.String szSubDevName,
int nAddress,
int nNumberOfRegisters,
int nInterface) |
void |
delete()
Ask device object to stop its communication thread.
|
int |
getInterface() |
void |
removeSubDevice(java.lang.String szSubDevName) |
void |
run()
Main communication thread loop (threadLoop() in dot net lib)
|
addDeviceListener, addRegister, addRegister, askGetInterfaceInfo, call, getBufferSize, getDeviceListeners, getLastValueRead, getLastValueWritten, getRegisterAddress, getThisInterfaceInfo, getThreadLoopTime, getValue, getValue, receivedGetInterfacesInfo, removeDeviceListener, removeRegister, setAutoreadState, setAutoreadSupended, setBufferSize, setDebugLogEnabled, setInterfaceComSupendedState, setMaxParentBufferSize, setThreadLoopTime, setValue, setValuepublic FCOCIPDevice(FCOIPort CommunicationPort, int nNumberOfRegisters, int nBufferSize, long lThreadSleep)
CommunicationPort - FiveCo communication port object implementing FCOIportnNumberOfRegisters - Max number of registers of this TCP devicenBufferSize - Size of buffer for FiveCo packets (default is 180 bytes)lThreadSleep - Sleep time in millisecondspublic FCOCIPDevice(FCOIPort CommunicationPort, int nNumberOfRegisters)
CommunicationPort - FiveCo communication port object implementing FCOIportnNumberOfRegisters - Max number of registers of this TCP devicepublic void delete()
Ask device object to stop its communication thread.
delete in class FCOCDevicepublic void removeSubDevice(java.lang.String szSubDevName)
removeSubDevice in class FCOCDeviceszSubDevName - Name of the sub device to removepublic FCOCDevice addSubDevice(java.lang.String szSubDevName, int nAddress, int nNumberOfRegisters, int nInterface) throws java.io.IOException
addSubDevice in class FCOCDeviceszSubDevName - Name of the sub device to addnAddress - New sub device addressnNumberOfRegisters - Maximum registers count of the sub devicenInterface - Interface number of the sub devicejava.io.IOException - Exception thrown if a parameter is invalidpublic int getInterface()
getInterface in class FCOCDevicepublic void run()
FCOCDevicerun in interface java.lang.Runnablerun in class FCOCDevice