Erik Kostson
Ansys Employee

As my colleague said, look at the *GET, *VGET commands - also we can not provide any help with the scripting or provide scripts, but there are many posts using these command on this forum and on the internet, which might help. Also the help manual (apdl) might have some examples and it has lots of information on what these commands can get (for instance displacements).

below is an example that might be useful, but do search as mentioned above, and perhaps also some other members of this forum can provide some comments/feedback.

All the best of luck