I am trying the below steps but it throws an error: '${dut1_lmepid_${i}}' no keyword found.
If I use anything like ${temp_var} in place of ${dut1_lmepid_${i}} it works fine though.
: For ${i} IN RANGE 1 2
\ ${var} = Set Variable dut1_lmepid_${i}
\ ${dut1_lmepid_${i}}= Run Keyword get-local-ac-id me${i}

{temp_var}? If you need to save all of the variables, have you considered using a dictionary or list instead of a bunch of generated variables?