what i´m asking for is that the mashine finds the bed center itself
I think of it measuring its axis travel dividing it in half and setting that as zero
Unless your printer is changing size, there's no reason to keep on recalculating this each time the printer homes; it just means that each time, especially using sensorless homing that can take up to 4 full motor steps to register, the results may be different. Just set it up once in config.g, and you don't have to worry about it. And homing won't take as long as it only has to go to one end of each axis, not both.
I seem to remember Marlin does have the functionality to have min and max homing, and it works out the axis length from this and the steps per mm, but I don't think it deduces axis home from this other than putting it at the axis minimum, and then offsetting with and M206. And I can't remember offhand the gcodes to do this, or if it's implemented in Duet firmware. The other problem would be that printers are rarely symmetrical in the X and Y axes, so even if you find the centre point for the axis travel, it's unlikely to be over the centre of the bed, so you'll still need an offset.
Ian