停止西门子PLC,切换为Stop模式,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
Stop Siemens PLC and switch to Stop mode, parameter information can carry 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 Stop(
IReadWriteDevice plc,
string parameter,
byte station,
Object communicationLock
)
Public Shared Function Stop (
plc As IReadWriteDevice,
parameter As String,
station As Byte,
communicationLock As Object
) As OperateResult
public:
static OperateResult^ Stop(
IReadWriteDevice^ plc,
String^ parameter,
unsigned char station,
Object^ communicationLock
)
static member Stop :
plc : IReadWriteDevice *
parameter : string *
station : byte *
communicationLock : Object -> OperateResult
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC的通信对象 - parameter
- 类型:SystemString
额外的参数信息,例如可以携带站号信息 "s=2;", 注意,分号是必须的。 - station
- 类型:SystemByte
当前的站号信息 - communicationLock
- 类型:SystemObject
当前的同通信锁
返回值
类型:
OperateResult是否停止成功
参见