Search found 22 matches

by Juanjo-Lasing
Mon Mar 09, 2020 7:40 am
Forum: User PC Applications and Libraries .Net
Topic: G code interpreter ends too early
Replies: 3
Views: 957

Re: G code interpreter ends too early

Hi Tom, I tested the process and found that I changed the ExecutionInProcess variable in another part of the code myself. I fixed it and now it's working. Anyway, what I don't understand is why, while a GCode is running and I try to move the axes at the same time, the movement "counts" even if the s...
by Juanjo-Lasing
Thu Mar 05, 2020 7:56 am
Forum: User PC Applications and Libraries .Net
Topic: G code interpreter ends too early
Replies: 3
Views: 957

G code interpreter ends too early

Hello everyone, I am programing an application in .NET with visual studio where I use the G-Code interpreter. We have various cameras in different positions and the axis move to this positions to make different actions. When we need to execute a G-Code, first the motors move the axis to a particular...
by Juanjo-Lasing
Thu Feb 20, 2020 12:03 pm
Forum: C Programs
Topic: Home routine
Replies: 3
Views: 918

Re: Home routine

Sorry I couldn't reply until now.

I was able to solve it with your indications and now it works perfectly.
Thank you as always Tom.
by Juanjo-Lasing
Mon Feb 10, 2020 10:41 am
Forum: C Programs
Topic: Home routine
Replies: 3
Views: 918

Home routine

Hello, I am doing a home routine for various axis following this code for all them: ch4->Dest=104.5; Jog(4,-1); // start moving while (ReadBit(1032)) ; // wait for switch (input #16) to change Jog(4,1); // start moving while (!ReadBit(1032)) ; Zero(4); MoveAtVel(4,100,10); while (!CheckDone(4)); Zer...
by Juanjo-Lasing
Thu Feb 06, 2020 9:36 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Repeat GCode with Displacements
Replies: 4
Views: 765

Re: Repeat GCode with Displacements

Understood.

Thanks again Tom.
by Juanjo-Lasing
Wed Feb 05, 2020 10:42 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Repeat GCode with Displacements
Replies: 4
Views: 765

Re: Repeat GCode with Displacements

Thank you Tom, that was perfect. Another question, is it necessary to include the labels at the end of the file, after M2? I tried to add new instructions after the label to add new movements but the simulator is unable to leave the loop. Something like this: #1 = 20.2 (increment in X) #2 = 0 (numbe...
by Juanjo-Lasing
Tue Feb 04, 2020 11:52 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Repeat GCode with Displacements
Replies: 4
Views: 765

Repeat GCode with Displacements

Hello, I am trying to make various repetitions of a structure defined in G-Code but displacing the origin of the structure a distance in each repetition. I’ll try to explain it with an example. I have a square defined in GCode like this: G0 X0 Y0 G1 X10 Y0 G1 X10 Y10 G1 X0 Y10 G1 X0 Y0 And I want to...
by Juanjo-Lasing
Tue Oct 29, 2019 6:24 pm
Forum: User PC Applications and Libraries .Net
Topic: Execute C program with my application
Replies: 1
Views: 2158

Execute C program with my application

Hello,

I am trying to execute C program with my application using M_Controller.ExecuteProgram(Int32, String, Boolean), but nothing happens. The program is a simple move to test this method.

Any idea how I can fix this?

Thank you.
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: 1658

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

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...