Hello, can anyone help me here:
I'm trying to use EKI functions in sps.sub. However, the compiler has error "name not declared as subprogram" on EKI_init ( ) and other EKI function.
Use EKI in main program (.src) has no problem.
I have modified xml configuration as <ENVIRONMENT> Submit </ENVIRONMENT>
I found a post having the same question. However there is no answer. https://www.robot-forum.com/robotforum/kuk…xml-in-sps-sub/
(EDIT)
Solved :
OK, after reading the replies, it turns out that I simply mistakenly use "Subprogram" as "Function",
RET=EKI_Init( ) ; a function. correct
EKI_Init( ) ; a subprogram. error
In order to help other newbies like me to get started, I attached the final working code.
I make EKI as Server, and use some FLAG to deal with disconnection and reconnect. It works, so far...
The first file is the modified original SPS file. The second is a newly created SPS file. Both can work.