Hello experts,

I have written a set of macros that utilize #4114 to capture N line numbers. This has been working normally on other machines, but recently, our company purchased a new machine model: FANUC 0iMF Plus. When entering the subroutine in single-step mode and continuing until the end, it operates normally. However, as soon as it enters the subroutine in automatic mode, it triggers an alarm.

I've discovered that the issue lies with #4114; it can capture data in single-step mode but fails to do so in automatic mode. Attempting to switch to #4314 didn't resolve the issue. Finally, by adding G31 before each macro calculation, I managed to get it to run automatically.

Is there any parameter that could solve this problem? Currently, having to add G31 isn't ideal, as it means writing a separate set of subprograms for one machine. I'm asking for your help, experts.