| 限定符和类型 | 类和说明 |
|---|---|
class |
NetworkConnectedCip
基于连接的CIP协议的基类
|
class |
NetworkDeviceBase
设备交互类的基类,实现了
IReadWriteDevice 接口的基础方法方法,需要使用继承重写来实现字节读写,bool读写操作。 |
class |
NetworkUdpDeviceBase |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
IModbus
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ModbusRtuOverTcp
Modbus-Rtu通讯协议的TCP实现,多项式码0xA001,支持标准的功能码,也支持扩展的功能码实现,地址采用富文本的形式,详细见备注说明
The TCP implementation of Modbus-Rtu communication protocol, polynomial code 0xA001, supports standard function codes, and also supports extended function code realization. |
class |
ModbusTcpNet
Modbus-Tcp协议的客户端通讯类,方便的和服务器进行数据交互,支持标准的功能码,也支持扩展的功能码实现,地址采用富文本的形式,详细见备注说明
The client communication class of Modbus-Tcp protocol is convenient for data interaction with the server. |
class |
ModbusUdpNet |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AllenBradleyMicroCip
AB PLC的cip通信实现类,适用Micro800系列控制系统
AB PLC's cip communication implementation class, suitable for Micro800 series control system |
class |
AllenBradleyNet
AB PLC的数据通信类,使用CIP协议实现,适用1756,1769等型号,支持使用标签的形式进行读写操作,支持标量数据,一维数组,二维数组,三维数组等等。
|
class |
AllenBradleyPcccNet |
class |
AllenBradleySLCNet |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<String> |
AllenBradleyHelper.ReadPlcType(IReadWriteDevice plc)
从PLC里读取当前PLC的型号信息
Read the current PLC model information from the PLC |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
IDelta
台达的系列信息
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DeltaSerialOverTcp |
class |
DeltaTcpNet
台达PLC的网口通讯类,基于Modbus-Rtu协议开发,按照台达的地址进行实现。
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
FatekProgramOverTcp
台湾永宏公司的编程口协议,此处是基于tcp的实现,地址信息请查阅api文档信息,地址可以携带站号信息,例如 s=2;D100
The programming port protocol of Taiwan Yonghong company, here is the implementation based on TCP, please refer to the API information for the address information, The address can carry station number information, such as s=2;D100 支持位访问:M,X,Y,S,T(触点),C(触点),字访问:RT(当前值),RC(当前值),D,R;具体参照API文档 |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
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. |
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 OperateResult |
FatekProgramHelper.Run(IReadWriteDevice device,
byte station)
使PLC处于RUN的状态
|
static OperateResult |
FatekProgramHelper.Stop(IReadWriteDevice device,
byte station)
使PLC处于STOP状态
|
static OperateResult |
FatekProgramHelper.Write(IReadWriteDevice device,
byte station,
String address,
boolean[] value)
批量写入bool类型的数组,支持的类型为X,Y,M,S,T,C,具体的地址范围取决于PLC的类型,地址可以携带站号信息,例如 s=2;M100
Write arrays of type bool in batches. |
static OperateResult |
FatekProgramHelper.Write(IReadWriteDevice device,
byte station,
String address,
byte[] value)
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持X,Y,M,S,D,T,C,R,RT,RC具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如 s=2;D100
The data written to the PLC in batches, in units of words, that is, at least 2 bytes of information, supporting X, Y, M, S, D, T, C, R, RT, and RC. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FujiSPBOverTcp
富士PLC的SPB协议,详细的地址信息见api文档说明,地址可以携带站号信息,例如:s=2;D100,PLC侧需要配置无BCC计算,包含0D0A结束码
Fuji PLC's SPB protocol. |
class |
FujiSPHNet |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
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 |
static OperateResult |
FujiSPBHelper.Write(IReadWriteDevice device,
byte station,
String address,
boolean value)
写入一个Bool值到一个地址里,地址可以是线圈地址,也可以是寄存器地址,例如:M100, D10.12,地址可以携带站号信息,例如:s=2;D10.12
Write a Bool value to an address. |
static OperateResult |
FujiSPBHelper.Write(IReadWriteDevice device,
byte station,
String address,
byte[] value)
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持读取X,Y,L,M,D,TN,CN,TC,CC,R具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100
The data written to the PLC in batches, in units of words, that is, a minimum of 2 bytes of information. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
GeSRTPNet |
| 限定符和类型 | 类和说明 |
|---|---|
class |
InovanceSerialOverTcp
汇川的串口转网口通信协议,A适用于AM400、 AM400_800、 AC800、H3U, XP, H5U 等系列底层走的是MODBUS-RTU协议,地址说明参见标记
Inovance's serial communication protocol is applicable to AM400, AM400_800, AC800 and other series. |
class |
InovanceTcpNet |
| 限定符和类型 | 类和说明 |
|---|---|
class |
KeyenceMcAsciiNet
基恩士PLC的数据通信类
|
class |
KeyenceMcNet
基恩士PLC的数据通信类
|
class |
KeyenceNanoSerialOverTcp |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
KeyenceNanoHelper.Read(IReadWriteDevice keyence,
String address,
short length) |
static OperateResultExOne<String> |
KeyenceNanoHelper.ReadAddressAnnotation(IReadWriteDevice keyence,
String address)
[Authorization] Read the comment information of the specified device |
static OperateResultExOne<boolean[]> |
KeyenceNanoHelper.ReadBool(IReadWriteDevice keyence,
String 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 |
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 |
static OperateResultExOne<KeyencePLCS> |
KeyenceNanoHelper.ReadPlcType(IReadWriteDevice keyence)
[Authorization] Query PLC model information |
static OperateResult |
KeyenceNanoHelper.SetPlcDateTime(IReadWriteDevice keyence,
Date dateTime)
[Authorization] Set PLC time |
static OperateResult |
KeyenceNanoHelper.Write(IReadWriteDevice keyence,
String address,
boolean value) |
static OperateResult |
KeyenceNanoHelper.Write(IReadWriteDevice keyence,
String address,
boolean[] value) |
static OperateResult |
KeyenceNanoHelper.Write(IReadWriteDevice keyence,
String address,
byte[] value) |
static OperateResult |
KeyenceNanoHelper.WriteExpansionMemory(IReadWriteDevice keyence,
byte unit,
short address,
byte[] value)
[Authorization] To write the original byte data to the extended buffer memory, you need to specify the unit number, offset address, and write data |
| 限定符和类型 | 类和说明 |
|---|---|
class |
MelsecA1EAsciiNet
三菱PLC通讯协议,采用A兼容1E帧协议实现,使用ASCII码通讯,请根据实际型号来进行选取
Mitsubishi PLC communication protocol, implemented using A compatible 1E frame protocol, using ascii code communication, please choose according to the actual model |
class |
MelsecA1ENet
三菱PLC通讯协议,采用A兼容1E帧协议实现,使用二进制码通讯,请根据实际型号来进行选取
Mitsubishi PLC communication protocol, implemented using A compatible 1E frame protocol, using binary code communication, please choose according to the actual model |
class |
MelsecFxSerialOverTcp |
class |
MelsecMcAsciiNet
三菱PLC通讯类,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为ASCII通讯格式
|
class |
MelsecMcAsciiUdp |
class |
MelsecMcNet
三菱PLC通讯类,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为二进制通讯
Mitsubishi PLC communication class is implemented using Qna compatible 3E frame protocol. |
class |
MelsecMcRNet
三菱的R系列的MC协议,支持的地址类型和
MelsecMcNet 有区别,详细请查看对应的API文档说明 |
class |
MelsecMcUdp
三菱PLC通讯类,采用UDP的协议实现,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为二进制通讯
Mitsubishi PLC communication class is implemented using UDP protocol and Qna compatible 3E frame protocol. |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
IReadWriteMc
三菱MC协议的设备接口对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResult |
MelsecFxSerialHelper.ActivePlc(IReadWriteDevice plc) |
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<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 OperateResult |
MelsecFxSerialHelper.Write(IReadWriteDevice plc,
String address,
boolean value) |
static OperateResult |
MelsecFxSerialHelper.Write(IReadWriteDevice plc,
String address,
byte[] value,
boolean isNewVersion) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
OmronCipNet
欧姆龙PLC的CIP协议的类,支持NJ,NX,NY系列PLC,支持tag名的方式读写数据,假设你读取的是局部变量,那么使用 Program:MainProgram.变量名
Omron PLC's CIP protocol class, support NJ, NX, NY series PLC, support tag name read and write data, assuming you read local variables, then use Program: MainProgram.Variable name |
class |
OmronConnectedCipNet |
class |
OmronFinsNet
欧姆龙PLC通讯类,采用Fins-Tcp通信协议实现,支持的地址信息参见api文档信息。
|
class |
OmronFinsUdp |
class |
OmronHostLinkCModeOverTcp
欧姆龙的HostLink的C-Mode实现形式,当前的类是通过以太网透传实现。
|
class |
OmronHostLinkOverTcp |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
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" |
static OperateResult |
OmronFinsNetHelper.Write(IReadWriteDevice omron,
String address,
boolean[] values)
向PLC中位软元件写入bool数组,返回是否写入成功,比如你写入D100,values[0]对应D100.0,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Write the bool array to the PLC's median device and return whether the write was successful. |
static OperateResult |
OmronFinsNetHelper.Write(IReadWriteDevice omron,
String address,
byte[] value)
向PLC写入数据,数据格式为原始的字节类型,地址格式为"D100","C100","W100","H100","A100"
Write data to PLC, the data format is the original byte type, and the address format is "D100", "C100", "W100", "H100", "A100" |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PanasonicMcNet |
class |
PanasonicMewtocolOverTcp |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SiemensFetchWriteNet
使用了Fetch/Write协议来和西门子进行通讯,该种方法需要在PLC侧进行一些配置
|
class |
SiemensPPIOverTcp |
class |
SiemensS7Net
西门子的数据交互类,采用s7协议实现,地址支持I,Q,M,DB,AI,AQ,举例:I100,Q0,M100,DB1.0,AI0,AQ16,支持单个位的读写,暂时不支持批量位写入操作
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 OperateResult |
SiemensPPIHelper.Start(IReadWriteDevice plc,
String parameter,
byte station,
Object communicationLock)
启动西门子PLC为RUN模式,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
|
static OperateResult |
SiemensPPIHelper.Stop(IReadWriteDevice plc,
String parameter,
byte station,
Object communicationLock)
停止西门子PLC,切换为Stop模式,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
|
static OperateResult |
SiemensPPIHelper.Write(IReadWriteDevice plc,
String address,
boolean[] value,
byte station,
Object communicationLock)
将bool数据写入到西门子PLC中,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Write the bool data to Siemens PLC with the addresses "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc. |
static OperateResult |
SiemensPPIHelper.Write(IReadWriteDevice plc,
String address,
byte[] value,
byte station,
Object communicationLock)
将字节数据写入到西门子PLC中,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Write byte data to Siemens PLC with addresses "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
XinJESerialOverTcp
信捷PLC的XC,XD,XL系列的串口转网口通讯类,虽然硬件层走的是TCP协议,但是底层使用ModbusRtu协议实现,每个系列支持的地址类型及范围不一样,详细参考API文档
Xinje PLC's XC, XD, XL series serial port to network port communication type, although the hardware layer uses TCP protocol, but the bottom layer is implemented by ModbusRtu protocol. |
class |
XinJETcpNet
信捷PLC的XC,XD,XL系列的网口通讯类,底层使用ModbusTcp协议实现,每个系列支持的地址类型及范围不一样,详细参考API文档
XC, XD, XL series of Xinje PLC's network port communication class, the bottom layer is realized by ModbusTcp protocol, each series supports different address types and ranges, please refer to the API document for details 对于XC系列适用于XC1/XC2/XC3/XC5/XCM/XCC系列,线圈支持X,Y,S,M,T,C,寄存器支持D,F,E,T,C 对于XD,XL系列适用于XD1/XD2/XD3/XD5/XDM/XDC/XD5E/XDME/XDH/XL1/XL3/XL5/XL5E/XLME, 线圈支持X,Y,S,M,SM,T,C,ET,SEM,HM,HS,HT,HC,HSC 寄存器支持D,ID,QD,SD,TD,CD,ETD,HD,HSD,HTD,HCD,HSCD,FD,SFD,FS |
| 限定符和类型 | 类和说明 |
|---|---|
class |
YokogawaLinkTcp
横河PLC的二进制通信类,支持X,Y,I,E,M,T,C,L继电器类型的数据读写,支持D,B,F,R,V,Z,W,TN,CN寄存器类型的数据读写,还支持一些高级的信息读写接口,详细参考API文档。
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
FanucInterfaceNet
Fanuc机器人的PC Interface实现,在R-30iB mate plus型号上测试通过,支持读写任意的数据,写入操作务必谨慎调用,写入数据不当造成生命财产损失,作者概不负责。
|
Copyright © 2022. All rights reserved.