Well I am stuck with getting program code to be saved in the CNC controller. Normally a program called NCFadal is used. It is a serial communications program that you open the code (ex. below) and click 'to CNC' or 'from CNC' . I can get the code to show on the CNC screen but I can't get it to be saved as a program. Below is just the start and end code blocks. All programs start and end with a percent character. CR characters on each line.
The idea is to have the VB program sit on the desktop computer and whatever program the operator wants to use they choose it, the program uploads automatically and is ready to use at the CNC monitor. I could also have the VB program load the NCFadal program (and I already have that parameter in the line, but I can't find a way to get the CNC code (i.e. TestData.nc) as a paramter of the NCFadal program to then load into the CNC. That's the dilemma.
I seem to be missing some important serial communcication commands that are needed between the CNC and the desktop PC?
%
O1
(STOCK/BLOCK,0.000,0.000,0.000,-5.275,1.500,0.188)
( MILL: 4020_3 )
( 4.2530 Z HEIGHT OFF BED TO BOTTOM OF PART )
( 1.3750 PARALLEL HEIGHT )
( FRIDAY 4/27/12 11.05AM )
*
*PUT TOOL 500 IN SPINDLE
# SPRINT "POCKET-ID 1234"
# SPRINT "WALLS-PLUS-TOL 0.001"
,,,
#:END_WALL_SIZE_CHECK
G9
M5M9
* DONE *
T2M6
G52 X0 Y0 Z0
G00 H0 Z0
E0 X0 Y0
(POST UTILITY *8063*)
M02
%