Greetings.

In program O9014 there is some dwell time which I don't know how to locate/remove.

#3003=1 (SINGLE BLOCK DISABLED)
IF [#16GE3 ]GOTO120 (P VALUE OVER 3)
IF [[#16GE1 ]AND [#22EQ#0 ]]THEN#12=1
IF [#12EQ1 ]GOTO121 (V_P_ ADDRESS COMMAND ERROR)

#30=#3005
#31=4
#32=#30 AND#31
IF [#32EQ4 ]GOTO21 (INCH SYSTEM CHECK)

N20
#10= PRM [1240]/[2]
IF [#16EQ0 ]THEN#22=#10+#5042-#5022 (MACHINE COORDINATE TYPE)
IF [#16EQ2 ]THEN#22=#22+#5042-#5022 (MACHINE COORDINATE TYPE)
GOTO25
N21
#10= PRM [1250]/[2]
IF [#16EQ0 ]THEN#22=#10+#5042-#5022 (MACHINE COORDINATE TYPE)
IF [#16EQ2 ]THEN#22=#22+#5042-#5022 (MACHINE COORDINATE TYPE)
GOTO25

N25
G28 U0.
M05 P11
M47 (BAR RETRACT)
M79 (TAIL STOCK QUILL RETRACT)

Until M79 everything goes smooth and at the M79 I should press start button twice so program can go on.
value #3003=1 (SINGLE BLOCK DISABLED) I changed to #3003=0 so I can avoid block by block reading.
If you require full program I can post it but the issue is somewhere there

Or maybe here
N30
G31
G310 D490 P543 B4 (D490=TS POSITION, P543=#543, B4=Byte 4)
(#543 = TAILSTOCK POSITION)

this G310 I have no idea what's the meaning of it.

Any help or advice is useful.

Thank you.