Hi Niyaz,
See the RS232 Examples such as \C Programs\RS232\BufferedRS232.c I don't understand what Move Command you are referring to.How I can send RS232 command on M3 and Move commands?
Usually a Tool Change Program can be invoked when needed and run in another Thread and Program.All C code should be in one init.c? (tool change,configuration,buttons,limit switches etc) If not, how we should upload multiple to kflop.
Limit switches don't normally require any C Program to operate. They only need to be configured.
But yes all continuous operations like monitoring push buttons can normally be placed in one forever loop in the init.c program. One single loop can monitor multiple things. See:
KFLOP C Programs - Dynomotion
Regards