package com.szpg.plc.message.command; import com.szpg.plc.message.AppCommand; public abstract class WriteMemoryCommand extends AppCommand { /** * */ private static final long serialVersionUID = -1083680357338083535L; private byte memoryArea; //写的内存区域代码 private String startAddress; //起始地址 private int count; //写的字数量/1WORD=2BYTE private int bit; // 要写的位 private byte[] value; //要写入的内容 public byte getMemoryArea() { return memoryArea; } public void setMemoryArea(byte memoryArea) { this.memoryArea = memoryArea; } public String getStartAddress() { return startAddress; } public void setStartAddress(String startAddress) { this.startAddress = startAddress; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public int getBit() { return bit; } public void setBit(int bit) { this.bit = bit; } public byte[] getValue() { return value; } public void setValue(byte[] value) { this.value = value; } public abstract String getCommandType(); }