MelsecFxLinksHelperPackCommandWithHeader 方法 |
将当前的报文进行打包,根据和校验的方式以及格式信息来实现打包操作
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackCommandWithHeader(
IReadWriteFxLinks plc,
byte[] command
)
Public Shared Function PackCommandWithHeader (
plc As IReadWriteFxLinks,
command As Byte()
) As Byte()
public:
static array<unsigned char>^ PackCommandWithHeader(
IReadWriteFxLinks^ plc,
array<unsigned char>^ command
)
static member PackCommandWithHeader :
plc : IReadWriteFxLinks *
command : byte[] -> byte[]
参数
- plc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteFxLinks
PLC通信对象 - command
- 类型:SystemByte
原始的命令数据
返回值
类型:
Byte打包后的命令
参见