Search found 30 matches

by IvanSiberia
Tue May 02, 2023 8:14 am
Forum: C Programs
Topic: load data from file
Replies: 5
Views: 646

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: 946

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: 959

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: 970

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: 959

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.
by IvanSiberia
Mon Jan 23, 2023 5:44 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: simulate
Replies: 4
Views: 970

Re: simulate

is there a flag that the simulation has ended or started?
by IvanSiberia
Sun Jan 22, 2023 4:29 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Halt and resume GCodes
Replies: 5
Views: 959

Halt and resume GCodes

When a custom G code like MoveAtVel(AXIS_Y,(coordinate)*10000,speed*10000/60 ); is executed in KMotionCNC ; . When you press the F5 button, the interpreter window sometimes pops up with the loss of the trajectory. How to pause code execution correctly?
442d6ab4-0d23-416f-8b31-44b2a1ccfdcd.jpg
by IvanSiberia
Sun Jan 22, 2023 4:16 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: simulate
Replies: 4
Views: 970

simulate

After executing the G code in the simulation, the tool from the G code remains selected in KMotionCNC. How can you leave the initial tool after the simulation?
by IvanSiberia
Wed Sep 21, 2022 4:18 am
Forum: C Programs
Topic: Kmotion lock
Replies: 3
Views: 488

Re: Kmotion lock

When Mcode 0 - 30 is executed in KMotionCNC, KMotionCNC locks. Can I call blocking for other actions or codes.
by IvanSiberia
Fri Sep 02, 2022 9:54 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: extended MCodes
Replies: 1
Views: 870

extended MCodes

KMotionCNC allows MCodes 100-119 with parameters when configured to Execute a KFLOP User
C Program. How can I get more extended MCodes. m120 - m300?