Search found 32 matches

by Snyggis
Tue Jun 12, 2018 7:26 pm
Forum: C Programs
Topic: Changing Z Axis
Replies: 9
Views: 16371

Re: Changing Z Axis

Tom, The goal is to switch between two spindles through a M6 T1 or T2 command. I have the program Tool Change2.0.c set to Exec/Wait/Sync under the M6 Program. KMotionCNC: M6 T1 M30 When I run run this in KmotionCNC - Spindle 1 Turns ON/Off Correctly - Spindle 1 is connected to Z and jogs up and down...
by Snyggis
Tue Jun 12, 2018 12:41 am
Forum: C Programs
Topic: Changing Z Axis
Replies: 9
Views: 16371

Re: Changing Z Axis

Moray, Thanks for the reply. Yeah, I tried that first thing, didnt help. I tied without the sync, and wait, none of it worked. I am using a tool change M-Code to change which spindle I am using. If it is tool1 then I set coordinates and zero for spindle 1. I think it has something to do with the com...
by Snyggis
Sat Jun 09, 2018 9:46 pm
Forum: C Programs
Topic: Changing Z Axis
Replies: 9
Views: 16371

Re: Changing Z Axis

It is strange, when I run the C program outside of KMotion CNC it works fine. When I run it as a user program from KMotionCNC it doesn't work. Leads me to believe that KMotionCNC is having trouble processing the new coordinates and zero position in the same program. Anyone have any ideas on how to f...
by Snyggis
Sat Jun 09, 2018 8:37 pm
Forum: C Programs
Topic: Changing Z Axis
Replies: 9
Views: 16371

Changing Z Axis

Howdy, Got stuck again. I am trying to use a C program to change which axis is the "Z" axis, and then to Zero the new axis at the new coordinate system. //Set Spindle 2 as Z DefineCoordSystem6(6,5,1,-1,-1,-1); //Set work coordinates for Z NewZOffset=(Tool2-Offset)*-1; DoPCFloat(PC_COMM_SET_Z,(NewZOf...
by Snyggis
Thu Jun 07, 2018 10:05 pm
Forum: C Programs
Topic: External Command Error
Replies: 4
Views: 8563

Re: External Command Error

Thanks Tom! That makes sense. In the example program that I copied the header file had the following: #define TMP 10 // which spare persist to use to transfer data. I was avoiding global variable 10, I guess that line means something else? Here are the definitions from the header file, looks like I ...
by Snyggis
Thu Jun 07, 2018 5:19 am
Forum: C Programs
Topic: External Command Error
Replies: 4
Views: 8563

Re: External Command Error

Not sure my attachments went through.
by Snyggis
Thu Jun 07, 2018 5:16 am
Forum: C Programs
Topic: External Command Error
Replies: 4
Views: 8563

External Command Error

Good Evening, I am getting a strange error that I don't understand while running a C Program. A display window pops up in KMotionCNC which says "Invalid External Command Received". I have attached a screen shot. The only way to make it go away is to reboot the KFlop. I am running 434h. Error Message...
by Snyggis
Tue May 29, 2018 12:36 am
Forum: C Programs
Topic: Position VS Dest
Replies: 1
Views: 5198

Position VS Dest

On the Axis screen it has "Position" and "Dest". Anyone know what the difference is? I see there are two functions that will return the position or destination of a given axis. I am unclear the difference between the two.

Thanks!
by Snyggis
Wed May 16, 2018 12:13 am
Forum: Hardware Interface Issues
Topic: Power up Reset (low true) output
Replies: 1
Views: 4904

Power up Reset (low true) output

I am wondering the purpose for Pin 4 on JP 4? Is this to indicate the state of the KFlop board, or an external way to reboot the board? It sounds like it could be both "Power up Reset (low true) output". Does this mean if I ground the pin it will reboot? Or does it mean that it is low when the KFlop...
by Snyggis
Thu May 10, 2018 2:32 pm
Forum: Custom Screens, KMotionCNC Screen Editor
Topic: KMotionCNC Check Box
Replies: 1
Views: 6376

KMotionCNC Check Box

Another question here about connecting KMotionCNC to a C program. Is there a way to add a custom check box on the KMotionCNC screen? I would like to be able to use a C Program to verify if this button is checked or not. Really I need an if statement based off of the state of a user input on the KMot...