Search found 14 matches

by Juanjo-Lasing
Fri Oct 11, 2019 7:45 am
Forum: User PC Applications and Libraries .Net
Topic: MCodes and how to use them in an application
Replies: 3
Views: 75

Re: MCodes and how to use them in an application

Hi Tom, Thank you as always. I managed to implement it in my application and now it works well. Another question. Several MCodes such as M0 (stop) and M30 (stop/rewind) have Interpreter functionality, but can also perform an additional Action. I understand that M0-M9 have defined functionality, but ...
by Juanjo-Lasing
Tue Oct 08, 2019 10:13 am
Forum: User PC Applications and Libraries .Net
Topic: MCodes and how to use them in an application
Replies: 3
Views: 75

MCodes and how to use them in an application

Hello, I have new questions, this time regarding the use and interpretation of MCodes. In KMCNC the user can modify the definitions of MCodes and change their behaviour when running a GCode (running a C file, stopping the program, etc). In the libraries I found the enumeration MCODE_TYPE where there...
by Juanjo-Lasing
Mon Oct 07, 2019 10:15 am
Forum: User PC Applications and Libraries .Net
Topic: Halt and resume GCodes
Replies: 9
Views: 206

Re: Halt and resume GCodes

Hello Tom,

That worked perfectly, thank you!
by Juanjo-Lasing
Fri Oct 04, 2019 8:35 am
Forum: User PC Applications and Libraries .Net
Topic: Halt and resume GCodes
Replies: 9
Views: 206

Re: Halt and resume GCodes

Hello Tom, I tested that method, printing the line number while running a GCode, and it seems that the number increases faster than the movement. For example, with this GCode for a square: G0 X0 Y0 Z0 F50 G1 X5 Y0 G1 X5 Y5 G1 X0 Y5 G1 X0 Y0 When it is still running the line 3 G1 X5 Y0 the line numbe...
by Juanjo-Lasing
Thu Oct 03, 2019 8:09 am
Forum: User PC Applications and Libraries .Net
Topic: Halt and resume GCodes
Replies: 9
Views: 206

Re: Halt and resume GCodes

Hi Tom, Thank you for your replies. I am using the FeedHold() and ResumeFeedHold() methods to pause and resume the program. It's not exactly what I wanted to do, but I can handle it and it's enough for now. Another feature in KMotionCNC that interests me is that the program indicates the GCode line ...
by Juanjo-Lasing
Wed Oct 02, 2019 10:52 am
Forum: User PC Applications and Libraries .Net
Topic: Halt and resume GCodes
Replies: 9
Views: 206

Re: Halt and resume GCodes

Hey, Tom, I review the example and see that the function is used with the KM_GCodeInterpreterCompleteHandler and that it is somehow added to the main controller using _Controller.CoordMotion.Interpreter.Interpreter.InterpreterCompleted += new KMotion_dotNet.KM_Interpreter.KM_GCodeInterpreterComplete...
by Juanjo-Lasing
Tue Oct 01, 2019 9:32 am
Forum: User PC Applications and Libraries .Net
Topic: Halt and resume GCodes
Replies: 9
Views: 206

Halt and resume GCodes

Hello again, In KMCNC I can see how you can run GCode step by step and I am trying to imitate that feature. In my application, I can run GCodes and stop the running using KM_Interpreter.Halt() . I would like to resume running from the point where it has stopped after halt. In the documentation I fou...
by Juanjo-Lasing
Tue Oct 01, 2019 7:55 am
Forum: User PC Applications and Libraries .Net
Topic: Unit position equivalence with GCode programas
Replies: 4
Views: 45

Re: Unit position equivalence with GCode programas

Hi Tom, The "feedback positions" are the destinations of the axies, I get them using Destination array from the status controller. I am not sure why I called them that, sorry. Using CountsPerInchX with 2.54 (1 inch = 2.54 cm) the positions I get are an order of magnitude smaller than expected, so I ...
by Juanjo-Lasing
Mon Sep 30, 2019 10:35 am
Forum: User PC Applications and Libraries .Net
Topic: Unit position equivalence with GCode programas
Replies: 4
Views: 45

Unit position equivalence with GCode programas

Hello again, I am trying to run simple GCodes in my aplication using the metod KM.CoordMotion.Interpreter.Interpret("...") This is the code I am trying to run, a simple square: G0 X0 Y0 Z0 F50 G90 G21 G40 G1 X5 Y0 G1 X5 Y5 G1 X0 Y5 G1 X0 Y0 M2 In my aplication I put 3 position indicators with a time...