I have Saeilo contour h630 with sinumerik 840D. There is no ethernet or usb, so I'm stuck to RS-232. Since machine doesen't have automatic tool changer, we use it in manual mode only.

I can send G code file to machine and back. But that can be used in CNC mode wich we do not use. Operator is programing in manual mode. Problem is, when I read out that program over RS232, I can't get it back into machine. Problem seems to be infile adressing.

Here is example of what I get out from machine:
Ie. empty program:
@@MMCARC.000000000000400001285/_N_WKS_DIR/_N_EASYSTEP_WPD/_N_2020_MPF
_N_2020_MPF0000000000000039013838097180004334/_N_WKS_DIR/_N_EASYSTEP_WPD/;$PATH=/_N_WKS_DIR/_N_EASYSTEP_WPD
M30
With some roughing:
@@MMCARC.000000000000440001289/_N_WKS_DIR/_N_EASYSTEP_WPD/_N_W16709_3_MPF
_N_W16709_3_MPF0000000000000133013787177640004632/_N_WKS_DIR/_N_EASYSTEP_WPD/;$P
ATH=/_N_WKS_DIR/_N_EASYSTEP_WPD
E_ROUGH(1,0.2,95,180,96,1,5,65,90,1,90,-0.5,90,0,90,65.5,91,1,91,0,0,0,2,0.001,0.1,1,90,90 ,0)
M30
Using contours:
@@MMCARC.000000000000980001298/_N_WKS_DIR/_N_EASYSTEP_WPD/_N_OS_SK_65GN_03_2_MPF

/_N_WKS_DIR/_N_CONTOUR_WPD/_N_SK_65GN_03_C_MPF
_N_OS_SK_65GN_03_2_MPF0000000000000450013821092000 005218/_N_WKS_DIR/_N_EASYSTEP_
WPD/;$PATH=/_N_WKS_DIR/_N_EASYSTEP_WPD
M3 M7 M42
E_ROUGH(6,0.2,95,150,96,3,4,31.5,90,5,90,67,90,0,9 0,35.5,91,5,91,0,0,0,2.8,0,0.3,2,90,90,0)
E_ROUGH(6,0.2,95,150,96,2,3,32,90,0.5,90,2,91,2,91 ,1,91,1,91,0,0,0,2,0.5,0.5,0,0.868,85.389,0)
E_CONT("SK_65GN_03_C")
E_ROU_2(16,0.2,95,150,96,"SK_65GN_03_C",,,"2013101 8123240","",,,"20131018123241"
,313111,1.5,0,0,65,90,-5.5,90,60,80,0.15,1,"00004326209790501825","000003 7850405
9291730",0,1.5,66)
M5 M9 M42
M30
_N_SK_65GN_03_C_MPF0000000000000413013820994590004 933/_N_WKS_DIR/_N_CONTOUR_WPD/;$PATH=/_N_WKS_DIR/_N_CONTOUR_WPD
;#7__DlgK contour definition begin - Don't change!;*GP*;*RO*
G18 G90 DIAM90 ;*GP*
G0 Z0.5 X122.5 ;*GP*
G1 Z-2.5 X127.5 ;*GP*
Z-4.3 ;*GP*
Z-5.5 X125.5 ;*GP*
RET ;*GP*
;CON,2,0.0000,3,3,MST:3,2,AX:Z,X,K,I;*GP*;*RO*
;S,EX:0.5,EY:122.5;*GP*;*RO*
;LA,EX:-2.5,EY:127.5;*GP*;*RO*
;LL,EX:-4.3;*GP*;*RO*
;LA,EX:-5.5,DEY:-1;*GP*;*RO*
;#End contour definition end - Don't change!;*GP*;*RO*
Do I need some special software for comunication, can I setup machine so it sends file that can be read back in, or can I modify file on pc so machine recognises it? And how???