Balluff - BVS CA-GT Technical Documentation
I get an exception when setting OffsetX or OffsetY

offsetX and offsetY are horizontal or vertical offsets from the origin to the region of interest (in pixels). The max. value of both offsetX and offsetY changes in reference to width or height. For this reason, if you want to change both values, offsetX / offsetY and width / height, you first have to change width / height and then offsetX / offsetY.