Node s7comm connection parameter

Hello everyone,
is it possible to set the connection value of s7 node via function?
This value must be dynamic and change when a machine with a different ip is used.

Thanks for support