From c070d392245a0ba8f60fa04ad6210e6429ea6ee2 Mon Sep 17 00:00:00 2001 From: will1742 Date: Tue, 15 Jun 2021 16:50:49 -0400 Subject: [PATCH] Fixed TA halting --- Haas_Next_Generation/haas vf2.cps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Haas_Next_Generation/haas vf2.cps b/Haas_Next_Generation/haas vf2.cps index 4f2934f..bd86140 100644 --- a/Haas_Next_Generation/haas vf2.cps +++ b/Haas_Next_Generation/haas vf2.cps @@ -2435,8 +2435,8 @@ function takeInput(prompt, options) { // Halts program until TA arrives. Returns to beginning of onSection function getTA(seqNum, gotoRef) { writeln("N" + seqNum + " G53 G0 Z0."); - writeln("M02 (GET A TA)"); - writeln("GOTO" + gotoRef + " (Return to beginning of operation)"); + var conRef = takeInput("GET A TA", ['X']) + writeln("N" + conRef[0][1] + " GOTO" + gotoRef + " (Return to beginning of operation)"); } function onDwell(seconds) {