SiemensPPIHelperReadPlcType 方法 |
读取西门子PLC的型号信息,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
Read the model information of Siemens PLC, the parameter information can carry the station number information "s=2;", note that the semicolon is required.
命名空间:
HslCommunication.Profinet.Siemens.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<string> ReadPlcType(
IReadWriteDevice plc,
string parameter,
byte station,
Object communicationLock
)
Public Shared Function ReadPlcType (
plc As IReadWriteDevice,
parameter As String,
station As Byte,
communicationLock As Object
) As OperateResult(Of String)
public:
static OperateResult<String^>^ ReadPlcType(
IReadWriteDevice^ plc,
String^ parameter,
unsigned char station,
Object^ communicationLock
)
static member ReadPlcType :
plc : IReadWriteDevice *
parameter : string *
station : byte *
communicationLock : Object -> OperateResult<string>
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC的通信对象 - parameter
- 类型:SystemString
额外的参数信息,例如可以携带站号信息 "s=2;", 注意,分号是必须的。 - station
- 类型:SystemByte
当前的站号信息 - communicationLock
- 类型:SystemObject
当前的同通信锁
返回值
类型:
OperateResultString包含是否成功的结果对象
参见