Search found 21 matches
- Tue Nov 01, 2022 4:48 pm
- Forum: Tuning Servos
- Topic: Leadshine DM542E and DM542T
- Replies: 2
- Views: 3058
Re: Leadshine DM542E and DM542T
There was a delay in the response of the actual stepper drivers themselves. So while the KFlop would detect a following error and stop sending pulses to the drivers, the drivers would still be executing their previous commands, and when the dust was settled the encoder would read as if no following ...
- Tue Oct 18, 2022 7:14 pm
- Forum: Tuning Servos
- Topic: Leadshine DM542E and DM542T
- Replies: 2
- Views: 3058
Leadshine DM542E and DM542T
Hello! I'm using the stepper drivers listed above in the subject, they're functionally equivalent. I've been able to line up the microstep resolution and current settings for them and our motors just fine. Configuring the settings for the output for the KFlop has been fairly easy as well. The issue ...
- Fri Aug 26, 2022 7:14 pm
- Forum: C Programs
- Topic: String Manipulation
- Replies: 4
- Views: 1003
Re: String Manipulation
Quick follow up (unless this should be a different thread): If I assign a string to be too long: "thisstringiswaytoolong" and then I read in a new value for it using fscanf and the new value is shorter, I am still able to see the older part of the string with the correct array offset. Is this a memo...
- Fri Aug 26, 2022 6:49 pm
- Forum: C Programs
- Topic: String Manipulation
- Replies: 4
- Views: 1003
Re: String Manipulation
Thanks, that worked. I feel silly for not noticing that, but thanks for the quick response.
- Fri Aug 26, 2022 5:56 pm
- Forum: C Programs
- Topic: String Manipulation
- Replies: 4
- Views: 1003
String Manipulation
Hi, I'm not sure if I'm just using very bad syntax in C, but I'm getting junk data when I try to access strings element by element. If I assign an array of characters or a char* to a string value and print that out I have no issue, but if I try to access a string like "x[4]" I only get junk data, no...
- Tue Jul 26, 2022 1:41 pm
- Forum: User PC Applications and Libraries .Net
- Topic: Running a .exe from M Codes
- Replies: 9
- Views: 5403
Re: Running a .exe from M Codes
On an unrelated note, sorry about not responding on some previous posts I've made. There was some hiccup with my network where I could make initial posts but not reply to them. Thankfully it seems like that is fixed now.
- Tue Jul 26, 2022 1:33 pm
- Forum: User PC Applications and Libraries .Net
- Topic: Running a .exe from M Codes
- Replies: 9
- Views: 5403
Re: Running a .exe from M Codes
Thank you so much Tom!
I ended up doing this for the .bat file which did exactly what I wanted:
start /d C:\pathtodesktop\ /b testhandler.exe
On the Python end, using exit code 0 also worked and I was able to just run the .exe file without a .bat and had no error messages pop up.
I ended up doing this for the .bat file which did exactly what I wanted:
start /d C:\pathtodesktop\ /b testhandler.exe
On the Python end, using exit code 0 also worked and I was able to just run the .exe file without a .bat and had no error messages pop up.
- Tue Jul 26, 2022 1:13 pm
- Forum: User PC Applications and Libraries .Net
- Topic: Running a .exe from M Codes
- Replies: 9
- Views: 5403
Re: Running a .exe from M Codes
For some reason two processes were generated every time it ran. I'm looking into pyinstaller to see if there's some configuration I can use to have it only generate one process in Windows tasklist
- Mon Jul 25, 2022 9:00 pm
- Forum: User PC Applications and Libraries .Net
- Topic: Running a .exe from M Codes
- Replies: 9
- Views: 5403
Re: Running a .exe from M Codes
So the .bat file is already on the Desktop so that ends up being the path it opens to initially so I'm able to call the .exe which is also on the Desktop I made the .exe files in Python and used pyinstaller to turn the scripts into .exe files. The contents of the .bat file are just: testhandler.exe ...
- Mon Jul 25, 2022 8:20 pm
- Forum: User PC Applications and Libraries .Net
- Topic: Running a .exe from M Codes
- Replies: 9
- Views: 5403
Re: Running a .exe from M Codes
I switched it to a .bat file for execution and now it has:
"Error Executing PC Program:
C:\\Users\\pathtofile
Return code = 1
Abort?"
It got that same error when I put it in the KMotion CNC start up action.
"Error Executing PC Program:
C:\\Users\\pathtofile
Return code = 1
Abort?"
It got that same error when I put it in the KMotion CNC start up action.