MelsecA3CNet1OverTcpWriteHelper 方法 (String, Boolean, Byte, FuncByte, Byte, OperateResultByte) |
批量写入bool类型的数组,支持的类型为X,Y,S,T,C,具体的地址范围取决于PLC的类型
命名空间:
HslCommunication.Profinet.Melsec
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:10.1.0.0 (10.1.0.0)
语法 public static OperateResult WriteHelper(
string address,
bool[] value,
byte station,
Func<byte[], byte, OperateResult<byte[]>> readCore
)
Public Shared Function WriteHelper (
address As String,
value As Boolean(),
station As Byte,
readCore As Func(Of Byte(), Byte, OperateResult(Of Byte()))
) As OperateResult
public:
static OperateResult^ WriteHelper(
String^ address,
array<bool>^ value,
unsigned char station,
Func<array<unsigned char>^, unsigned char, OperateResult<array<unsigned char>^>^>^ readCore
)
static member WriteHelper :
address : string *
value : bool[] *
station : byte *
readCore : Func<byte[], byte, OperateResult<byte[]>> -> OperateResult
参数
- address
- 类型:SystemString
PLC的地址信息 - value
- 类型:SystemBoolean
数据信息 - station
- 类型:SystemByte
当前PLC的站号信息 - readCore
- 类型:SystemFuncByte, Byte, OperateResultByte
通信的载体信息
返回值
类型:
OperateResult是否写入成功
参见