@Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        S7Tag s7Tag = (S7Tag) o;
        return blockNumber == s7Tag.blockNumber && byteOffset == s7Tag.byteOffset && bitOffset == s7Tag.bitOffset && numElements == s7Tag.numElements && dataType == s7Tag.dataType && memoryArea == s7Tag.memoryArea;
    }
checks if ByteOffset from S7Tag is in valid range

@param byteOffset given byteOffset
@return given byteOffset if Ok, throws PlcInvalidTagException otherwise
plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/tag/S7Tag.java