Search found 14 matches

by katiefangffs
Wed Mar 20, 2024 10:39 am
Forum: User PC Applications and Libraries .Net
Topic: Reading ADC from C
Replies: 4
Views: 26605

Re: Reading ADC from C

Hi, Using this code, I can now read the correct ADC value using C# and converted it into the accurate temperature. Following that, I sent a "setpersist" command to the console script to assign the temperature value to a persistent variable. I tested this by sending the "getpersist" function in the c...
by katiefangffs
Tue Mar 19, 2024 4:45 pm
Forum: User PC Applications and Libraries .Net
Topic: Reading ADC from C
Replies: 4
Views: 26605

Re: Reading ADC from C

Update: I found this sln file: "KMotion5.3.1\PC VC Examples\BuildExamples\BuildExamples.sln". Should I build something like this that include all the functionalities I want to include in C++? (I have a few other variables to be updated as well and also some bits to be read)
by katiefangffs
Tue Mar 19, 2024 9:50 am
Forum: User PC Applications and Libraries .Net
Topic: Reading ADC from C
Replies: 4
Views: 26605

Reading ADC from C

Hi! I'm working on reading a temperature value from ADC channel 0. Previously, I directly read it using KMotion and displayed it on the CNC screen by saving the variable as a DRO label. However, due to user requests, I now need to rewrite the code to read the value through Visual Studio, which will ...
by katiefangffs
Mon Mar 11, 2024 3:30 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: G code error
Replies: 1
Views: 9015

G code error

Hello, I've encountered an issue while running G codes that were previously functioned correctly but now consistently displaying this error message. The only modification I've made recently is to the initialization code, which sets up my stepper motors and configures each axis. The error is: Soft Li...
by katiefangffs
Wed Mar 06, 2024 1:57 am
Forum: C Programs
Topic: Axis set up
Replies: 3
Views: 25052

Re: Axis set up

Hi Tom, so for the origin stuff, I have sensors at each axis where I want it to be set as the origin. This is my current code section for this, which jogs at the maximum speed for each motor and then zeros the axis when the IO pin is reached: // Home each axis to its origin HomeAxis(0, 6000, 1026); ...
by katiefangffs
Tue Mar 05, 2024 5:22 am
Forum: C Programs
Topic: Axis set up
Replies: 3
Views: 25052

Axis set up

Hi, I'm currently working on a 5-axis and one spindle CNC project and have done testing each axis individually and now moving on to simultaneous axis control. I am facing two technical issues: 1. Soft Limits Issue: Hardware limits correctly stop movement at boundaries and allow reverse direction mov...
by katiefangffs
Tue Feb 27, 2024 3:26 am
Forum: New Feature Request
Topic: Virtual Comport reading
Replies: 3
Views: 25212

Re: Virtual Comport reading

Hi, I'm interested in the code you have modified to make it work. Greatly appreciate it if you could share it. I have also been trying to use the .NET libraries to save the data directly into Kflop's memory but I'm getting error evreytime once the code gets to the ddl file. This is the current code ...
by katiefangffs
Mon Feb 26, 2024 6:20 am
Forum: C Programs
Topic: IR remote control-Kogna
Replies: 11
Views: 40980

Re: IR remote control-Kogna

Hi, the eariler code is the Arduino code that decodes the IR "remote", where the buttons can then be defined as : #define BUTTON_UP 0xFF38C7 #define BUTTON_DOWN 0xFFB847 #define BUTTON_ONOFF 0xFFF00F #define BUTTON_1 0xFF20DF #define BUTTON_2 0xFFA05F #define BUTTON_3 0xFF609F #define BUTTON_4 0xFF7...
by katiefangffs
Sat Feb 24, 2024 2:56 pm
Forum: C Programs
Topic: IR remote control-Kogna
Replies: 11
Views: 40980

Re: IR remote control-Kogna

Hi, for your reference, these are the code I am currently using: *Arduino for decoding purpose: #include <IRremote.h> const int IR_RECEIVER_PIN = 8; // Define the IR receiver pin const unsigned long IDLE = 0xFFFFFFFF; // Define the value to ignore IRrecv irrecv(IR_RECEIVER_PIN); // Create an instanc...
by katiefangffs
Sat Feb 24, 2024 2:51 pm
Forum: New Feature Request
Topic: Virtual Comport reading
Replies: 3
Views: 25212

Virtual Comport reading

I'm attempting to display a weight measurement on the KMotionCNC UI screen using a scale connected to the PC, which also connects to my Kogna board.Due to encoding issues, the scale cannot be directly programmed by KMotion so I've managed to read the scale's output to a specific COM port using C++ c...