How do I use expressions to modify the command axis based on variables

I want to change the number of the command axis through the PLC instruction.

Examples of related programs can be found in the help file.