public class PanasonicMewtocolOverTcp extends NetworkDeviceBase
WordLengthAlienSession, isPersistentConn, IsSocketError, isUseAccountCertificate, LogMsgFormatBinary, simpleHybirdLockCoreSocket, fileCacheSize, LogNet, TokenLogNet| 构造器和说明 |
|---|
PanasonicMewtocolOverTcp(int station)
实例化一个默认的松下PLC通信对象,默认站号为0xEE
Instantiate a default Panasonic PLC communication object, the default station number is 0xEE |
PanasonicMewtocolOverTcp(String ipAddress,
int port,
byte station)
实例化一个默认的松下PLC通信对象,指定ip地址,端口,默认站号为0xEE
Instantiate a default Panasonic PLC communication object, specify the IP address, port, and the default station number is 0xEE |
| 限定符和类型 | 方法和说明 |
|---|---|
protected INetMessage |
GetNewNetMessage()
获取一个新的消息对象的方法,需要在继承类里面进行重写
The method to get a new message object needs to be overridden in the inheritance class |
int |
getStation()
获取当前的设备站号信息
|
OperateResultExOne<byte[]> |
Read(String address,
short length)
读取指定地址的原始数据,地址示例:D0 F0 K0 T0 C0, 地址支持携带站号的访问方式,例如:s=2;D100
Read the original data of the specified address, address example: D0 F0 K0 T0 C0, the address supports carrying station number information, for example: s=2;D100 |
OperateResultExOne<Boolean> |
ReadBool(String address)
读取单个的地址信息的bool值,地址举例:SR0.0 X0.0 Y0.0 R0.0 L0.0
Read the bool value of a single address, for example: SR0.0 X0.0 Y0.0 R0.0 L0.0 |
OperateResultExOne<boolean[]> |
ReadBool(String address,
short length)
批量读取松下PLC的位数据,按照字为单位,地址为 X0,X10,Y10,读取的长度为16的倍数
Read the bit data of Panasonic PLC in batches, the unit is word, the address is X0, X10, Y10, and the read length is a multiple of 16 |
void |
setStation(int station)
设置当前的设备站号信息
|
String |
toString()
返回当前对象表示的字符串
Returns the string represented by the current object |
OperateResult |
Write(String address,
boolean value)
往指定的地址写入bool数据,地址举例:SR0.0 X0.0 Y0.0 R0.0 L0.0
Write bool data to the specified address. |
OperateResult |
Write(String address,
boolean[] values)
往指定的地址写入
|
OperateResult |
Write(String address,
byte[] value)
将数据写入到指定的地址里去,地址示例:D0 F0 K0 T0 C0, 地址支持携带站号的访问方式,例如:s=2;D100
Write data to the specified address, address example: D0 F0 K0 T0 C0, the address supports carrying station number information, for example: s=2;D100 |
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, Write, WriteCustomer, WriteUnicodeString, WriteUnicodeStringAccountCertificate, ConnectClose, ConnectServer, ConnectServer, ExtraAfterReadFromCoreServer, ExtraOnDisconnect, GetAvailableSocket, getByteTransform, getConnectionId, getConnectTimeOut, getIpAddress, getPort, getReceiveTimeOut, getSleepTime, InitializationOnConnect, IpAddressPing, PackCommandWithHeader, ReadFromCoreServer, ReadFromCoreServer, ReadFromCoreServer, setByteTransform, setConnectionId, setConnectTimeOut, setIpAddress, SetLoginAccount, SetPersistentConnection, setPort, setReceiveTimeOut, setSleepTime, UnpackResponseContentCheckRemoteToken, 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, setConnectionIdpublic PanasonicMewtocolOverTcp(int station)
station - 站号信息,默认为0xEEpublic PanasonicMewtocolOverTcp(String ipAddress, int port, byte station)
ipAddress - Ip地址数据port - 端口号station - 站号信息,默认为0xEEprotected INetMessage GetNewNetMessage()
NetworkDoubleBaseGetNewNetMessage 在类中 NetworkDoubleBasepublic int getStation()
public void setStation(int station)
station - 站号信息public OperateResultExOne<byte[]> Read(String address, short length)
Read 在接口中 IReadWriteNetRead 在类中 NetworkDeviceBaseaddress - 起始地址length - 长度public OperateResult Write(String address, byte[] value)
Write 在接口中 IReadWriteNetWrite 在类中 NetworkDeviceBaseaddress - 起始地址value - 真实数据public OperateResultExOne<boolean[]> ReadBool(String address, short length)
ReadBool 在接口中 IReadWriteNetReadBool 在类中 NetworkDeviceBaseaddress - 起始地址length - 数据长度public OperateResultExOne<Boolean> ReadBool(String address)
ReadBool 在接口中 IReadWriteNetReadBool 在类中 NetworkDeviceBaseaddress - 起始地址public OperateResult Write(String address, boolean[] values)
Write 在接口中 IReadWriteNetWrite 在类中 NetworkDeviceBaseaddress - 起始地址values - 数据值信息public OperateResult Write(String address, boolean value)
Write 在接口中 IReadWriteNetWrite 在类中 NetworkDeviceBaseaddress - 起始地址value - 数据值信息public String toString()
NetworkBasetoString 在类中 NetworkDeviceBaseCopyright © 2022. All rights reserved.