Table of Contents

Interface ICommPLC

Namespace
AT.Librarys.Container.Toolkit.Communication
Assembly
AT.Librarys.Container.dll

PLC通讯

public interface ICommPLC : IToolkitBase, IModuleBase
Inherited Members
Extension Methods

Properties

Connected

连接状态

bool Connected { get; }

Property Value

bool

Methods

Connect()

连接

bool Connect()

Returns

bool

Disconnect()

断开

void Disconnect()

Read(CommDataType, string)

读取数据

object Read(CommDataType type, string address)

Parameters

type CommDataType

数据类型

address string

地址

Returns

object

Reads(CommDataType, string, ushort)

读取数据

object[] Reads(CommDataType type, string address, ushort length)

Parameters

type CommDataType

数据类型

address string

地址

length ushort

长度

Returns

object[]

Write(CommDataType, string, object)

写入数据

bool Write(CommDataType type, string address, object value)

Parameters

type CommDataType

数据类型

address string

地址

value object

Returns

bool

Writes(CommDataType, string, object[])

写入数据

bool Writes(CommDataType type, string address, object[] values)

Parameters

type CommDataType

数据类型

address string

地址

values object[]

Returns

bool