MelsecA3CNetHelperWrite 方法 (IReadWriteA3C, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult Write(
IReadWriteA3C plc,
string address,
byte[] value
)
Public Shared Function Write (
plc As IReadWriteA3C,
address As String,
value As Byte()
) As OperateResult
public:
static OperateResult^ Write(
IReadWriteA3C^ plc,
String^ address,
array<unsigned char>^ value
)
static member Write :
plc : IReadWriteA3C *
address : string *
value : byte[] -> OperateResult
参数
- plc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteA3C
PLC设备通信对象 - address
- 类型:SystemString
地址信息 - value
- 类型:SystemByte
数据值
返回值
类型:
OperateResult是否写入成功
参见