EdgeCAM is switched between Y Axis and C Axis milling by the use of the SELECT MILL MODE macro. This sets up SUBFUNCT as 0 for C Axis and 1 for Y Axis milling (the default condition is C Axis). A user variable should be set to flag that status in other macros.
For example:
%MACRO=44=..=SELECT MILL MODE...etc.
%IF SUBFUNCT=1 %THEN #YAXIS=1 %ELSE #YAXIS=0