In theory you can create tables etc, but in reality it just doesn’t work like that. The super expensive CNC press brakes use laser positioning to dynamically measure the part and stop when the angle is found. You just can’t get that level of repeatability across batches of sheet metal for a start - spring back can vary based on temp or just what mood it’s in.
You would also have to factor the punch radius, the die size, shoulder and angle. Is the bed crowned? Bending a 100mm part requires different crowning compensation compared to 1000mm - and that has to be done per bend.
You just have to do a test and then use that Y for the session, and treat it as a reference for future batches. The closest you can get is to record each Y you use and build a table of your own of actual data.
I’ve found that there’s no repeatable or safe way of zeroing the Y axis or even the punch holders (if they have crowning adjustment). It’s all very manual. You’ll find that any numbers you get are relative and not absolute. You’ll be lucky to even find a way of getting the Y axis to be accurate to the fraction of a mm (which you need), so again, it’s trial and error with setup.
Full automation comes at a cost... normally £70k upwards plus extras.
Not the answer you’re looking for I know!