Well, you have chosen a quite complex setup that requires a bit more understanding. And at least I will neither write these macros for you nor talk you through each detail of this complex system.
Some pointer, but the rest will be up to you to dig into it:
- There are no “global” variables, this means what is in your start macro stays in your start macro unless you take extra care to pass it along
- A macro knows only
- what is defined within the macro
- passed to the macro, e.g. MY_MACRO TEMPERATURE=220
- Referenced from a different macro as shown here Help with Macro: SET_GCODE_VARIABLE doesnt set my variable - #15 by Sineos
- Is a global printer variable, e.g. see Example: Search Printer Objects
- You should read Macro Creation Tutorial as this is a great introduction to the whole concept.