Hardware / Software device for the dialogue between Machine and CNC Module