I am using DNC to load and then run a small program, it just goes into a loop 5 times (for testing) and then jumps out ending printing a SPRINT statement.

I am trying to load and run a second program inside the first as shown in the Legacy CNC 88 Operators Manual.

Below are my two programs, the first is called TESTA.CAM and the second is TESTB.CAM.

I am using a <acronym title="vBulletin">VB</acronym>.Net program that works when I run individual programs, non-DNC. So I modified it, changing TA,1 to DNC, and putting in a 2 second wait before it reads TESTA.COM. It reads it, then goes into 'Waiting'. If I push AUTO or START it lists 'ERROR' and then ENTER NEXT COMMAND.

Not sure how to get this to work. My <acronym title="vBulletin">Vb</acronym>. Net program is a Windows Form, could it be I have to do this at the command line? I'm hoping not, though it is doable by redoing the modules as a Windows Console Application.

TESTA.COM
Code:
%

#SPRINT "THIS IS AN INFINITE LOOP"
#SPRINT "TO STOP IT, PRESS SLIDE HOLD"
#SPRINT "THEN SEND TA,1 <ENTER>

#R7=0

#SPRINT R7

G4 P1
G4 P1

#:IDLELOOP
#SPRINT "IDLELOOP"
G4 P1
#R7=R7+1
#SPRINT R7, " AFTER INCREMENT"
#IF R7 > 4 THEN GOTO :ENDPRGM
#GOTO :IDLELOOP

#:ENDPRGM
C:\CAMS\TESTB.CAM
#PRINT "THE END OF PART A"
#SPRINT "THE END OF PART A"

M02
%

TESTB.CA<
Code:
%

#SPRINT "THIS IS AN INFINITE LOOP"
#SPRINT "TO STOP IT, PRESS SLIDE HOLD"
#SPRINT "THEN SEND TA,1 <ENTER>

#R7=0

#SPRINT R7

#:IDLELOOP
#SPRINT "IDLELOOP"
M15 P0 (VERTICAL CUTTING)
#R7=R7+1
#SPRINT R7, " AFTER INCREMENT"
#IF R7 > 4 THEN GOTO :ENDPRGM
#GOTO :IDLELOOP

#:ENDPRGM
#PRINT "THE END OF PART B"
#SPRINT "THE END OF PART B"
M02
%