The problem is already solved!
Thank you for your reply.
I got the project from the controller and edited it in workvisual. I also made some modifications in $config file in WINDOWS in kuka pad.
The problem was: In spite of modifying $config.dat file in kuka pad for something of the type:
'DEFDAT $CONFIG
ENDDAT'
but it assumed a previous wrong writing.
Solution: I edited $config.dat file in workvisual and then deployed new project to controller and everything worked again.