ABB Plane to Euler angles


I have issue which is probably already solved for Euler angles for ABB.
I am trying to find convert Plane orientation to 3 numbers of Euler angles.

Does this method would help anyhow to do this?

I was thinking to transform XY plane to target plane and converting the transformation matrix to Euler angles.

Is this a correct way of doing this ?