Search found 13 matches

by Demondor
Thu Mar 19, 2020 7:45 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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

Hi Moray. I think I realized that you can’t. And I see this option.Starting the timer is done as a separate function, in the constructor only setting the timer. After you load all the necessary settings for yours and the interpreter, including files for the interpreter. After all the settings, start...
by Demondor
Wed Mar 18, 2020 8:48 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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 Demondor
Wed Mar 18, 2020 8:28 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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

Hi Moray. If you need to run some kind of g code after starting the program without human participation, then you need to create a connection event and trigger the necessary actions after connecting. I would also recommend that you have several variables to control the current state. For example, if...
by Demondor
Fri Mar 13, 2020 8:31 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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

I am writing an application for controlling a manipulator such as a scarа for an enterprise. I can’t lay out all the code, but I can tell you the points that I used. This is already the 3rd version of the program, for the management we “came up” with our own commands, they are parsed line by line an...
by Demondor
Fri Mar 13, 2020 8:21 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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

I can’t tell you about the tools, I’m not using it. Offset please. In Timer if (Connect) { if (KM.WaitToken(100) == KMOTION_TOKEN.KMOTION_LOCKED) { ..... You code ... offsetID = KM.CoordMotion.Interpreter.SetupParams.OriginIndex; // Current offset index } } in model // generate an event when the cur...
by Demondor
Thu Mar 12, 2020 2:19 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 11720

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

In application on wpf, axis and speed is selected. xml - Jog Button <Button Grid.Row="0" Grid.Column="1" Width="170" Margin="5" Content="Jog +" FontSize="30" Style="{DynamicResource myButton}"> <i:Interaction.Triggers> <i:EventTrigger EventName="PreviewMouseDown"> <ei:CallMethodAction MethodName="Jo...
by Demondor
Mon Apr 08, 2019 6:30 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Softlimits and scara kinematics
Replies: 8
Views: 2298

Re: Softlimits and scara kinematics

Thanks again Tom, for your support. The header file .h, I think it is not particularly difficult to do, so I did not spread it. The first machine is already working, while executing the trajectory of the code recalculated in the external program. Therefore, the transition to the revised version of K...
by Demondor
Sun Apr 07, 2019 7:54 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Softlimits and scara kinematics
Replies: 8
Views: 2298

Re: Softlimits and scara kinematics

Hi, Tom. We write trajectories in CAD programs using such a virtual machine. http://i.piccy.info/i9/6bff92cb0159d7160550419c0bf3c9fd/1554620586/22378/1311827/virtual_machine.jpg Actually the machine looks like this. http://i.piccy.info/i9/f80827473e33f48f102c1091ca77b926/1554623102/28198/1311827/rea...
by Demondor
Fri Apr 05, 2019 6:59 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Softlimits and scara kinematics
Replies: 8
Views: 2298

Re: Softlimits and scara kinematics

Sorry, Tom, I'm a little busy, I will answer at the weekend.
by Demondor
Wed Apr 03, 2019 5:09 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Softlimits and scara kinematics
Replies: 8
Views: 2298

Re: Softlimits and scara kinematics

Hi, Tom. Before editing KMotionCNC, I wrote my program, it translates motion into G code that has been broken into small sections. This is a screen of the working area of the scara manipulator with given angles. So clearly visible problem. The text is typed in google translate, sorry for my English....