MelsecA3CNetHelperPackCommand 方法 |
将命令进行打包传送,可选站号及是否和校验机制
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackCommand(
IReadWriteA3C plc,
byte[] mcCommand,
byte station = 0
)
Public Shared Function PackCommand (
plc As IReadWriteA3C,
mcCommand As Byte(),
Optional station As Byte = 0
) As Byte()
public:
static array<unsigned char>^ PackCommand(
IReadWriteA3C^ plc,
array<unsigned char>^ mcCommand,
unsigned char station = 0
)
static member PackCommand :
plc : IReadWriteA3C *
mcCommand : byte[] *
?station : byte
(* Defaults:
let _station = defaultArg station 0
*)
-> byte[]
参数
- plc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteA3C
PLC设备通信对象 - mcCommand
- 类型:SystemByte
mc协议的命令 - station (Optional)
- 类型:SystemByte
PLC的站号
返回值
类型:
Byte最终的原始报文信息
参见