Search found 25 matches

by IvanSiberia
Wed May 31, 2023 4:00 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: RUN GCODE
Replies: 6
Views: 107

Re: RUN GCODE

This method works! Thank you
by IvanSiberia
Mon May 29, 2023 4:15 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: RUN GCODE
Replies: 6
Views: 107

Re: RUN GCODE

How can I switch the GCODE stream from KFLOP?
by IvanSiberia
Thu May 25, 2023 4:53 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: RUN GCODE
Replies: 6
Views: 107

Re: RUN GCODE

Now I'm running GCODE from my M105 like this. Are there other options?

Code: Select all


		DoPC(PC_COMM_HALT_NEXT_LINE);
 	        DoPCInt(PC_COMM_USER_BUTTON, 0);  // push test buttons
by IvanSiberia
Wed May 24, 2023 6:46 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: RUN GCODE
Replies: 6
Views: 107

RUN GCODE

I want to check the part after milling. To do this, I measure the finished part. If the dimensions don't match, I want to start a milling cycle in which I will correct the tool size. How can I run from k-flop G-CODE. I found a method to launch GCODE through custom buttons. Can I change the file numb...
by IvanSiberia
Fri May 19, 2023 8:34 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: elay in subprograms
Replies: 3
Views: 193

Re: elay in subprograms

How long is the delay? ~2s How is M105 configured? Exec/wait/Sync What type of system do you have? Any Kinematics? the program moves the axes in one of the directions or measures the object in one direction. A new trajectory will need to be computed and downloaded after the M105 but should not take...
by IvanSiberia
Tue May 02, 2023 8:14 am
Forum: C Programs
Topic: load data from file
Replies: 1
Views: 72

load data from file

I have a code that requests data from a file on drive C. double Scan_file_ProbeXYZ(void) { FILE *f; char s[256]; double cnt = 0; f = fopen("C:\\temp\\kflopProbeXYZ.txt", "rt"); if (!f) { printf("Unable to open file\n"); return; } while (!feof(f)) { fgets(s, 100, f); if (!feof(f)) { cnt++; } } fclose...
by IvanSiberia
Tue May 02, 2023 7:48 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: elay in subprograms
Replies: 3
Views: 193

elay in subprograms

I have a subroutine M105. This program measures the surface with a touch sensor. (1001) (TEST1) (T70 D=5. CR=2.5 - ZMIN=-95.4 - PROBE) N10 M105 P336 Q1 N15 G90 G94 G17 N20 G21 N25 G53 G0 Z0. ( 2) (RENISHAW OMP40-2 4MM X 50MM) N30 T70 M6 N35 G54 N45 G0 X-432.2149 Y330.7739 N50 G43 Z-34. H70 N60 M105 ...
by IvanSiberia
Mon Jan 30, 2023 8:09 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Halt and resume GCodes
Replies: 5
Views: 185

Re: Halt and resume GCodes

https://youtu.be/UROxFb5Kek4 M104 exec/wait/sync #include "KMotionDef.h" #include "Mikromat InputOutput.h" void main() { MoveAtVel(2, -1000, 1000 * 1000 / 60); while (!CheckDone(2)); } M107 exec/wait/sync #include "KMotionDef.h" #include "Mikromat InputOutput.h" void main() { MoveAtVel(2, 0, 1000 *...
by IvanSiberia
Tue Jan 24, 2023 7:23 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: simulate
Replies: 4
Views: 167

Re: simulate

thanks, the solution works
by IvanSiberia
Mon Jan 23, 2023 10:06 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Halt and resume GCodes
Replies: 5
Views: 185

Re: Halt and resume GCodes

My code will execute on command M 104, I want the operator to be able to stop the code and continue without popup.