SiemensFetchWriteNetWrite 方法 (String, Byte) |
向PLC中写入byte数据,返回是否写入成功
Writes byte data to the PLC and returns whether the write succeeded
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult Write(
string address,
byte value
)
Public Function Write (
address As String,
value As Byte
) As OperateResult
public:
OperateResult^ Write(
String^ address,
unsigned char value
)
member Write :
address : string *
value : byte -> OperateResult
参数
- address
- 类型:SystemString
起始地址,格式为M100,I100,Q100,DB1.100 -> Starting address, formatted as M100,I100,Q100,DB1.100 - value
- 类型:SystemByte
要写入的实际数据 -> The actual data to write
返回值
类型:
OperateResult是否写入成功的结果对象 -> Whether to write a successful result object
参见