SiemensS7NetWriteWString 方法 |
使用双字节编码的方式,将字符串以 Unicode 编码写入到PLC的地址里,可以使用中文。
Use the double-byte encoding method to write the character string to the address of the PLC in Unicode encoding. Chinese can be used.
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult WriteWString(
string address,
string value
)
Public Function WriteWString (
address As String,
value As String
) As OperateResult
public:
OperateResult^ WriteWString(
String^ address,
String^ value
)
member WriteWString :
address : string *
value : string -> OperateResult
参数
- address
- 类型:SystemString
起始地址,格式为I100,M100,Q100,DB20.100 -> Starting address, formatted as I100,mM100,Q100,DB20.100 - value
- 类型:SystemString
字符串的值
返回值
类型:
OperateResult是否写入成功的结果对象
参见