Hi Carlos,
It looks like you are using a comma " , " instead of a decimal point " . "
do:
ch0->I=0.02;
instead of
ch0->I=0,02;
The normal way to test and tune your axes is to use the KMotion.exe screens. After everything is working then let KMotion convert the parameters to C code for you. See a flash video here
To stop from an external signal you will need a forever loop watching for the input and then disable your axes and/or amplifiers.
Regards