![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#4
| ||||
| ||||
| Hop, Sorry, I am not familiar with the Anilam control. I have use the following program to test a Renishaw probe on our new Okuma E100M controller. Basically the program starts the probe and then captures the position value to a file and loops for 20 times so that I could get an idea of how accurate the repeatability of the probe was (seeing as an approentice had just smashed the living daylights out of it!) Suprisingly enough the Renishaw MP10 unit is one tough bunny! ![]() I have added some comments to help. G15 H200 (Select co-ordinate system) B315 G56 HA Z800 G0 X0 Y60. (position machine) Z5. CALL OO18 (turn on probe) N1 IF [VC1 GT 20] N2 (loop counter test) X0 Z8 CALL OO10 PMOD=3 PEI=0 (probe Z axis, result is internally stored in variable VS27) CALL O1 (Call writing program) G0 Z100 G4 F1. N122 G0 X-42.5 Y60. (move to secont test point) N124 Z8. N126 CALL OO10 PMOD=3 PEI=-5. POVT=6 (probe Z again) CALL O2 (call writing program) G0 Z100 VC1=VC1+1 (increment counter) GOTO N1 (jump to loop test statement) N2 G0 Z800 CALL OO19 (Turn OFF probe) M2 * * O1 FWRITC MD1:PROBE-RESULTS.TXT;A (if file not created, create it, else Append to file) PUT 'PROBED Z AXIS' (create string to be output to file) PUT ' TEST#' PUT VC1 WRITE C (write information to file) PUT 'ACTUAL= ' PUT VS27 (get position value) WRITE C (write value to file) CLOSE C (close file) RTS * O2 (same as above but showing results at second position) FWRITC MD1:PROBE-RESULTS.TXT;A PUT 'PROBED Z X-42.5' PUT ' TEST#' PUT VC1 WRITE C PUT 'ACTUAL= ' PUT VS27 WRITE C CLOSE C RTS Hope this helps? Regards Brian. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |