自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-08-04 6abc20e29568c129f4ca71eccec9310534a8c779
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.zy.common.HslCommunication.Core.Types;
 
/**
 * 用于PLC通讯及Modbus自定义数据类型的读写操作
 */
public interface IDataTransfer {
 
    /**
     * 读取的数据长度,对于西门子,等同于字节数,对于三菱和Modbus为字节数的一半
     * @return
     */
    short getReadCount();
 
 
    /**
     * 从字节数组进行解析实际的对象
     * @param Content 实际的内容
     */
    void ParseSource(byte[] Content);
 
    /**
     * 将对象生成字符源,写入PLC中
     * @return 写入PLC中
     */
    byte[] ToSource();
}