OmronFinsNetHelperReadBoolAsync 方法 |
从欧姆龙PLC中批量读取位软元件,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Read bit devices in batches from Omron PLC with address format "D100.0", "C100.0", "W100.0", "H100.0", "A100.0"
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<bool[]>> ReadBoolAsync(
IOmronFins omron,
string address,
ushort length,
int splits
)
Public Shared Function ReadBoolAsync (
omron As IOmronFins,
address As String,
length As UShort,
splits As Integer
) As Task(Of OperateResult(Of Boolean()))
public:
static Task<OperateResult<array<bool>^>^>^ ReadBoolAsync(
IOmronFins^ omron,
String^ address,
unsigned short length,
int splits
)
static member ReadBoolAsync :
omron : IOmronFins *
address : string *
length : uint16 *
splits : int -> Task<OperateResult<bool[]>>
参数
- omron
- 类型:HslCommunication.Profinet.Omron.HelperIOmronFins
PLC设备的连接对象 - address
- 类型:SystemString
读取地址,格式为"D100","C100","W100","H100","A100" - length
- 类型:SystemUInt16
读取的长度 - splits
- 类型:SystemInt32
分割信息
返回值
类型:
TaskOperateResultBoolean带成功标志的结果数据对象
参见