internal static ReadMemoryAreaWordRequest CreateNew(OmronPLC plc, ushort startAddress, ushort length, enMemoryWordDataType dataType) { return(new ReadMemoryAreaWordRequest(plc) { FunctionCode = (byte)enFunctionCode.MemoryArea, SubFunctionCode = (byte)enMemoryAreaFunctionCode.Read, StartAddress = startAddress, Length = length, DataType = dataType, }); }
internal static WriteMemoryAreaWordRequest CreateNew(OmronPLC plc, ushort startAddress, enMemoryWordDataType dataType, short[] values) { return(new WriteMemoryAreaWordRequest(plc) { FunctionCode = (byte)enFunctionCode.MemoryArea, SubFunctionCode = (byte)enMemoryAreaFunctionCode.Write, StartAddress = startAddress, DataType = dataType, Values = values, }); }