Hello Tom,
I have been trying to call a program in a program, from some examples I see I need to include "KMotionDLL.h" the but I always get a message error :
If I copy the file in the folder then I get that :
I must be missing something...
Call a C program in a C program
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2529
- Joined: Mon Dec 04, 2017 1:49 am
Re: Call a C program in a C program
KMotionDLL.h is for a C++ Class for code that runs on the PC under Microsoft Windows. It can not be used in a C Program that runs on KFLOP.
Could you describe more specifically what you are trying to do?
Could you describe more specifically what you are trying to do?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Call a C program in a C program
Hello Tom,
I have specific program for the homing of the spindle, and I would like to call it during my toolchange program.
Cordially
Francois
I have specific program for the homing of the spindle, and I would like to call it during my toolchange program.
Cordially
Francois
- TomKerekes
- Posts: 2529
- Joined: Mon Dec 04, 2017 1:49 am
Re: Call a C program in a C program
Hi Francos,
Convert the Program into a function. Put the function into a file. #Include the file in the Tool Change Program. Call the function from the Tool Change code wherever required.
Convert the Program into a function. Put the function into a file. #Include the file in the Tool Change Program. Call the function from the Tool Change code wherever required.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.