MelsecFxLinksHelperWrite 方法 (IReadWriteFxLinks, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认,地址支持动态指定站号,例如:s=2;D100
The data written to the PLC in batches is in units of words, that is, at least 2 bytes of information.
It supports X, Y, M, S, D, T, and C. The specific address range needs to be confirmed according to the PLC model,
The address supports dynamically specifying the station number, for example: s=2;D100
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult Write(
IReadWriteFxLinks plc,
string address,
byte[] value
)
Public Shared Function Write (
plc As IReadWriteFxLinks,
address As String,
value As Byte()
) As OperateResult
public:
static OperateResult^ Write(
IReadWriteFxLinks^ plc,
String^ address,
array<unsigned char>^ value
)
static member Write :
plc : IReadWriteFxLinks *
address : string *
value : byte[] -> OperateResult
参数
- plc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteFxLinks
PLC通信对象 - address
- 类型:SystemString
地址信息 - value
- 类型:SystemByte
数据值
返回值
类型:
OperateResult是否写入成功
参见