Oh. Yeah you can’t do that. But I think you could accomplish the same thing like this:
[tmc2209 stepper_x]
uart_pin: PC4
run_current: 0.8
hold_current: 0.6
sense_resistor: 0.110
stealthchop_threshold: 999999
driver_SGTHRS: 60
diag_pin: PG6
[gcode_macro GLOBAL]
variable_xy_home_current:0.7
gcode:
{% set global = printer["gcode_macro GLOBAL"] %}
[gcode_macro _HOME_X]
gcode:
{% set home_current = printer["gcode_macro GLOBAL"].xy_home_current %}
{% set run_current = printer.configfile.settings['tmc2209 stepper_x'].run_current %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={home_current}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={home_current}
G4 P500
G28 X
G91
G1 X-120 F1200
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={run_current}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={run_current}
#### _HOME_Y same except for "G28 Y" and "G1 Y110 F1200"