Search found 191 matches

by Moray
Fri Mar 27, 2020 12:08 am
Forum: C Programs
Topic: Doubt
Replies: 3
Views: 225

Re: Doubt

It is part of Dymotion's proprietary code, so the only information publicly available is the header file with the declarations, not the code behind. The header file is KMotionDef.h, which can be found in the DSP_KFLOP directory. The relevant extract from the header file is- // This structure is set ...
by Moray
Wed Mar 25, 2020 8:42 pm
Forum: Hardware Interface Issues
Topic: KMotion rarely connects to KFLOP via USB on Windows 10
Replies: 7
Views: 226

Re: KMotion rarely connects to KFLOP via USB on Windows 10

That sounds just like how Windows Defender kills apps it doesn't trust. When Windows Defender flags an app as unknown/suspicious, it will sandbox it, and kill it. Sometimes you get a warning, sometimes you don't. Once Microsoft have analysed the app (usually takes anything from a couple days to a co...
by Moray
Fri Mar 20, 2020 7:47 pm
Forum: Hardware Interface Issues
Topic: Mach3 KAnalog pins output
Replies: 8
Views: 272

Re: Mach3 KAnalog pins output

If you setup the required outputs in Mach 3 ports/pins, you can then use ActivateSignal, and DeactivateSignal in your Mach3 macro. However, am I correct in assuming, that your are using a binary connection between the KFlop and the PLC? i.e. you have n KFlop outputs, connected to n PLC inputs, and t...
by Moray
Thu Mar 19, 2020 10:49 pm
Forum: Hardware Interface Issues
Topic: Fanuc pulse coder use
Replies: 4
Views: 160

Re: Fanuc pulse coder use

Scott, I wouldn't totally dismiss the Z pulse.
You can use it for index homing, to improve homing accuracy.
by Moray
Thu Mar 19, 2020 10:46 pm
Forum: Hardware Interface Issues
Topic: Mach3 KAnalog pins output
Replies: 8
Views: 272

Re: Mach3 KAnalog pins output

In that case, you need to look at section 6 on this page - https://dynomotion.com/Help/Mach3Plugin/Mach3.htm

You need to allocate the KFlop outputs to outputs in Mach 3.
That then allows you to use the outputs within Mach 3 macros.
by Moray
Wed Mar 18, 2020 10:18 pm
Forum: Hardware Interface Issues
Topic: Mach3 KAnalog pins output
Replies: 8
Views: 272

Re: Mach3 KAnalog pins output

redx, if you can provide some details about the tool changer (photos would be good), what outputs/inputs it needs, and the required sequence, we'll be able to help you far better. Having just had a quick google, it looks like it uses a variation on a wine rack changer with pneumatically lifted tool ...
by Moray
Wed Mar 18, 2020 10:03 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 9541

Re: G-codes/offsets/tools with .Net

using (StreamWriter writer = new StreamWriter(file)) { writer.WriteLine(gcode); writer.WriteLine(); } string readText = File.ReadAllText(file); //RichTextBox_GCode.Document.Blocks.Clear(); RichTextBox_GCode.AppendText(readText); bool f = false; // bool state, If for some reason an error occurs insi...
by Moray
Wed Mar 18, 2020 9:56 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 9541

Re: G-codes/offsets/tools with .Net

That might be a timing/race condition on startup. Maybe something is happening such as the initialization code is checking for a connection before a timer tick occurs which will try to make a connection to obtain status. You might need some mechanism to wait until the connection status has been upd...
by Moray
Wed Mar 18, 2020 4:22 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 9541

Re: G-codes/offsets/tools with .Net

Hi Demondar, my ultimate goal is to replicate all the functions of KMotionCNC in C#, so I can add new functionality. The current issue with the GCode, is certain things in the Interpreter have to be set/triggered via running the relevant GCode, and not via dotNet I.e. to switch between Inch/MM, you ...
by Moray
Tue Mar 17, 2020 10:35 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 9541

Re: G-codes/offsets/tools with .Net

I've just discovered what's causing the issue. While going back over DoGCode to add the line to close the streamwriter, I noticed the line that it puts the interpreter in simulation mode if there is no KFlop connected. Comment out that code, and no mystery lockups, or at least no activating simulati...