NcReader  


The update of this page is 03/12/04 ,  Please see the update of each item on each page.

[The feature and a function]

 - this software is the software which takes in the data from NC to PC through RS232C, and writes in arbitrary Application software, such as Excel .
- the inside of a plane by the side of NC -- all data (it changes with machine specifications), such as the number of processings, body temperature, etc. for every measurement data, outside-the-plane measurement data, compensation data, and tool, are made as for writing to Excel etc. with a free format .
- Since the date and time when data were outputted can be written in, processing managements, such as processing time and the total number of processings on the 1st, can be performed. 
- The surveillance of data is always made also from the place from which Excel was separated by sharing on a network. 
- Even if it is doing the work of others [ PC ], change from NC to Application specified that data are sent, and write in data. 


[Appearance] 


[Explanation at the time of execution] 

■ As shown in the following figure, free form is created, and data are sent by the program by the side of a machine. 

■ At the time of execution, NcReader is displayed on a taskbar by minimization and waits for the data from RS232C in the background. 

■ As data were keyed by hand from the cell specified that data are sent at the beginning of Excel, data are written in and it dies. 

■ It returns to the head of the following line by the line feed code, and waits for the following data. 

■ If data come even if it changes the screen of PC and is doing other work, a screen will be changed to Excel and data will be written in. 

 

[The above-mentioned NC program for forms (OSP)] .

This subprogram is called in the end of a processing program. 

( SAMPLE PROGRAM FOR OKUMA LT200M )
(measurement outside and inside, number of tool,judgment result,temperature)


N000 G13 (A-turret)
N000 G140 (left spindle)

(Input the A-turret cutting program)

N000/CALL OPRNA (A-side Output data macro)
N000 CALL OMSSF (measure Sw off)
N000 CALL OCNCK (measure count up)
N000 CALL OXMS (pos. guge )
N000 TLID (tool life)



N000 G14 (B-turret)
N000 G140 (left spindle)

(Input the B-turret cutting program)

N000/CALL OPRNB (B-side Output data macro)
N000 CALL OMSSF (measure Sw off)
N000 CALL OXMS 
N000 TLID (Tool life)
NEND M02 (Program end)


--------< A-turret data output >--------
OPRNA
N000 PUT VWKCC[1],8 (workcount-A vale)
N000 PUT $09 (output TAB code for shift cell)
N000 PUT VXMCD[1],8 (measurement1 data)
N000 PUT $09 (output TAB code for shift cell)
NOEX BIT=VDIN[801] (measurementJudgment let to BIT)
N000 IF[BIT EQ 4]NNNG (measurementJudgment set Character)
N000 IF[BIT EQ 8]NPNG
N000 IF[BIT EQ 16]NNOK
N000 IF[BIT EQ 32]NPOK
N000 IF[BIT EQ 64]NOK
N000 PUT ' '
N000 GOTO NR01
NNNG PUT 'Plus NG'
N000 GOTO NR01
NPNG PUT 'Minus NG'
N000 GOTO NR01
NNOK PUT 'Minus OK'
N000 GOTO NR01
NPOK PUT 'Plus OK'
N000 GOTO NR01
NOK PUT ' OK'
NR01 PUT $09 (output TAB code for shift cell)
N000 PUT VTLCN[3],8 (tool No.3 number of cutting)
N000 PUT $09 (output TAB code for shift cell)
N000 M100 (read wait)
NRTS RTS (sub program end)

--------< B-turret data output >--------
OPRNB
N000 M100 (wait untill A-turret finish)
N000 PUT VXMCD[2],8 (measure 2 data output)
N000 PUT $09 (output TAB code for shift cell)
NOEX BIT=VDIN[802] (measure 2 Judgment let to BIT)
N000 IF[BIT EQ 4]NNNG (measurementJudgment set Character)
N000 IF[BIT EQ 8]NPNG
N000 IF[BIT EQ 16]NNOK
N000 IF[BIT EQ 32]NPOK
N000 IF[BIT EQ 64]NOK
N000 PUT ' '
N000 GOTO NR01
NNNG PUT 'Minus NG'
N000 GOTO NR01
NPNG PUT 'Plus NG'
N000 GOTO NR01
NNOK PUT 'Minus OK'
N000 GOTO NR01
NPOK PUT 'Plus OK'
N000 GOTO NR01
NOK PUT ' OK'
NR01 PUT $09 (output TAB code for shift cell)
N000 PUT VTLCN[5],8 (tool No.5 number of cutting)
N000 PUT $09 (output TAB code for shift cell)
N000 IF[VDIN[32]EQ 1]NR02 (If measure switch off goto NR02)
N000 PUT ' ' (dummy space output)
N000 PUT $09 (output TAB code for shift cell)
N000 PUT ' '
N000 GOTO NR03
NR02 PUT VIMDX[6],8 (measure screen 6 X-axis data)
N000 PUT $09 (output TAB code for shift cell)
N000 IF[VS6 EQ -2]NNNG2 (measure judgment)
N000 IF[VS6 EQ -1]NNOK2
N000 IF[VS6 EQ 0]NOK2
N000 IF[VS6 EQ 1]NPOK2
N000 IF[VS6 EQ 2]NPNG2
N000 ' '
N000 GOTO NR03
NPNG2 PUT 'Plus NG'
N000 GOTO NR03
NNNG2 PUT 'Minus NG'
N000 GOTO NR03
NOK2 PUT ' OK'
N000 GOTO NR03
NNOK2 PUT 'Minus OK'
N000 GOTO NR03
NPOK2 PUT 'Plus OK'
NR03 PUT $09 (output TAB code for shift cell)
N000 PUT VTLCN[6],8 (tool No.6 number of cut)
N000 PUT $09 (output TAB code for shift cell)
N000 NOEX TEMP=VPTMP[1]/10 (Temperature No.1 data unit 0.1deg to 1/10)
N000 PUT TEMP,8 (Temperature output)
N000 PUT $0A0D (line feed and return)
N000 WRITE 0 (RS232C I/F 0 output)
NRTS RTS (sub program end)





[Download] 

No. Contents

File name

size

 
1 NcReader Ver.1.00  NcReaderE100.lzh 352 KB   
2         

Please copy only an executable file into "C:\Program Files\NcReader" after defrosting, and carry out overwrite. 


ホーム ] 上へ ] NcTools for Android ]