one more thing - did you try to use ARS function block? https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/ARS.html
It might help you.
@kotrbus Hi Pavel, there is just RexArc for now. We are aware that it does not have that much publicity - we would like to improve it in next release.