HslCommunication.Profinet.AllenBradley.AllenBradleyMicroCip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HslCommunication Show documentation
Show all versions of HslCommunication Show documentation
一个工业物联网的底层架构框架,专注于底层的技术通信及跨平台,跨语言通信功能,实现各种主流的PLC数据读写,实现modbus的各种协议读写等等
package HslCommunication.Profinet.AllenBradley;
/**
* AB PLC的cip通信实现类,适用Micro800系列控制系统
* AB PLC's cip communication implementation class, suitable for Micro800 series control system
*/
public class AllenBradleyMicroCip extends AllenBradleyNet {
/**
* 实例化一个默认的对象
*/
public AllenBradleyMicroCip( ){
}
/**
* 指定IP地址及端口来实例化一个对象,其中端口号默认为 44818
* @param ipAddress IP地址
* @param port 端口
*/
public AllenBradleyMicroCip( String ipAddress, int port ){
super(ipAddress, port);
}
protected byte[] PackCommandService( byte[] portSlot, byte[]... cips ) {
return AllenBradleyHelper.PackCleanCommandService( portSlot, cips );
}
public String toString( ) {
return "AllenBradleyMicroCip[" + getIpAddress() + ":" + getPort() + "]";
}
}