SiemensS7NetWrite 方法 (String, Byte) |
向PLC中写入byte数据,返回值说明
Write byte data to the PLC, return value description
命名空间:
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
起始地址,格式为I100,M100,Q100,DB20.100 -> Starting address, formatted as I100,mM100,Q100,DB20.100 - value
- 类型:SystemByte
byte数据 -> Byte data
返回值
类型:
OperateResult是否写入成功的结果对象 -> Whether to write a successful result object
参见