Search found 7 matches

by smartmc
Fri Mar 03, 2023 3:00 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Moving forward in G-code & starting from a selected block
Replies: 3
Views: 1401

Re: Moving forward in G-code & starting from a selected block

Hi, Its not clear how that would work if the move to the previous block is not executed. The calculations of the upstream G-code is done internally without moving the axes, then only the move of the block immediately preceding the requested start block. For example if work stops during thread cuttin...
by smartmc
Wed Mar 01, 2023 11:08 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Moving forward in G-code & starting from a selected block
Replies: 3
Views: 1401

Moving forward in G-code & starting from a selected block

Hello, Is it possible to move forward in the G-code program so as to start from a selected block. It would be necessary that the control executes all the blocks calculation internally (without moving the axes) so as to approach the point at the end of block preceding the chosen block. For example if...
by smartmc
Tue Jul 12, 2022 10:05 pm
Forum: C Programs
Topic: Logic condition evluation timing & While loop
Replies: 3
Views: 803

Re: Logic condition evluation timing & While loop

Thanks Tom, I understand that nothing in the loop changes the condition. What I understood from your answer is that when the for ( i=...) iteration is done, execution goes to the while condition check and NOT to the begining of the program at the for (;;). This is what you mean? Not like a PLC where...
by smartmc
Tue Jul 12, 2022 7:21 pm
Forum: C Programs
Topic: Logic condition evluation timing & While loop
Replies: 3
Views: 803

Logic condition evluation timing & While loop

Hello, I hope to understand when does "While" evaluate it's logic condition in this simple program to better understand how execution is sequenced in C programs in general. Referring to the below program that runs but have some strange behavior. Q.1: If I don't evaluate the LogicVal after the "while...
by smartmc
Mon May 09, 2022 12:11 pm
Forum: C Programs
Topic: Detecting Power-on & Diagnostics
Replies: 5
Views: 1193

Re: Detecting Power-on & Diagnostics

Hi Tom, Please explain what you are doing and trying to accomplish and we might be able to better help you. Just purchased KFLOP + Konnect and starting to learn to use it in machine retrofit. I've been using SIEMENS CNC controllers and PLCs so I'm trying to figure out how to implement the same funct...
by smartmc
Sun May 08, 2022 9:26 pm
Forum: C Programs
Topic: Detecting Power-on & Diagnostics
Replies: 5
Views: 1193

Re: Detecting Power-on & Diagnostics

Hi Tom, I'm trying to detect the power-up to execute initialization and possibly set some other outputs to put the machine in an initial state automatically without operator intervention. Only C programs to be flashed! For the diagnostics, on KFLO and Konnect, how to detect that the board is malfunc...
by smartmc
Sun May 08, 2022 12:03 am
Forum: C Programs
Topic: Detecting Power-on & Diagnostics
Replies: 5
Views: 1193

Detecting Power-on & Diagnostics

Hello, Is there any way to detect the power-on event on KFLOP; kind of system bit that is automatically set or a function that is automatically called on power-on. This can be used, say, for executing the Init program. What are the available diagnostic registers/bits to detect malfunctions on KFLOP ...