SiemensPPIHelperWrite 方法 (IReadWriteDevice, String, Boolean, Byte, Object) |
将bool数据写入到西门子PLC中,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Write the bool data to Siemens PLC with the addresses "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc.
命名空间:
HslCommunication.Profinet.Siemens.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult Write(
IReadWriteDevice plc,
string address,
bool[] value,
byte station,
Object communicationLock
)
Public Shared Function Write (
plc As IReadWriteDevice,
address As String,
value As Boolean(),
station As Byte,
communicationLock As Object
) As OperateResult
public:
static OperateResult^ Write(
IReadWriteDevice^ plc,
String^ address,
array<bool>^ value,
unsigned char station,
Object^ communicationLock
)
static member Write :
plc : IReadWriteDevice *
address : string *
value : bool[] *
station : byte *
communicationLock : Object -> OperateResult
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC的通信对象 - address
- 类型:SystemString
西门子的地址数据信息 - value
- 类型:SystemBoolean
数据长度 - station
- 类型:SystemByte
当前的站号信息 - communicationLock
- 类型:SystemObject
当前的同通信锁
返回值
类型:
OperateResult带返回结果的结果对象
参见