internal static WriteMemoryAreaBitRequest CreateNew(OmronPLC plc, ushort address, byte startBitIndex, enMemoryBitDataType dataType, bool[] values)
 {
     return(new WriteMemoryAreaBitRequest(plc)
     {
         FunctionCode = (byte)enFunctionCode.MemoryArea,
         SubFunctionCode = (byte)enMemoryAreaFunctionCode.Write,
         Address = address,
         StartBitIndex = startBitIndex,
         DataType = dataType,
         Values = values,
     });
 }
 internal static ReadMemoryAreaBitRequest CreateNew(OmronPLC plc, ushort address, byte startBitIndex, ushort length, enMemoryBitDataType dataType)
 {
     return(new ReadMemoryAreaBitRequest(plc)
     {
         FunctionCode = (byte)enFunctionCode.MemoryArea,
         SubFunctionCode = (byte)enMemoryAreaFunctionCode.Read,
         Address = address,
         StartBitIndex = startBitIndex,
         Length = length,
         DataType = dataType,
     });
 }