KMotionCNC Screen Editor Action Execute C Program
Posted: Thu Feb 01, 2018 2:23 am
I have been customizing my KMotionCNC screen with the KMotion434k screen editor with great results until I hit a bit of a snag. I am attempting to execute a C program when a button is pressed. I have set up the button's size, text, color, etc. and selected "Program// run a KMotion user C program" in the "script/action" dropdown. I selected a thread of 5 and a VAR of 0. After exiting the action script form, the script field contains "Action:4;5;0;0;0;0;KStep\myProgramName.c". I then "SET" the Button control contents and save the screen script. I have verified that the user C program compiles, downloads and runs successfully from the KMotion C Program screen.
When the button is pressed during KMotionCNC execution, the KMotion console output reports the following:
EXECUTE0
^
Error:Expecting value 1 to 7
which leads me to believe that thread 0 is the target of the program instead of thread 5.
Is there something I'm missing?
Thanks,
RJ
When the button is pressed during KMotionCNC execution, the KMotion console output reports the following:
EXECUTE0
^
Error:Expecting value 1 to 7
which leads me to believe that thread 0 is the target of the program instead of thread 5.
Is there something I'm missing?
Thanks,
RJ