FujiSPB.Write 方法 (String, Boolean) |
写入一个Bool值到一个地址里,地址可以是线圈地址,也可以是寄存器地址,例如:M100, D10.12,地址可以携带站号信息,例如:s=2;D10.12
Write a Bool value to an address. The address can be a coil address or a register address, for example: M100, D10.12.
The address can carry station number information, for example: s=2;D10.12
命名空间:
HslCommunication.Profinet.Fuji
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override OperateResult Write(
string address,
bool value
)
Public Overrides Function Write (
address As String,
value As Boolean
) As OperateResult
public:
virtual OperateResult^ Write(
String^ address,
bool value
) override
abstract Write :
address : string *
value : bool -> OperateResult
override Write :
address : string *
value : bool -> OperateResult
参数
- address
- 类型:System.String
地址信息,举例:M100, D10.12 - value
- 类型:System.Boolean
写入的bool值
返回值
类型:
OperateResult是否写入成功的结果对象
实现
IReadWriteNet.Write(String, Boolean)参见