Two different Component coordinate calculation to Phython

Hello VC,

I’m trying to calculate two coordinates from VC to Python.

The reasons for implementation are as follows.

The first facility moves through the servo controller and picks and places in several places.

I’m writing in Python to pick and place, move.

I have to move the facility to several frame locations, but the more the frame location increases, the harder it becomes.

Here, I think it would be convenient if the difference between the set frame position of the first facility and the target frame could be calculated.

If the difference can be known by calculating the XYZ value as shown in the attached picture, I think we can use this value to substitute the value of servo.move(X,Y,Z).

Is there a way to implement that?

Best regards,