HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Moderators: TomKerekes, dynomotion

Post Reply
AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by AmitKumar171 » Fri Oct 09, 2020 9:10 am

hI TOM,

I am using kflop+kanalog+konnect.

I want to select single block option in kmotioncnc using a physical button.

How to do programming for that, any suggestions.??

waiting for your kind reply.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by TomKerekes » Fri Oct 09, 2020 4:40 pm

You might read this.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by AmitKumar171 » Tue Oct 13, 2020 6:43 am

Hi tom,

i tried the above method that you told above,

i am getting this error while compiling and running the program.
tcc: undefined symbol 'ScreenScript'
How to resolve this error?

waiting for your kind reply.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by TomKerekes » Tue Oct 13, 2020 3:36 pm

Hi Amit,

You must not have included the file with the ScreenScript function.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by AmitKumar171 » Wed Oct 14, 2020 7:11 am

Hi tom ,

Which file you are referring ??

Code: Select all

#include "KMotionDef.h"

#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"

void main()
{
	for (;;)
	{
		ScreenScript("WinMsg:DlgName;IDC_SingleStep;BM_CLICK;");
		Delay_sec(0.5);
	}
}

which file to include?
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: HOW TO SELECT SINGLE BLOCK OPTION IN KMOTIONCNC

Post by TomKerekes » Wed Oct 14, 2020 3:51 pm

KflopToKMotionCNCFunctions.c should contain the ScreenScript function. Does it? What Version are you using?
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply