public class XinJETcpNet extends ModbusTcpNet
| 限定符和类型 | 字段和说明 |
|---|---|
XinJESeries |
Series
获取或设置当前的信捷PLC的系列,默认XC系列
|
WordLengthAlienSession, isPersistentConn, IsSocketError, isUseAccountCertificate, LogMsgFormatBinary, simpleHybirdLockCoreSocket, fileCacheSize, LogNet, TokenLogNet| 构造器和说明 |
|---|
XinJETcpNet()
实例化一个默认的对象
|
XinJETcpNet(String ipAddress,
int port,
byte station)
通过指定站号,ip地址,端口号来实例化一个新的对象
|
XinJETcpNet(XinJESeries series,
String ipAddress,
int port,
byte station)
通过指定站号,IP地址,端口以及PLC的系列来实例化一个新的对象
Instantiate a new object by specifying the station number and PLC series |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString()
返回表示当前对象的字符串
|
OperateResultExOne<String> |
TranslateToModbusAddress(String address,
byte modbusCode)
将当前的地址信息转换成Modbus格式的地址,如果转换失败,返回失败的消息。
|
getAddressStartWithZero, getDataFormat, GetNewNetMessage, getStation, isStringReverse, PackCommandWithHeader, Read, ReadBool, ReadCoil, ReadCoil, ReadDiscrete, ReadDiscrete, setAddressStartWithZero, setDataFormat, setStation, setStringReverse, UnpackResponseContent, Write, Write, Write, Write, WriteMask, WriteOneRegisterReadBool, ReadCustomer, ReadDouble, ReadDouble, ReadFloat, ReadFloat, ReadInt16, ReadInt16, ReadInt32, ReadInt32, ReadInt64, ReadInt64, ReadString, ReadString, ReadUInt16, ReadUInt16, ReadUInt32, ReadUInt32, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, WriteCustomer, WriteUnicodeString, WriteUnicodeStringAccountCertificate, ConnectClose, ConnectServer, ConnectServer, ExtraAfterReadFromCoreServer, ExtraOnDisconnect, GetAvailableSocket, getByteTransform, getConnectionId, getConnectTimeOut, getIpAddress, getPort, getReceiveTimeOut, getSleepTime, InitializationOnConnect, IpAddressPing, ReadFromCoreServer, ReadFromCoreServer, ReadFromCoreServer, setByteTransform, setConnectionId, setConnectTimeOut, setIpAddress, SetLoginAccount, SetPersistentConnection, setPort, setReceiveTimeOut, setSleepTimeCheckRemoteToken, CloseSocket, CreateSocketAndConnect, CreateSocketAndConnect, CreateSocketAndConnect, ReadStream, Receive, Receive, Receive, ReceiveAndCheckBytes, ReceiveByMessage, ReceiveByMessage, ReceiveBytesContentFromSocket, ReceiveBytesContentFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveFrameWebSocketPayload, ReceiveHslMessage, ReceiveMqttMessage, ReceiveRedisCommand, ReceiveRedisCommandString, ReceiveStringArrayContentFromSocket, ReceiveStringArrayContentFromSocket, ReceiveStringContentFromSocket, ReceiveStringContentFromSocket, ReceiveWebSocketPayload, Send, Send, SendAccountAndCheckReceive, SendBaseAndCheckReceive, SendBytesAndCheckReceive, SendStreamToSocket, SendStringAndCheckReceive, SendStringAndCheckReceive, ThreadPoolCheckTimeOut, WriteStream, WriteStreamFromSocketclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitReadFromCoreServerConnectClose, getConnectionId, ReadBool, ReadCustomer, ReadDouble, ReadDouble, ReadFloat, ReadFloat, ReadInt16, ReadInt16, ReadInt32, ReadInt32, ReadInt64, ReadInt64, ReadString, ReadString, ReadUInt16, ReadUInt16, ReadUInt32, ReadUInt32, setConnectionId, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, WriteCustomerpublic XinJESeries Series
public XinJETcpNet()
public XinJETcpNet(String ipAddress, int port, byte station)
ipAddress - Ip地址port - 端口号station - 站号信息public XinJETcpNet(XinJESeries series, String ipAddress, int port, byte station)
series - PLC的系列ipAddress - Ip地址port - 端口号station - 站号信息public OperateResultExOne<String> TranslateToModbusAddress(String address, byte modbusCode)
IModbusTranslateToModbusAddress 在接口中 IModbusTranslateToModbusAddress 在类中 ModbusTcpNetaddress - 传入的地址modbusCode - Modbus的功能码public String toString()
ModbusTcpNettoString 在类中 ModbusTcpNetCopyright © 2022. All rights reserved.