set origin/abs position counters at start of macro. add basic coordinate adjustment function