| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<Integer> |
FanucSeries0i.ReadAlarmStatus()
读取报警状态信息
Read alarm status information |
OperateResultExOne<FileDirInfo[]> |
FanucSeries0i.ReadAllDirectoryAndFile(String path)
读取指定路径下的所有的子路径和文件的信息,路径信息,例如 "//CNC_MEM/USER/"
|
OperateResultExOne<Integer> |
FanucSeries0i.ReadAllDirectoryAndFileCount(String path)
获取指定的路径里所有的文件夹数量和文件数量之和,路径示例:例如 "//CNC_MEM/USER/", "//CNC_MEM/USER/PATH1/"
|
OperateResultExOne<Date> |
FanucSeries0i.ReadCurrentDateTime()
读取机床的当前时间信息
Read the current time information of the machine tool |
OperateResultExOne<String> |
FanucSeries0i.ReadCurrentForegroundDir()
读取当前程序的前台路径
Read the foreground path of the current program |
OperateResultExOne<Integer> |
FanucSeries0i.ReadCurrentProduceCount()
读取当前的已加工的零件数量
Read the current number of processed parts |
OperateResultExOne<String> |
FanucSeries0i.ReadCurrentProgram()
读取当前的程序内容,只能读取程序的片段,返回程序内容。
|
OperateResultExOne<CutterInfo[]> |
FanucSeries0i.ReadCutterInfos(int cutterNumber)
读取当前的刀具补偿信息,默认刀具数量应该是24
Read current tool compensation information |
OperateResultExOne<Integer> |
FanucSeries0i.ReadCutterNumber()
读取当前的正在使用的刀具号
Read the tool number currently in use |
OperateResultExOne<double[]> |
FanucSeries0i.ReadDeviceWorkPiecesSize()
读取工件尺寸
Read workpiece size |
OperateResultExOne<Integer> |
FanucSeries0i.ReadExpectProduceCount()
读取期望的加工的零件数量
Read the expected number of processed parts |
OperateResultExOne<double[]> |
FanucSeries0i.ReadFanucAxisLoad()
读取伺服负载
Read servo load |
OperateResultExOne<Short> |
FanucSeries0i.ReadLanguage()
读取机床的语言设定信息,具体值的含义参照API文档说明
Read the language setting information of the machine tool, refer to the API documentation for the meaning of the specific values |
OperateResultExOne<FanucOperatorMessage[]> |
FanucSeries0i.ReadOperatorMessage()
读取机床的操作信息
Read machine operation information |
OperateResultExOne<String> |
FanucSeries0i.ReadProgram(int program)
[商业授权] 读取指定程序号的程序内容
[Authorization] Read the program content of the specified program number |
OperateResultExOne<String> |
FanucSeries0i.ReadProgram(int program,
String path)
[商业授权] 根据路径信息读取指定程序号的程序内容
[Authorization] Read the program content of the specified program number |
OperateResultExOne<int[]> |
FanucSeries0i.ReadProgramList()
读取设备的程序列表
Read the program list of the device |
OperateResultExOne<byte[]> |
FanucSeries0i.ReadRData(int start,
int end)
读取R数据,需要传入起始地址和结束地址,返回byte[]数据信息
To read R data, you need to pass in the start address and end address, and return byte[] data information |
OperateResultExOne<SysAllCoors> |
FanucSeries0i.ReadSysAllCoors()
读取机床的坐标,包括机械坐标,绝对坐标,相对坐标
Read the coordinates of the machine tool, including mechanical coordinates, absolute coordinates, and relative coordinates |
OperateResultExOne<FanucSysInfo> |
FanucSeries0i.ReadSysInfo()
获取fanuc机床设备的基本信息,型号,轴数量等等
|
OperateResultExOne<SysStatusInfo> |
FanucSeries0i.ReadSysStatusInfo()
读取系统的基本信息状态,工作模式,运行状态,是否急停等等操作
Read the basic information status of the system, working mode, running status, emergency stop, etc. |
OperateResultExOne<SysAlarm[]> |
FanucSeries0i.ReadSystemAlarm()
读取报警信息
Read alarm information |
OperateResultExOne<Double> |
FanucSeries0i.ReadSystemMacroValue(int number)
读取宏变量,可以用来读取刀具号
Read macro variable, can be used to read tool number |
OperateResultExOne<double[]> |
FanucSeries0i.ReadSystemMacroValue(int number,
int length)
读取宏变量,可以用来读取刀具号
Read macro variable, can be used to read tool number |
OperateResultExOne<Long> |
FanucSeries0i.ReadTimeData(int timeType)
读取fanuc机床的时间,0是开机时间,1是运行时间,2是切割时间,3是循环时间,4是空闲时间,返回秒为单位的信息
Read the time of the fanuc machine tool, 0 is the boot time, 1 is the running time, 2 is the cutting time, 3 is the cycle time, 4 is the idle time, and returns the information in seconds. |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<S7AddressData> |
S7AddressData.ParseFrom(String address)
从实际的西门子的地址里面解析出地址对象
Resolve the address object from the actual Siemens address
|
static OperateResultExOne<OmronFinsAddress> |
OmronFinsAddress.ParseFrom(String address)
从实际的欧姆龙的地址里面解析出地址对象
Resolve the address object from the actual Profinet.Omron address |
static OperateResultExOne<FujiSPHAddress> |
FujiSPHAddress.ParseFrom(String address)
从实际的Fuji的地址里面解析出地址对象
Resolve the address object from the actual Fuji address |
static OperateResultExOne<FujiSPBAddress> |
FujiSPBAddress.ParseFrom(String address)
从实际的Fuji的地址里面解析出地址对象
Resolve the address object from the actual Fuji address |
static OperateResultExOne<AllenBradleySLCAddress> |
AllenBradleySLCAddress.ParseFrom(String address)
从实际的罗克韦尔的地址里面解析出地址对象,例如 A9:0
Parse the address object from the actual Rockwell address, such as A9:0 |
static OperateResultExOne<GeSRTPAddress> |
GeSRTPAddress.ParseFrom(String address,
boolean isBit) |
static OperateResultExOne<S7AddressData> |
S7AddressData.ParseFrom(String address,
int length)
从实际的西门子的地址里面解析出地址对象
Resolve the address object from the actual Siemens address
|
static OperateResultExOne<FatekProgramAddress> |
FatekProgramAddress.ParseFrom(String address,
int length)
从普通的PLC的地址转换为HSL标准的地址信息
|
static OperateResultExOne<YokogawaLinkAddress> |
YokogawaLinkAddress.ParseFrom(String address,
short length)
从普通的PLC的地址转换为HSL标准的地址信息
|
static OperateResultExOne<OmronFinsAddress> |
OmronFinsAddress.ParseFrom(String address,
short length)
从实际的欧姆龙的地址里面解析出地址对象
Resolve the address object from the actual Profinet.Omron address |
static OperateResultExOne<FujiSPHAddress> |
FujiSPHAddress.ParseFrom(String address,
short length)
从实际的Fuji的地址里面解析出地址对象
Resolve the address object from the actual Fuji address |
static OperateResultExOne<FujiSPBAddress> |
FujiSPBAddress.ParseFrom(String address,
short length)
从实际的Fuji的地址里面解析出地址对象
Resolve the address object from the actual Fuji address |
static OperateResultExOne<AllenBradleySLCAddress> |
AllenBradleySLCAddress.ParseFrom(String address,
short length)
从实际的罗克韦尔的地址里面解析出地址对象,例如 A9:0
Parse the address object from the actual Rockwell address, such as A9:0 |
static OperateResultExOne<GeSRTPAddress> |
GeSRTPAddress.ParseFrom(String address,
short length,
boolean isBit)
从GE的地址里,解析出实际的带数据码的
GeSRTPAddress 地址信息,起始地址会自动减一,和实际的地址相匹配 |
static OperateResultExOne<McAddressData> |
McAddressData.ParseKeyenceFrom(String address,
int length)
从实际基恩士的地址里面解析出
Resolve the address information we need from the actual Keyence address
|
static OperateResultExOne<McAddressData> |
McAddressData.ParseMelsecFrom(String address,
int length)
从实际三菱的地址里面解析出我们需要的地址类型
Resolve the type of address we need from the actual Mitsubishi address
|
static OperateResultExOne<McAddressData> |
McAddressData.ParseMelsecRFrom(String address,
short length) |
static OperateResultExOne<McAddressData> |
McAddressData.ParsePanasonicFrom(String address,
int length)
从实际松下的地址里面解析出
|
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<byte[]> |
IReadWriteNet.Read(String address,
short length)
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array |
OperateResultExOne<Boolean> |
IReadWriteNet.ReadBool(String address)
|
OperateResultExOne<boolean[]> |
IReadWriteNet.ReadBool(String address,
short length)
|
<T extends IDataTransfer> |
IReadWriteNet.ReadCustomer(String address,
Class<T> tClass)
读取自定义的数据类型,需要继承自IDataTransfer接口
|
OperateResultExOne<Double> |
IReadWriteNet.ReadDouble(String address)
读取双浮点的数据
Read double floating point data |
OperateResultExOne<double[]> |
IReadWriteNet.ReadDouble(String address,
short length)
读取双浮点数据的数组
Read double floating point data array |
OperateResultExOne<Float> |
IReadWriteNet.ReadFloat(String address)
读取单浮点数据
Read single floating point data |
OperateResultExOne<float[]> |
IReadWriteNet.ReadFloat(String address,
short length)
读取单浮点精度的数组
Read single floating point array |
OperateResultExOne<byte[]> |
IReadWriteDevice.ReadFromCoreServer(byte[] send)
将当前的数据报文发送到设备去,具体使用什么通信方式取决于设备信息,然后从设备接收数据回来,并返回给调用者。
|
OperateResultExOne<Short> |
IReadWriteNet.ReadInt16(String address)
读取16位的有符号的整型数据
Read 16-bit signed integer data |
OperateResultExOne<short[]> |
IReadWriteNet.ReadInt16(String address,
short length)
读取16位的有符号整型数组
Read 16-bit signed integer array |
OperateResultExOne<Integer> |
IReadWriteNet.ReadInt32(String address)
读取32位的有符号整型
Read 32-bit signed integer |
OperateResultExOne<int[]> |
IReadWriteNet.ReadInt32(String address,
short length)
读取32位有符号整型数组
Read 32-bit signed integer array |
OperateResultExOne<Long> |
IReadWriteNet.ReadInt64(String address)
读取64位的有符号整型
Read 64-bit signed integer |
OperateResultExOne<long[]> |
IReadWriteNet.ReadInt64(String address,
short length)
读取64位的有符号整型数组
Read 64-bit signed integer array |
OperateResultExOne<String> |
IReadWriteNet.ReadString(String address,
short length)
读取字符串数据,默认为最常见的ASCII编码
Read string data, default is the most common ASCII encoding |
OperateResultExOne<String> |
IReadWriteNet.ReadString(String address,
short length,
Charset encoding)
使用指定的编码,读取字符串数据
Reads string data using the specified encoding |
OperateResultExOne<Integer> |
IReadWriteNet.ReadUInt16(String address)
读取16位的无符号整型
Read 16-bit unsigned integer |
OperateResultExOne<int[]> |
IReadWriteNet.ReadUInt16(String address,
short length)
读取16位的无符号整型数组
Read 16-bit unsigned integer array |
OperateResultExOne<Long> |
IReadWriteNet.ReadUInt32(String address)
读取32位的无符号整型
Read 32-bit unsigned integer |
OperateResultExOne<long[]> |
IReadWriteNet.ReadUInt32(String address,
short length)
读取32位的无符号整型数组
Read 32-bit unsigned integer array |
| 限定符和类型 | 方法和说明 |
|---|---|
protected OperateResultExOne<Socket> |
NetworkBase.CreateSocketAndConnect(SocketAddress endPoint,
int timeOut)
创建一个新的socket对象并连接到远程的地址,需要指定ip地址以及端口号信息,还有超时时间,单位是毫秒
To create a new socket object and connect to a remote address, you need to specify the IP address and port number information, and the timeout period in milliseconds |
protected OperateResultExOne<Socket> |
NetworkBase.CreateSocketAndConnect(String ipAddress,
int port)
创建一个新的socket对象并连接到远程的地址,默认超时时间为10秒钟,需要指定ip地址以及端口号信息
Create a new socket object and connect to the remote address. |
protected OperateResultExOne<Socket> |
NetworkBase.CreateSocketAndConnect(String ipAddress,
int port,
int timeOut)
创建一个新的socket对象并连接到远程的地址,需要指定ip地址以及端口号信息,还有超时时间,单位是毫秒
To create a new socket object and connect to a remote address, you need to specify the IP address and port number information, and the timeout period in milliseconds |
protected OperateResultExOne<Socket> |
NetworkDoubleBase.GetAvailableSocket()
获取本次操作的可用的网络通道,如果是短连接,就重新生成一个新的网络通道,如果是长连接,就复用当前的网络通道。
|
OperateResultExOne<byte[]> |
NetworkUdpDeviceBase.Read(String address,
short length) |
OperateResultExOne<byte[]> |
NetworkDeviceBase.Read(String address,
short length) |
OperateResultExOne<byte[]> |
NetworkDataServerBase.Read(String address,
short length)
一个字单位的数据表示的地址长度,西门子为2,三菱,欧姆龙,modbusTcp就为1,AB PLC无效
The address length represented by one word of data, Siemens is 2, Mitsubishi, Profinet.Omron, modbusTcp is 1, AB PLC is invalid |
OperateResultExOne<Boolean> |
NetworkUdpDeviceBase.ReadBool(String address) |
OperateResultExOne<Boolean> |
NetworkDeviceBase.ReadBool(String address) |
OperateResultExOne<Boolean> |
NetworkDataServerBase.ReadBool(String address) |
OperateResultExOne<boolean[]> |
NetworkUdpDeviceBase.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
NetworkDeviceBase.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
NetworkDataServerBase.ReadBool(String address,
short length) |
<T extends IDataTransfer> |
NetworkUdpDeviceBase.ReadCustomer(String address,
Class<T> tClass) |
<T extends IDataTransfer> |
NetworkDeviceBase.ReadCustomer(String address,
Class<T> tClass) |
<T extends IDataTransfer> |
NetworkDataServerBase.ReadCustomer(String address,
Class<T> tClass) |
OperateResultExOne<Double> |
NetworkUdpDeviceBase.ReadDouble(String address) |
OperateResultExOne<Double> |
NetworkDeviceBase.ReadDouble(String address) |
OperateResultExOne<Double> |
NetworkDataServerBase.ReadDouble(String address) |
OperateResultExOne<double[]> |
NetworkUdpDeviceBase.ReadDouble(String address,
short length) |
OperateResultExOne<double[]> |
NetworkDeviceBase.ReadDouble(String address,
short length) |
OperateResultExOne<double[]> |
NetworkDataServerBase.ReadDouble(String address,
short length) |
OperateResultExOne<Float> |
NetworkUdpDeviceBase.ReadFloat(String address) |
OperateResultExOne<Float> |
NetworkDeviceBase.ReadFloat(String address) |
OperateResultExOne<Float> |
NetworkDataServerBase.ReadFloat(String address) |
OperateResultExOne<float[]> |
NetworkUdpDeviceBase.ReadFloat(String address,
short length) |
OperateResultExOne<float[]> |
NetworkDeviceBase.ReadFloat(String address,
short length) |
OperateResultExOne<float[]> |
NetworkDataServerBase.ReadFloat(String address,
short length) |
protected OperateResultExOne<byte[]> |
NetworkDataServerBase.ReadFromCoreServer(AppSession session,
byte[] receive) |
OperateResultExOne<byte[]> |
NetworkUdpBase.ReadFromCoreServer(byte[] send)
核心的数据交互读取,发数据发送到通道上去,然后从通道上接收返回的数据
|
OperateResultExOne<byte[]> |
NetworkDoubleBase.ReadFromCoreServer(byte[] send)
将数据发送到当前的网络通道中,并从网络通道中接收一个
INetMessage 指定的完整的报文,网络通道将根据 NetworkDoubleBase.GetAvailableSocket() 方法自动获取,本方法是线程安全的。 |
OperateResultExOne<byte[]> |
NetworkUdpBase.ReadFromCoreServer(byte[] send,
boolean hasResponseData,
boolean usePackAndUnpack)
核心的数据交互读取,发数据发送到通道上去,然后从通道上接收返回的数据
|
OperateResultExOne<byte[]> |
NetworkDoubleBase.ReadFromCoreServer(byte[] send,
boolean hasResponseData,
boolean usePackAndUnpack)
将数据发送到当前的网络通道中,并从网络通道中接收一个
INetMessage 指定的完整的报文,网络通道将根据 NetworkDoubleBase.GetAvailableSocket() 方法自动获取,本方法是线程安全的。 |
OperateResultExOne<byte[]> |
NetworkDoubleBase.ReadFromCoreServer(Socket socket,
byte[] send,
boolean hasResponseData,
boolean usePackAndUnpack)
将数据报文发送指定的网络通道上,根据当前指定的
INetMessage 类型,返回一条完整的数据指令Sends a data message to the specified network channel, and returns a complete data command according to the currently specified |
OperateResultExOne<Short> |
NetworkUdpDeviceBase.ReadInt16(String address) |
OperateResultExOne<Short> |
NetworkDeviceBase.ReadInt16(String address) |
OperateResultExOne<Short> |
NetworkDataServerBase.ReadInt16(String address) |
OperateResultExOne<short[]> |
NetworkUdpDeviceBase.ReadInt16(String address,
short length) |
OperateResultExOne<short[]> |
NetworkDeviceBase.ReadInt16(String address,
short length) |
OperateResultExOne<short[]> |
NetworkDataServerBase.ReadInt16(String address,
short length) |
OperateResultExOne<Integer> |
NetworkUdpDeviceBase.ReadInt32(String address) |
OperateResultExOne<Integer> |
NetworkDeviceBase.ReadInt32(String address) |
OperateResultExOne<Integer> |
NetworkDataServerBase.ReadInt32(String address) |
OperateResultExOne<int[]> |
NetworkUdpDeviceBase.ReadInt32(String address,
short length) |
OperateResultExOne<int[]> |
NetworkDeviceBase.ReadInt32(String address,
short length) |
OperateResultExOne<int[]> |
NetworkDataServerBase.ReadInt32(String address,
short length) |
OperateResultExOne<Long> |
NetworkUdpDeviceBase.ReadInt64(String address) |
OperateResultExOne<Long> |
NetworkDeviceBase.ReadInt64(String address) |
OperateResultExOne<Long> |
NetworkDataServerBase.ReadInt64(String address) |
OperateResultExOne<long[]> |
NetworkUdpDeviceBase.ReadInt64(String address,
short length) |
OperateResultExOne<long[]> |
NetworkDeviceBase.ReadInt64(String address,
short length) |
OperateResultExOne<long[]> |
NetworkDataServerBase.ReadInt64(String address,
short length) |
protected OperateResultExOne<Integer> |
NetworkBase.ReadStream(InputStream stream,
byte[] buffer)
读取流中的数据到缓存区,读取的长度需要按照实际的情况来判断
Read the data in the stream to the buffer area. |
OperateResultExOne<String> |
NetworkUdpDeviceBase.ReadString(String address,
short length) |
OperateResultExOne<String> |
NetworkDeviceBase.ReadString(String address,
short length) |
OperateResultExOne<String> |
NetworkDataServerBase.ReadString(String address,
short length) |
OperateResultExOne<String> |
NetworkUdpDeviceBase.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<String> |
NetworkDeviceBase.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<String> |
NetworkDataServerBase.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<Integer> |
NetworkUdpDeviceBase.ReadUInt16(String address) |
OperateResultExOne<Integer> |
NetworkDeviceBase.ReadUInt16(String address) |
OperateResultExOne<Integer> |
NetworkDataServerBase.ReadUInt16(String address) |
OperateResultExOne<int[]> |
NetworkUdpDeviceBase.ReadUInt16(String address,
short length) |
OperateResultExOne<int[]> |
NetworkDeviceBase.ReadUInt16(String address,
short length) |
OperateResultExOne<int[]> |
NetworkDataServerBase.ReadUInt16(String address,
short length) |
OperateResultExOne<Long> |
NetworkUdpDeviceBase.ReadUInt32(String address) |
OperateResultExOne<Long> |
NetworkDeviceBase.ReadUInt32(String address) |
OperateResultExOne<Long> |
NetworkDataServerBase.ReadUInt32(String address) |
OperateResultExOne<long[]> |
NetworkUdpDeviceBase.ReadUInt32(String address,
short length) |
OperateResultExOne<long[]> |
NetworkDeviceBase.ReadUInt32(String address,
short length) |
OperateResultExOne<long[]> |
NetworkDataServerBase.ReadUInt32(String address,
short length) |
protected OperateResultExOne<byte[]> |
NetworkBase.Receive(Socket socket,
int length)
接收固定长度的字节数组,允许指定超时时间,默认为60秒,当length大于0时,接收固定长度的数据内容,当length小于0时,接收不大于1024长度的随机数据信息
Receiving a fixed-length byte array, allowing a specified timeout time. |
protected OperateResultExOne<byte[]> |
NetworkBase.Receive(Socket socket,
int length,
int timeout)
接收固定长度的字节数组,需要指定超时时间,当length大于0时,接收固定长度的数据内容,当length小于0时,接收不大于1024长度的随机数据信息
To receive a fixed-length byte array, you need to specify the timeout period. |
protected OperateResultExOne<byte[]> |
NetworkBase.Receive(Socket socket,
int length,
int timeout,
ActionOperateExTwo<Long,Long> reportProgress)
接收固定长度的字节数组,需要指定超时时间,当length大于0时,接收固定长度的数据内容,当length小于0时,接收不大于1024长度的随机数据信息
To receive a fixed-length byte array, you need to specify the timeout period. |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveByMessage(Socket socket,
int timeOut,
INetMessage netMessage)
接收一条完整的
INetMessage 数据内容,需要指定超时时间,单位为毫秒。 |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveByMessage(Socket socket,
int timeOut,
INetMessage netMessage,
ActionOperateExTwo<Long,Long> reportProgress)
接收一条完整的
INetMessage 数据内容,需要指定超时时间,单位为毫秒。 |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveCommandLineFromSocket(Socket socket,
byte endCode)
接收一行命令数据,需要自己指定这个结束符,指定超时时间
To receive a line of command data, you need to specify the terminator yourself. and also the timeout value |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveCommandLineFromSocket(Socket socket,
byte endCode1,
byte endCode2)
接收一行命令数据,需要自己指定这个结束符,默认超时时间60秒,单位是毫秒
To receive a line of command data, you need to specify the terminator yourself. |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveCommandLineFromSocket(Socket socket,
byte endCode1,
byte endCode2,
int timeout)
接收一行命令数据,需要自己指定这个结束符,指定超时时间,单位是毫秒
To receive a line of command data, you need to specify the terminator yourself. and also the timeout value |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveCommandLineFromSocket(Socket socket,
byte endCode,
int timeout)
接收一行命令数据,需要自己指定这个结束符,指定超时时间
To receive a line of command data, you need to specify the terminator yourself. and also the timeout value |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveRedisCommand(Socket socket)
从网络接收一条完整的redis报文的消息
Receive a complete redis message from the network |
protected OperateResultExOne<byte[]> |
NetworkBase.ReceiveRedisCommandString(Socket socket,
int length)
接收一行基于redis协议的字符串的信息,需要指定固定的长度
Receive a line of information based on the redis protocol string, you need to specify a fixed length |
protected OperateResultExOne<WebSocketMessage> |
NetworkBase.ReceiveWebSocketPayload(Socket socket)
从socket接收一条完整的 websocket 数据,返回
WebSocketMessage 的数据信息Receive a complete websocket data from the socket, return the data information of the WebSocketMessage |
protected OperateResultExOne<byte[]> |
NetworkUdpBase.UnpackResponseContent(byte[] send,
byte[] response)
根据对方返回的报文命令,对命令进行基本的拆包,例如各种Modbus协议拆包为统一的核心报文,还支持对报文的验证
|
protected OperateResultExOne<byte[]> |
NetworkDoubleBase.UnpackResponseContent(byte[] send,
byte[] response)
根据对方返回的报文命令,对命令进行基本的拆包,例如各种Modbus协议拆包为统一的核心报文,还支持对报文的验证
|
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<Boolean> |
ByteTransformHelper.GetBoolResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Byte> |
ByteTransformHelper.GetByteResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Double> |
ByteTransformHelper.GetDoubleResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Short> |
ByteTransformHelper.GetInt16ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Integer> |
ByteTransformHelper.GetInt32ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Long> |
ByteTransformHelper.GetInt64ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static <TResult> OperateResultExOne<TResult> |
ByteTransformHelper.GetResultFromArray(OperateResultExOne<TResult[]> result)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
static <TResult> OperateResultExOne<TResult> |
ByteTransformHelper.GetResultFromBytes(OperateResultExOne<byte[]> result,
FunctionOperateExOne<byte[],TResult> translator)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
static OperateResultExOne<Float> |
ByteTransformHelper.GetSingleResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<String> |
ByteTransformHelper.GetStringResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static <TResult1,TResult2> |
ByteTransformHelper.GetTResultFromArray(OperateResultExOne<TResult2[]> result)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<Boolean> |
ByteTransformHelper.GetBoolResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Byte> |
ByteTransformHelper.GetByteResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Double> |
ByteTransformHelper.GetDoubleResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Short> |
ByteTransformHelper.GetInt16ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Integer> |
ByteTransformHelper.GetInt32ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<Long> |
ByteTransformHelper.GetInt64ResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static <TResult> OperateResultExOne<TResult> |
ByteTransformHelper.GetResultFromArray(OperateResultExOne<TResult[]> result)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
static <TResult> OperateResultExOne<TResult> |
ByteTransformHelper.GetResultFromBytes(OperateResultExOne<byte[]> result,
FunctionOperateExOne<byte[],TResult> translator)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
static OperateResultExOne<Float> |
ByteTransformHelper.GetSingleResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static OperateResultExOne<String> |
ByteTransformHelper.GetStringResultFromBytes(OperateResultExOne<byte[]> result,
IByteTransform byteTransform)
将指定的OperateResult类型转化
|
static <TResult1,TResult2> |
ByteTransformHelper.GetTResultFromArray(OperateResultExOne<TResult2[]> result)
结果转换操作的基础方法,需要支持类型,及转换的委托
|
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<T> |
OperateResultExOne.Check(FunctionOperateExOne<T,Boolean> check,
String message)
返回一个检查结果对象,可以进行自定义的数据检查。
|
OperateResultExOne<T> |
OperateResultExOne.Check(FunctionOperateExOne<T,OperateResult> check)
返回一个检查结果对象,可以进行自定义的数据检查。
|
<T> OperateResultExOne<T> |
OperateResult.Convert(T content)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure |
static <T> OperateResultExOne<T> |
OperateResultExOne.CreateFailedResult(OperateResult result)
创建一个失败的对象
|
static <T> OperateResultExOne<T> |
OperateResultExOne.CreateSuccessResult(T content)
创建一个成功的泛型类结果对象
|
<T> OperateResultExOne<T> |
OperateResult.ThenExOne(FunctionOperate<OperateResultExOne<T>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExFour.ThenExOne(FunctionOperateExFour<T1,T2,T3,T4,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExOne.ThenExOne(FunctionOperateExOne<T,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExThree.ThenExOne(FunctionOperateExThree<T1,T2,T3,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExTwo.ThenExOne(FunctionOperateExTwo<T1,T2,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> OperateResultExOne<T> |
OperateResult.ThenExOne(FunctionOperate<OperateResultExOne<T>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExFour.ThenExOne(FunctionOperateExFour<T1,T2,T3,T4,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExOne.ThenExOne(FunctionOperateExOne<T,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExThree.ThenExOne(FunctionOperateExThree<T1,T2,T3,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
<TResult> OperateResultExOne<TResult> |
OperateResultExTwo.ThenExOne(FunctionOperateExTwo<T1,T2,OperateResultExOne<TResult>> func)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<Long> |
RedisHelper.GetLongNumberFromCommandLine(byte[] commandLine)
从原始的结果数据对象中提取出数字数据
|
static OperateResultExOne<Integer> |
RedisHelper.GetNumberFromCommandLine(byte[] commandLine)
从原始的结果数据对象中提取出数字数据
|
static OperateResultExOne<String> |
RedisHelper.GetStringFromCommandLine(byte[] commandLine)
从结果的数据对象里提取字符串的信息
|
static OperateResultExOne<String[]> |
RedisHelper.GetStringsFromCommandLine(byte[] commandLine)
从redis的结果数据中分析出所有的字符串信息
|
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<byte[]> |
NetSimplifyClient.ReadFromServer(NetHandle customer,
byte[] send)
客户端向服务器进行请求,请求字节数据
|
OperateResultExOne<String> |
NetSimplifyClient.ReadFromServer(NetHandle customer,
String send)
客户端向服务器进行请求,请求字符串数据,忽略了自定义消息反馈
|
OperateResultExOne<String[]> |
NetSimplifyClient.ReadFromServer(NetHandle customer,
String[] send)
客户端向服务器进行请求,请求字符串数组,忽略了自定义消息反馈
|
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<byte[]> |
NetUdpClient.ReadFromServer(NetHandle customer,
byte[] send)
客户端向服务器进行请求,请求字节数据
The client makes a request to the server, requesting byte data |
OperateResultExOne<String> |
NetUdpClient.ReadFromServer(NetHandle customer,
String send)
客户端向服务器进行请求,请求字符串数据,忽略了自定义消息反馈
The client makes a request to the server, requesting string data, and ignoring custom message feedback |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<ModbusAddress> |
ModbusInfo.AnalysisAddress(String address,
byte defaultStation,
boolean isStartWithZero,
byte defaultFunction)
分析Modbus协议的地址信息,该地址适应于tcp及rtu模式
|
static OperateResultExOne<byte[][]> |
ModbusInfo.BuildReadModbusCommand(ModbusAddress mAddress,
short length)
构建Modbus读取数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码应该根据bool或是字来区分
|
static OperateResultExOne<byte[][]> |
ModbusInfo.BuildReadModbusCommand(String address,
short length,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus读取数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码应该根据bool或是字来区分
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteBoolModbusCommand(ModbusAddress mAddress,
boolean value)
构建Modbus写入bool数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteBoolModbusCommand(ModbusAddress mAddress,
boolean[] values)
构建Modbus写入bool数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteBoolModbusCommand(String address,
boolean[] values,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus写入bool数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteBoolModbusCommand(String address,
boolean value,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus写入bool数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteMaskModbusCommand(ModbusAddress mAddress,
short andMask,
short orMask)
构建Modbus写入掩码数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteMaskModbusCommand(String address,
short andMask,
short orMask,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus写入掩码的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteOneRegisterModbusCommand(ModbusAddress mAddress,
short value)
构建Modbus写入字数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteWordModbusCommand(ModbusAddress mAddress,
byte[] values)
构建Modbus写入字数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteWordModbusCommand(String address,
byte[] values,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus写入字数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.BuildWriteWordModbusCommand(String address,
short value,
byte station,
boolean isStartWithZero,
byte defaultFunction)
构建Modbus写入字数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
|
static OperateResultExOne<byte[]> |
ModbusInfo.ExtractActualData(byte[] response)
从返回的modbus的书内容中,提取出真实的数据,适用于写入和读取操作
|
static OperateResultExOne<byte[]> |
ModbusHelper.ExtraRtuResponseContent(byte[] send,
byte[] response) |
static OperateResultExOne<byte[]> |
ModbusHelper.Read(IModbus modbus,
String address,
short length) |
OperateResultExOne<byte[]> |
ModbusUdpNet.Read(String address,
short length)
从Modbus服务器批量读取寄存器的信息,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x03,如果需要使用04功能码,那么地址就写成 "x=4;100"
To read the register information from the Modbus server in batches, you need to specify the start address and read length. |
OperateResultExOne<byte[]> |
ModbusTcpServer.Read(String address,
short length) |
OperateResultExOne<byte[]> |
ModbusTcpNet.Read(String address,
short length)
从Modbus服务器批量读取寄存器的信息,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x03,如果需要使用04功能码,那么地址就写成 "x=4;100"
To read the register information from the Modbus server in batches, you need to specify the start address and read length. |
OperateResultExOne<byte[]> |
ModbusRtuOverTcp.Read(String address,
short length)
从Modbus服务器批量读取寄存器的信息,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x03,如果需要使用04功能码,那么地址就写成 x=4;100
To read the register information from the Modbus server in batches, you need to specify the start address and read length. |
OperateResultExOne<boolean[]> |
ModbusUdpNet.ReadBool(String address,
short length)
批量读取线圈或是离散的数据信息,需要指定地址和长度,具体的结果取决于实现,如果富文本地址不指定,默认使用的功能码是 0x01
To read coils or discrete data in batches, you need to specify the address and length. |
OperateResultExOne<boolean[]> |
ModbusTcpServer.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
ModbusTcpNet.ReadBool(String address,
short length)
批量读取线圈或是离散的数据信息,需要指定地址和长度,具体的结果取决于实现,如果富文本地址不指定,默认使用的功能码是 0x01
To read coils or discrete data in batches, you need to specify the address and length. |
OperateResultExOne<boolean[]> |
ModbusRtuOverTcp.ReadBool(String address,
short length)
批量读取线圈或是离散的数据信息,需要指定地址和长度,具体的结果取决于实现,如果富文本地址不指定,默认使用的功能码是 0x01
To read coils or discrete data in batches, you need to specify the address and length. |
static OperateResultExOne<boolean[]> |
ModbusHelper.ReadBoolHelper(IModbus modbus,
String address,
short length,
byte function) |
OperateResultExOne<Boolean> |
ModbusUdpNet.ReadCoil(String address)
读取线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x01
To read the coil, you need to specify the start address. |
OperateResultExOne<Boolean> |
ModbusTcpNet.ReadCoil(String address)
读取线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x01
To read the coil, you need to specify the start address. |
OperateResultExOne<Boolean> |
ModbusRtuOverTcp.ReadCoil(String address)
读取线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x01
To read the coil, you need to specify the start address. |
OperateResultExOne<boolean[]> |
ModbusUdpNet.ReadCoil(String address,
short length)
批量的读取线圈,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x01
For batch reading coils, you need to specify the start address and read length. |
OperateResultExOne<boolean[]> |
ModbusTcpNet.ReadCoil(String address,
short length)
批量的读取线圈,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x01
For batch reading coils, you need to specify the start address and read length. |
OperateResultExOne<boolean[]> |
ModbusRtuOverTcp.ReadCoil(String address,
short length)
批量的读取线圈,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x01
For batch reading coils, you need to specify the start address and read length. |
OperateResultExOne<Boolean> |
ModbusUdpNet.ReadDiscrete(String address)
读取输入线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x02
To read the input coil, you need to specify the start address. |
OperateResultExOne<Boolean> |
ModbusTcpNet.ReadDiscrete(String address)
读取输入线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x02
To read the input coil, you need to specify the start address. |
OperateResultExOne<Boolean> |
ModbusRtuOverTcp.ReadDiscrete(String address)
读取输入线圈,需要指定起始地址,如果富文本地址不指定,默认使用的功能码是 0x02
To read the input coil, you need to specify the start address. |
OperateResultExOne<boolean[]> |
ModbusUdpNet.ReadDiscrete(String address,
short length)
批量的读取输入点,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x02
To read input points in batches, you need to specify the start address and read length. |
OperateResultExOne<boolean[]> |
ModbusTcpNet.ReadDiscrete(String address,
short length)
批量的读取输入点,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x02
To read input points in batches, you need to specify the start address and read length. |
OperateResultExOne<boolean[]> |
ModbusRtuOverTcp.ReadDiscrete(String address,
short length)
批量的读取输入点,需要指定起始地址,读取长度,如果富文本地址不指定,默认使用的功能码是 0x02
To read input points in batches, you need to specify the start address and read length. |
protected OperateResultExOne<byte[]> |
ModbusTcpServer.ReadFromCoreServer(AppSession session,
byte[] receive) |
static OperateResultExOne<byte[]> |
ModbusInfo.TransAsciiPackCommandToRtu(byte[] value)
将一个modbus-ascii的数据报文,转换成的modbus核心数据报文
|
OperateResultExOne<String> |
ModbusUdpNet.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
ModbusTcpNet.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
ModbusRtuOverTcp.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
IModbus.TranslateToModbusAddress(String address,
byte modbusCode)
将当前的地址信息转换成Modbus格式的地址,如果转换失败,返回失败的消息。
|
protected OperateResultExOne<byte[]> |
ModbusUdpNet.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
ModbusTcpNet.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
ModbusRtuOverTcp.UnpackResponseContent(byte[] send,
byte[] response) |
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<byte[]> |
ModbusDataPool.Read(String address,
short length) |
OperateResultExOne<boolean[]> |
ModbusDataPool.ReadBool(String address,
short length) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
MqttHelper.BuildConnectMqttCommand(MqttConnectionOptions connectionOptions,
String protocol)
创建MQTT连接服务器的报文信息
Create MQTT connection server message information |
static OperateResultExOne<byte[]> |
MqttHelper.BuildConnectMqttCommand(MqttConnectionOptions connectionOptions,
String protocol,
RSACryptoServiceProvider rsa)
创建MQTT连接服务器的报文信息
Create MQTT connection server message information |
static OperateResultExOne<byte[]> |
MqttHelper.BuildMqttCommand(byte head,
byte[] variableHeader,
byte[] payLoad,
AesCryptography aesCryptography)
将一个数据打包成一个mqtt协议的内容
Pack a piece of data into a mqtt protocol |
static OperateResultExOne<byte[]> |
MqttHelper.BuildMqttCommand(byte control,
byte flags,
byte[] variableHeader,
byte[] payLoad)
将一个数据打包成一个mqtt协议的内容
Pack a piece of data into a mqtt protocol |
static OperateResultExOne<byte[]> |
MqttHelper.BuildMqttCommand(byte control,
byte flags,
byte[] variableHeader,
byte[] payLoad,
AesCryptography aesCryptography)
将一个数据打包成一个mqtt协议的内容
Pack a piece of data into a mqtt protocol |
static OperateResultExOne<byte[]> |
MqttHelper.BuildPublishMqttCommand(MqttPublishMessage message)
创建Mqtt发送消息的命令
Create Mqtt command to send messages |
static OperateResultExOne<byte[]> |
MqttHelper.BuildPublishMqttCommand(String topic,
byte[] payload)
创建Mqtt发送消息的命令
Create Mqtt command to send messages |
static OperateResultExOne<byte[]> |
MqttHelper.BuildSubscribeMqttCommand(MqttSubscribeMessage message)
创建MQTT订阅消息的命名
Command to create Mqtt subscription message |
static OperateResultExOne<byte[]> |
MqttHelper.BuildUnSubscribeMqttCommand(MqttSubscribeMessage message)
创建Mqtt取消订阅消息的命令
Create Mqtt unsubscribe message command |
static OperateResultExOne<byte[]> |
MqttHelper.CalculateLengthToMqttLength(int length)
根据数据的总长度,计算出剩余的数据长度信息
According to the total length of the data, calculate the remaining data length information |
OperateResultExOne<byte[]> |
MqttSyncClient.ReadFromCoreServer(Socket socket,
byte[] send) |
OperateResultExOne<String[]> |
MqttSyncClient.ReadRetainTopics()
读取服务器的已经驻留的所有消息的主题列表
Read the topic list of all messages that have resided on the server |
OperateResultExOne<String> |
MqttSyncClient.ReadRpcApis()
读取服务器的已经注册的API信息列表,将返回API的主题路径,注释信息,示例的传入的数据信息。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
AllenBradleyDF1Serial.BuildProtectedTypedLogicalMaskWithThreeAddressFields(int tns,
String address,
int bitIndex,
boolean value)
构建0F-AB的掩码写入的功能
|
static OperateResultExOne<byte[]> |
AllenBradleyDF1Serial.BuildProtectedTypedLogicalReadWithThreeAddressFields(byte dstNode,
byte srcNode,
int tns,
String address,
short length)
构建0F-A2命令码的报文读取指令,用来读取文件数据。
|
static OperateResultExOne<byte[]> |
AllenBradleyDF1Serial.BuildProtectedTypedLogicalReadWithThreeAddressFields(int tns,
String address,
short length) |
static OperateResultExOne<byte[]> |
AllenBradleyDF1Serial.BuildProtectedTypedLogicalWriteWithThreeAddressFields(byte dstNode,
byte srcNode,
int tns,
String address,
byte[] data)
构建0F-AA命令码的写入读取指令,用来写入文件数据。
|
static OperateResultExOne<byte[]> |
AllenBradleyDF1Serial.BuildProtectedTypedLogicalWriteWithThreeAddressFields(int tns,
String address,
byte[] data) |
OperateResultExOne<byte[]> |
AllenBradleyNet.BuildReadCommand(String[] address)
Build a read command bytes
|
OperateResultExOne<byte[]> |
AllenBradleyNet.BuildReadCommand(String[] address,
int[] length)
Build a read command bytes
|
static OperateResultExOne<byte[]> |
AllenBradleySLCNet.BuildReadCommand(String address,
short length)
构建读取的指令信息
|
static OperateResultExOne<byte[]> |
AllenBradleySLCNet.BuildWriteCommand(String address,
boolean value) |
OperateResultExOne<byte[]> |
AllenBradleyNet.BuildWriteCommand(String address,
Boolean data)
Create a written message instruction
|
static OperateResultExOne<byte[]> |
AllenBradleySLCNet.BuildWriteCommand(String address,
byte[] value)
构建写入的报文内容,变成实际的数据
|
OperateResultExOne<byte[]> |
AllenBradleyNet.BuildWriteCommand(String address,
short typeCode,
byte[] data)
Create a written message instruction
|
OperateResultExOne<byte[]> |
AllenBradleyNet.BuildWriteCommand(String address,
short typeCode,
byte[] data,
int length)
Create a written message instruction
|
static OperateResultExOne<byte[]> |
AllenBradleySLCNet.ExtraActualContent(byte[] content)
解析当前的实际报文内容,变成数据内容
|
static OperateResultExOne<byte[]> |
AllenBradleyHelper.PackExecutePCCCRead(int tns,
String address,
short length)
打包一个PCCC的读取的命令报文
|
static OperateResultExOne<byte[]> |
AllenBradleyHelper.PackExecutePCCCWrite(int tns,
String address,
byte[] value)
打包一个PCCC的写入的命令报文
|
static OperateResultExOne<byte[]> |
AllenBradleyHelper.PackExecutePCCCWrite(int tns,
String address,
int bitIndex,
boolean value) |
OperateResultExOne<byte[]> |
AllenBradleyNet.Read(String[] address)
Bulk read Data information
|
OperateResultExOne<byte[]> |
AllenBradleyNet.Read(String[] address,
int[] length)
批量读取数据信息,数据长度为读取的数组长度信息 -> Bulk read data information, data length for read array length information
|
OperateResultExOne<byte[]> |
AllenBradleySLCNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
AllenBradleyPcccNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
AllenBradleyNet.Read(String address,
short length)
Read data information, data length for read array length information
|
OperateResultExOne<Boolean> |
AllenBradleySLCNet.ReadBool(String address) |
OperateResultExOne<Boolean> |
AllenBradleyPcccNet.ReadBool(String address) |
OperateResultExOne<Boolean> |
AllenBradleyNet.ReadBool(String address)
读取单个的bool数据信息 -> Read a single BOOL data information
|
OperateResultExOne<boolean[]> |
AllenBradleyNet.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
AllenBradleyNet.ReadBoolArray(String address)
批量读取的bool数组信息 -> Bulk read of bool array information
|
OperateResultExOne<Byte> |
AllenBradleyPcccNet.ReadByte(String address) |
OperateResultExOne<Byte> |
AllenBradleyNet.ReadByte(String address)
读取PLC的byte类型的数据 -> Read the byte type of PLC data
|
OperateResultExOne<byte[]> |
AllenBradleyNet.ReadCipFromServer(byte[]... cips)
使用CIP报文和服务器进行核心的数据交换
|
OperateResultExOne<double[]> |
AllenBradleyNet.ReadDouble(String address,
short length)
读取PLC的double类型的数组 -> An array that reads the double type of the PLC
|
OperateResultExOne<float[]> |
AllenBradleyNet.ReadFloat(String address,
short length)
读取PLC的float类型的数组 -> An array that reads the float type of the PLC
|
OperateResultExOne<short[]> |
AllenBradleyNet.ReadInt16(String address,
short length)
读取PLC的short类型的数组 -> Read an array of the short type of the PLC
|
OperateResultExOne<int[]> |
AllenBradleyNet.ReadInt32(String address,
short length)
读取PLC的int类型的数组 -> An array that reads the int type of the PLC
|
OperateResultExOne<long[]> |
AllenBradleyNet.ReadInt64(String address,
short length)
读取PLC的long类型的数组 -> An array that reads the long type of the PLC
|
OperateResultExOne<String> |
AllenBradleyNet.ReadPlcType()
读取PLC的型号信息
|
static OperateResultExOne<String> |
AllenBradleyHelper.ReadPlcType(IReadWriteDevice plc)
从PLC里读取当前PLC的型号信息
Read the current PLC model information from the PLC |
OperateResultExOne<byte[]> |
AllenBradleyNet.ReadSegment(String address,
int startIndex,
int length)
Read Segment Data Array form plc, use address tag name
|
OperateResultExOne<String> |
AllenBradleyPcccNet.ReadString(String address) |
OperateResultExOne<String> |
AllenBradleyNet.ReadString(String address)
读取PLC的string类型的数据 -> read plc string type value
|
OperateResultExOne<String> |
AllenBradleyPcccNet.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<String> |
AllenBradleyNet.ReadString(String address,
short length,
String encoding)
读取PLC的string类型的数据 -> read plc string type value
|
OperateResultExOne<int[]> |
AllenBradleyNet.ReadUInt16(String address,
short length)
读取PLC的ushort类型的数组 -> Read an array of the ushort type of the PLC
|
OperateResultExOne<long[]> |
AllenBradleyNet.ReadUInt32(String address,
short length)
读取PLC的int类型的数组 -> An array that reads the int type of the PLC
|
| 限定符和类型 | 方法和说明 |
|---|---|
OperateResultExOne<byte[]> |
DeltaTcpNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
DeltaSerialOverTcp.Read(String address,
short length) |
OperateResultExOne<boolean[]> |
DeltaTcpNet.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
DeltaSerialOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<String> |
DeltaTcpNet.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
DeltaSerialOverTcp.TranslateToModbusAddress(String address,
byte modbusCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<String> |
DeltaASHelper.ParseDeltaASAddress(String address,
byte modbusCode)
根据台达AS300的PLC的地址,解析出转换后的modbus协议信息,适用AS300系列,当前的地址仍然支持站号指定,例如s=2;D100
According to the PLC address of Delta AS300, the converted modbus protocol information is parsed, and it is applicable to AS300 series. |
static OperateResultExOne<String> |
DeltaDvpHelper.ParseDeltaDvpAddress(String address,
byte modbusCode)
根据台达PLC的地址,解析出转换后的modbus协议信息,适用DVP系列,当前的地址仍然支持站号指定,例如s=2;D100
According to the address of Delta PLC, the converted modbus protocol information is parsed out, applicable to DVP series, the current address still supports station number designation, such as s=2;D100 |
static OperateResultExOne<byte[]> |
DeltaDvpHelper.Read(FunctionOperateExTwo<String,Short,OperateResultExOne<byte[]>> readFunc,
String address,
short length)
读取台达PLC的原始字节变量,重写了读D地址时,跨区域读4096地址时,将会分割多次读取
|
static OperateResultExOne<byte[]> |
DeltaHelper.Read(IDelta delta,
FunctionOperateExTwo<String,Short,OperateResultExOne<byte[]>> readFunc,
String address,
short length) |
static OperateResultExOne<boolean[]> |
DeltaDvpHelper.ReadBool(FunctionOperateExTwo<String,Short,OperateResultExOne<boolean[]>> readBoolFunc,
String address,
short length)
读取台达PLC的bool变量,重写了读M地址时,跨区域读1536地址时,将会分割多次读取
|
static OperateResultExOne<boolean[]> |
DeltaHelper.ReadBool(IDelta delta,
FunctionOperateExTwo<String,Short,OperateResultExOne<boolean[]>> readBoolFunc,
String address,
short length) |
static OperateResultExOne<String> |
DeltaHelper.TranslateToModbusAddress(IDelta delta,
String address,
byte modbusCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
DeltaDvpHelper.Read(FunctionOperateExTwo<String,Short,OperateResultExOne<byte[]>> readFunc,
String address,
short length)
读取台达PLC的原始字节变量,重写了读D地址时,跨区域读4096地址时,将会分割多次读取
|
static OperateResultExOne<byte[]> |
DeltaHelper.Read(IDelta delta,
FunctionOperateExTwo<String,Short,OperateResultExOne<byte[]>> readFunc,
String address,
short length) |
static OperateResultExOne<boolean[]> |
DeltaDvpHelper.ReadBool(FunctionOperateExTwo<String,Short,OperateResultExOne<boolean[]>> readBoolFunc,
String address,
short length)
读取台达PLC的bool变量,重写了读M地址时,跨区域读1536地址时,将会分割多次读取
|
static OperateResultExOne<boolean[]> |
DeltaHelper.ReadBool(IDelta delta,
FunctionOperateExTwo<String,Short,OperateResultExOne<boolean[]>> readBoolFunc,
String address,
short length) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<ArrayList<byte[]>> |
FatekProgramHelper.BuildReadBoolCommand(byte station,
String address,
short length)
创建一条Bool读取的指令信息,需要指定一些参数
|
static OperateResultExOne<ArrayList<byte[]>> |
FatekProgramHelper.BuildReadWordCommand(byte station,
String address,
short length)
创建一条Word读取的指令信息,需要指定一些参数
|
static OperateResultExOne<byte[]> |
FatekProgramHelper.BuildWriteBoolCommand(byte station,
String address,
boolean[] value)
创建一条别入bool数据的指令信息,需要指定一些参数
|
static OperateResultExOne<byte[]> |
FatekProgramHelper.BuildWriteByteCommand(byte station,
String address,
byte[] value)
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位
|
static OperateResultExOne<byte[]> |
FatekProgramHelper.Read(IReadWriteDevice device,
byte station,
String address,
short length)
批量读取PLC的字节数据,以字为单位,支持读取X,Y,M,S,D,T,C,R,RT,RC具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如 s=2;D100
Read PLC byte data in batches, in word units. |
OperateResultExOne<byte[]> |
FatekProgramOverTcp.Read(String address,
short length) |
static OperateResultExOne<boolean[]> |
FatekProgramHelper.ReadBool(IReadWriteDevice device,
byte station,
String address,
short length)
批量读取bool类型数据,支持的类型为X,Y,M,S,T,C,具体的地址范围取决于PLC的类型,地址可以携带站号信息,例如 s=2;M100
Read bool data in batches. |
OperateResultExOne<boolean[]> |
FatekProgramOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
FatekProgramOverTcp.ReadStatus() |
static OperateResultExOne<boolean[]> |
FatekProgramHelper.ReadStatus(IReadWriteDevice device,
byte station)
读取当前PLC的状态信息,返回一个bool数组,同时包含了几种电量信息,分别为 0: RUN/STOP, 1: BAT LOW/正常, 2: Ladder checksum error/正常, 3: 使用ROM PACK/未使用,
4: WDT Timeout/正常, 5: 设定ID/未设ID, 6: 紧急停机/正常
Read the status information of the current PLC and return a bool array, which also contains several power information, 0: RUN/STOP, 1: BAT LOW/normal, 2: Ladder checksum error/normal, 3: Use ROM PACK/ Not used, 4: WDT Timeout/Normal, 5: ID set/ID not set, 6: Emergency stop/Normal |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
FujiSPBHelper.BuildReadCommand(byte station,
FujiSPBAddress address,
short length)
创建一条读取的指令信息,需要指定一些参数,单次读取最大105个字
|
static OperateResultExOne<ArrayList<byte[]>> |
FujiSPHNet.BuildReadCommand(byte connectionId,
FujiSPHAddress address,
short length)
构建读取数据的命令报文
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.BuildReadCommand(byte station,
String[] address,
short[] length,
boolean isBool)
创建一条读取多个地址的指令信息,需要指定一些参数,单次读取最大105个字
|
static OperateResultExOne<ArrayList<byte[]>> |
FujiSPHNet.BuildReadCommand(byte connectionId,
String address,
short length)
构建读取数据的命令报文
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.BuildReadCommand(byte station,
String address,
short length)
创建一条读取的指令信息,需要指定一些参数,单次读取最大105个字
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.BuildWriteBoolCommand(byte station,
String address,
boolean value)
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位,单次写入最大103个字
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.BuildWriteByteCommand(byte station,
String address,
byte[] value)
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位,单次写入最大103个字
|
static OperateResultExOne<byte[]> |
FujiSPHNet.BuildWriteCommand(byte connectionId,
String address,
byte[] data)
构建写入数据的命令报文
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.CheckResponseData(byte[] content)
检查反馈的数据信息,是否包含了错误码,如果没有包含,则返回成功
|
static OperateResultExOne<byte[]> |
FujiSPHNet.ExtractActualData(byte[] response)
从PLC返回的报文里解析出实际的数据内容,如果发送了错误,则返回失败信息
|
static OperateResultExOne<byte[]> |
FujiSPBHelper.Read(IReadWriteDevice device,
byte station,
String address,
short length)
批量读取PLC的数据,以字为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100
Read PLC data in batches, in units of words. |
OperateResultExOne<byte[]> |
FujiSPHNet.Read(String address,
short length)
批量读取PLC的地址数据,长度单位为字。
|
OperateResultExOne<byte[]> |
FujiSPBOverTcp.Read(String address,
short length) |
static OperateResultExOne<boolean[]> |
FujiSPBHelper.ReadBool(IReadWriteDevice device,
byte station,
String address,
short length)
批量读取PLC的Bool数据,以位为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W,例如 M100, 如果是寄存器地址,可以使用D10.12来访问第10个字的12位,地址可以携带站号信息,例如:s=2;M100
Read PLC's Bool data in batches, in units of bits, support reading X, Y, L, M, D, TN, CN, TC, CC, R, W, such as M100, if it is a register address, you can use D10. 12 to access the 12 bits of the 10th word, the address can carry station number information, for example: s=2;M100 |
OperateResultExOne<boolean[]> |
FujiSPHNet.ReadBool(String address,
short length)
批量读取位数据的方法,需要传入位地址,读取的位长度,地址示例:M1.100.5,M3.1000.12,M10.1000.0
To read the bit data in batches, you need to pass in the bit address, the length of the read bit, address examples: M1.100.5, M3.1000.12, M10.1000.0 |
OperateResultExOne<boolean[]> |
FujiSPBOverTcp.ReadBool(String address,
short length) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
GeHelper.BuildReadCommand(long id,
GeSRTPAddress address)
构建一个读取数据的报文命令,需要指定消息号,读取的 GE 地址信息
To construct a message command to read data, you need to specify the message number and read GE address information |
static OperateResultExOne<byte[]> |
GeHelper.BuildReadCommand(long id,
String address,
short length,
boolean isBit) |
static OperateResultExOne<byte[]> |
GeHelper.BuildReadCoreCommand(long id,
byte code,
byte[] data)
构建一个读取数据的报文信息,需要指定操作的数据代码,读取的参数信息
To construct a message information for reading data, you need to specify the data code of the operation and the parameter information to be read |
static OperateResultExOne<byte[]> |
GeHelper.BuildWriteCommand(long id,
GeSRTPAddress address,
byte[] value) |
static OperateResultExOne<byte[]> |
GeHelper.BuildWriteCommand(long id,
String address,
boolean[] value)
构建一个批量写入 bool 数组变量的报文,需要指定消息号,写入的地址,地址参照
|
static OperateResultExOne<byte[]> |
GeHelper.BuildWriteCommand(long id,
String address,
byte[] value)
构建一个批量写入 byte 数组变量的报文,需要指定消息号,写入的地址,地址参照
|
static OperateResultExOne<Date> |
GeHelper.ExtraDateTime(byte[] content)
从实际的时间的字节数组里解析出C#格式的时间对象,这个时间可能是时区0的时间,需要自行转化本地时间。
|
static OperateResultExOne<String> |
GeHelper.ExtraProgramName(byte[] content)
实际的返回的字节数组里解析出PLC的程序的名称。
|
static OperateResultExOne<byte[]> |
GeHelper.ExtraResponseContent(byte[] content)
从PLC返回的数据中,提取出实际的数据内容,最少6个字节的数据。
|
OperateResultExOne<byte[]> |
GeSRTPNet.Read(String address,
short length)
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组,支持 I,Q,M,T,SA,SB,SC,S,G 的位和字节读写,支持 AI,AQ,R 的字读写操作,地址示例:R1,M1
Batch read byte array information, need to specify the address and length, return the original byte array. |
OperateResultExOne<boolean[]> |
GeSRTPNet.ReadBool(String address,
short length)
按照位为单位,批量从指定的地址里读取 bool 数组数据,不支持 AI,AQ,R 地址类型,地址比如从1开始,例如 I1,Q1,M1,T1,SA1,SB1,SC1,S1,G1
R address types are not supported. |
OperateResultExOne<Byte> |
GeSRTPNet.ReadByte(String address)
根据指定的地址来读取一个字节的数据,按照字节为单位,例如 M1 字节,就是指 M1-M8 位组成的字节,M2 字节就是 M9-M16 组成的字节。
|
OperateResultExOne<Date> |
GeSRTPNet.ReadPLCTime()
[商业授权] 读取PLC当前的时间,这个时间可能是不包含时区的,需要自己转换成本地的时间。
|
OperateResultExOne<String> |
GeSRTPNet.ReadProgramName()
[商业授权] 读取PLC当前的程序的名称
[Authorization] Read the name of the current program of the PLC |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<String> |
InovanceHelper.PraseInovanceAddress(InovanceSeries series,
String address,
byte modbusCode)
根据汇川PLC的地址,解析出转换后的modbus协议信息,适用AM,H3U,H5U系列的PLC
According to the address of Inovance PLC, analyze the converted modbus protocol information, which is suitable for AM, H3U, H5U series PLC |
static OperateResultExOne<String> |
InovanceHelper.PraseInovanceAMAddress(String address,
byte modbusCode) |
static OperateResultExOne<String> |
InovanceHelper.PraseInovanceH3UAddress(String address,
byte modbusCode) |
static OperateResultExOne<String> |
InovanceHelper.PraseInovanceH5UAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
InovanceTcpNet.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
InovanceSerialOverTcp.TranslateToModbusAddress(String address,
byte modbusCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.BuildReadCommand(String address,
short length)
建立读取PLC数据的指令,需要传入地址数据,以及读取的长度,地址示例参照类的说明文档
To create a command to read PLC data, you need to pass in the address data, and the length of the read. |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.BuildWriteCommand(String address,
boolean value)
建立写入bool数据的指令,针对地址类型为 R,CR,MR,LR
Create instructions to write bool data, address type is R, CR, MR, LR+ |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.BuildWriteCommand(String address,
boolean[] value)
批量写入数据位到plc地址,针对地址格式为 R,B,CR,MR,LR,VB
Write data bits in batches to the plc address, and the address format is R, B, CR, MR, LR, VB |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.BuildWriteCommand(String address,
byte[] value)
建立写入PLC数据的指令,需要传入地址数据,以及写入的数据信息,地址示例参照类的说明文档
To create a command to write PLC data, you need to pass in the address data and the written data information. |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.BuildWriteExpansionMemoryCommand(byte unit,
int address,
byte[] value)
构建写入扩展单元缓冲寄存器的报文命令,需要传入单元编号,地址,写入的数据,实际写入的数据格式才有无符号的方式
To construct a message command to write to the buffer register of the expansion unit, the unit number, address, and data to be written need to be passed in, and the format of the actually written data is unsigned. |
static OperateResultExOne<boolean[]> |
KeyenceNanoHelper.ExtractActualBoolData(String addressType,
byte[] response)
从PLC反馈的数据进行提炼Bool操作
Refine Bool operation from data fed back from PLC |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.ExtractActualData(String addressType,
byte[] response)
从PLC反馈的数据进行提炼操作
Refining operation from data fed back from PLC |
OperateResultExOne<McAddressData> |
KeyenceMcNet.McAnalysisAddress(String address,
short length) |
OperateResultExOne<McAddressData> |
KeyenceMcAsciiNet.McAnalysisAddress(String address,
short length) |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.Read(IReadWriteDevice keyence,
String address,
short length) |
OperateResultExOne<byte[]> |
KeyenceNanoSerialOverTcp.Read(String address,
short length) |
static OperateResultExOne<String> |
KeyenceNanoHelper.ReadAddressAnnotation(IReadWriteDevice keyence,
String address)
[Authorization] Read the comment information of the specified device |
OperateResultExOne<String> |
KeyenceNanoSerialOverTcp.ReadAddressAnnotation(String address) |
static OperateResultExOne<boolean[]> |
KeyenceNanoHelper.ReadBool(IReadWriteDevice keyence,
String address,
short length) |
OperateResultExOne<boolean[]> |
KeyenceNanoSerialOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<byte[]> |
KeyenceNanoSerialOverTcp.ReadExpansionMemory(byte unit,
short address,
short length) |
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.ReadExpansionMemory(IReadWriteDevice keyence,
byte unit,
short address,
short length)
[Authorization] Continuously read the specified number of data from the expansion unit buffer memory, the unit is word |
OperateResultExOne<Integer> |
KeyenceNanoSerialOverTcp.ReadPlcMode() |
static OperateResultExOne<Integer> |
KeyenceNanoHelper.ReadPlcMode(IReadWriteDevice keyence)
[Authorization] Read the current PLC mode, if it is 0, it means PROG mode or the ladder diagram is not registered, if it is 1, it means RUN mode |
OperateResultExOne<KeyencePLCS> |
KeyenceNanoSerialOverTcp.ReadPlcType() |
static OperateResultExOne<KeyencePLCS> |
KeyenceNanoHelper.ReadPlcType(IReadWriteDevice keyence)
[Authorization] Query PLC model information |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
MelsecA1ENet.BuildReadCommand(String address,
short length,
boolean isBit,
byte plcNumber)
根据类型地址长度确认需要读取的指令头
|
static OperateResultExOne<byte[]> |
MelsecA1EAsciiNet.BuildReadCommand(String address,
short length,
boolean isBit,
byte plcNumber)
根据类型地址长度确认需要读取的指令头
|
static OperateResultExOne<byte[]> |
MelsecA1ENet.BuildWriteBoolCommand(String address,
boolean[] value,
byte plcNumber)
根据类型地址以及需要写入的数据来生成指令头
|
static OperateResultExOne<byte[]> |
MelsecA1EAsciiNet.BuildWriteBoolCommand(String address,
boolean[] value,
byte plcNumber)
根据类型地址以及需要写入的数据来生成指令头
|
static OperateResultExOne<byte[]> |
MelsecA1ENet.BuildWriteWordCommand(String address,
byte[] value,
byte plcNumber)
根据类型地址以及需要写入的数据来生成指令头
|
static OperateResultExOne<byte[]> |
MelsecA1EAsciiNet.BuildWriteWordCommand(String address,
byte[] value,
byte plcNumber)
根据类型地址以及需要写入的数据来生成指令头
|
static OperateResultExOne<byte[]> |
MelsecA1ENet.ExtractActualData(byte[] response,
boolean isBit)
从PLC反馈的数据中提取出实际的数据内容,需要传入反馈数据,是否位读取
|
static OperateResultExOne<byte[]> |
MelsecA1EAsciiNet.ExtractActualData(byte[] response,
boolean isBit)
从PLC反馈的数据中提取出实际的数据内容,需要传入反馈数据,是否位读取
|
OperateResultExOne<McAddressData> |
MelsecMcUdp.McAnalysisAddress(String address,
short length) |
OperateResultExOne<McAddressData> |
MelsecMcRNet.McAnalysisAddress(String address,
short length) |
OperateResultExOne<McAddressData> |
MelsecMcNet.McAnalysisAddress(String address,
short length) |
OperateResultExOne<McAddressData> |
MelsecMcAsciiUdp.McAnalysisAddress(String address,
short length)
分析地址的方法,允许派生类里进行重写操作
|
OperateResultExOne<McAddressData> |
MelsecMcAsciiNet.McAnalysisAddress(String address,
short length)
分析地址的方法,允许派生类里进行重写操作
|
OperateResultExOne<byte[]> |
MelsecMcUdp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecMcRNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecMcNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecFxSerialOverTcp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecA1ENet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecA1EAsciiNet.Read(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecMcUdp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecMcRNet.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecMcNet.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecMcAsciiUdp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecMcAsciiNet.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecFxSerialOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
MelsecA1ENet.ReadBool(String address,
short length)
批量读取
Boolean 数组信息,需要指定地址和长度,地址示例M100,S100,B1A,如果是X,Y, X017就是8进制地址,Y10就是16进制地址。 |
OperateResultExOne<boolean[]> |
MelsecA1EAsciiNet.ReadBool(String address,
short length) |
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadExtend(short extend,
String address,
short length)
读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息
To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
OperateResultExOne<byte[]> |
MelsecMcNet.ReadExtend(short extend,
String address,
short length)
读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息
To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadExtend(short extend,
String address,
short length)
读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息
To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadExtend(short extend,
String address,
short length)
读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息
To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
OperateResultExOne<byte[]> |
MelsecFxSerialOverTcp.ReadFromCoreServer(Socket socket,
byte[] send,
boolean hasResponseData,
boolean usePackAndUnpack) |
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadMemory(String address,
short length)
读取缓冲寄存器的数据信息,地址直接为偏移地址
Read the data information of the buffer register, the address is directly the offset address |
OperateResultExOne<byte[]> |
MelsecMcNet.ReadMemory(String address,
short length)
读取缓冲寄存器的数据信息,地址直接为偏移地址
Read the data information of the buffer register, the address is directly the offset address |
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadMemory(String address,
short length)
读取缓冲寄存器的数据信息,地址直接为偏移地址
Read the data information of the buffer register, the address is directly the offset address |
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadMemory(String address,
short length)
读取缓冲寄存器的数据信息,地址直接为偏移地址
Read the data information of the buffer register, the address is directly the offset address |
OperateResultExOne<String> |
MelsecMcUdp.ReadPlcType()
读取PLC的型号信息,例如 Q02HCPU
Read PLC model information, such as Q02HCPU |
OperateResultExOne<String> |
MelsecMcNet.ReadPlcType()
读取PLC的型号信息,例如 Q02HCPU
Read PLC model information, such as Q02HCPU |
OperateResultExOne<String> |
MelsecMcAsciiUdp.ReadPlcType()
读取PLC的型号信息,例如 Q02HCPU
Read PLC model information, such as Q02HCPU |
OperateResultExOne<String> |
MelsecMcAsciiNet.ReadPlcType()
读取PLC的型号信息,例如 Q02HCPU
Read PLC model information, such as Q02HCPU |
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadRandom(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<byte[]> |
MelsecMcRNet.ReadRandom(String[] address)
|
OperateResultExOne<byte[]> |
MelsecMcNet.ReadRandom(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadRandom(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadRandom(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadRandom(String[] address,
short[] length)
随机读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。
|
OperateResultExOne<byte[]> |
MelsecMcRNet.ReadRandom(String[] address,
short[] length)
|
OperateResultExOne<byte[]> |
MelsecMcNet.ReadRandom(String[] address,
short[] length)
随机读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。
|
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadRandom(String[] address,
short[] length)
随机读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。
|
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadRandom(String[] address,
short[] length)
随机读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。
|
OperateResultExOne<short[]> |
MelsecMcUdp.ReadRandomInt16(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<short[]> |
MelsecMcRNet.ReadRandomInt16(String[] address)
|
OperateResultExOne<short[]> |
MelsecMcNet.ReadRandomInt16(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<short[]> |
MelsecMcAsciiUdp.ReadRandomInt16(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<short[]> |
MelsecMcAsciiNet.ReadRandomInt16(String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
OperateResultExOne<int[]> |
MelsecMcRNet.ReadRandomUInt16(String[] address)
|
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadTags(String[] tags,
short[] length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcNet.ReadTags(String[] tags,
short[] length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadTags(String[] tags,
short[] length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadTags(String[] tags,
short[] length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcUdp.ReadTags(String tag,
short length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcNet.ReadTags(String tag,
short length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.ReadTags(String tag,
short length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
OperateResultExOne<byte[]> |
MelsecMcAsciiNet.ReadTags(String tag,
short length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
protected OperateResultExOne<byte[]> |
MelsecMcUdp.UnpackResponseContent(byte[] send,
byte[] response) |
OperateResultExOne<byte[]> |
MelsecMcRNet.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
MelsecMcNet.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
MelsecMcAsciiUdp.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
MelsecMcAsciiNet.UnpackResponseContent(byte[] send,
byte[] response) |
OperateResultExOne<byte[]> |
MelsecFxSerialOverTcp.UnpackResponseContent(byte[] send,
byte[] response) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
McAsciiHelper.BuildAsciiReadMemoryCommand(String address,
short length) |
static OperateResultExOne<byte[]> |
McAsciiHelper.BuildAsciiReadSmartModule(short module,
String address,
short length) |
static OperateResultExOne<byte[]> |
McBinaryHelper.BuildReadMemoryCommand(String address,
short length)
读取本站缓冲寄存器的数据信息,需要指定寄存器的地址,和读取的长度
|
static OperateResultExOne<byte[]> |
McBinaryHelper.BuildReadSmartModule(short module,
String address,
short length)
构建读取智能模块的命令,需要指定模块编号,起始地址,读取的长度,注意,该长度以字节为单位。
|
static OperateResultExOne<ArrayList<byte[]>> |
MelsecFxSerialHelper.BuildReadWordCommand(String address,
short length,
boolean isNewVersion)
根据类型地址长度确认需要读取的指令头
|
static OperateResultExOne<byte[]> |
MelsecFxSerialHelper.BuildWriteBoolPacket(String address,
boolean value) |
static OperateResultExOne<byte[]> |
MelsecFxSerialHelper.BuildWriteWordCommand(String address,
byte[] value,
boolean isNewVersion) |
static OperateResultExOne<boolean[]> |
MelsecFxSerialHelper.ExtractActualBoolData(byte[] response,
int start,
int length) |
static OperateResultExOne<byte[]> |
MelsecFxSerialHelper.ExtractActualData(byte[] response) |
static OperateResultExOne<byte[]> |
McBinaryHelper.ExtraTagData(byte[] content)
解析出标签读取的数据内容
|
OperateResultExOne<McAddressData> |
IReadWriteMc.McAnalysisAddress(String address,
short length)
当前MC协议的分析地址的方法,对传入的字符串格式的地址进行数据解析。
|
static OperateResultExOne<byte[]> |
MelsecFxSerialHelper.Read(IReadWriteDevice plc,
String address,
short length,
boolean isNewVersion)
根据指定的地址及长度信息从三菱PLC中读取原始的字节数据,根据PLC中实际定义的规则,可以解析出任何类的数据信息
Read the original byte data from the Mitsubishi PLC according to the specified address and length information. |
static OperateResultExOne<byte[]> |
McHelper.Read(IReadWriteMc mc,
String address,
short length)
初步支持普通的数据地址之外,还额外支持高级的地址写法,以下是示例(适用于MC协议为二进制和ASCII格式):
[商业授权] 扩展的数据地址: 表示为 ext=1;W100 访问扩展区域为1的W100的地址信息 [商业授权] 缓冲存储器地址: 表示为 mem=32 访问地址为32的本站缓冲存储器地址 [商业授权] 智能模块地址:表示为 module=3;4106 访问模块号3,偏移地址是4106的数据,偏移地址需要根据模块的详细信息来确认。 |
static OperateResultExOne<boolean[]> |
MelsecFxSerialHelper.ReadBool(IReadWriteDevice plc,
String address,
short length,
boolean isNewVersion)
从三菱PLC中批量读取位软元件,返回读取结果,该读取地址最好从0,16,32...等开始读取,这样可以读取比较长的数据数组
Read bit devices in batches from Mitsubishi PLC and return the read results. |
static OperateResultExOne<boolean[]> |
McHelper.ReadBool(IReadWriteMc mc,
String address,
short length)
当读取的长度过大时,会自动进行切割,对于二进制格式,切割长度为7168,对于ASCII格式协议来说,切割长度则是3584
也支持对D100.0 这种地址进行位访问的功能
|
static OperateResultExOne<byte[]> |
McHelper.ReadExtend(IReadWriteMc mc,
short extend,
String address,
short length)
[商业授权] 读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息
[Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
static OperateResultExOne<byte[]> |
McHelper.ReadMemory(IReadWriteMc mc,
String address,
short length)
[商业授权] 读取缓冲寄存器的数据信息,地址直接为偏移地址
[Authorization] Read the data information of the buffer register, the address is directly the offset address 本指令不可以访问下述缓冲存储器: 1. |
static OperateResultExOne<String> |
McHelper.ReadPlcType(IReadWriteMc mc)
读取PLC的型号信息,例如 Q02HCPU
Read PLC model information, such as Q02HCPU |
static OperateResultExOne<byte[]> |
McHelper.ReadRandom(IReadWriteMc mc,
String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
static OperateResultExOne<byte[]> |
McHelper.ReadRandom(IReadWriteMc mc,
String[] address,
short[] length)
随机读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。
|
static OperateResultExOne<short[]> |
McHelper.ReadRandomInt16(IReadWriteMc mc,
String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
static OperateResultExOne<int[]> |
McHelper.ReadRandomUInt16(IReadWriteMc mc,
String[] address)
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。
|
static OperateResultExOne<byte[]> |
McHelper.ReadSmartModule(IReadWriteMc mc,
short module,
String address,
short length)
[商业授权] 读取智能模块的数据信息,需要指定模块地址,偏移地址,读取的字节长度
[Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information |
static OperateResultExOne<byte[]> |
McBinaryHelper.ReadTags(IReadWriteMc mc,
String[] tags,
short[] length)
读取PLC的标签信息,需要传入标签的名称,读取的字长度,标签举例:A; label[1]; bbb[10,10,10]
To read the label information of the PLC, you need to pass in the name of the label, the length of the word read, and an example of the label: A; label [1]; bbb [10,10,10] |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<ArrayList<byte[]>> |
OmronFinsNetHelper.BuildReadCommand(String[] address)
同时读取多个地址的命令报文信息
|
static OperateResultExOne<byte[]> |
OmronHostLinkCModeOverTcp.BuildReadCommand(String address,
short length,
boolean isBit)
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol |
static OperateResultExOne<byte[][]> |
OmronFinsNetHelper.BuildReadCommand(String address,
short length,
boolean isBit,
int splitLength)
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol |
static OperateResultExOne<byte[]> |
OmronHostLinkCModeOverTcp.BuildWriteWordCommand(String address,
byte[] value)
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol |
static OperateResultExOne<byte[]> |
OmronFinsNetHelper.BuildWriteWordCommand(String address,
byte[] value,
boolean isBit)
根据写入的地址,数据,是否位写入生成Fins协议的核心报文
According to the written address, data, whether the bit is written to generate the core message of the Fins protocol |
static OperateResultExOne<String> |
OmronHostLinkCModeOverTcp.GetModelText(String model)
获取model的字符串描述信息
|
static OperateResultExOne<byte[]> |
OmronFinsNetHelper.Read(IReadWriteDevice omron,
String[] address)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
|
static OperateResultExOne<byte[]> |
OmronFinsNetHelper.Read(IReadWriteDevice omron,
String address,
short length,
int splits)
从欧姆龙PLC中读取想要的数据,返回读取结果,读取长度的单位为字,地址格式为"D100","C100","W100","H100","A100"
Read the desired data from the Profinet.Omron PLC and return the read result. |
OperateResultExOne<byte[]> |
OmronHostLinkOverTcp.Read(String[] address)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
|
OperateResultExOne<byte[]> |
OmronFinsUdp.Read(String[] address)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
|
OperateResultExOne<byte[]> |
OmronFinsNet.Read(String[] address)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
|
OperateResultExOne<byte[]> |
OmronConnectedCipNet.Read(String[] address,
short[] length) |
OperateResultExOne<byte[]> |
OmronHostLinkOverTcp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
OmronHostLinkCModeOverTcp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
OmronFinsUdp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
OmronFinsNet.Read(String address,
short length)
从欧姆龙PLC中读取想要的数据,返回读取结果,读取长度的单位为字,地址格式为"D100","C100","W100","H100","A100"
Read the desired data from the Profinet.Omron PLC and return the read result. |
OperateResultExOne<byte[]> |
OmronConnectedCipNet.Read(String address,
short length) |
OperateResultExOne<byte[]> |
OmronCipNet.Read(String address,
short length) |
static OperateResultExOne<boolean[]> |
OmronFinsNetHelper.ReadBool(IReadWriteDevice omron,
String address,
short length,
int splits)
从欧姆龙PLC中批量读取位软元件,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Read bit devices in batches from Profinet.Omron PLC with address format "D100.0", "C100.0", "W100.0", "H100.0", "A100.0" |
OperateResultExOne<boolean[]> |
OmronHostLinkOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
OmronHostLinkCModeOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
OmronFinsUdp.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
OmronFinsNet.ReadBool(String address,
short length)
从欧姆龙PLC中批量读取位软元件,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Read bit devices in batches from Profinet.Omron PLC with address format "D100.0", "C100.0", "W100.0", "H100.0", "A100.0" |
OperateResultExOne<boolean[]> |
OmronConnectedCipNet.ReadBool(String address,
short length)
读取bool数据信息,如果读取的是单bool变量,就直接写变量名,如果是 bool 数组,就
Read a single bool data information, if it is a single bool variable, write the variable name directly, if it is a value of a bool array composed of int, it is always accessed with "i=" at the beginning, for example, "i=A[0]" |
OperateResultExOne<Byte> |
OmronConnectedCipNet.ReadByte(String address)
读取PLC的byte类型的数据
Read the byte type of PLC data |
OperateResultExOne<byte[]> |
OmronConnectedCipNet.ReadCipFromServer(byte[]... cips) |
OperateResultExOne<double[]> |
OmronConnectedCipNet.ReadDouble(String address,
short length) |
OperateResultExOne<double[]> |
OmronCipNet.ReadDouble(String address,
short length) |
OperateResultExOne<float[]> |
OmronConnectedCipNet.ReadFloat(String address,
short length) |
OperateResultExOne<float[]> |
OmronCipNet.ReadFloat(String address,
short length) |
OperateResultExOne<short[]> |
OmronConnectedCipNet.ReadInt16(String address,
short length) |
OperateResultExOne<short[]> |
OmronCipNet.ReadInt16(String address,
short length) |
OperateResultExOne<int[]> |
OmronConnectedCipNet.ReadInt32(String address,
short length) |
OperateResultExOne<int[]> |
OmronCipNet.ReadInt32(String address,
short length) |
OperateResultExOne<long[]> |
OmronConnectedCipNet.ReadInt64(String address,
short length) |
OperateResultExOne<long[]> |
OmronCipNet.ReadInt64(String address,
short length) |
OperateResultExOne<String> |
OmronHostLinkCModeOverTcp.ReadPlcModel()
读取PLC的当前的型号信息
|
OperateResultExOne<String> |
OmronConnectedCipNet.ReadString(String address) |
OperateResultExOne<String> |
OmronConnectedCipNet.ReadString(String address,
short length)
读取字符串数据,默认为UTF-8编码
Read string data, default is UTF-8 encoding |
OperateResultExOne<String> |
OmronConnectedCipNet.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<String> |
OmronCipNet.ReadString(String address,
short length,
String encoding) |
OperateResultExOne<int[]> |
OmronConnectedCipNet.ReadUInt16(String address,
short length) |
OperateResultExOne<int[]> |
OmronCipNet.ReadUInt16(String address,
short length) |
OperateResultExOne<long[]> |
OmronConnectedCipNet.ReadUInt32(String address,
short length) |
OperateResultExOne<long[]> |
OmronCipNet.ReadUInt32(String address,
short length) |
static OperateResultExOne<byte[]> |
OmronFinsNetHelper.ResponseValidAnalysis(byte[] response)
验证欧姆龙的Fins-TCP返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
Verify that the data returned by Profinet.Omron's Fins-TCP is correct data, if correct, and return all data content |
static OperateResultExOne<byte[]> |
OmronHostLinkCModeOverTcp.ResponseValidAnalysis(byte[] response,
boolean isRead)
验证欧姆龙的Fins-TCP返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
|
static OperateResultExOne<byte[]> |
OmronHostLinkOverTcp.ResponseValidAnalysis(byte[] send,
byte[] response)
验证欧姆龙的Fins-TCP返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
|
static OperateResultExOne<byte[]> |
OmronFinsNetHelper.UdpResponseValidAnalysis(byte[] response)
验证欧姆龙的Fins-Udp返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
Verify that the data returned by Profinet.Omron's Fins-Udp is correct data, if correct, and return all data content |
protected OperateResultExOne<byte[]> |
OmronHostLinkOverTcp.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
OmronFinsUdp.UnpackResponseContent(byte[] send,
byte[] response) |
protected OperateResultExOne<byte[]> |
OmronFinsNet.UnpackResponseContent(byte[] send,
byte[] response) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
PanasonicHelper.BuildReadCommand(int station,
String address,
int length)
创建批量读取触点的报文指令
Create message instructions for batch reading contacts
|
static OperateResultExOne<byte[]> |
PanasonicHelper.BuildReadOneCoil(int station,
String address)
创建读取离散触点的报文指令
Create message instructions for reading discrete contacts
|
static OperateResultExOne<byte[]> |
PanasonicHelper.BuildWriteCommand(int station,
String address,
byte[] values) |
static OperateResultExOne<byte[]> |
PanasonicHelper.BuildWriteCommand(int station,
String address,
byte[] values,
short length)
创建批量读取触点的报文指令
Create message instructions for batch reading contacts
|
static OperateResultExOne<byte[]> |
PanasonicHelper.BuildWriteOneCoil(int station,
String address,
boolean value)
创建写入离散触点的报文指令
Create message instructions to write discrete contacts
|
static OperateResultExOne<Boolean> |
PanasonicHelper.ExtraActualBool(byte[] response)
检查从PLC反馈的数据,并返回正确的数据内容
Check the data feedback from the PLC and return the correct data content
|
static OperateResultExOne<byte[]> |
PanasonicHelper.ExtraActualData(byte[] response)
检查从PLC反馈的数据,并返回正确的数据内容
Check the data feedback from the PLC and return the correct data content
|
OperateResultExOne<McAddressData> |
PanasonicMcNet.McAnalysisAddress(String address,
short length) |
OperateResultExOne<byte[]> |
PanasonicMewtocolOverTcp.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> |
PanasonicMewtocolOverTcp.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[]> |
PanasonicMewtocolOverTcp.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 |
protected OperateResultExOne<byte[]> |
PanasonicMcNet.UnpackResponseContent(byte[] send,
byte[] response) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
SiemensS7Net.BuildBitReadCommand(String address)
生成一个位读取数据指令头的通用方法
|
static OperateResultExOne<byte[]> |
SiemensS7Net.BuildReadCommand(S7AddressData[] s7Addresses)
生成一个读取字数据指令头的通用方法
|
static OperateResultExOne<byte[]> |
SiemensFetchWriteNet.BuildReadCommand(String address,
int count)
生成一个读取字数据指令头的通用方法
|
static OperateResultExOne<byte[]> |
SiemensS7Net.BuildWriteBitCommand(String address,
boolean data)
生成一个写入位数据的指令
|
static OperateResultExOne<byte[]> |
SiemensS7Net.BuildWriteByteCommand(S7AddressData s7Address,
byte[] data)
生成一个写入字节数据的指令
|
static OperateResultExOne<byte[]> |
SiemensS7Net.BuildWriteByteCommand(String address,
byte[] data)
生成一个写入字节数据的指令 -> Generate an instruction to write byte data
|
static OperateResultExOne<byte[]> |
SiemensFetchWriteNet.BuildWriteCommand(String address,
byte[] data)
生成一个写入字节数据的指令
|
OperateResultExOne<byte[]> |
SiemensS7Net.Read(S7AddressData[] s7Addresses)
读取西门子的地址数据信息,支持任意个数的数据读取
Read Siemens address data information, support any number of data reading |
OperateResultExOne<byte[]> |
SiemensS7Net.Read(String[] address,
short[] length)
一次性从PLC获取所有的数据,按照先后顺序返回一个统一的Buffer,需要按照顺序处理,两个数组长度必须一致
|
OperateResultExOne<byte[]> |
SiemensS7Net.Read(String address,
short length)
从PLC读取数据,地址格式为I100,Q100,DB20.100,M100,T100,C100以字节为单位
Read the original byte data from the PLC, the address format is I100, Q100, DB20.100, M100, length parameters in bytes |
OperateResultExOne<byte[]> |
SiemensPPIOverTcp.Read(String address,
short length) |
OperateResultExOne<byte[]> |
SiemensFetchWriteNet.Read(String address,
short length)
从PLC读取数据,地址格式为I100,Q100,DB20.100,M100,T100,C100,以字节为单位
|
OperateResultExOne<Boolean> |
SiemensS7Net.ReadBool(String address)
读取指定地址的bool数据
|
OperateResultExOne<boolean[]> |
SiemensS7Net.ReadBool(String address,
short length) |
OperateResultExOne<boolean[]> |
SiemensPPIOverTcp.ReadBool(String address,
short length) |
OperateResultExOne<Byte> |
SiemensS7Net.ReadByte(String address)
读取指定地址的byte数据
|
OperateResultExOne<Byte> |
SiemensPPIOverTcp.ReadByte(String address) |
OperateResultExOne<Byte> |
SiemensFetchWriteNet.ReadByte(String address)
读取指定地址的byte数据
|
OperateResultExOne<Date> |
SiemensS7Net.ReadDate(String address)
从PLC中读取日期格式的数据
Read data in date format from PLC |
OperateResultExOne<Date> |
SiemensS7Net.ReadDateTime(String address)
从PLC中读取时间格式的数据
Read time format data from PLC |
OperateResultExOne<String> |
SiemensS7Net.ReadOrderNumber()
从PLC读取订货号信息
|
OperateResultExOne<String> |
SiemensS7Net.ReadString(String address)
读取西门子的地址的字符串信息,这个信息是和西门子绑定在一起,长度随西门子的信息动态变化的
|
OperateResultExOne<String> |
SiemensS7Net.ReadString(String address,
Charset encoding)
读取西门子的地址的字符串信息,这个信息是和西门子绑定在一起,长度随西门子的信息动态变化的
|
OperateResultExOne<String> |
SiemensS7Net.ReadString(String address,
short length,
Charset encoding) |
OperateResultExOne<String> |
SiemensS7Net.ReadWString(String address)
读取西门子的地址的字符串信息,这个信息是和西门子绑定在一起,长度随西门子的信息动态变化的
Read the Siemens address string information. |
protected OperateResultExOne<byte[]> |
SiemensPPIOverTcp.ReceiveByMessage(Socket socket,
int timeOut,
INetMessage netMessage) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
SiemensPPIHelper.BuildReadCommand(byte station,
String address,
short length,
boolean isBit)
生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data |
static OperateResultExOne<byte[]> |
SiemensPPIHelper.BuildWriteCommand(byte station,
String address,
boolean[] values)
创建写入PLC的bool类型数据报文指令
|
static OperateResultExOne<byte[]> |
SiemensPPIHelper.BuildWriteCommand(byte station,
String address,
byte[] values)
生成一个写入PLC数据信息的报文内容
|
static OperateResultExOne<byte[]> |
SiemensPPIHelper.Read(IReadWriteDevice plc,
String address,
short length,
byte station,
Object communicationLock)
从西门子的PLC中读取数据信息,地址为"M100","AI100","I0","Q0","V100","S100"等
Read data information from Siemens PLC with addresses "M100", "AI100", "I0", "Q0", "V100", "S100", etc. |
static OperateResultExOne<boolean[]> |
SiemensPPIHelper.ReadBool(IReadWriteDevice plc,
String address,
short length,
byte station,
Object communicationLock)
从西门子的PLC中读取bool数据信息,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Read bool data information from Siemens PLC, the addresses are "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc. |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<String> |
XinJEHelper.PraseXinJEAddress(XinJESeries series,
String address,
byte modbusCode)
根据信捷PLC的地址,解析出转换后的modbus协议信息
|
static OperateResultExOne<String> |
XinJEHelper.PraseXinJEXCAddress(String address,
byte modbusCode)
根据信捷PLC的地址,解析出转换后的modbus协议信息,适用XC系列
|
static OperateResultExOne<String> |
XinJEHelper.PraseXinJEXD1XD2XD3XL1XL3Address(String address,
byte modbusCode)
解析信捷的XD1,XD2,XD3,XL1,XL3系列的PLC的Modbus地址和内部软元件的对照
|
OperateResultExOne<String> |
XinJETcpNet.TranslateToModbusAddress(String address,
byte modbusCode) |
OperateResultExOne<String> |
XinJESerialOverTcp.TranslateToModbusAddress(String address,
byte modbusCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<ArrayList<byte[]>> |
YokogawaLinkTcp.BuildReadCommand(byte cpu,
String address,
short length,
boolean isBit)
构建读取命令的原始报文信息
|
static OperateResultExOne<ArrayList<byte[]>> |
YokogawaLinkTcp.BuildReadRandomCommand(byte cpu,
String[] address,
boolean isBit)
构建随机读取的原始报文的初始命令
|
static OperateResultExOne<ArrayList<byte[]>> |
YokogawaLinkTcp.BuildReadSpecialModule(byte cpu,
String address,
short length)
构建读取特殊模块的命令报文,需要传入高级地址,必须以 Special: 开头表示特殊模块地址,示例:Special:cpu=1;unit=0;slot=1;100
To construct a command message to read a special module, the advanced address needs to be passed in. |
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildStartCommand(byte cpu)
构建启动PLC的命令报文
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildStopCommand(byte cpu)
构建停止PLC的命令报文
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildWriteBoolCommand(byte cpu,
String address,
boolean[] value)
构建批量写入Bool数组的命令,需要指定CPU Number信息和设备地址信息
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildWriteRandomBoolCommand(byte cpu,
String[] address,
boolean[] value)
构建批量随机写入Bool数组的命令,需要指定CPU Number信息和设备地址信息
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildWriteRandomWordCommand(byte cpu,
String[] address,
byte[] value)
构建随机写入字的命令的报文
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildWriteSpecialModule(byte cpu,
String address,
byte[] data)
构建写入特殊模块的命令报文,需要传入高级地址,必须以 Special: 开头表示特殊模块地址,示例:Special:cpu=1;unit=0;slot=1;100
To construct a command message to write a special module, the advanced address needs to be passed in. |
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.BuildWriteWordCommand(byte cpu,
String address,
byte[] value)
构建字写入的命令报文信息,需要指定设备地址
|
static OperateResultExOne<byte[]> |
YokogawaLinkTcp.CheckContent(byte[] content)
检查当前的反馈内容,如果没有发生错误,就解析出实际的数据内容。
|
static OperateResultExOne<YokogawaSystemInfo> |
YokogawaSystemInfo.Parse(byte[] content)
根据原始的数据信息解析出
YokogawaSystemInfo对象Analyze the YokogawaSystemInfo object according to the original data information |
OperateResultExOne<byte[]> |
YokogawaLinkTcp.Read(String address,
short length)
读取的线圈地址支持X,Y,I,E,M,T,C,L,寄存器地址支持D,B,F,R,V,Z,W,TN,CN,举例:D100;也可以携带CPU进行访问,举例:cpu=2;D100
[商业授权] 如果想要读取特殊模块的数据,需要使用 Special: 开头标记,举例:Special:unit=0;slot=1;100 The read coil address supports X, Y, I, E, M, T, C, L, and the register address supports D, B, F, R, V, Z, W, TN, CN, for example: D100; it can also be carried CPU access, for example: cpu=2;D100. |
OperateResultExOne<boolean[]> |
YokogawaLinkTcp.ReadBool(String address,
short length)
读取的线圈地址支持X,Y,I,E,M,T,C,L,举例:Y100;也可以携带CPU进行访问,举例:cpu=2;Y100
The read coil address supports X, Y, I, E, M, T, C, L, for example: Y100; you can also carry the CPU for access, for example: cpu=2;Y100 |
OperateResultExOne<Date> |
YokogawaLinkTcp.ReadDateTime()
[商业授权] 读取当前PLC的时间信息,包含年月日时分秒
b>[Authorization] Read current PLC time information, including year, month, day, hour, minute, and second |
OperateResultExOne<Integer> |
YokogawaLinkTcp.ReadProgramStatus()
[商业授权] 读取当前PLC的程序状态,返回1:RUN;2:Stop;3:Debug;255:ROM writer
[Authorization] Read the program status. return code 1:RUN; 2:Stop; 3:Debug; 255:ROM writer |
OperateResultExOne<byte[]> |
YokogawaLinkTcp.ReadRandom(String[] address)
|
OperateResultExOne<boolean[]> |
YokogawaLinkTcp.ReadRandomBool(String[] address)
[商业授权] 随机读取
Boolean数组信息,主需要出传入String数组地址信息,就可以返回批量Boolean值[Authorization] Random read Boolean array information, the master needs to pass in the String array address information,
and then the batch can be returned to Boolean value
读取的线圈地址支持X,Y,I,E,M,T,C,L,举例:Y100;也可以携带CPU进行访问,举例:cpu=2;Y100 The read coil address supports X, Y, I, E, M, T, C, L, for example: Y100; you can also carry the CPU for access, for example: cpu=2;Y100 |
OperateResultExOne<short[]> |
YokogawaLinkTcp.ReadRandomInt16(String[] address)
|
OperateResultExOne<byte[]> |
YokogawaLinkTcp.ReadSpecialModule(byte moduleUnit,
byte moduleSlot,
int dataPosition,
short length)
[商业授权] 读取特殊模块的数据信息,需要指定模块单元号,模块站号,数据地址,长度信息。
|
OperateResultExOne<YokogawaSystemInfo> |
YokogawaLinkTcp.ReadSystemInfo()
[商业授权] 读取当前PLC的系统状态,系统的ID,CPU类型,程序大小信息
[Authorization] Read current PLC system status, system ID, CPU type, program size information |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<FanucData> |
FanucData.PraseFrom(byte[] content)
从字节数组解析出fanuc的数据信息
|
OperateResultExOne<byte[]> |
FanucInterfaceNet.Read(byte select,
int address,
short length)
按照字为单位批量读取设备的原始数据,需要指定数据块地址,偏移地址及长度,主要针对08, 10, 12的数据块,注意地址的起始为1
Read the raw data of the device in batches in units of words. |
OperateResultExOne<byte[]> |
FanucInterfaceNet.Read(String address) |
OperateResultExOne<byte[]> |
FanucInterfaceNet.Read(String address,
short length)
按照字为单位批量读取设备的原始数据,需要指定地址及长度,地址示例:D1,AI1,AQ1,共计3个区的数据,注意地址的起始为1
Read the raw data of the device in batches in units of words. |
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadBool(byte select,
int address,
short length)
按照位为单位批量读取设备的原始数据,需要指定数据块地址,偏移地址及长度,主要针对70, 72, 76的数据块,注意地址的起始为1
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadBool(String address,
short length)
按照位为单位批量读取设备的原始数据,需要指定地址及长度,地址示例:M1,I1,Q1,共计3个区的数据,注意地址的起始为1
Read the raw data of the device in batches in units of boolean. |
OperateResultExOne<FanucData> |
FanucInterfaceNet.ReadFanucData()
读取机器人的详细信息,返回解析后的数据类型
Read the details of the robot and return the resolved data type |
OperateResultExOne<short[]> |
FanucInterfaceNet.ReadGI(int address,
short length)
读取机器人的GI信息
|
OperateResultExOne<short[]> |
FanucInterfaceNet.ReadGO(int address,
short length)
读取机器人的GO信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadPMCR2(int address,
short length)
读取机器人的PMCR2信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadRDI(int address,
short length)
读取机器人的RDI信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadRDO(int address,
short length)
读取机器人的RDO信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadSDI(int address,
short length)
读取机器人的SDI信息
Read the SDI information of the robot |
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadSDO(int address,
short length)
读取机器人的SDO信息
Read the SDO information of the robot |
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadSI(int address,
short length)
读取机器人的SI信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadSO(int address,
short length)
读取机器人的SO信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadUI(int address,
short length)
读取机器人的UI信息
|
OperateResultExOne<boolean[]> |
FanucInterfaceNet.ReadUO(int address,
short length)
读取机器人的UO信息
|
Copyright © 2022. All rights reserved.