custom button want execute c program
Posted: Tue Jan 29, 2019 5:14 pm
Hello.
I'm running the kmotion version 434k.
I have put some custom buttons on the screen via screen editor.
I want those buttons, when pressed to execute a specific c program on thread 3 for example.
I have configure for example, the IDC_But20 as "Button", Var -1 and script action, "Program//run a KMotion User C program".
When i execute the c program from Kmotion environment, everything is ok, but when i execute via the button on the kmotionCNC, it brings an error
"Invalid thread number 0 Valid Range (1-7)"
Attached is the screen i have made and the c program.
Please advice what do i do wrong?
I'm running the kmotion version 434k.
I have put some custom buttons on the screen via screen editor.
I want those buttons, when pressed to execute a specific c program on thread 3 for example.
I have configure for example, the IDC_But20 as "Button", Var -1 and script action, "Program//run a KMotion User C program".
When i execute the c program from Kmotion environment, everything is ok, but when i execute via the button on the kmotionCNC, it brings an error
"Invalid thread number 0 Valid Range (1-7)"
Attached is the screen i have made and the c program.
Please advice what do i do wrong?